How to patch a mesh hole


Learn how to fill a hole on a surface mesh. 


Applies to:

  • Surface Meshes with Holes
  • Scanned Meshes with gaps and missing surfaces


1. Start with a Mesh that has a hole in its surface. 


2. Use the Implicit Body from Mesh block to convert the Bad Mesh.

    • By converting the Mesh to the Implicit Body, the body will attempt to generate in the missing area of the mesh. 


3. Create a Voxel Grid using the Voxel Grid from Mesh block. 


4. Use the Implicit Body from Voxel Grid block to create a solid body with the hole patched. 

    • When the Voxel Grid is created, it offsets on the surface of the mesh; therefore, use the Offset Body block to compensate for this.



5. The final step is to convert the Implicit Body to a Mesh.



And that’s it! You’ve successfully filled a hole in a Mesh


Smoothing the patch:

mceclip0.pngIf the patch has a lot of unwanted texture, you can smooth it out by following these steps:


1. Create a smaller hole using the Remove Mesh Faces by Body block. A smaller hole allows for less variation when filling it. 



2. Then repeat the hole filling process as explained above. 



By repeating this process multiple times and adjusting the hole location, you can achieve a smoother result.



Are you still having issues? Contact the support team, and we’ll be happy to help!

Download the Example file:

More on this topic:


 mesh fill scan how-to hole patch surface mesh scanned mesh 
Was this article helpful?