Indeed the number 0.9 gave a good result! Thanks. I seem to remember that in vtkDecimate it had to be a number >1 for any reduction to take place.<br><br>best wishes <br>Alle Meije<br><br><div class="gmail_quote">On 12 June 2012 14:29, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">vtkDecimate was removed from VTK several years ago because it was a<br>
patented algorithm.<br>
<div class="im"><br>
On Tue, Jun 12, 2012 at 4:52 AM, Alle Meije Wink <<a href="mailto:a.m.wink@gmail.com">a.m.wink@gmail.com</a>> wrote:<br>
</div><div><div class="h5">> Hi -<br>
><br>
> Trying to use an old VTK script in TCL that contains the lines<br>
><br>
> vtkSmoothPolyDataFilter smooth<br>
> smooth SetInput [isosurface GetOutput]<br>
> smooth SetNumberOfIterations 5<br>
><br>
> vtkTriangleFilter triangulate<br>
> triangulate SetInput [smooth GetOutput]<br>
><br>
> vtkDecimate reduce<br>
> reduce SetInput [triangulate GetOutput]<br>
> reduce SetTargetReduction 400<br>
> reduce SetMaximumNumberOfSquawks 400<br>
><br>
> vtkPolyDataMapper IsoMapper<br>
> BrainIsoMapper SetInput [reduce GetOutput]<br>
><br>
> When I run the script it says<br>
><br>
> $ vtk SurfaceTrans.tcl<br>
> Error in startup script: invalid command name "vtkDecimate"<br>
> while executing<br>
> "vtkDecimate reduce"<br>
> (file "SurfaceTrans.tcl" line 42)<br>
><br>
> Not sure why vtkDecimate does not work? Anyway I found that replacing<br>
> vtkDecimate by vtkDecimatePro does run (need to comment out the<br>
> SetMaximumNumberOfSquawks line), but now there is no isosurface on my screen<br>
> any more (all blank)!<br>
><br>
> Am I making a simple beginners' mistake here? Are more options needed for<br>
> vtkDecimatePro? And should vtkDecimate not work in (the Ubuntu version of)<br>
> VTK v5.8.0-5?<br>
><br>
> Thanks for your help,<br>
> Alle Meije Wink<br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
<br>
--<br>
</div>Unpaid intern in BillsBasement at noware dot com<br>
</blockquote></div><br>