[vtkusers] Bug or feature: incomplete table returned by vtkDataObjectToTable for arrays of varying length

Grothausmann, Roman Dr. grothausmann.roman at mh-hannover.de
Tue Jun 14 02:34:21 EDT 2016


Before I start to write my own CSV export, iterating over each array 
individually, I'm wondering whether the incomplete table returned by 
vtkDataObjectToTable for arrays of varying length is intended?

On 11/06/16 11:00, Grothausmann, Roman Dr. wrote:
> Dear mailing list members,
>
>
> I'm trying to export vtp-FieldData with arrays of varying length (as in the
> attached VTP) to CSV:
> https://github.com/romangrothausmann/VTK-CLIs/blob/master/vtp2csv.cxx
>
> However, it seems the vtkTable returned by vtkDataObjectToTable only holds as
> many rows as the first encountered array has. I had a look at
> vtkDataSetAttributes.cxx and vtkFieldData.cxx but their ShallowCopy do not use
> an iterator whose length I could set.
> How can I export as many rows as the longest array holds, as e.g. Paraview's
> CSV-exporter does?
>
> Any help or hints are very much appreciated
> Roman
>
>
>
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-2900


More information about the vtkusers mailing list