Transforms a list of 3-D points.
rhinoscriptsyntax.PointArrayTransform (points, xform)
rhinoscript.pointvector.PointArrayTransform (points, xform)
points |
Required. List or Tuple. A list of 3-D points to transform. |
xform |
Required. List or Rhino.Geometry.Transform. A valid 4x4 transformation matrix. |
List |
The resulting 3-D points if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select object")
points = rs.BoundingBox(obj)
xform = rs.XformRotation2(45.0, (0,0,1), (0,0,0))
points = rs.PointArrayTransform(points, xform)
rs.AddPoints(points)