Torus.from_data
- classmethod Torus.from_data(data)
Construct a torus from its data representation.
- Parameters
data (dict) – The data dictionary.
- Returns
compas.geometry.Torus
– The constructed torus.
Examples
>>> from compas.geometry import Torus >>> data = {'plane': Plane.worldXY().data, 'radius_axis': 4., 'radius_pipe': 1.} >>> torus = Torus.from_data(data)