RepairMesh

RepairMesh[mreg]

repairs defects in the mesh region mreg.

RepairMesh[mreg,{def1,}]

repairs only the specified defects def1,.

Details and Options

  • RepairMesh repairs defects in mesh-based regions.
  • Possible geometrical defects on surface include:
  • "HoleEdges"close holes in the surface
    "TJunctionEdges"remove T junctions
    "TinyFaces"fix faces with near-zero area
  • Possible topological defects include:
  • "IsolatedVertices"remove vertices without incident edges
    "DanglingEdges"remove edges without incident faces
    "SingularVertices"fix vertices with a non-disc neighborhood
    "TinyComponents"remove tiny connected mesh components
    "FlippedFaces"fix faces that point inward
  • RepairMesh has the same options as MeshRegion.

Examples

open allclose all

Basic Examples  (1)

Fill holes:

Scope  (8)

Specification  (8)

"DanglingEdges":

"FlippedFaces":

"HoleEdges:

"IsolatedVertices":

"SingularVertices":

"TinyComponents":

"TinyFaces":

"TJunctionEdges":

Options  (11)

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)

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

Individual cells can be highlighted using their cell index:

Or by the cell itself:

PlotTheme  (2)

Use a theme with grid lines and a legend:

Use a theme to draw a wireframe:

Introduced in 2016
 (11.0)