Cone.from_data
- classmethod Cone.from_data(data)
Construct a cone from its data representation.
- Parameters
data (dict) – The data dictionary.
- Returns
compas.geometry.Cone
– The constructed cone.
Examples
>>> from compas.geometry import Cone >>> from compas.geometry import Circle >>> from compas.geometry import Plane >>> data = {'circle': Circle(Plane.worldXY(), 5).data, 'height': 7.} >>> cone = Cone.from_data(data)