[vtkusers] vtkDecimatePro and vtkDecimate behaviour?

Jothybasu Selvaraj jothybasu at gmail.com
Tue Jun 12 04:59:47 EDT 2012


I think you are not using a resonable value for targetReduction (400), try
using 0 to 1.

A value of 0.9 should do what you want.


Jothy

On Tue, Jun 12, 2012 at 9:52 AM, Alle Meije Wink <a.m.wink at gmail.com> wrote:

> Hi -
>
> Trying to use an old VTK script in TCL that contains the lines
>
> vtkSmoothPolyDataFilter smooth
>    smooth SetInput [isosurface GetOutput]
>    smooth SetNumberOfIterations 5
>
> vtkTriangleFilter triangulate
>     triangulate SetInput [smooth GetOutput]
>
> vtkDecimate reduce
>     reduce SetInput [triangulate GetOutput]
>     reduce SetTargetReduction 400
>     reduce SetMaximumNumberOfSquawks 400
>
> vtkPolyDataMapper IsoMapper
>     BrainIsoMapper SetInput [reduce GetOutput]
>
> When I run the script it says
>
> $ vtk SurfaceTrans.tcl
> Error in startup script: invalid command name "vtkDecimate"
>     while executing
> "vtkDecimate reduce"
>     (file "SurfaceTrans.tcl" line 42)
>
> 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)!
>
> 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?
>
> Thanks for your help,
> Alle Meije Wink
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120612/b2f5c611/attachment.htm>


More information about the vtkusers mailing list