Goal: Remesh a model five times, tracking how long each remesh takes and the number of nodes that are created.
Code:
from time import clock, time for x in range(0, 5): Model.ClearGeneratedData() t1 = time() Model.Mesh.GenerateMesh() t2 = time() print "Stats for mesh %d, elapsed time=%d" % (x+1, t2-t1) print Model.Mesh.Nodes