[vtkusers] I'm in a trouble, help please

Nour Mestiri nourmestiri at yahoo.fr
Mon Mar 30 14:02:53 EDT 2009


Hi all vtk users.
Please, i need yor help. I'm really in a trouble.
I want to extract some particular features from polydats saved as VTK files.. When i read those files, the quality of the image is not well, so i have wrong resulats of extraction.
I tried to smooth the surafce of the poydata but i don't have good results.
I post here the code i use and i want to know if ther's another way to have better result.
Thank you so much.
 
vtkPolyDataReader *reader = vtkPolyDataReader::New();
reader->SetFileName(fileName.vtk);
reader->Update();
 
vtkSmoothPolyDataFilter *smooth = vtkSmoothPolyDataFilter::New();
smooth->SetInput(reader->GetOutput());
smooth->SetNumberOfIterations(100);
smooth->BoundarySmoothingOn();
smooth->SetFeatureAngle(120);
smooth->SetEdgeAngle(90);
smooth->SetRelaxationFactor(0.025);


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


More information about the vtkusers mailing list