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
public static Point2d[] CreateCurveOnSurfacePoints(
	Surface surface,
	IEnumerable<Point2d> fixedPoints,
	double tolerance,
	bool periodic,
	int initCount,
	int levels


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.
Type: System.Collections.GenericIEnumerablePoint2d
Surface points to interpolate given by parameters. These must be distinct.
Type: SystemDouble
Relative tolerance used by the solver. When in doubt, use a tolerance of 0.0.
Type: SystemBoolean
When true constructs a smoothly closed curve.
Type: SystemInt32
Maximum number of points to insert between fixed points on the first level.
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.
To create a curve from the output points, use Surface.CreateCurveOnSurface.
See Also