From fc82bc255c4a1cebc33ecf1a45460bde9e026752 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 28 Mar 2018 15:25:22 -0700 Subject: [PATCH] fix choice of plane --- tpy_r3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)