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
(geometry)Construct a Rhino object wrapper from an existing Rhino object.
from_guid
(guid)Try to construct a RhinoGeometry wrapper from the GUID of an existing Rhino DocObject.
from_object
(obj)Construct a Rhino object wrapper from an existing Rhino object.
transform
(T)Transform the Rhino object.