[Paraview] contour programmable filter
Favre Jean
jfavre at cscs.ch
Sat Sep 25 02:28:23 EDT 2010
Using the maximum value of any scalar field as the threshold for an isosurface will always give a null object. In fact, the smallest isosurface you could ever construct is a single triangle, intersecting 3 edges connecting one vertex greater than your threshold, and three other vertices below your threshold.
this is the second case in this figure: http://en.wikipedia.org/wiki/File:MarchingCubes.svg
you should rethink your strategy of using the maximum value as input threshold.
That being said, there is a much faster way to get the range (the min and maximum) of a scalar field from within the Pogrammable Filter. Simply use GetRange()
max = temperature.GetRange()[1]
-----------------
Jean M. Favre
Swiss National Supercomputing Center
More information about the ParaView
mailing list