[vtkusers] How to Connect vtkUnstructuredGridReader with vtkUnstructuredGrid

Guido Aselmann aselmann at gmx.de
Thu Aug 19 09:27:28 EDT 2004


Hi,

I want to get the GetNumberOfPoints of a file read with
vtkUnstructuredGridReader 

I think vtkUnstructuredGrid.GetNumberOfPoints would do the job

I try 

import vtk
reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName("tracking.vtk")

ugrid = vtk.vtkUnstructuredGrid()
print ugrid.GetNumberOfPoints(reader)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
TypeError: function takes exactly 0 arguments (1 given)



-- 
NEU: Bis zu 10 GB Speicher für e-mails & Dateien!
1 GB bereits bei GMX FreeMail http://www.gmx.net/de/go/mail




More information about the vtkusers mailing list