Reputation: 1057
I'm looking for some library or an algorithm that will fill holes in 3D mesh. I need it only for filling flat meshes, but in 3D space. Something like that provides Blender
. For example on the first image below I have a plane with hole.
Now I'm selecting vertices and ALT+F
will do the work like on this second image:
I know that CGAL can do something like that, but I don't need whole library for simple task like that. Is there any small librares or some open source algorithms?
Upvotes: 2
Views: 1663
Reputation: 21317
Typically by hole filling in 3D triangular meshes, one understands the problem of closing disc-like hole with triangles, where the hole is surrounded by a loop of edges having no triangle from one side.
But according to your picture, the task is to create triangles filling the space in between two existing pieces of mesh.
The algorithm for performing that can be as follows:
Another option is to write a specialized algorithm for stitching two holes, for example:
As to a library where such algorithms are implemented, one can look at open-source MeshLib, where such function is named buildCylinderBetweenTwoHoles.
Upvotes: 0