fix choice of plane
This commit is contained in:
parent
1f332614f2
commit
fc82bc255c
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ def stack_split(poly, plane_fun=None, perturb=0, max_depth=10):
|
||||||
if plane_fun is None:
|
if plane_fun is None:
|
||||||
pfun_used = random.choice(plane_gen)
|
pfun_used = random.choice(plane_gen)
|
||||||
plane = pfun_used(poly)
|
plane = pfun_used(poly)
|
||||||
while norm(plane[0]) != 0:
|
while norm(plane[0]) == 0:
|
||||||
pfun_used = random.choice(plane_gen)
|
pfun_used = random.choice(plane_gen)
|
||||||
plane = pfun_used(poly)
|
plane = pfun_used(poly)
|
||||||
plane = list(plane)
|
plane = list(plane)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue