[Paraview] pvti example with data in cells question

Sergi Mateo Bellido sergi.mateo.bellido at gmail.com
Mon Nov 23 03:38:08 EST 2015


Hi Nikolay,

I don't know if you still have this problem, if it's fixed feel free to 
ignore this email :)

I think that the main issue is that you are specifying the whole extents 
of the VTI files (i.e. 1.vti and 2.vti) as if they were independent, 
instead of specifying the part of the whole image they occupy (I had a 
similar problem and they told me that).

Another thing that I'm not sure if it is ok is how you describe the 
whole extents: I was told that if you want to declare a 4x2 model the 
whole extent should be  0 3 0 1 0 0.

Best regards,
Sergi

On 11/05/2015 01:49 PM, Nikolay Khokhlov wrote:
> Hello,
>
> I'm trying to use pvti format to save data.
> I've create example with 8 cells, but I've got different view when 
> open files *.vti and file pvti separately (image attached).
> What could be the problem?
>
>
> File x.pvti:
> <?xml version="1.0"?>
> <VTKFile type="PImageData" version="0.1">
>   <PImageData WholeExtent="0 4 0 2 0 0" Origin="0.000000 1.000000 
> 0.000000" Spacing="0.100000 0.100000 0.000000" GhostLevel="0">
>     <Piece Extent="0 2 0 2 0 0" Source="./1.vti"/>
>     <Piece Extent="2 4 0 2 0 0" Source="./2.vti"/>
>       <PCellData Scalars = "vx" >
>           <PDataArray type="Float32" Name="vx" />
>       </PCellData>
>   </PImageData>
> </VTKFile>
>
> File 1.vti:
> <?xml version="1.0"?>
> <VTKFile type="ImageData" version="0.1">
>   <ImageData WholeExtent="0 2 0 2 0 0" Origin="0.000000 1.000000 
> 0.000000" Spacing="0.100000 0.100000 0.000000">
>     <Piece Extent="0 2 0 2 0 0">
>       <CellData Scalars = "vx" >
>         <DataArray type="Float32" Name="vx" format="ascii">
>             1 2 3 4
>         </DataArray>
>       </CellData>
>     </Piece>
>   </ImageData>
> </VTKFile>
>
> File 2.vti:
> <?xml version="1.0"?>
> <VTKFile type="ImageData" version="0.1">
>   <ImageData WholeExtent="0 2 0 2 0 0" Origin="0.200000 1.000000 
> 0.000000" Spacing="0.100000 0.100000 0.000000">
>     <Piece Extent="0 2 0 2 0 0">
>       <CellData Scalars = "vx" >
>         <DataArray type="Float32" Name="vx" format="ascii">
>              5 6 7 8
>         </DataArray>
>       </CellData>
>     </Piece>
>   </ImageData>
> </VTKFile>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151123/bc10d82f/attachment.html>


More information about the ParaView mailing list