[Paraview] Multiple pieces in UnstructuredGrid

Craig Warren Craig.Warren at ed.ac.uk
Wed Feb 21 12:52:26 EST 2007


Hey folks,

I can't get the CellData to display in Paraview for the second piece  
in the following example. Am I missing something obvious to do with  
having multiple pieces?

Thanks,

Craig

--
Craig Warren
Postgraduate student

Institute for Infrastructure & Environment
School of Engineering & Electronics
University of Edinburgh
Alexander Graham Bell Building
The King's Buildings
Edinburgh EH9 3JL
Tel: +44 (0)131 650 5812
Fax: +44 (0)131 650 6554

<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian">
   <UnstructuredGrid>
     <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>
     <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">
           0 0 0 1 0 0 1 1 0 0 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>
   </UnstructuredGrid>
</VTKFile>





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20070221/5fc8b162/attachment.html


More information about the ParaView mailing list