Projection.from_plane

classmethod Projection.from_plane(plane)

Returns an orthogonal Projection to project onto a plane.

Parameters

plane (compas.geometry.Plane or (point, normal)) – The plane to project onto.

Returns

Projection – An orthogonal projection transformation.

Examples

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