Polyhedron.from_data
- classmethod Polyhedron.from_data(data)
Construct a polyhedron from its data representation.
- Parameters
data (dict) – The data dictionary.
- Returns
compas.geometry.Polyhedron
– The constructed polyhedron.
Examples
>>> from compas.geometry import Polyhedron >>> p = Polyhedron.from_platonicsolid(4) >>> q = Polyhedron.from_data(p.data)