[vtk-developers] Broken vtkDataSetReader ?
Will Schroeder
will.schroeder at kitware.com
Thu Aug 25 15:27:01 EDT 2005
Can you send me a tiny example?
Will
At 02:38 PM 8/25/2005, Randall Hand wrote:
>I just installed the latest CVS (it's been a few weeks since my last
>install), and low & behold I can't get field names for my LegacyVTK files.
>
>Calling GetPointData()->GetArray("string") always returns NULL, and
>GetPointData()->GetArray(integer)->GetName always returns "(null)"
>as well. All the data is there, I just can't get to field names.
>This is a blocker for me, as I can't really load any data.
>
>i ============= Data Statistics ==================
>i Data is a "vtkStructuredPoints" from a "vtkDataSetReader"
>i Dimensions:
>i X Range: 1.000000 128.000000
>i Y Range: 1.000000 128.000000
>i Z Range: 1.000000 128.000000
>i Center: (64.500000, 64.500000, 64.500000)
>i Diagonal Length: 219.970453
>i # of Points: 2,097,152
>i # of Cells: 2,048,383
>i Reported Memory Usage: 90 MB
>f FIELD Data contains 0 components in 0 arrays.
>p POINT Data contains 8 components in 4 arrays.
>p Array [0]: vtkFloatArray "(null)", 2,097,152 points, 4 bytes per point
>p Magnitude Range: 0.0000 1.0000
>p Component 0 Range: 0.0000 1.0000
>p Array [1]: vtkFloatArray "(null)", 2,097,152 points, 4 bytes per point
>p Magnitude Range: 0.0000 1.0000
>p Component 0 Range: 0.0000 1.0000
>p Component 1 Range: 0.0000 1.0000
>p Component 2 Range: 0.0000 1.0000
>p Array [2]: vtkFloatArray "(null)", 2,097,152 points, 4 bytes per point
>p Magnitude Range: 0.0000 1.0000
>p Component 0 Range: 0.0000 1.0000
>p Array [3]: vtkDoubleArray "(null)", 2,097,152 points, 8
>bytes per point
>p Magnitude Range: 0.0000 1.0000
>p Component 0 Range: 0.0000 1.0000
>p Component 1 Range: 0.0000 1.0000
>p Component 2 Range: 0.0000 1.0000
>p Active Arrays:
>p Scalar Array: "(null)"
>p Vector Array: "(null)"
>c CELL Data contains 0 components in 0 arrays.
>c Active Arrays:
>i ========== End of Data Statistics ===============
>
>
>--
>Randall Hand
><http://www.yeraze.com>http://www.yeraze.com
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at vtk.org
>http://www.vtk.org/mailman/listinfo/vtk-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20050825/19f3f98e/attachment.html>
More information about the vtk-developers
mailing list