[vtkusers] Memory usage increased after vtkDecimatePro filtering??

P Bai apbai at yahoo.com
Fri Apr 4 15:09:22 EST 2003


Hi all,

I've been playing with vtkDecimatePro lately in my
project. I can clearly see from the rendering result
that the number of triangles are reduced a lot. But to
my surprise, I noticed that the memory usage was
actually increased comparing to not doing decimation.
I'm using vtk 4.2 with VC++ 6.0 on Windows NT. Here's
what my code looks like - 

// someline is a huge and complicated line polydata

vtkTubeFilter* tube = vtkTubeFilter::New();
tube->SetNumberOfSides(8);
tube->SetInput(someline);
tube->SetRadius(0.25);
vtkTriangleFilter* triangleFilter =
vtkTriangleFilter::New();
triangleFilter->SetInput(tube->GetOutput());
vtkDecimatePro* decimate = vtkDecimatePro::New();
decimate->SetInput(triangleFilter->GetOutput());
decimate->SetTargetReduction(0.8);
mapper->SetInput(decimate->GetOutput());
decimate->Delete();
triangleFilter->Delete();
tube->Delete();


Did I do any wrong? 


Many thanks,

Ping


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



More information about the vtkusers mailing list