Projects one or more curves onto one or more meshes.
rhinoscriptsyntax.ProjectCurveToMesh (curve_ids, mesh_ids, direction)
rhinoscript.curve.ProjectCurveToMesh (curve_ids, mesh_ids, direction)
curve_ids |
Required. String, Guid, or list of Strings or Guids. One or more curve objects to project. |
mesh_ids |
Required. String, Guid, or list of Strings or Guids. The identifiers of the mesh objects to project onto. |
direction |
Required. list of 3 numbers or Vector3d. The direction (3-D vector) to project the points. |
List |
The identifiers of the newly created, projected curve objects, if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
mesh = rs.GetObject("Select mesh to project onto", rs.filter.mesh)
curve= rs.GetObject("Select curve to project", rs.filter.curve)
#Project down...
results = rs.ProjectCurveToMesh(curve, mesh, (0,0,-1))