Hi Berk,
Thanks for your reply.
Hmmm...
My purpose is extracting CSVs to vtkImageData with the Programmable Filter.
And the CSVs don't have headers, so it's not so good idea for me to get values
per columns.
If possible, I want to get the values as 2D numpy.array directly as
numpy.loadtxt().
Hi Utkarsh,
I already checked it, but there are no information about getting all values
of VTKTable with NumPy.
Now I'm using for-loops and the GetValue(i, j) function, but it's not smart.
Do you have any other information?
Magician
On Feb 5, 2014, at 4:05, Utkarsh Ayachit
If one of the inputs to the programmable filter is a table, you can
values (columns) from it with something like:
inputs[0].RowData['array_name']
This will give a (n,1) numpy array where n == number of rows.
Best,
-berk
On Wed, Feb 5, 2014 at 9:29 AM, Magician f_magic...@mac.com wrote:
Hi
Here's some text that describes how to go back and forth between NumPy
and VTK arrays
:http://www.paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter#Mixing_VTK_and_NumPy_APIs
Utkarsh
On Fri, Jan 31, 2014 at 10:30 PM, Magician f_magic...@mac.com wrote:
Hi all,
I'm using PV