MCPcopy Index your code
hub / github.com/microsoft/SandDance / extract

Function extract

docs/app/js/sanddance-app.js:109711–109718  ·  view source on GitHub ↗
(polygon)

Source from the content-addressed store, hash-verified

109709 }
109710 }
109711 function extract(polygon) {
109712 polygon.forEach(function(ring) {
109713 ring.forEach(function(arc) {
109714 (polygonsByArc[arc = arc < 0 ? ~arc : arc] || (polygonsByArc[arc] = [])).push(polygon);
109715 });
109716 });
109717 polygons1.push(polygon);
109718 }
109719 function area(ring) {
109720 return planarRingArea((0, _featureJs.object)(topology, {
109721 type: "Polygon",

Callers 1

geometryFunction · 0.70

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected