Pulls a curve object to a mesh object. The function makes a polyline approximation of the input curve and gets the closest point on the mesh for each point on the polyline. Then it "connects the points" so that you have a polyline on the mesh.
rhinoscriptsyntax.PullCurveToMesh (mesh_id, curve_id)
rhinoscript.mesh.PullCurveToMesh (mesh_id, curve_id)
mesh_id |
Required. String or Guid. The identifier of the mesh object that pulls. |
curve_id |
Required. String or Guid. The identifier of the curve object to pull. |
Guid |
The identifier of the new curve object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
mesh = rs.GetObject("Select mesh that pulls", rs.filter.mesh)
curve = rs.GetObject("Select curve to pull", rs.filter.curve)
rs.PullCurveToMesh( mesh, curve )