Hi Community,
I am having a challenge loading a .vtp file in Paraview. The attached .vtp file below has 6 Polygons, their corresponding points and cells. The mesh loads correctly when I ommit the CellData tag, however, the following error occurs when I try to assign a scalar or vector to each cell. Could anyone assist with check what could be wrong with the simple .vtp file below that I generated. Thanks in advance.
Steps to reproduce:
- Load the .vtp file below
- Click Apply on the properties section
- Display the file in the Pipeline Browser
<Piece NumberOfPoints="24" NumberOfVerts="24" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="6">
<Points>
<DataArray type="Float32" NumberOfComponents="3" format="ascii">0.0 -0.5 0.0 0.0 0.5 0.0 -8.0 0.5 0.0 -8.0 -0.5 0.0 0.0 0.0 0.5 0.0 0.0 -0.5 -8.0 0.0 -0.5 -8.0 0.0 0.5 0.0 -0.5 0.0 0.0 0.5 0.0 -8.0 0.5 0.0 -8.0 -0.5 0.0 0.0 0.0 0.5 0.0 0.0 -0.5 -8.0 0.0 -0.5 -8.0 0.0 0.5 0.0 -0.5 0.0 0.0 0.5 0.0 -8.0 0.5 0.0 -8.0 -0.5 0.0 0.0 0.0 0.5 0.0 0.0 -0.5 -8.0 0.0 -0.5 -8.0 0.0 0.5</DataArray>
</Points>
<Polys>
<DataArray type="Int32" Name="connectivity" format="ascii">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23</DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">4 8 12 16 20 24</DataArray>
</Polys>
<CellData>
<DataArray type="Float32" Name="property_a" NumberOfComponents="1" format="ascii">0.0 0.0 0.0 0.0 0.0 0.0</DataArray>
<DataArray type="Float32" Name="property_b" NumberOfComponents="1" format="ascii">0.1158 0.1158 0.27175 0.27175 0.27175 0.27175</DataArray>
<DataArray type="Float32" Name="property_c" NumberOfComponents="1" format="ascii">0.8842 0.8842 0.72825 0.72825 0.72825 0.72825</DataArray>
</CellData>
</Piece>
model_vtp_generated.vtp (1.4 KB)
