RhinoCommon API
CurveDivideByCount Method (Int32, Boolean) |
Divide the curve into a number of equal-length segments.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

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: DoubleList of curve parameters at the division points on success, null on failure.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14