[vtkusers] number of points in vtkAppendPolyData

Denis Saussus dsaussus at fugro-jason.com
Thu Feb 3 11:51:55 EST 2005

How can I get the following to print the total 
number of points in the appended set?

a = vtk.vtkPolyData()
b = vtk.vtkPolyData()

apd  = vtk.vtkAppendPolyData()

print apd.GetOutput().GetNumberOfPoints() 

==> this prints '0' instead of a+b ?

I tried doing apd.Update() before but it didn't help.

What am I missing?

More information about the vtkusers mailing list