FindMeshDefects

FindMeshDefects[mreg]

finds defects in the mesh region mreg.

FindMeshDefects[mreg,{def1,}]

finds only the specified type of defects def1, .

FindMeshDefects[mreg,defects,format]

formats the results according to format specification.

Details and Options

  • By default, FindMeshDefects gives a mesh region with defects highlighted.
  • Possible geometrical defect types defi on surfaces include:
  • "HoleEdges"edges around a hole in the surface
    "TJunctionEdges"edges that form a T junction
    "TinyFaces"faces with near-zero area
    "OverlappingFaces"faces that overlap
  • Possible topological defect types defi include:
  • "IsolatedVertices"vertices without incident edges
    "DanglingEdges"edges without incident faces
    "SingularEdges"edges with more than two incident faces
    "SingularVertices"vertices with a non-disc neighborhood
    "TinyComponents"tiny connected mesh components
    "FlippedFaces"faces that point inward
  • Possible format specifications include:
  • Automaticmesh region with defects highlighted
    "Cell"association with mesh cells for each defect type
    "CellIndex"association with mesh cell indexes for each defect type
  • FindMeshDefects takes a PlotLegends option as well the options of MeshRegion.
  • With the setting PlotLegendsAutomatic, a legend is produced for each type of defect.

Examples

open allclose all

Basic Examples  (1)

Find defects in a 3D mesh:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Scope  (10)

Options  (14)

See Also

RepairMesh  Printout3D  MeshRegion  BoundaryMeshRegion

Introduced in 2016
(11.0)