Projection.from_plane_and_direction

classmethod Projection.from_plane_and_direction(plane, direction)

Returns a parallel Projection to project onto a plane along a specific direction.

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

  • direction (compas.geometry.Vector or list of float) – The direction of projection direction.

Returns

Projection – A parallel projection transformation.

Examples

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