M_Rhino_Geometry_Curve_PullToMesh - mcneel/rhinocommon-api-docs GitHub Wiki
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) Version: Rhino 6.0
C#
public PolylineCurve PullToMesh(
Mesh mesh,
double tolerance
)
VB
Public Function PullToMesh (
mesh As Mesh,
tolerance As Double
) As PolylineCurve
- mesh
- Type: Rhino.Geometry.Mesh
Mesh to project onto. - tolerance
- Type: System.Double
Input tolerance (RhinoDoc.ModelAbsoluteTolerance is a good default)
Type: PolylineCurve
A polyline curve on success, null on failure.
Supported in: 6.0.16224.21491, 5D58w