Ellipse.from_data

classmethod Ellipse.from_data(data)

Construct a ellipse from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

Ellipse – The constructed ellipse.

Examples

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