[vtkusers] FillHolesFilter

maillist_xx at sina.com maillist_xx at sina.com
Mon Nov 1 09:56:43 EDT 2010


 Hi all,
      I just want to fill the holes in my mesh,but when I use vtkFillHolesFilter to deal with it,the mesh was disappear, here is part of my code.
 
     vtkPolyData* polydata3 = vtkPolyData::New();
   polydata3->ShallowCopy(marchingCubes3->GetOutput());
   vtkFillHolesFilter *fillHoleFilter = vtkFillHolesFilter::New();
   fillHoleFilter->SetInputConnection(polydata3->GetProducerPort());
   fillHoleFilter->Update();
   vtkPolyDataMapper *polydataMapper3 = vtkPolyDataMapper::New();
   polydataMapper3->ScalarVisibilityOff();
   polydataMapper3->SetInputConnection(fillHoleFilter->GetOutputPort());
   vtkActor *polydataActor3 = vtkActor::New(); 
 
   polydataActor3->SetMapper(polydataMapper3);
   polydataActor3->GetProperty()->SetRepresentationToSurface();
   polydataActor3->GetProperty()->SetColor(1,1,1);
 
any advice will be appreciated,thanks!!
 
XuXing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101101/6abbd6fc/attachment.htm>


More information about the vtkusers mailing list