When exporting meshes from Paraview that were extracted using the "Extract Selection" filter from a larger mesh, Paraview also exports vtkOriginalCellIds and vtkOriginalPointIds attribute fields. They have the datatype vtkIdType, e.g.:
Apparently Paraview uses a 32-bit build. However, this is not explicitly indicated in the VTK files... Of course it would be nice to support such files but I don't see a way to nicely handle both possible underlying types. At the moment I hard-coded it to 32-bit to support Paraview, but I'm not sure if this is a good solution.
Alternatively one could also try to skip attributes if this data-type is encountered.
When exporting meshes from Paraview that were extracted using the "Extract Selection" filter from a larger mesh, Paraview also exports
vtkOriginalCellIds
andvtkOriginalPointIds
attribute fields. They have the datatypevtkIdType
, e.g.:Without any additional support parsing these files leads to an error.
According to the VTK documention, the actual datatype (long or long long) depends on whether VTK was built in 32-bit or 64-bit mode:
(https://docs.vtk.org/en/latest/build_instructions/build_settings.html#build-settings)
Apparently Paraview uses a 32-bit build. However, this is not explicitly indicated in the VTK files... Of course it would be nice to support such files but I don't see a way to nicely handle both possible underlying types. At the moment I hard-coded it to 32-bit to support Paraview, but I'm not sure if this is a good solution.
Alternatively one could also try to skip attributes if this data-type is encountered.