[vtkusers] decimatePro Bug? is there a fix?

Sebastien_MARAUX maraux at ondim.fr
Fri May 10 04:32:52 EDT 2002


Hello,

I still do not understand what decimatepro is doing of my 
parameters : 

When I set PreserveTopologyOn() and 
SetMaximumError(0.0), decimatePro keeps decimating till 
the target is reach (default setting = 0.9), which is 
impossible considering my scene / terrain without having an 
error > 0.0.

Am I doing something wrong?
I aldready managed to make decimatePro work in other 
apps, this is the first time it behaves like this.

Is there a probleme with single / multi threading (i am in 
single) ?

My code 

/*=========================================*/
 vtkDecimatePro *decimation2 = vtkDecimatePro::New();
 decimation2->SetInput(a_polydata_of_80000_triangles);
 decimation2->PreserveTopologyOn();
 decimation2->SetMaximumError(0.0);
 decimation2->Update();
/*========================================*/

then :
decimation->Getoutput() = a_polydata_of_8000_triangles
, that is impossible without an error > 0.0

Do you have any idea?

Sebastien MARAUX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020510/e8e3cbcd/attachment.htm>


More information about the vtkusers mailing list