Added (not-yet-working) close_last support

This commit is contained in:
hodapp 2019-12-08 12:38:55 -05:00
parent d61dfd7d8a
commit 43971714cb

View File

@ -106,6 +106,10 @@ class CageGen(object):
for i, cage_cur in enumerate(self.gen): for i, cage_cur in enumerate(self.gen):
#print("{}: {}".format(i, cage_cur)) #print("{}: {}".format(i, cage_cur))
if count is not None and i >= count: 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 break
# If it's a fork, then recursively generate all the geometry # If it's a fork, then recursively generate all the geometry
# from them, depth-first: # from them, depth-first: