Skip to content

Draft: Revamp Gaussian Cube file reader

Robert Adam requested to merge Krzmbrzl/vtk:fix-cube-reader into master

This includes the following:

  • Properly translate units from Bohr to Angstrom
  • Properly take grid spacing into account
  • Support the full format specification (not just a subset of it) when parsing cube files
  • Added support for multiple data sets within a single cube file
  • Added support for non-orthogonal grid axes (data set is no longer required to be of type vtkImageData)

Fixes #18725


Open questions/problems:

  • Can I safely delete the old cube file reader files (v1)? Having the multiple implementations of cube readers around seems redundant and very confusing to end users.
  • When using this reader implementation within ParaView, the data seems to be loaded correctly. However, things like volumetric rendering of the data just doesn't do anything. I assume this is due to some missing attribute that I have not yet specified correctly. Any help on that front would be appreciated.

Merge request reports