diff --git a/tpy_r3d.py b/tpy_r3d.py index a81eebf..a68f717 100644 --- a/tpy_r3d.py +++ b/tpy_r3d.py @@ -376,7 +376,7 @@ def stack_split(poly, plane_fun=None, perturb=0, max_depth=10): if plane_fun is None: pfun_used = random.choice(plane_gen) plane = pfun_used(poly) - while norm(plane[0]) != 0: + while norm(plane[0]) == 0: pfun_used = random.choice(plane_gen) plane = pfun_used(poly) plane = list(plane)