Transforms a 3-D point.
rhinoscriptsyntax.PointTransform (point, xform)
rhinoscript.pointvector.PointTransform (point, xform)
point |
Required. List of 3 numbers or Point3d. The 3-D point to transform. |
xform |
Required. List or Rhino.Geometry.Transform. A valid 4x4 transformation matrix. |
Point3d |
The resulting 3-D point if successful. |
None |
On error. |
# Translate (move) objects by (10,10,0)
import rhinoscriptsyntax as rs
point = 5,5,0
matrix = rs.XformTranslation((10,10,0))
result = rs.PointTransform(point, matrix)
print result