[Paraview] Assign scalars/vectors to mesh points in vtkRectilinearGrid, C++

Paw Møller pawsen at gmail.com
Wed Apr 3 03:51:32 EDT 2013


Of course
Temperature= [0:1:1330];

<?xml version="1.0"?>
<VTKFile type="RectilinearGrid" version="0.1" byte_order="LittleEndian"
compressor="vtkZLibDataCompressor">
  <RectilinearGrid WholeExtent="0 10 0 10 0 10">
    <Piece Extent="0 10 0 10 0 10">
      <PointData>
        <DataArray type="Float32" Name="Temperature" format="appended"
RangeMin="0"                    RangeMax="1330"                 offset="0"
                  />
        <DataArray type="Float32" Name="Velocity" NumberOfComponents="3"
format="appended" RangeMin="31.622776602"         RangeMax="1330.3758867"
      offset="2208"                />
      </PointData>
      <CellData>
      </CellData>
      <Coordinates>
        <DataArray type="Float64" Name="Array 0x1393da0" format="appended"
RangeMin=""                     RangeMax=""
offset="5100"                />
        <DataArray type="Float64" Name="Array 0x1393ee0" format="appended"
RangeMin=""                     RangeMax=""
offset="5176"                />
        <DataArray type="Float64" Name="Array 0x1394020" format="appended"
RangeMin=""                     RangeMax=""
offset="5252"                />
      </Coordinates>
    </Piece>
  </RectilinearGrid>
  <AppendedData encoding="base64">
      .....
  </AppendedData>
</VTKFile>


I'm using Paraview 3.14.1 64-bit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130403/582659f6/attachment.htm>


More information about the ParaView mailing list