I just put myself on vtk to visualize hydrogen adsorbing molecules from RASPA.2 software. When I launch vtk I get the following message:
assoualaye@assoualaye-Latitude-E6220:~/vtk_ex/materials/Demos/Simple$ vtkProbeOpenGLVersion-9.0 cone2.tcl
Class: vtkXOpenGLRenderWindow succeeded in finding a working OpenGL
what to do?
I would recommend using the Python bindings for scripts instead of Tcl. There are examples on this site for how to do this. You can install VTK via pip install vtk to get the Python bindings. The C++ look a lot like the Python code you’ll need, but some syntax and boilerplate needs translating (there are examples which have both so that you can compare).
Thank you for your guidance. In reality, I would like to visualize hydrogenated molecules. Which are obtained using RASPA2.0 software. After the simulation we get files with a vtk extension like dnesity.vtk, and my concern is to know if it would be possible to view them using Python links.
I recommend using ParaView to load and analyze the files. You could make a simple VTK viewer, but if you want to actually analyze it, ParaView has everything you need already available instead of manually setting up filters and such. https://www.paraview.org/