Python: For a while now I've had some problems with my program that I cannot for the life of me figure out I've figured most of it out, but its all boiled down to this one clip of code:
Code:
item.faces=3
item.face.append(face3d())
item.face[0].vertex.append(3)
item.face[0].vertex.append(2)
item.face[0].vertex.append(1)
item.face[0].vertex.append(0)
item.face[0].vertecies=4
item.face.append(face3d())
item.face[1].vertex.append(0)
item.face[1].vertex.append(1)
item.face[1].vertex.append(5)
item.face[1].vertex.append(4)
item.face[1].vertecies=4
item.face.append(face3d())
item.face[2].vertex.append(5)
item.face[2].vertex.append(1)
item.face[2].vertex.append(6)
item.face[2].vertex.append(7)
item.face[2].vertecies=4
My tests (print) indicates that all of these faces have the same 4 vertex values as each other, and as far as what I'd like them to do, their not supposed to. I recently modified the code to be like that and in its present state all the faces have the same vertecies as the first face... before that they all had the same vertecies as the last face... I find it very confusing.
Bookmarks