[vtkusers] Using vtkCleanPolyData
yosoycore at gmail.com
Wed Aug 23 07:42:04 EDT 2006
I have a vtkPolyData model called 'modelo_sfcie' and i'm trying to use
the class vtkCleanPolyData in order to delete some points and cells
marked previously as 'deleted'. I've done this marks with the methods
DeletePoint() and DeleteCell() of 'modelo_sfcie'.
Mi code for doing the deletion is:
vtkPolyDataReader * modelo=vtkPolyDataReader::New();
vtkPolyData * modelo_sfcie=modelo->GetOutput();
/* Mark as deleted of some cells and points*/
// Cleaning of vtkPolyData modelo_sfcie
vtkCleanPolyData *Cleaner = vtkCleanPolyData::New();
// new vtkPolyData model based in the output of Clean
modelo_final = Cleaner->GetOutput();
But the number of triangles and cells of the two models is the same,
so I'm doing something wrong.
Please can anyone help me? I'm trying to find a solution for a week!!
More information about the vtkusers