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:

Wolfram Research (2016), FindMeshDefects, Wolfram Language function, https://reference.wolfram.com/language/ref/FindMeshDefects.html.

Text

Wolfram Research (2016), FindMeshDefects, Wolfram Language function, https://reference.wolfram.com/language/ref/FindMeshDefects.html.

CMS

Wolfram Language. 2016. "FindMeshDefects." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FindMeshDefects.html.

APA

Wolfram Language. (2016). FindMeshDefects. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindMeshDefects.html

BibTeX

@misc{reference.wolfram_2023_findmeshdefects, author="Wolfram Research", title="{FindMeshDefects}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FindMeshDefects.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_findmeshdefects, organization={Wolfram Research}, title={FindMeshDefects}, year={2016}, url={https://reference.wolfram.com/language/ref/FindMeshDefects.html}, note=[Accessed: 19-March-2024 ]}