+ while 1:
+ best=5
+ face=None
+ for f in faces:
+ if f.flag:
+ continue
+ score=0
+ for e in f.edges:
+ other=e.other_face(f)
+ if other and other.smooth_group.index==f.smooth_group.index and not other.flag:
+ score+=1
+ if score>0 and score<best:
+ face=f
+ best=score
+ if not face:
+ break
+ strip=self.create_strip(face)
+ if strip:
+ strips.append(strip)
+
+ if self.debug:
+ print "%d strips:"%len(strips)
+ for i in range(len(strips)):
+ print " %d: %d indices"%(i, len(strips[i]))
+ print "%d loose faces"%len([f for f in faces if not f.flag])
+ nind=sum([len(s) for s in strips])+sum([len(f.verts) for f in faces if not f.flag])
+ print "%d indices total"%nind