RhinoBrepEdge
- class compas_rhino.geometry.RhinoBrepEdge(rhino_edge=None, builder=None)[source]
Bases:
BrepEdge
A wrapper for Rhino.Geometry.BrepEdge.
The expected native type here is a Rhino.Geometry.BrepTrim. a BrepTrim holds a reference to its associated BrepEdge as well as its start a end vertices in a correct topological order (!).
- Attributes
curve (
Rhino.Geometry.Curve3D
) – The underlying geometry of this edge.start_vertex (
RhinoBrepVertex
, read-only) – The start vertex of this edge (taken from BrepTrim).end_vertex (
RhinoBrepVertex
, read-only) – The end vertex of this edge (taken from BrepTrim).vertices (list[
RhinoBrepVertex
], read-only) – The list of vertices which comprise this edge (start and end)is_circle (bool, read-only) – True if the geometry of this edge is a circle, False otherwise.
is_line (bool, read-only) – True if the geometry of this edge is a line, False otherwise.
Methods
Construct an object of this type from the provided data.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an edge from a circle.
Construct an edge from a curve.
Construct an edge from an ellipse.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Construct an edge from a line.
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 bezier from this edge's geometry.
Get a bspline from this edge's geometry.
Get a circle from this edge's geometry.
Get a curve from this edge's geometry.
Convert an object to its native data representation.
Get an ellipse from this edge's geometry.
Get a hyperbola from this edge's geometry.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Get a line from this edge's geometry.
Get a parabola from this edge's geometry.
Validate the object's data against its data schema.
Validate the object's data against its json schema.