Ellipse.from_data

classmethod Ellipse.from_data(data)

Construct a ellipse from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

compas.geometry.Ellipse – The constructed ellipse.

Examples

>>> from compas.geometry import Ellipse
>>> data = {'plane': [[0.0, 0.0, 0.0], [0.0, 0.0, 1.0]], 'major': 2.0, 'minor': 1.0}
>>> ellipse = Ellipse.from_data(data)