[vtkusers] Newbie Question

Mauricio Reyes maurey at ctcinternet.cl
Tue Oct 10 03:42:55 EDT 2000


Hi My name is Mauricio am a student of engineering, am a new  user of
vtk and am trying to count the
 number of cells in a dataset (especifically counts the number of cells
generated by vtkMarchingCubes or vtkContourFilter (is the same I
think)), then I tried this:

 set numcells [GetNumberOfCells]

 but doesn't work , aldo I tried :

vtkContourFilter myDataset
....
....
...
 set numcells [ [myDataset GetOutput] GetNumberOfCells]

 but guess..it doesn't work either. :) .. ( I receive numcells=0  )
  Do you know what is the right form ?

 thanks in advance
   Mauricio







More information about the vtkusers mailing list