Plane.from_frame
- classmethod Plane.from_frame(frame)[source]
Construct a plane from a frame.
- Returns:
compas.geometry.Plane
A plane with the frame’s point and the frame’s normal.
Examples
>>> from compas.geometry import Frame >>> frame = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) >>> plane = Plane.from_frame(frame) >>> print(plane.point) Point(x=1.000, y=1.000, z=1.000) >>> print(plane.normal) Vector(x=-0.299, y=-0.079, z=0.951))