M_Rhino_Geometry_Curve_DivideByCount_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.DivideByCount Method (Int32, Boolean, Point3d[])

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,
	out Point3d[] points
)

VB

Public Function DivideByCount ( 
	segmentCount As Integer,
	includeEnds As Boolean,
	<OutAttribute> ByRef points As Point3d()
) 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.
points
Type: Rhino.Geometry.Point3d[]
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

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
DivideByCount Overload
Rhino.Geometry Namespace

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