[vtkusers] vtkDecimatePro and vtkDecimate behaviour?

Bill Lorensen bill.lorensen at gmail.com
Tue Jun 12 08:29:06 EDT 2012


vtkDecimate was removed from VTK several years ago because it was a
patented algorithm.

On Tue, Jun 12, 2012 at 4: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
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list