[Bf-python] edge.verts links to 2 equal verts

INTERLICHTSPIELHAUS interlichtspielhaus at gmail.com
Sun Feb 26 15:56:33 CET 2012


hi

looping through the edges and their vertices

 , each edge.verts links to the same vertices


"
#cube in edit mode
import bpy
import bmesh

object = bpy.context.object
mesh = object.data
bmesh = bmesh.from_mesh(mesh)

for e in bmesh.edges:
    print('EDGE',e.index,e)

    for v in e.verts:
        print('VERT',v.index,v)
"

EDGE 0 <BMEdge object at 0xae28c50>
VERT 4 <BMVert object at 0xae28ad0>
VERT 4 <BMVert object at 0xae28ad0>
EDGE 1 <BMEdge object at 0xae28bf0>
VERT 5 <BMVert object at 0xae28c50>
VERT 5 <BMVert object at 0xae28c50>
EDGE 2 <BMEdge object at 0xae28ad0>
VERT 1 <BMVert object at 0xae28bf0>
VERT 1 <BMVert object at 0xae28bf0>
EDGE 3 <BMEdge object at 0xae28c50>
VERT 0 <BMVert object at 0xae28ad0>
VERT 0 <BMVert object at 0xae28ad0>
EDGE 4 <BMEdge object at 0xae28bf0>
VERT 5 <BMVert object at 0xae28c50>
VERT 5 <BMVert object at 0xae28c50>
EDGE 5 <BMEdge object at 0xae28ad0>
VERT 6 <BMVert object at 0xae28bf0>
VERT 6 <BMVert object at 0xae28bf0>
EDGE 6 <BMEdge object at 0xae28c50>
VERT 2 <BMVert object at 0xae28ad0>
VERT 2 <BMVert object at 0xae28ad0>
EDGE 7 <BMEdge object at 0xae28bf0>
VERT 6 <BMVert object at 0xae28c50>
VERT 6 <BMVert object at 0xae28c50>
EDGE 8 <BMEdge object at 0xae28ad0>
VERT 7 <BMVert object at 0xae28bf0>
VERT 7 <BMVert object at 0xae28bf0>
EDGE 9 <BMEdge object at 0xae28c50>
VERT 3 <BMVert object at 0xae28ad0>
VERT 3 <BMVert object at 0xae28ad0>
EDGE 10 <BMEdge object at 0xae28bf0>
VERT 7 <BMVert object at 0xae28c50>
VERT 7 <BMVert object at 0xae28c50>
EDGE 11 <BMEdge object at 0xae28ad0>
VERT 0 <BMVert object at 0xae28bf0>
VERT 0 <BMVert object at 0xae28bf0>

regards
inS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20120226/a9124f66/attachment.html>


More information about the Bf-python mailing list