Getting started with pyvtk

Paul Melis paul.melis at gmail.com
Thu May 1 17:01:42 EDT 2008


On 1 mei, 22:54, Peter Pearson <ppear... at nowhere.invalid> wrote:
> I'm trying to get started with pyvtk, the Python interface
> to the Visualization Toolkit,

It looks like you're using this package:
http://cens.ioc.ee/projects/pyvtk/

These are not the official Python bindings to VTK, but seem to be an
add-on that allow you to manipulate VTK _files_ from Python.

The official bindings are included in the VTK distribution and can be
enabled at build-time (assuming you build VTK yourself).

For a simple example that will open a window and show some 3D object,
see for example the example code the vtkConeSource class:
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/Tutorial/Step1/Python/Cone.py?root=VTK&content-type=text/plain

> Simply running "vtk" (apparently 4.0)

VTK 4.0 is really really old. Consider switching to 5.0 at least or
use the CVS version if you feel adventurous.

Hope this helps,
Paul



More information about the Python-list mailing list