Edge#

class ansys.geometry.core.designer.edge.Edge(id: str, curve_type: CurveType, body: ansys.geometry.core.designer.body.Body, grpc_client: ansys.geometry.core.connection.client.GrpcClient, is_reversed: bool = False)#

Represents a single edge of a body within the design assembly.

This class synchronizes to a design within a supporting Geometry service instance.

Parameters:
idstr

Server-defined ID for the body.

curve_typeCurveType

Type of curve that the edge forms.

bodyBody

Parent body that the edge constructs.

grpc_clientGrpcClient

Active supporting Geometry service instance for design modeling.

is_reversedbool

Direction of the edge.

Overview#

id

ID of the edge.

is_reversed

Flag indicating if the edge is reversed.

shape

Underlying trimmed curve of the edge.

length

Calculated length of the edge.

curve_type

Curve type of the edge.

faces

Faces that contain the edge.

start

Start point of the edge.

end

End point of the edge.

Import detail#

from ansys.geometry.core.designer.edge import Edge

Property detail#

property Edge.id: str#

ID of the edge.

property Edge.is_reversed: bool#

Flag indicating if the edge is reversed.

property Edge.shape: ansys.geometry.core.shapes.curves.trimmed_curve.TrimmedCurve#

Underlying trimmed curve of the edge.

If the edge is reversed, its shape is the ReversedTrimmedCurve type, which swaps the start and end points of the curve and handles parameters to allow evaluation as if the curve is not reversed.

property Edge.length: pint.Quantity#

Calculated length of the edge.

property Edge.curve_type: CurveType#

Curve type of the edge.

property Edge.faces: list[ansys.geometry.core.designer.face.Face]#

Faces that contain the edge.

property Edge.start: ansys.geometry.core.math.point.Point3D#

Start point of the edge.

property Edge.end: ansys.geometry.core.math.point.Point3D#

End point of the edge.