'draw' package
VTK interface


This is a proof of concept for a Maxima-VTK interface.

Gnuplot and VTK are very different and I am trying to use the same syntax, the same graphics objects, and the same options. Despite my efforts, sometimes it is very difficult, or even impossible, to maintain 100% syntax compatibility. The main reason for developing this package is to make better graphics in 3D with Maxima, since Gnuplot is not a good program for this task.

This web site is presently the only source of information available for this (experimental) VTK interface. It is part of the Maxima draw package. The code presented in this site was tested with VTK 6.3, and it is not compatible with 5.* versions.

In Windows, since version 5.38, the installer contains VTK and you are ready to use VTK from Maxima.

In Debian Jessie, you have to install these two packages:

# apt-get install vtk6 tcl-vtk6

Note that the VTK version in the Debian repositories is 6.1, not 6.3. Some examples (mainly 2d charts) in this site will not work with that version.

In Ubuntu systems tcl-vtk6 is broken. You need to compile VTK with TCL support yourself. Also, you can try the Windows installer via wine.

These problems will be solved in future versions of Maxima, since I am now porting all the TCL stuff to Python, which is the standard wrapper for VTK classes.

Graphic objects

Click on the items below to see examples of graphic objects plotted with the VTK libraries.

Programming graphics

The objects listed above are the basic elements to build more complex scenes.

Global options

Global options are those which are related to the whole plot. They can be written anywhere in the scene description.

Local options

Local options are those which affect the appearance of individual graphic objects. They must be declared before the objects in the scene description.

© 2011-2016, TecnoStats