<html>
Looking at the source code I see that the error metric is ignored. We'll
look at repairing it in the future.<br>
Will<br>
<br>
At 10:32 AM 5/10/2002 +0200, Sebastien_MARAUX wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Hello,</font><br>
<br>
<font face="arial" size=2>I still do not understand what decimatepro is
doing of my </font><br>
<font face="arial" size=2>parameters : </font><br>
<br>
<font face="arial" size=2>When I set PreserveTopologyOn() and
</font><br>
<font face="arial" size=2>SetMaximumError(0.0), decimatePro keeps
decimating till </font><br>
<font face="arial" size=2>the target is reach (default setting = 0.9),
which is </font><br>
<font face="arial" size=2>impossible considering my scene / terrain
without having an </font><br>
<font face="arial" size=2>error > 0.0.</font><br>
<br>
<font face="arial" size=2>Am I doing something wrong?</font><br>
<font face="arial" size=2>I aldready managed to make decimatePro work in
other </font><br>
<font face="arial" size=2>apps, this is the first time it behaves like
this.</font><br>
<br>
<font face="arial" size=2>Is there a probleme with single / multi
threading (i am in </font><br>
<font face="arial" size=2>single) ?</font><br>
<br>
<font face="arial" size=2>My code </font><br>
<br>
<font face="arial" size=2>/*=========================================*/</font><br>
<font face="arial" size=2> vtkDecimatePro *decimation2 =
vtkDecimatePro::New();<br>
decimation2->SetInput(a_polydata_of_80000_triangles);</font><br>
<font face="arial" size=2> decimation2->PreserveTopologyOn();<br>
decimation2->SetMaximumError(0.0);</font><br>
<font face="arial" size=2> decimation2->Update();</font><br>
<font face="arial" size=2>/*========================================*/</font><br>
<br>
<font face="arial" size=2>then :</font><br>
<font face="arial" size=2>decimation->Getoutput() =
a_polydata_of_8000_triangles<br>
, that is impossible without an error > 0.0<br>
<br>
Do you have any idea?<br>
Sebastien MARAUX</font></blockquote></html>