RhinoVector.from_object

classmethod RhinoVector.from_object(obj)

Construct a Rhino object wrapper from an existing Rhino object.

Parameters

obj (Rhino_DocObjects_RhinoObject) – The Rhino object.

Returns

compas_rhino.geometry.RhinoGeometry – The Rhino object wrapper.

Raises

ConversionError – If the geometry of the Rhino DocObject cannot be converted to the geometry type of the wrapper.