I’m improving an importy script that created a lot of doubles. I keep a list of vertexes already created to look up whether it already exists in the mesh:
v = NMesh.Vert(float(cmd), float(cmd), float(cmd)) v=transVertex(v,offset,tm) vert=v.co if vert in vList: idx1=vList.index(vert) print "old vert", idx1 else: aMesh.verts.append(v) vList.append(vert) idx1=idx idx=idx+1
However it never finds a same vertex in the list. Even if every part of the list is the same like [0,0,0] versus [0,0,0]. The NMVert.co does return a list, doesn’t it. When I try the following
it gives a run-time message:
attempting vector operation with unsupported type ....
what am I doing wrong here?
Thanx in advance