[prev in list] [next in list] [prev in thread] [next in thread]
List: paraview
Subject: Re: [Paraview] contour programmable filter
From: "Favre Jean" <jfavre () cscs ! ch>
Date: 2010-09-25 6:28:23
Message-ID: AB48A31C4EC97E498F4235B7CEF74A194D33AAABD7 () MBX00 ! d ! ethz ! ch
[Download RAW message or body]
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: \
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic