Origin.from_plane

classmethod Origin.from_plane(plane)

Constructs a frame from a plane.

Xaxis and yaxis are arbitrarily selected based on the plane’s normal.

Parameters

plane ([point, vector] | Plane) – A plane.

Returns

Frame – The constructed frame.

Examples

>>> from compas.geometry import Plane
>>> plane = Plane([0,0,0], [0,0,1])
>>> frame = Frame.from_plane(plane)
>>> allclose(frame.normal, plane.normal)
True