Implementing some meshlab function using VTK [Repair non Manifold Edges by splitting vertices]

Hello. I want to implement function “Repair non Manifold Edges by splitting vertices” of meshlab with VTK.

Are there any related example codes or vtkFilters?

Thank you.