RhinoCommon API
CurvePullToMesh Method |
Makes a polyline approximation of the curve and gets the closest point on the mesh for each point on the curve.
Then it "connects the points" so that you have a polyline on the mesh.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public PolylineCurve PullToMesh( Mesh mesh, double tolerance )
Public Function PullToMesh ( mesh As Mesh, tolerance As Double ) As PolylineCurve
Parameters
- mesh
- Type: Rhino.GeometryMesh
Mesh to project onto. - tolerance
- Type: SystemDouble
Input tolerance (RhinoDoc.ModelAbsoluteTolerance is a good default)
Return Value
Type: PolylineCurveA polyline curve on success, null on failure.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14