Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Fill holes in MeshRegion objects
ResourceFunction["FillMeshHoles"][reg] fills holes in MeshRegion reg. | |
ResourceFunction["FillMeshHoles"][reg,max] fills holes smaller than max. | |
ResourceFunction["FillMeshHoles"][reg,{min,max}] fills holes that are larger than min but smaller than max. |
Fill holes in a MeshRegion:
In[1]:= | ![]() |
Out[1]= | ![]() |
Fill only holes that are smaller than 0.0012:
In[2]:= | ![]() |
Out[2]= | ![]() |
Fill only holes that are between 0.0012 and 0.0022:
In[3]:= | ![]() |
Out[3]= | ![]() |
Fill only holes that are larger than 0.0022:
In[4]:= | ![]() |
Out[4]= | ![]() |
FillMeshHoles supports MeshRegion objects in two or three dimensions where the RegionEmbeddingDimension is the same as the RegionDimension. This ball is mostly hollow. FillMeshHoles makes it solid:
In[5]:= | ![]() |
Out[5]= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
FillMeshHoles only supports a MeshRegion argument. Other regions must first be converted using DiscretizeRegion:
In[7]:= | ![]() |
Out[7]= | ![]() |
In[8]:= | ![]() |
Out[8]= | ![]() |
In[9]:= | ![]() |
Out[9]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License