Projection.from_plane

classmethod Projection.from_plane(plane)

Construct an orthogonal projection transformation to project onto a plane.

Parameters

plane ([point, normal] | Plane) – The plane to project onto.

Returns

Projection – An orthogonal projection transformation.

Examples

>>> from compas.geometry import Plane
>>> point = [0, 0, 0]
>>> normal = [0, 0, 1]
>>> plane = Plane(point, normal)
>>> P = Projection.from_plane(plane)