Frame.from_plane
- classmethod Frame.from_plane(plane)[source]
Constructs a frame from a plane.
Xaxis and yaxis are arbitrarily selected based on the plane’s normal.
- Parameters:
- plane[point, vector] |
compas.geometry.Plane
A plane.
- plane[point, vector] |
- Returns:
compas.geometry.Frame
The constructed frame.
Examples
>>> from compas.geometry import Plane >>> from compas.tolerance import TOL >>> plane = Plane([0, 0, 0], [0, 0, 1]) >>> frame = Frame.from_plane(plane) >>> TOL.is_allclose(frame.normal, plane.normal) True