I have a file with .cube format. I want show it with vtk as such as this image. how can i show this file with C vtk?
CodePudding user response:
I stop working with VTK some years ago, but I think you're searching for a Gaussian Cube file reader. Some research leads here: https://vtk.org/doc/nightly/html/annotated.html
In the provided link, you can find some official examples, in particular there are two classes that I think could help you:
- vtkGaussianCubeReader2.h: Read a Gaussian Cube file and output a vtkMolecule object and a vtkImageData
- vtkGaussianCubeReader.h: Read ASCII Gaussian Cube Data files
Hope these can help.