API Reference > geometry-core > Curve > RegionOps > collectCurvePrimitives collectCurvePrimitives MethodStatic collect all CurvePrimitives in loosely typed input. This (always) recurses into primitives within collections (Path, Loop, ParityRegion, UnionRegion) It (optionally) recurses to hidden primitives within primitives (i.e. CurveChainWithDistanceIndex) collectCurvePrimitives(candidates: AnyCurve | AnyCurve[], collectorArray?: CurvePrimitive[], smallestPossiblePrimitives: boolean = false): CurvePrimitive[] Parameter Type Description candidates AnyCurve | AnyCurve[] array of various CurvePrimitive and CurveCollection collectorArray CurvePrimitive[] smallestPossiblePrimitives boolean if false, leave CurveChainWithDistanceIndex as single primitives. If true, recurse to their children. Returns - CurvePrimitive[] Defined in core/geometry/src/curve/RegionOps.ts Line 669 Last Updated: 13 June, 2024