Projection.from_plane_and_direction

classmethod Projection.from_plane_and_direction(plane, direction)

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

Parameters
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)