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:

Scope  (10)

Specification  (10)

"DanglingEdges":

"FlippedFaces":

"HoleEdges":

"IsolatedVertices":

"OverlappingFaces":

"SingularEdges":

"SingularVertices":

"TinyComponents":

"TinyFaces":

"TJunctionEdges":

Options  (14)

MeshCellHighlight  (2)

MeshCellHighlight allows you to specify highlighting for parts of a MeshRegion:

Individual cells can be highlighted using their cell index:

Or by the cell itself:

MeshCellLabel  (2)

MeshCellLabel can be used to label parts of a MeshRegion:

Individual cells can be labeled using their cell index:

Or by the cell itself:

MeshCellMarker  (1)

MeshCellMarker can be used to assign values to parts of a MeshRegion:

Use MeshCellLabel to show the markers:

MeshCellShapeFunction  (2)

MeshCellShapeFunction allows you to specify functions for parts of a MeshRegion:

Individual cells can be drawn using their cell index:

Or by the cell itself:

MeshCellStyle  (2)

MeshCellShapeFunction allows you to specify functions for parts of a MeshRegion:

Individual cells can be highlighted using their cell index:

Or by the cell itself:

PlotLegends  (3)

Use editable placeholders as the legend:

Use the type being used as the legend:

Use Placed to control the placement of legends:

PlotTheme  (2)

Use a theme with grid lines and a legend:

Use a theme to draw a wireframe:

Introduced in 2016
 (11.0)