wiki:Workshops/IntroToHpc2015/Visualization Toolkit (VTK)

Version 1 (modified by pdejesus, 9 years ago) ( diff )

Visualization Toolkit

  • The Visualization Toolkit [http://www.vtk.org VTK is an open-source, freely available software system for 3D computer graphics, image processing and visualization.
  • VTK consists of a C++ class library and several interpreted interface layers including Tcl/Tk, Java, and Python.
  • Kitware, whose team created and continues to extend the toolkit, offers professional support and consulting services for VTK.
  • VTK supports a wide variety of visualization algorithms including: scalar, vector, tensor, texture, and volumetric methods; and advanced modeling techniques such as: implicit modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay triangulation.
  • VTK has an extensive information visualization framework, has a suite of 3D interaction widgets, supports parallel processing, and integrates with various databases on GUI toolkits such as Qt and Tk.
  • VTK is cross-platform and runs on Linux, Windows, Mac and Unix platforms.

http://www.vtk.org/Wiki/VTK/Tutorials

Setup Environmental Variables for C++

$ module load vtk

Example VTK-C++

Use VTK with anaconda python

To use anaconda python

$ module load anaconda

But the current version of anaconda doesn't have vtk package in default.

To install vtk package in local, first you have to create local python clone.

[fuji@cypress2 VTK]$ conda create -n my_root --clone=/share/apps/anaconda/2.1.0
src_prefix: '/share/apps/anaconda/2.1.0'
dst_prefix: '/home/fuji/envs/my_root'
Packages: 140
Files: 0
Fetching package metadata: ..
Linking packages ...
[      COMPLETE      ] |##############################################################################################################################################################################| 100%
#
# To activate this environment, use:
# $ source activate my_root
#
# To deactivate this environment, use:
# $ source deactivate
#

Then do

$ source activate my_root

Now you can install vtk package,

$ conda install vtk

From next time, to use anaconda python

$ module load anaconda
$ source activate my_root

Example VTK-python

Note: See TracWiki for help on using the wiki.