The Visualization Toolkit (VTK)[1] is an open-source, freely available software system for 3D computer graphics, image processing, and visualization.
Example: NOVCA-Visualization [2] - NOVCA-Example
The execuatable "CreateGraph", which by complining using cmake, is executed to get the unstructured VTK file "testVertex.vtu" which is fed to ParaView to get the graph similar to "graphCXX.png".
VTK/Cxx
Request a compute node with Visualization Support. We recommend using Ondemand Desktop listed as one of the options at HPC Visual Guide.
Load the required VTK module:
module load cmake
module load VTK
Clone the Repository:
git clone https://github.com/sxg125/NOVCA-Visualization
Go to NOVCA-Visualization directory:
cd NOVCA-Visualization
Checkout the VTKCxx branch:
git checkout VTKCxx
Compile the Code:
mkdir buid
cd build
cmake ..
make
Run the Executable:
./CreateGraph
You will get the "testVertex.vtu" file which needs to be fed to the ParaView. Open the file in ParaView, apply glyph and get the one similar to graph "graphCXX.png" at [2].
VTK/Python
Request a compute node with Visualization Support. We recommend using Ondemand Desktop listed as one of the options at HPC Visual Guide.
Load the required modules including the VTK:
module load python
module load VTK
Clone the Repository:
git clone https://github.com/sxg125/NOVCA-Visualization
Go to NOVCA-Visualization directory:
cd NOVCA-Visualization
Run the script:
./paraviewGraph.py
You will get the "testVertex.vtu" file which needs to be fed to the ParaView. Open the file in ParaView, apply glyph and get the one similar to graph "graphCXX.png" at [2].
Refer to HPC Guide to Molecular Visualization for more information.
References:
[1] VTK Home
[2] NOVCA-Example