Here's an interesting blog post about filling in holes in meshes:
https://erkaman.github.io/posts/hole_filling.html
related project (MIT-licensed executable):
https://github.com/Erkaman/hole_fixer
which uses libigl (MPL2-licensed) heavily:
https://github.com/libigl/libigl
--Ben