From 43971714cb13496bd3280ada1afb75d8ec04d5bd Mon Sep 17 00:00:00 2001 From: hodapp Date: Sun, 8 Dec 2019 12:38:55 -0500 Subject: [PATCH] Added (not-yet-working) close_last support --- cage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cage.py b/cage.py index 4bf0788..ac218e8 100644 --- a/cage.py +++ b/cage.py @@ -106,6 +106,10 @@ class CageGen(object): for i, cage_cur in enumerate(self.gen): #print("{}: {}".format(i, cage_cur)) if count is not None and i >= count: + # We stop recursing here, so close things off if needed: + if close_last: + for poly in cage_last.polys(): + meshes.append(meshutil.close_boundary_simple(poly)) break # If it's a fork, then recursively generate all the geometry # from them, depth-first: