Circle.from_data
- classmethod Circle.from_data(data)
Construct a circle from its data representation.
- Parameters
data (dict) – The data dictionary.
- Returns
compas.geometry.Circle
– The constructed circle.
Examples
>>> from compas.geometry import Circle >>> data = {'plane': {'point': [0.0, 0.0, 0.0], 'normal': [0.0, 0.0, 1.0]}, 'radius': 5.} >>> circle = Circle.from_data(data)