[vtkusers] Polydata volume calculation problem

JeffreyRForsyth jeffrey.forsyth10 at gmail.com
Fri Feb 25 12:04:05 EST 2011


Hi Xiaopeng,

when the reconstruction filter is executed, you generate a level set
function which tells the distance of any point to the surface of the input
polydata.  If you then contour at the +5 level set for example you have a
surface which is +5 units enlarged from the original polydata.  At the -3
level set you have a surface 3 units shrunken from the original polydata. 
By selecting the 0 level set you have exactly the original polydata surface. 
So to answer your question, SetValue(0, 0) is what you need.

However, the reconstruction filter may rescale your polydata - it will
shrink it by the SampleSpacing() parameter, which I am not sure what this
defaults to.  To avoid any shrinking, set sample spacing to 1.  
Or alternatively you can set some spacing greater than 1 and scale up
afterwards by this same value with a VTK transform filter.  The reason why
you might increase the spacing during reconstruction is because this
decreases the density of the output mesh and decreases computation time.

  
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Polydata-volume-calculation-problem-tp3347493p3400451.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list