The Build Modifier and vert order

So, I’m trying to change the way an object builds itself with the build modifier- I want it to build starting with the lowest vertices, and working its way up. I wrote this python script to examine a mesh and reorder the vertices so that vertex 1 is the lowest, vertex 2 is the second lowest, etc.


import Blender
from Blender import NMesh

rawmesh=NMesh.GetRawFromObject("Suzanne")

repeater=1
i=0
temp=[0,0,0]

vertcount=0
for item in rawmesh.verts:
	vertcount=vertcount+1
	
vertcount=vertcount-1
print "vertcount=",vertcount

while repeater==1:
	repeater=0
	i=0
	
	while i<vertcount:	
		if rawmesh.verts[i][2]>rawmesh.verts[i+1][2]:
			print "Switching verts ",i," and ",i+1
			temp=rawmesh.verts[i]
			rawmesh.verts[i]=rawmesh.verts[i+1]
			rawmesh.verts[i+1]=temp
			repeater=1
		i=i+1

vertcount=0
for item in rawmesh.verts:
	vertcount=vertcount+1
vertcount=vertcount-1
print "vertcount=",vertcount

NMesh.PutRaw(rawmesh,"Reordered")

However, that makes not a jot of difference in what order the vertices appear under the influence of a build modifier. Does anyone have any suggestions as to how to achieve this effect?

why not use control+F in object mode?

[I’m pretty sure the build modifier cares only about the order of faces, not verticies]

oh, use a

 block instead of a [quote] one to preserve the indentation of your code

Oh, that works great! Thanks!
(and I fixed the code in previous post)

Something like this :
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_reorganize_buildeffectmesh.htm