BlenderGeometry.from_geometry

classmethod BlenderGeometry.from_geometry(geometry)

Construct a Blender object wrapper from an existing Blender data block.

Parameters

geometry (Blender data block) – The Blender data block.

Returns

compas_blender.conversions.BlenderGeometry – The Blender object wrapper.

Raises

ConversionError – If the geometry of the Blender data block cannot be converted to the geometry type of the wrapper.