[vtkusers] Re: decimatePro Bug? is there a fix?

Will Schroeder will.schroeder at kitware.com
Fri May 10 07:52:28 EDT 2002


Looking at the source code I see that the error metric is ignored. We'll 
look at repairing it in the future.
Will

At 10:32 AM 5/10/2002 +0200, Sebastien_MARAUX wrote:
>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/8fb1597e/attachment.htm>


More information about the vtkusers mailing list