Click or drag to resize

CurveDivideByCount Method (Int32, Boolean, Point3d)

Divide the curve into a number of equal-length segments.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public double[] DivideByCount(
	int segmentCount,
	bool includeEnds,
	out Point3d[] points
)

Parameters

segmentCount
Type: SystemInt32
Segment count. Note that the number of division points may differ from the segment count.
includeEnds
Type: SystemBoolean
If true, then the point at the start of the first division segment is returned.
points
Type: Rhino.GeometryPoint3d
A list of division points. If the function returns successfully, this point-array will be filled in.

Return Value

Type: Double
Array containing division curve parameters on success, null on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.6
See Also