Curve.DivideByCount Method (Int32, Boolean)

CurveDivideByCount Method (Int32, Boolean)

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
)
Public Function DivideByCount ( 
	segmentCount As Integer,
	includeEnds As Boolean
) As Double()

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.

Return Value

Type: Double
List of curve parameters at the division points on success, null on failure.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also