Click or drag to resize

NurbsSurfaceCreateCurveOnSurfacePoints Method

Computes a discrete spline curve on the surface. In other words, computes a sequence of points on the surface, each with a corresponding parameter value.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.3
Syntax
public static Point2d[] CreateCurveOnSurfacePoints(
	Surface surface,
	IEnumerable<Point2d> fixedPoints,
	double tolerance,
	bool periodic,
	int initCount,
	int levels
)

Parameters

surface
Type: Rhino.GeometrySurface
The surface on which the curve is constructed. The surface should be G1 continuous. If the surface is closed in the u or v direction and is G1 at the seam, the function will construct point sequences that cross over the seam.
fixedPoints
Type: System.Collections.GenericIEnumerablePoint2d
Surface points to interpolate given by parameters. These must be distinct.
tolerance
Type: SystemDouble
Relative tolerance used by the solver. When in doubt, use a tolerance of 0.0.
periodic
Type: SystemBoolean
When true constructs a smoothly closed curve.
initCount
Type: SystemInt32
Maximum number of points to insert between fixed points on the first level.
levels
Type: SystemInt32
The number of levels (between 1 and 3) to be used in multi-level solver. Use 1 for single level solve.

Return Value

Type: Point2d
A sequence of surface points, given by surface parameters, if successful. The number of output points is approximately: 2 ^ (level-1) * initCount * fixedPoints.Count.
Remarks
To create a curve from the output points, use Surface.CreateCurveOnSurface.
See Also