remove dump. update notes
This commit is contained in:
parent
534484c992
commit
2c35de71bf
4 changed files with 3 additions and 43 deletions
|
|
@ -32,7 +32,6 @@ var gs_base_polygons = exports;
|
|||
expand : expand,
|
||||
union : union,
|
||||
nest : nest,
|
||||
dump : dump,
|
||||
diff : doDiff,
|
||||
filter : filter,
|
||||
toClipper : toClipper,
|
||||
|
|
@ -107,16 +106,6 @@ var gs_base_polygons = exports;
|
|||
return output;
|
||||
}
|
||||
|
||||
function dump(poly) {
|
||||
if (Array.isArray(poly)) {
|
||||
poly.forEach(function(p) { dump(p) });
|
||||
} else {
|
||||
console.group({id:poly.id, area:poly.area(), depth:poly.depth, inner:(poly.inner ? poly.inner.length : null)});
|
||||
if (poly.inner) dump(poly.inner);
|
||||
console.groupEnd();
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* todo use clipper polytree?
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue