[vtkusers] Find closest point
    nuno.jf 
    nunofernandes7 at gmail.com
       
    Mon Sep 19 17:46:34 EDT 2011
    
    
  
I tried passing the polydata through vtkTriangleFilter before applying
smoothing, but I got the same error.
I attached the source file I'm using: 
http://vtk.1045678.n5.nabble.com/file/n4820603/test.txt test.txt 
I don't understand why does happens. 
//Read polydata 
vtkPolyDataReader * imp1 = vtkPolyDataReader::New();
imp1 -> SetFileName(argv[1]);
imp1 -> Update();
I tried 
vtkPolyData * polydata= vtkPolyData::New();
polydata= imp1 -> GetOutput();
polydata-> Update();
//vtkTriangleFilter
vtkTriangleFilter * teste = vtkTriangleFilter::New();
teste -> SetInput(polydata);
teste -> Update();
	
//WindowedSincPolyDataFilter	
vtkWindowedSincPolyDataFilter * smoother =
vtkWindowedSincPolyDataFilter::New();
smoother->SetInput(teste->GetOutput());  
smoother->SetNumberOfIterations(20);
smoother->SetPassBand(0.1);
smoother->Update();
--
View this message in context: http://vtk.1045678.n5.nabble.com/Find-closest-point-tp4816065p4820603.html
Sent from the VTK - Users mailing list archive at Nabble.com.
    
    
More information about the vtkusers
mailing list