Returns a transformation matrix that projects to a plane.
rhinoscriptsyntax.XformPlanarProjection (plane)
rhinoscript.transformation.XformPlanarProjection (plane)
plane |
Required. List or Plane. The plane to project to. |
Transform |
The 4x4 transformation matrix. |
None |
On error. |
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 )