[Paraview] Re: Multiple pieces in UnstructuredGrid
Craig Warren
Craig.Warren at ed.ac.uk
Fri Feb 23 08:58:15 EST 2007
I still can't get CellData for more than one piece to diaply using
UnstructuredGrid in Paraview with the XML format. However, it works
with the legacy format. I would still prefer to use the xml format,
so any suggestions are most welcome. This is the legacy file that
works, and below it the xml file that doesn't.
# vtk DataFile Version 2.0
Unstructured Grid Example
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 22 float
0 0 0
1 0 0
1 1 0
0 1 0
0 0 1
1 0 1
1 1 1
0 1 1
1.5 0 0
2.5 0 0
2.5 1 0
1.5 1 0
1.5 0 1
2.5 0 1
2.5 1 1
1.5 1 1
3 0 0
4 0 0
4 1 0
3 1 0
5 0 0
6 0 0
CELLS 4 44
8 0 1 2 3 4 5 6 7
8 8 9 10 11 12 13 14 15
4 16 17 18 19
2 20 21
CELL_TYPES 4
12
12
9
3
CELL_DATA 4
SCALARS scalars int 1
LOOKUP_TABLE default
1
2
3
5
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian">
<UnstructuredGrid>
<Piece NumberOfPoints="4" NumberOfCells="1">
<CellData Scalars="pressure">
<DataArray type="Float32" Name="pressure" format="ascii">
2
</DataArray>
</CellData>
<Points>
<DataArray type="Float32" NumberOfComponents="3"
format="ascii">
3 0 0 4 0 0 4 1 0 3 1 0
</DataArray>
</Points>
<Cells>
<DataArray type="Int32" Name="connectivity" format="ascii">
0 1 2 3
</DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">
4
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii">
9
</DataArray>
</Cells>
</Piece>
<Piece NumberOfPoints="16" NumberOfCells="2">
<CellData Scalars="temperature">
<DataArray type="Float32" Name="temperature" format="ascii">
4 5
</DataArray>
</CellData>
<Points>
<DataArray type="Float32" NumberOfComponents="3"
format="ascii">
0 0 0 1 0 0 1 1 0 0 1 0 0 0 1 1 0 1 1 1 1 0 1 1
1.5 0 0 2.5 0 0 2.5 1 0 1.5 1 0 1.5 0 1 2.5 0 1 2.5 1 1
1.5 1 1
</DataArray>
</Points>
<Cells>
<DataArray type="Int32" Name="connectivity" format="ascii">
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
</DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">
8 16
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii">
12 12
</DataArray>
</Cells>
</Piece>
</UnstructuredGrid>
</VTKFile>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20070223/f978e890/attachment-0001.htm
More information about the ParaView
mailing list