[vtkusers] List of arrays from vtkpointdata

David Doria daviddoria at gmail.com
Mon Jan 6 11:31:03 EST 2014


On Mon, Jan 6, 2014 at 11:25 AM, Doug Hoppes <dhoppes at mbfbioscience.com>wrote:

>  In the vtkpointdata class, is there a way to see what arrays are in the
> data set? I’m trying to use vtkclippolydata()->getoutput()->GetPointData
> ()->GetArray("InputPointIds") and am not getting any results.
>
>
>
> *Doug*
>

I think you're looking for


GetPointData()->GetArrayName(i)

http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/FindAllArrayNames

I will also sometimes write the data to a file (vtp) and open it with
Paraview to see a list of the data arrays.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140106/bc048111/attachment.htm>


More information about the vtkusers mailing list