filter out invalid area polys
This commit is contained in:
parent
8b62e96ff0
commit
e8d2a111c0
1 changed files with 4 additions and 0 deletions
|
|
@ -134,6 +134,10 @@ class OpArea extends CamOp {
|
|||
polys = POLY.union(nupolys, 0.00001, true);
|
||||
}
|
||||
|
||||
// filter out invalid polys
|
||||
polys = polys.filter(p => p && p.length > 2);
|
||||
console.log({ polys });
|
||||
|
||||
// process each area separately
|
||||
let proc = 0;
|
||||
let pinc = 1 / polys.length;
|
||||
|
|
|
|||
Loading…
Reference in a new issue