1
# This example assumes we have a mesh object selected
7
me = bpy.context.object.data
10
# Get a BMesh representation
11
bm = bmesh.new() # create an empty BMesh
12
bm.from_mesh(me) # fill it in from a Mesh
15
# Modify the BMesh, can do anything here...
20
# Finish up, write the bmesh back to the mesh
22
bm.free() # free and prevent further access