Bezier.from_data
- classmethod Bezier.from_data(data)
Construct a curve from its data representation.
- Parameters
data (dict) – The data dictionary.
- Returns
compas.geometry.Bezier
– The constructed bezier curve.
Examples
>>> from compas.geometry import Bezier >>> data = {'points': [[0.0, 0.0, 0.0], [0.5, 1.0, 0.0], [1.0, 0.0, 0.0]]} >>> curve = Bezier.from_data(data)