OCCBrepEdge
- class compas_occ.brep.OCCBrepEdge(occ_edge)
Bases:
BrepEdge
Class representing an edge in the BRep of a geometric shape.
- Parameters:
- occ_edgeTopoDS_Edge
An OCC BRep edge.
- Attributes:
- curve
OCCCurve
Curve geometry from the edge adaptor.
- first_vertex
BrepVertex
, read-only The first vertex with forward orientation.
- is_linebool, read-only
True if the underlying curve is a line.
- is_circlebool, read-only
True if the underlying curve is a circle.
- is_ellipsebool, read-only
True if the underlying curve is an ellipse.
- is_hyperbolabool, read-only
True if the underlying curve is a hyperbola.
- is_parabolabool, read-only
True if the underlying curve is a parabola.
- is_bezierbool, read-only
True if the underlying curve is a bezier curve.
- is_bsplinebool, read-only
True if the underlying curve is a bspline curve.
- is_otherbool, read-only
True if the underlying curve is an other type of curve.
- last_vertex
BrepVertex
, read-only The first vertex with reversed orientation.
- verticeslist[
BrepVertex
], read-only The topological vertices of the edge.
- type
BrepEdge.CurveType
, read-only The type of the geometric curve underlying the topological edge.
- curve
Methods
Construct an edge from a circle.
Construct an edge from a curve.
Construct an edge from an ellipse.
Construct an edge from a line.
Construct an edge from two points.
Construct an edge from two vertices.
Check if this edge is equal to another edge.
Check if this edge is the same as another edge.
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 an ellipse.
Convert the edge geometry to a hyperbola.
Convert the edge geometry to a line.
Convert the edge geometry to a parabola.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct an edge from two points.
Construct an edge from two vertices.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Get a curve from this edge's geometry.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.