How does VTK implement model error detection and repair?

How does VTK implement model error detection and repair?
I want to implement the function that is checking bad edges、holes、Bad triangle(including bad orientation、intersections、Overlap)and repairing them. How VTK to do it?

I believe TTK as great tools for that.

@Charles_Gueunet

What type of data set are you using ? Surface or Volume ?

TTK may help you find holes and bad neighborhoods as these are topological information.
For overlap or bad orientation, you may try Blender which also have some tools for mesh reparation.

(VTK itself focuses more on mesh visualization and does not offer much tools for the mesh reparation)

Thanks. I am using triangular surface data in stl format.