[Paraview] Particle attributes in vtkPolyData
Berk Geveci
berk.geveci at gmail.com
Mon Apr 10 15:00:16 EDT 2006
The fact that it assigned Scalars_ makes me thing that the array is
not getting a name. Can you verify in your code that SetName() is not
null or empty?
-Berk
On 4/10/06, Randy Hudson <hudson at mcs.anl.gov> wrote:
>
>
> No errors.
>
>
> Here's the entire .pvd file:
> <?xml version="1.0"?>
> <VTKFile type="Collection" version="0.1" byte_order="LittleEndian"
> compressor="vtkZLibDataCompressor">
> <Collection>
> <DataSet timestep="0" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="1" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="2" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="3" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="4" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="5" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="6" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="7" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="8" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> <DataSet timestep="9" group="source0" part="0"
> file="forberk_4rpocess_1timestep_fr0100/forberk_4rpocess_1timestep_fr0100_source0T0000.pvtp"/>
> </Collection>
> </VTKFile>
>
> I don't know why it has entries for more than 1 time step, since the
> righthand side of the timesteps window (which I opened just to check)
> only listed the single input file. I was running a 4-process parallel
> paraview, not 10-process, btw.
>
> Here's the XML header of one of the .vtp files to which the .pvd file
> points. I have no idea where the name, "Scalars_", that was assigned to
> the scalars, comes from:
>
>
> <?xml
> version="1.0"?>
>
> <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"
> compressor="vtkZLibDataCompressor">
>
>
> <PolyData>
>
> <Piece NumberOfPoints="124765"
> NumberOfVerts="124765"
> NumberOfLines="0"
> NumberOfStrips="0" NumberOfPo\
> lys="0"
> >
>
> <PointData
> Scalars="Scalars_">
>
> <DataArray type="Float64" Name="Scalars_" format="appended"
> RangeMin="46920.2" RangeMax="6.12475e+08"
> offset="0" />
>
> </PointData>
>
>
> <CellData>
>
>
> </CellData>
>
>
> <Points>
>
> <DataArray type="Float32" NumberOfComponents="3"
> format="appended" RangeMin="6.41176e+07"
> RangeMax="1.96909e+08" offset="1251544" />
>
> </Points>
>
>
> <Verts>
>
> <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin="" RangeMax=""
> offset="3017348" />
> <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin="" RangeMax=""
> offset="3247824" />
>
> </Verts>
>
>
> <Lines>
>
> <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin="" RangeMax=""
> offset="3478396" />
> <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin="" RangeMax=""
> offset="3478412" />
>
> </Lines>
>
>
> <Strips>
>
> <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin="" RangeMax=""
> offset="3478428" />
> <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin="" RangeMax=""
> offset="3478444" />
>
> </Strips>
>
>
> <Polys>
>
> <DataArray type="Int32" Name="connectivity" format="appended"
> RangeMin="" RangeMax=""
> offset="3478460" />
> <DataArray type="Int32" Name="offsets" format="appended"
> RangeMin="" RangeMax=""
> offset="3478476" />
>
> </Polys>
>
>
> </Piece>
>
>
> </PolyData>
>
> <AppendedData encoding="base64">
>
>
>
> Berk Geveci wrote:
> > Any errors? Can you post the header part of the vtk file (xml)?
> >
> >
> >
>
> --
>
> Randy.
>
>
>
>
More information about the ParaView
mailing list