Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created April 20, 2014 20:12
Show Gist options
  • Save zeffii/11124044 to your computer and use it in GitHub Desktop.
Save zeffii/11124044 to your computer and use it in GitHub Desktop.
def find_loops(edge, min, maxv):
start_verts = verts_from_edge(edge)
while(maxv > 0):
for v in start_verts:
vrts = verts_attached_to_vert(v)
print(v, '->', vrts)
start_verts = vrts
maxv -= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment