Cylinder.from_data

classmethod Cylinder.from_data(data)

Construct a cylinder from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

Cylinder – The constructed cylinder.

Examples

>>> from compas.geometry import Cylinder
>>> from compas.geometry import Circle
>>> from compas.geometry import Plane
>>> data = {'circle': Circle(Plane.worldXY(), 5).data, 'height': 7.}
>>> cylinder = Cylinder.from_data(data)