[vtkusers] FillHolesFilter

Bill Lorensen bill.lorensen at gmail.com
Mon Nov 1 11:25:16 EDT 2010


Try:
marchingCubes3-Update();
before the ShallowCopy.

2010/11/1  <maillist_xx at sina.com>:
>  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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list