RhinoBrepEdge

class compas_rhino.geometry.RhinoBrepEdge[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:
curveRhino.Geometry.Curve3D

The underlying geometry of this edge.

start_vertexcompas_rhino.geometry.RhinoBrepVertex, read-only

The start vertex of this edge (taken from BrepTrim).

end_vertexcompas_rhino.geometry.RhinoBrepVertex, read-only

The end vertex of this edge (taken from BrepTrim).

verticeslist[compas_rhino.geometry.RhinoBrepVertex], read-only

The list of vertices which comprise this edge (start and end)

is_circlebool, read-only

True if the geometry of this edge is a circle, False otherwise.

is_linebool, read-only

True if the geometry of this edge is a line, False otherwise.

native_edgeRhino.Geometry.BrepEdge

The underlying BrepEdge object.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_circle

Construct an edge from a circle.

from_curve

Construct an edge from a curve.

from_ellipse

Construct an edge from an ellipse.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

from_line

Construct an edge from a line.

from_points

Construct an edge from two points.

from_vertices

Construct an edge from two vertices.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_bezier

Get a bezier from this edge's geometry.

to_bspline

Get a bspline from this edge's geometry.

to_circle

Get a circle from this edge's geometry.

to_curve

Get a curve from this edge's geometry.

to_ellipse

Get an ellipse from this edge's geometry.

to_hyperbola

Get a hyperbola from this edge's geometry.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

to_line

Get a line from this edge's geometry.

to_parabola

Get a parabola from this edge's geometry.

validate_data

Validate the data against the object's data schema.