Skip to content

VTK legacy formats will fail with label-size 64

The VTK legacy binary output performs byte-swapping on labels, but since legacy VTK only handles 32-bit ints, the code also only swaps endian content for 32-bits. For 64-bit labels the swapping and output are wrong. The newer VTK formats are needed for this.

Code affected:

  • setSet/writeFuncs.C
  • foamToVTK/writeFuncs.C
  • CloudToVTK/vtkTools.C