Pulls an array of points to a surface or mesh object. For more information, see the Rhino help file for information on the Pull command.
rhinoscriptsyntax.PullPoints (object_id, points)
rhinoscript.pointvector.PullPoints (object_id, points)
object_id |
Required. String or Guid. The identifier of the surface or mesh object that pulls. |
points |
Required. List or tuple. A list of 3-D points to pull. |
list |
A list of 3-D points if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
surface = rs.GetObject("Select surface that pulls", rs.filter.surface)
objects = rs.GetObjects("Select points to pull", rs.filter.point)
points = [rs.PointCoordinates(obj) for obj in objects]
results = rs.PullPoints( surface, points )
rs.AddPoints( results )