XformPlanarProjection

Returns a transformation matrix that projects to a plane.

Syntax

rhinoscriptsyntax.XformPlanarProjection (plane)

rhinoscript.transformation.XformPlanarProjection (plane)

Parameters

plane

Required.  List or Plane.  The plane to project to.

Returns

Transform

The 4x4 transformation matrix.

None

On error.

Example

import rhinoscriptsyntax as rs

objects = rs.GetObjects("Select objects to project")

if objects:

    cplane = rs.ViewCPlane()

    xform = rs.XformPlanarProjection(cplane)

    rs.TransformObjects( objects, xform, True )

Also See

XformMirror

XformRotation

XformScale

XformShear

XformTranslation