Transforms a point from world coordinates to construction plane coordinates.
rhinoscriptsyntax.XformWorldToCPlane (point, plane)
rhinoscript.transformation.XformWorldToCPlane (point, plane)
point |
Required. List of 3 numbers or Point3d. A 3-D point in world coordinates. |
||||||||||
plane |
Required. List or Plane. The construction plane. If a list, the elements of a plane array are as follows:
|
Point3d |
A 3-D point in construction plane coordinates if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
plane = rs.ViewCPlane()
point = rs.XformWorldToCPlane([0,0,0], plane)
if point: print "CPlane point:", point