[vtkusers] Exporting after multiple addActor() calls to blah.vtk?

Bryan Bishop kanzure at gmail.com
Sun Nov 30 17:57:24 EST 2008


On Sun, Nov 30, 2008 at 3:07 PM, Bryan Bishop <kanzure at gmail.com> wrote:
> I've been reading the docs for vtkWriter and its derivatives,
> especially vtkDataSetWriter and am now spinning in circles. What I
> have, in python, is the following code snippit; what I'd like to be
> able to do is call addActor() as many times as I'd like, and then
> export everything showing up on the visualization window into a dot
> vtk file (particularly so that I may load it up into OpenFOAM later).
> At this point I'm increasingly certain that VTK isn't really meant for
> this; the image output (TIFF, PNG, etc.) works wonderfully; I'd be
> willing to switch over to PyOpenGL if this is just me being too silly.

This will help others looking for solutions-
http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/vtk/graphics/examplesPython/writers.py

- Bryan
http://heybryan.org/
1 512 203 0507



More information about the vtkusers mailing list