Sphere.from_data
- classmethod Sphere.from_data(data)
Construct a sphere from its data representation.
- Parameters
data (
dict
) – The data dictionary.- Returns
Sphere – The constructed sphere.
Examples
>>> from compas.geometry import Sphere >>> data = {'point': [1., 2., 3.], 'radius': 4.} >>> sphere = Sphere.from_data(data)