How to get the real boundary of the model?

Hi everyone,
I’m using vtkFeatureEdges to get model boundaries.Is there any method to eliminate the boundary caused by holes?