Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

June 22, 2012

BMesh loop_indices

loop_indices, BMesh
import bpy

ob = bpy.context.active_object

for polygon in ob.data.polygons:
    for index in polygon.loop_indices:
        print(index)

#
import bpy

ob = bpy.context.active_object

for polygon in ob.data.polygons:
    for vert in polygon.vertices:
        print(vert)