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

from_data

Construct an object of this type from the provided data.

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 from serialized data contained in a JSON file.

from_jsonstring

Construct an object from serialized data contained in 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_data

Convert an object to its native data representation.

to_ellipse

Get an ellipse from this edge's geometry.

to_hyperbola

Get a hyperbola from this edge's geometry.

to_json

Serialize the data representation of an object to a JSON file.

to_jsonstring

Serialize the data representation of an object 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 object's data against its data schema.

validate_json

Validate the object's data against its json schema.