Projection.from_plane_and_direction

classmethod Projection.from_plane_and_direction(plane, direction)[source]

Construct a parallel projection transformation to project onto a plane along a specific direction.

Parameters:
plane[point, normal] | compas.geometry.Plane

The plane to project onto.

direction[float, float, float] | compas.geometry.Vector

The direction of projection direction.

Returns:
compas.geometry.Projection

A parallel projection transformation.

Examples

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