When using polyclip-ts on large polygons, the maximum call stack size is sometimes reached:
RangeError: Maximum call stack size exceeded
at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:466:3)
at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
at _Segment.afterState (/project/node_modules/polyclip-ts/src/segment.ts:469:30)
at _Segment.beforeState (/project/node_modules/polyclip-ts/src/segment.ts:461:31)
Example : running union on the features of this collection:
union.json
When using polyclip-ts on large polygons, the maximum call stack size is sometimes reached:
Example : running union on the features of this collection:
union.json