#!/usr/local/bin/python

from libVTKCommonPython import *
from libVTKGraphicsPython import *
import time

#catch  load vtktcl 
# Test marching cubes speed
#
v16 = vtkVolume16Reader()
v16.SetDataDimensions(64,64)
v16.GetOutput().SetOrigin(0.0,0.0,0.0)
v16.SetDataByteOrderToLittleEndian()
v16.SetFilePrefix("../../../vtkdata/headsq/quarter")
v16.SetImageRange(1,93)
v16.SetDataSpacing(3.2,3.2,1.5)
v16.Update()

start = time.time()
iso = vtkContourFilter()
iso.SetInput(v16.GetOutput())
iso.SetValue(0,1150)
iso.Update()
print time.time() - start

#exit()
#iren.Start()

@@ -519,16 +519,35 @@
 )%0Aprint 
+%22%256.2f seconds%22 %25 (
 time.tim
@@ -557,16 +557,17 @@
  - start
+)
 %0A%0A#exit(

format time a bit more clearly