Created
April 15, 2015 01:29
-
-
Save rubber-duck/2350d2361a2afd4408ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bmesh | |
import bpy | |
bm = bmesh.new() | |
bm.from_mesh(bpy.context.object.data) | |
bm.faces.ensure_lookup_table() | |
bm.verts.ensure_lookup_table() | |
new_face = bm.faces[0].copy() | |
bm.verts.ensure_lookup_table() | |
bm.faces.ensure_lookup_table() | |
assert(new_face.verts[0].index != -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment