RhinoGeometry

class compas_rhino.conversions.RhinoGeometry[source]

Bases: object

Base class for Rhino Geometry and DocObject wrappers.

Attributes
  • name (str) – The name of the object.

  • type (str) – The type of the object.

  • guid (str) – The GUID of the object.

  • object (Rhino_DocObjects_RhinoObject) – A reference to the Rhino DocObject, if it exists.

  • geometry (Rhino_Geometry_GeometryBase) – A reference to the Rhino Geometry Object.

Methods

from_geometry

Construct a Rhino object wrapper from an existing Rhino object.

from_guid

Try to construct a RhinoGeometry wrapper from the GUID of an existing Rhino DocObject.

from_object

Construct a Rhino object wrapper from an existing Rhino object.

to_compas

transform

Transform the Rhino object.