Filling holes in 3D mesh using Meshlab
Common problem with 3D meshes is incomplete surface with holes. That could be caused by imperfect reconstruction algorithm or low quality in depth sensor.
We can easily repair surfaces of mesh in Meshlab program. Meshlab includes special filter for filling holes in 3D meshes.
First open Meshlab. Then import mesh: File > Import Mesh.
Here is an example of mesh with holes
Now apply filter. Open Filters > Remeshing, Simplification … > Close Holes
We will get a popup
Enter value to input Max size to be closed and click Apply
Here is a result
Looks good, isn’t it?
That’s it. Easy and quick! No need in writing special program for filling holes. Everything works out-of-box.