collectCurvePrimitives Method

Return an array containing only the curve primitives.

collectCurvePrimitives(collectorArray?: CurvePrimitive[], smallestPossiblePrimitives: boolean = false, explodeLinestrings: boolean = false): CurvePrimitive[]

Parameter Type Description
collectorArray CurvePrimitive[] optional array to receive primitives. If present, new primitives are ADDED (without
clearing the array.)
smallestPossiblePrimitives boolean if false (default), a CurveChainWithDistanceIndex returns only itself;
otherwise, it recurses to its (otherwise hidden) children.
explodeLinestrings boolean whether to return LineSegment3ds for a LineString3d (default false).

Returns - CurvePrimitive[]

Defined in

Last Updated: 29 April, 2026