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

INTERLICHTSPIELHAUS interlichtspielhaus at gmail.com
Sun Feb 26 18:38:39 CET 2012


On Sun, Feb 26, 2012 at 6:25 PM, Campbell Barton <ideasman42 at gmail.com>wrote:

> fixed edge.verts (stupid mistake), and printing
> verts/edges/faces/loops now prints their index and real memory
> location (which wont change each execution as before).


that's very cool :-)

thanks
inS




> On Mon, Feb 27, 2012 at 1:56 AM, INTERLICHTSPIELHAUS
> <interlichtspielhaus at gmail.com> wrote:
> > 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
> >
> >
> >
> > _______________________________________________
> > Bf-python mailing list
> > Bf-python at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-python
> >
>
>
>
> --
> - Campbell
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20120226/e2f946c9/attachment.html>


More information about the Bf-python mailing list