Skip to content

Instantly share code, notes, and snippets.

@zid

zid/blah.py Secret

Created June 11, 2023 17:01
Show Gist options
  • Save zid/90515c433baf3bed9c0f77bbda571749 to your computer and use it in GitHub Desktop.
Save zid/90515c433baf3bed9c0f77bbda571749 to your computer and use it in GitHub Desktop.
for f, f_index in face_index_pairs:
f_v = [(vi, me_verts[v_idx], l_idx)
for vi, (v_idx, l_idx) in enumerate(zip(f.vertices, f.loop_indices))]
fw('%d' % (totverts + f_v[0][1].index))
for vi, v, li in f_v[1:]:
fw(', %d' % (totverts + v.index))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment