Frame.from_plane

classmethod Frame.from_plane(plane)

Constructs a frame from a plane.

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

Parameters

plane (compas.geometry.Plane) – A plane.

Returns

compas.geometry.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