[vtkusers] read a vtp

mirko heuegger mheuegger at gmail.com
Tue May 25 11:27:23 EDT 2010


Hello!

On Tue, May 25, 2010 at 4:31 PM,  <mariagrazia.madaschi at unibg.it> wrote:
> -[cut]-
> import vtk
> filename= "nuclei_1.vtp"
> reader = vtk.vtkXMLPolyDataReader()
> reader.SetFileName (filename)

try a:
reader.Update()
here, that should do the trick.

> polyDataOutput = reader.GetOutput()
> print polyDataOutput

hth

mirko

-- 
Real programmers don't document; if it was
hard to write, it should be hard to understand.



More information about the vtkusers mailing list