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