[Paraview] replace coordiate by field value?

Markus Werle numerical.simulation at web.de
Fri Feb 29 18:32:37 EST 2008


Hi!

Thanks to ML help I have a little demonstrator writing .vtu files.
Now I'd like to display the data as follows: The z-Coordinates 
at each point which is always 0 should be replaced by the scalars
in the same input file, such that I get a 3D impression of the value 
distribution

Does Paraview support this kind of visualization?
And if yes, how is it done? 

regards,

Markus
-------------- next part --------------
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <UnstructuredGrid>
    <Piece NumberOfPoints="20" NumberOfCells="12">
      <PointData Scalars="scalars">
        <DataArray type="Float32" Name="scalars" format="ascii">
0 0.0998334 0.198669 0.29552 0.389418 0.479426 0.564642 0.644218 0.717356 0.783327 0.841471 0.891207 0.932039 0.963558 0.98545 0.997495 0.999574 0.991665 0.973848 0.9463 
        </DataArray>
      </PointData>
      <CellData>
      </CellData>
      <Points>
        <DataArray type="Float32" NumberOfComponents="3" format="ascii">
          0 0 0
          1 0 0
          2 0 0
          3 0 0
          4 0 0
          0 1 0
          1 1 0
          2 1 0
          3 1 0
          4 1 0
          0 2 0
          1 2 0
          2 2 0
          3 2 0
          4 2 0
          0 3 0
          1 3 0
          2 3 0
          3 3 0
          4 3 0
        </DataArray>
      </Points>
      <Cells>
        <DataArray type="Int32" Name="connectivity" format="ascii">
0 1 6 5 
1 2 7 6 
2 3 8 7 
3 4 9 8 
5 6 11 10 
6 7 12 11 
7 8 13 12 
8 9 14 13 
10 11 16 15 
11 12 17 16 
12 13 18 17 
13 14 19 18 
        </DataArray>
        <DataArray type="Int32" Name="offsets" format="ascii">
4 8 12 16 20 24 28 32 36 40 44 48 
        </DataArray>
        <DataArray type="UInt8" Name="types" format="ascii">
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 
        </DataArray>
      </Cells>
    </Piece>
  </UnstructuredGrid>
</VTKFile>


More information about the ParaView mailing list