[vtkusers] accessing number of points/cells/polygons/etc... in vt kPolyData

Seungbum Koo koosb at stanford.edu
Thu May 23 12:50:36 EDT 2002


Hi,

I think you have to update the surface data first like below.
popSurface->Update();

Seungbum

At 03:37 ¿ÀÈÄ 2002-05-23 +0200, Andreu, Jean-Philippe wrote:
>Hi All,
>
>In the example /Examples/Modelling/Cxx/finance.cxx, after getting the
>isosurface for the original population (popSurface->SetValue(0,0.01)), I
>tried to access the number of points/polygons/cells in the vtkPolyData:
>
>vtkIdType numCells = (popSurface->GetOutput())->GetNumberOfCells();
>vtkIdType numPts = (popSurface->GetOutput())->GetNumberOfPoints();
>vtkIdType numPolys = (popSurface->GetOutput())->GetNumberOfPolys();
>
>Unfortunately numCells == numPts == numPolys == 0 even though when I dump
>the vtkPolyData (popSurface->GetOutput()) into a file I have 8820 cells,
>4418 points, etc...
>
>Any idea?
>
>Thanx in advance for your help,
>
>Jean-Philippe
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list