[Bf-python] Benchmark: OUCH!!!

Manuel Bastioni manuelbastioni at tin.it
Fri May 7 22:15:50 CEST 2004





> 	if groupOfverts in vertsGroups: 
> 		for i in mesh.getVertsFromGroup(groupOfverts):
> 			mesh.verts[i].co[0] = listOfVerts[i][0]
> 			mesh.verts[i].co[1] = listOfVerts[i][1]
> 			mesh.verts[i].co[2] = listOfVerts[i][2]


For some strange reason, if I use this instead the code above:


		
	for v in mesh.verts:
			v.co[0] = listOfVerts[i][0]
			v.co[1] = listOfVerts[i][1]
			v.co[2] = listOfVerts[i][2]


all work fine... :-?

but I don't want use it, because the code is less optimized in this way...

Can anyone help me?


         Ciao,

                      Manuel



More information about the Bf-python mailing list