Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. loops = list()
  2. faces = bm.faces
  3. while faces:
  4. faces[0].select_set(True) # select 1st face
  5. bpy.ops.mesh.select_linked() # select all linked faces makes a full loop
  6. loops.append([f.index for f in faces if f.select])
  7. bpy.ops.mesh.hide(unselected=False) # hide the detected loop
  8. faces = [f for f in bm.faces if not f.hide] # update faces
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement