API Reference > geometry-core > Curve > RegionOps > createLoopPathOrBagOfCurves createLoopPathOrBagOfCurves MethodStatic Create curve collection of subtype determined by gaps between the input curves. If (a) wrap is requested and (b) all curves connect head-to-tail (including wraparound), assemble as a loop. If all curves connect head-to-tail except for closure, return a Path. If there are internal gaps, return a BagOfCurves If input array has zero length, return undefined. createLoopPathOrBagOfCurves(curves: CurvePrimitive[], wrap: boolean = true): CurveCollection | undefined Parameter Type Description curves CurvePrimitive[] wrap boolean Returns - CurveCollection | undefined Defined in core/geometry/src/curve/RegionOps.ts Line 463 Last Updated: 13 June, 2024