BRepEdge
- class compas_occ.brep.BRepEdge(edge)[source]
Bases:
object
Class representing an edge in the BRep of a geometric shape.
- Parameters
edge (TopoDS_Edge) – An OCC BRep edge.
- Attributes
type (
BRepEdge.CurveType
, read-only) – The type of the geometric curve underlying the topological edge.is_line (bool, read-only) – True if the underlying curve is a line.
is_circle (bool, read-only) – True if the underlying curve is a circle.
is_ellipse (bool, read-only) – True if the underlying curve is an ellipse.
is_hyperbola (bool, read-only) – True if the underlying curve is a hyperbola.
is_parabola (bool, read-only) – True if the underlying curve is a parabola.
is_bezier (bool, read-only) – True if the underlying curve is a bezier curve.
is_bspline (bool, read-only) – True if the underlying curve is a bspline curve.
is_other (bool, read-only) – True if the underlying curve is an other type of curve.
vertices (list[
BRepVertex
], read-only) – The topological vertices of the edge.first_vertex (
BRepVertex
, read-only) – The first vertex with forward orientation.last_vertex (
BRepVertex
, read-only) – The first vertex with reversed orientation.curve (
OCCCurve
) – Curve geometry from the edge adaptor.
- Other Attributes
edge (
TopoDS_Edge
) – The underlying OCC topological edge data structure.adaptor (
BRepAdaptor_Curve
) – Edge adaptor for extracting curve geometry.
Methods
Convert the edge geometry to a bezier curve.
Convert the edge geometry to a bspline.
Convert the edge geometry to a circle.
Convert the edge geometry to a NURBS curve.
Convert the edge geometry to an ellipse.
Convert the edge geometry to a hyperbola.
Convert the edge geometry to a line.
Convert the edge geometry to a parabola.