Function classifyRings
- classifyRings<T extends Point2D>(
rings: RingWithArea<T>[],
maxRings?: number,
): RingWithArea<T>[][]Type Parameters
- T extends Point2D
Parameters
- rings: RingWithArea<T>[]
the rings to classify
OptionalmaxRings: numberthe maximum number of rings to include in a polygon, use 0 to include all rings
Returns RingWithArea<T>[][]
an array of polygons with internal rings as holes
Was this helpful?
Classifies an array of rings into polygons with outer rings and holes