[vtkusers] using vtkCleanPolyData

Emilio Ponce yosoycore at gmail.com
Mon Aug 14 13:07:24 EDT 2006


Hi,

I'm trying to use the vtkCleanPolyData class, in order to represent my
vtkPolyData model without the points I've tagged as "deleted" (i've
done this with the vtkPolyData->DeletePoint(id) method).

This is my code:

        vtkCleanPolyData *Clean = vtkCleanPolyData::New();
        Clean->SetInput(modelo_sfcie); //modelo_sfcie is my model
	Clean->SetTolerance(0.0);
        Clean->Update();

Maybe i'm doing something wrong, because after doing that the model
seems to be exactly the same and the number of points is the same too.

Can someone tell me what i'm doing wrong?

Thanks,

Emilio



More information about the vtkusers mailing list