[vtk-developers] Python examples: need a little feedback.

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat Dec 14 12:18:10 EST 2002


hi,

Jose Paulo mailed me an initial version of
Examples/Tutorial/Step6/Python/Cone6.py.  I modified it and have
committed it to CVS.  My coding style differs from the one used in the
other Python examples.  Most notably:

 1. I prefer to use 'import vtk' instead of 'from vtkpython import *'.

 2. I avoid setting the variables to None at the end in order to
 'free' memory.  This is unnecessary if you ask me.

 3. Slight formatting differences.

I hope these are acceptable.  If these kind of examples are OK with
the rest of you folks I'll slowly start generating a few translated
examples (either myself or with help from other users) each week and
populate the Python examples.  

This should hopefully complete the Python side of VTK.  We have always
had great wrappers, we now also have an installer, some documentation,
widgets for different GUI toolkits, a unit test framework that are as
functional as the Tcl test framework, a few sample tests (that will
hopefully grow in time), special interpreters so that vtkpython works
great (with parallel support) on all platforms and with this step
examples that should help users.

cheers,
prabhu



More information about the vtk-developers mailing list