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.FrameThe 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