RepairMesh[mreg]
repairs defects in the mesh region mreg.
RepairMesh[mreg,{def1,…}]
repairs only the specified defects def1,….


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 "OverlappingFaces" fix faces that overlap - Possible topological defects include:
-
"IsolatedVertices" remove vertices without incident edges "DanglingEdges" remove edges without incident faces "SingularEdges" fix edges with more than two 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 all close allScope (8)
Options (11)
MeshCellHighlight (2)
MeshCellHighlight allows you to specify highlighting for parts of a MeshRegion:
MeshCellLabel (2)
MeshCellLabel can be used to label parts of a MeshRegion:
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:
MeshCellStyle (2)
MeshCellStyle allows you to specify functions for parts of a MeshRegion:
Related Guides
Related Workflows
- Make a 3D Printout
History
Text
Wolfram Research (2016), RepairMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/RepairMesh.html.
CMS
Wolfram Language. 2016. "RepairMesh." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RepairMesh.html.
APA
Wolfram Language. (2016). RepairMesh. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RepairMesh.html
BibTeX
@misc{reference.wolfram_2025_repairmesh, author="Wolfram Research", title="{RepairMesh}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/RepairMesh.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_repairmesh, organization={Wolfram Research}, title={RepairMesh}, year={2016}, url={https://reference.wolfram.com/language/ref/RepairMesh.html}, note=[Accessed: 13-August-2025]}