[vtkusers] FillHolesFilter

Karthik Krishnan karthik.krishnan at kitware.com
Mon Nov 1 10:23:12 EDT 2010


What version of VTK are you using ? I fixed a bug, where the filter
fails to tessellate holes in the trivial case: when the boundary loop
spans a single triangle.

  http://vtk.org/gitweb?p=VTK.git;a=history;f=Graphics/vtkFillHolesFilter.cxx;h=e40eeaa4c742b01095af0fd4cea91792493e9522;hb=HEAD

Also the filter has issues with holes are pinched, (if they self
intersect at a node, think of an "8"). But it should not yield 0 cells
in the output. The version prior to the bug fix, above will though, if
your hole spans a single triangle alone, so I suspect that that's your
issue. Update and let us know.

--
karthik




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