<P> Hi all,</P>
<P> 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.</P>
<P> </P>
<P> vtkPolyData* polydata3 = vtkPolyData::New();<BR> polydata3->ShallowCopy(marchingCubes3->GetOutput());<BR> vtkFillHolesFilter *fillHoleFilter = vtkFillHolesFilter::New();<BR> fillHoleFilter->SetInputConnection(polydata3->GetProducerPort());<BR> fillHoleFilter->Update();</P>
<P> vtkPolyDataMapper *polydataMapper3 = vtkPolyDataMapper::New();<BR> polydataMapper3->ScalarVisibilityOff();<BR> polydataMapper3->SetInputConnection(fillHoleFilter->GetOutputPort());<BR> vtkActor *polydataActor3 = vtkActor::New(); <BR> <BR> polydataActor3->SetMapper(polydataMapper3);<BR> polydataActor3->GetProperty()->SetRepresentationToSurface();<BR> polydataActor3->GetProperty()->SetColor(1,1,1);</P>
<P> </P>
<P>any advice will be appreciated,thanks!!</P>
<P> </P>
<P>XuXing</P>