diff --git a/object_fracture/fracture_ops.py b/object_fracture/fracture_ops.py index 1f966ae4b24120a4ccfb439e4658593024a85b1c..7a7ec387007772b0bd88194c469ead6256c5aee0 100644 --- a/object_fracture/fracture_ops.py +++ b/object_fracture/fracture_ops.py @@ -107,9 +107,7 @@ def getIslands(shard): vgroups = [] fgroups = [] - vgi = [] - for v in sm.vertices: - vgi.append(-1) + vgi = [-1] * len(sm.vertices) gindex = 0 for i in range(len(vgi)): @@ -119,6 +117,7 @@ def getIslands(shard): fgroups.append([]) while len(gproc) > 0: + # XXX - is popping the first needed? - pop() without args is fastest - campbell i = gproc.pop(0) for p in sm.polygons: #if i in f.vertices: