We have two sets of example programs available for you to use. As part of our VTK installation we have included the C++, Python, and Tcl demo programs and the data files that come with the distribution from Kitware. And as part of the 2008 Workshop on Scientific Visualization, SCV staff member Ray Gasser created several Tcl demos which are also available for your use. For basic information on using the VTK package on the SCV systems, consult our VTK Basics help page.

Kitware Example Files

All of the Kitware VTK examples are located in the /usr/local/vtk/Examples directory. This directory contains several subdirectories which cover various VTK topics such as Modeling, Image processing, Volume Rendering, etc. These subdirectories are further broken down by language. For example to see the Tcl demos on Volume Rendering you would go to the /usr/local/vtk/Examples/VolumeRendering/Tcl directory:

katana:% cd /usr/local/vtk/Examples/VolumeRendering/Tcl
katana:% vtk volSimpleLOD.tcl

Workshop Example Files

The VTK Tcl examples below were originally developed for the 2008 Workshop on Scientific Visualization and are based upon the example programs from Kitware. The workshop examples are organized into two subdirectories in the materials directory. These are the Demo directory and the Data directory. The Demo directory contains several directories named for the various types of computer visualization techniques such as Contours, Cutplanes, Streamlines, etc. each of which contains Tcl example files. The Data directory contains the various data files used by the example programs.

Materials directory (individual workshop example files)

Tar file of the materials directory (entire set of workshop example files)

Using the Workshop Examples

You can either download individual example files and data from the materials directory or you can download the entire set which is in a tar file. If you are downloading the entire set, after you have untared the examples tarfile, you can cd into any of the subdirectories of the materials/Demos directory and run the VTK example by typing vtk followed by the demo name. For example:

katana:% cd materials/Demos/Contours/
katana:% vtk isosurface.tcl