M_Rhino_Geometry_Curve_DivideByCount - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.DivideByCount Method (Int32, Boolean)

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

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public double[] DivideByCount(
	int segmentCount,
	bool includeEnds
)

VB

Public Function DivideByCount ( 
	segmentCount As Integer,
	includeEnds As Boolean
) As Double()

Parameters

 

segmentCount
Type: System.Int32
Segment count. Note that the number of division points may differ from the segment count.
includeEnds
Type: System.Boolean
If true, then the points at the start and end of the curve are included.

Return Value

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

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
DivideByCount Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️