[vtkusers] Find closest point
    David Doria 
    daviddoria at gmail.com
       
    Mon Sep 19 11:26:40 EDT 2011
    
    
  
On Mon, Sep 19, 2011 at 11:19 AM, nuno.jf <nunofernandes7 at gmail.com> wrote:
> Well, this is strange, my application crashes each time I run it since I
> applied vtkWindowedSincPolyDataFilter.
> I read my point cloud (vtkpolydata) and then I apply the filter to it. What
> could be wrong?
>
> vtkPolyDataReader * imp = vtkPolyDataReader::New();
> imp -> SetFileName (argv[1]);
> imp -> Update();
>
> vtkWindowedSincPolyDataFilter *smoother =
> vtkWindowedSincPolyDataFilter::New();
>  smoother->SetInput(imp -> GetOutput());
>  smoother->SetNumberOfIterations(15);
>  smoother->SetPassBand(.001);
>  smoother->Update();
Does the example work for you?
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/WindowedSincPolyDataFilter
If so, please post compilable, independent (not relying on external
data) code that demonstrates the crash.
David
    
    
More information about the vtkusers
mailing list