Hi all,
I was trying to find volume for a user, and started wondering if the user 
wanted volume of the dataset, or volume of each cell.  Turns out that there is 
incorrect information on the list.  I believe the following is true:




Volume of the dataset:

  Python Calculator.  Expression: volume(inputs[0]).  Array Name: totalVolume.  
Apply.




Volume of each cell:
  Programmable Filter.  Script, then Apply:

from vtk.numpy_interface import algorithms as algs

volume = algs.volume(inputs[0])
output.CellData.append(volume, 'volumeOfEachCell')




Alan
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to