Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a mesh geometry from points without including exterior concave perimeter areas or holes
ResourceFunction["NonConvexHullMesh"][points,sensitivity] generates a MeshRegion from points excluding triangles that are larger than sensitivity. |
NonConvexHullMesh generates a mesh from points while preserving the result’s nonconvex shape:
In[1]:= |
In[2]:= |
Out[2]= |
In[3]:= |
Out[3]= |
Increasing the sensitivity value causes small nonconvex regions to be included:
In[4]:= |
Out[4]= |
Three-dimensional data is supported:
In[5]:= |
Out[6]= |
In[7]:= |
Out[7]= |
For large sensitivity values, the result is equivalent to ConvexHullMesh:
In[8]:= |
In[9]:= |
Out[9]= |
In[10]:= |
Out[10]= |
Setting the sensitivity value too low will result in holes in the MeshRegion:
In[11]:= |
Out[12]= |
If the sensitivity is very small, then all triangles will be excluded:
In[13]:= |
Out[14]= |
Sensitivity is measured in the coordinate system of the region, so very large geometries will require large sensitivity values:
In[15]:= |
Out[16]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License