You can also use the "Python Calculator" with expression
"volume(inputs[0])" and the "Array Association" set to "Cell Data".
Utkarsh
On Fri, Oct 16, 2015 at 10:00 AM, Cory Quammen wrote:
> Hi Alan,
>
> This script for the Programmable Filter should compute cell volumes and add
> them as a new 'v
Hi Alan,
This script for the Programmable Filter should compute cell volumes and add
them as a new 'volume' cell array (I tested it on a vtkUnstructuredGrid
data set).
from vtk.numpy_interface import algorithms as algs
volume = algs.volume(inputs[0])
output.CellData.append(volume, 'volume')
Let
I have a user that wants volume of cells moved into a new variable. There is a
feature request pending for this (
http://www.paraview.org/Bug/view.php?id=10433 ), but in the meantime, is it
possible with the programmable filter?
Thanks,
Alan
___
P