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. <br>
<br>
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.<br>
<br>
<div style="margin-left: 40px; font-family: courier new,monospace;">i ============= Data Statistics ==================<br>
i Data is a "vtkStructuredPoints" from a "vtkDataSetReader"<br>
i Dimensions:<br>
i X
Range:
1.000000 128.000000<br>
i Y
Range:
1.000000 128.000000<br>
i Z
Range:
1.000000 128.000000<br>
i Center: (64.500000, 64.500000, 64.500000)<br>
i Diagonal Length: 219.970453<br>
i # of Points: 2,097,152<br>
i # of Cells: 2,048,383<br>
i Reported Memory Usage: 90 MB<br>
f FIELD Data contains 0 components in 0 arrays.<br>
p POINT Data contains 8 components in 4 arrays.<br>
p Array [0]: vtkFloatArray "(null)", 2,097,152 points, 4 bytes per point<br>
p
Magnitude Range: 0.0000
1.0000<br>
p
Component 0 Range: 0.0000 1.0000<br>
p Array [1]: vtkFloatArray "(null)", 2,097,152 points, 4 bytes per point<br>
p
Magnitude Range: 0.0000
1.0000<br>
p
Component 0 Range: 0.0000 1.0000<br>
p
Component 1 Range: 0.0000 1.0000<br>
p
Component 2 Range: 0.0000 1.0000<br>
p Array [2]: vtkFloatArray "(null)", 2,097,152 points, 4 bytes per point<br>
p
Magnitude Range: 0.0000
1.0000<br>
p
Component 0 Range: 0.0000 1.0000<br>
p Array [3]: vtkDoubleArray "(null)", 2,097,152 points, 8 bytes per point<br>
p
Magnitude Range: 0.0000
1.0000<br>
p
Component 0 Range: 0.0000 1.0000<br>
p
Component 1 Range: 0.0000 1.0000<br>
p
Component 2 Range: 0.0000 1.0000<br>
p Active Arrays:<br>
p Scalar Array: "(null)"<br>
p Vector Array: "(null)"<br>
c CELL Data contains 0 components in 0 arrays.<br>
c Active Arrays:<br>
i ========== End of Data Statistics ===============<br>
</div>
<br clear="all"><br>-- <br>Randall Hand<br><a href="http://www.yeraze.com">http://www.yeraze.com</a>