[vtkusers] vtkDecimatePro and vtkDecimate behaviour?

Alle Meije Wink a.m.wink at gmail.com
Tue Jun 12 08:39:28 EDT 2012


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.

best wishes
Alle Meije

On 12 June 2012 14:29, Bill Lorensen <bill.lorensen at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120612/9d1d3348/attachment.htm>


More information about the vtkusers mailing list