optimize no-intersects case
This commit is contained in:
parent
4a0a000ef9
commit
e549bba9d5
1 changed files with 5 additions and 0 deletions
|
|
@ -594,6 +594,11 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// no intersections
|
||||||
|
if (ints.length === 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// odd # of intersections ?!? do retraction
|
// odd # of intersections ?!? do retraction
|
||||||
if (ints.length && ints.length % 2 !== 0) {
|
if (ints.length && ints.length % 2 !== 0) {
|
||||||
if (dbug === slice.index) console.log(slice.index, {odd_intersects: ints});
|
if (dbug === slice.index) console.log(slice.index, {odd_intersects: ints});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue