[Paraview] Help needed debugging VTP file
Moreland, Kenneth
kmorel at sandia.gov
Tue Oct 7 21:59:46 EDT 2008
Each cell in the connectivity array needs to be of the form "N id0 id1
id2..." where N is the number of points in the cell and idX are the indices
to the points. It looks like your connectivity array is missing the count.
I believe the offsets array should be the index of the start of each cell.
Generally, the first one is always 0.
-Ken
On 10/7/08 5:22 PM, "Olumide" <50295 at web.de> wrote:
> Here's another small vtp file that Paraview won't open. I'm getting the
> error: "Cannot read cell connectivity from Polys in piece 0 because the
> "connectivity" array is not long enough."
>
> Can someone please tell me what I'm missing.
>
> Thanks
>
> %%%%%%%%%%%%%%%%% Small File %%%%%%%%%%%%%%%%%
>
> <?xml version="1.0" encoding="utf-8"?>
> <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
> <PolyData>
> <Piece NumberOfPoints="9" NumberOfLines="1" NumberOfPolys="1">
>
> <Points>
> <DataArray type="Float32"
> NumberOfComponents="3" format="ascii">
> 0.395507 0.427410 0.812954
> 0.457372 0.349573 0.817686
> 0.541530 0.349630 0.764529
> 0.563762 0.427524 0.706680
> 0.501819 0.505304 0.702030
> 0.417690 0.505133 0.755232
>
> 0.417690 0.505133 0.755232
> 0.395507 0.427410 0.812954
> 0.482041 0.429542 0.763630
> </DataArray>
> </Points>
>
> <Lines>
> <DataArray type="Int32" Name="connectivity"
> format="ascii">
> 0 1 2 3 4 5
> </DataArray>
> <DataArray type="Int32" Name="offsets"
> format="ascii">
> 6
> </DataArray>
> </Lines>
>
> <Polys>
> <DataArray type="Int32" Name="connectivity"
> format="ascii">
> 6 7 8
> </DataArray>
> <DataArray type="Int32" Name="offsets"
> format="ascii">
> 10
> </DataArray>
> </Polys>
>
> </Piece>
> </PolyData>
> </VTKFile>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** fax: (505) 845-0833
More information about the ParaView
mailing list