<div dir="ltr">I think you are not using a resonable value for targetReduction (400), try using 0 to 1.<br><br>A value of 0.9 should do what you want.<br><br><br>Jothy<br><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 9:52 AM, Alle Meije Wink <span dir="ltr"><<a href="mailto:a.m.wink@gmail.com" target="_blank">a.m.wink@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 vtkDecimate by vtkDecimatePro does run (need to comment out the SetMaximumNumberOfSquawks line), but now there is no isosurface on my screen any more (all blank)!<br>
<br>Am I making a simple beginners' mistake here? Are more options needed for vtkDecimatePro? And should vtkDecimate not work in (the Ubuntu version of) VTK v5.8.0-5?<br><br>Thanks for your help,<br>Alle Meije Wink<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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: <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></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>