Skip to content

Instantly share code, notes, and snippets.

@zid
Created June 11, 2023 18:11
Show Gist options
  • Save zid/4dbabcbebff79e1330d234d936d7b1f2 to your computer and use it in GitHub Desktop.
Save zid/4dbabcbebff79e1330d234d936d7b1f2 to your computer and use it in GitHub Desktop.
for f, _ in face_index_pairs[:-1]:
for i in f.vertices:
fw('%d, ' % (me_verts[i].index + totverts));
f, _ = face_index_pairs[-1]
fw('%d, ' % (me_verts[f.vertices[0]].index + totverts));
fw('%d, ' % (me_verts[f.vertices[1]].index + totverts));
fw('%d\n' % (me_verts[f.vertices[2]].index + totverts));
fw('I2:\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment