Remesh surfacic holes
Use this feature to remesh surface holes in 3D models, automatically filling gaps and refining mesh topology for improved asset quality and compatibility.
Read time 2 minutesLast updated 21 hours ago
API function: algo.remeshSurfacicHoles As part of your mesh optimization process, you can fill surfacic holes in your mesh model. This feature fills holes from selected occurrences, with the possibility to fill them with a continuous surface following local polygon density. This example shows a model before and after processing:

Parameters
Occurrences
Select occurrences on which to look for surfacic holes to fill.Max diameter
Set the maximum diameter (in mm) of the holes to find and fill. Holes with a bigger diameter are ignored and left as-is. Setting a negative value will result in all size of holes being considered and filled.Refine
Ticking this box adds a refinement pass after a simple filling of the hole, resulting in a more continuous surface. The density is set according to the local density around the hole. When unticked, the hole will be filled by created triangles linking the existing points, but without creating additional triangles. This will result in a less detailed filling surface. Here are the results obtained with and without refinement:

Number of neighbors
Select the number of neighbors to consider around the borders of the holes in order to infer the newly created surface. Increasing this value will increase the algorithm complexity. Reducing it is recommended when the model has sharp edges located at very close neighborhood.Fill with material
Set the ID of the material to use for the filling part created by the algorithm.Algorithm principle and limitations
The way this algorithm works is in two steps :- First, it computes a filling mesh by connecting border vertices together
- Second, when refine is ticked, it computes an aextrapolating surface to fill the hole based on Moving Least Square (MLS) approaches. It then progressively subdivises created triangles, projecting the new points on this extrapolating surface.
