short-circuit deep searches of non-manifold parts
This commit is contained in:
parent
8fd6756684
commit
8a7014ac08
1 changed files with 1 additions and 0 deletions
|
|
@ -483,6 +483,7 @@ function sliceConnect(input, z, opt = {}) {
|
||||||
current = [ path ];
|
current = [ path ];
|
||||||
branches = [ ];
|
branches = [ ];
|
||||||
}
|
}
|
||||||
|
if (branches.length < 500)
|
||||||
for (let p of links) {
|
for (let p of links) {
|
||||||
branches.push(nc = current.slice());
|
branches.push(nc = current.slice());
|
||||||
let rpath = findNextPath(p, nc, branches, depth + 1);
|
let rpath = findNextPath(p, nc, branches, depth + 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue