vtp and vtk cannot handle more than order 120 million triangles
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
We think 32 bit integers are used in vtp and vtk files to represent the number of coordinates and polygons. In particular, the offset is suspect. In our case, when the number of points and triangles approaches respectively 60 million and 120 million, paraview cannot render the object. We get the following error:
ERROR: In /Users/partyd/Kitware/ParaView-3.8/src/VTK/IO/vtkXMLUnstructuredDataReader.cxx, line 589 vtkXMLPolyDataReader (0x10a504c00): Cannot read cell offsets from Polys in piece 0 because the "offsets" array is not long enough.
Some versions of paraview are able to read the vtp files on unix boxes. It depends on the build. Here is the header of the vtp file:
[dgd]% head test.vtp
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints=" 61342156" NumberOfVerts="0" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys=" 118579532">
<Points>
<DataArray type="Float32" NumberOfComponents="3" format="appended" offset="0"/>
</Points>
<Polys>
<DataArray type="Int32" Name="connectivity" format="appended" offset=" 736105876"/>
<DataArray type="Int32" Name="offsets" format="appended" offset=" 2159060264"/>