RhinoLine.from_geometry

classmethod RhinoLine.from_geometry(geometry)

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 cannot be converted to the geometry type of the wrapper.