Plane.from_data

classmethod Plane.from_data(data)[source]

Construct a plane from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

compas.geometry.Plane – The constructed plane.

Examples

>>> plane = Plane.from_data({'point': [0.0, 0.0, 0.0], 'normal': [0.0, 0.0, 1.0]})
>>> plane.point
Point(0.000, 0.000, 0.000)
>>> plane.normal
Vector(0.000, 0.000, 1.000)