RepairMesh
✖
RepairMesh
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 allclose allBasic Examples (1)Summary of the most common use cases
Scope (8)Survey of the scope of standard use cases
Specification (8)

https://wolfram.com/xid/0rs5fpkgm-bq9h0u


https://wolfram.com/xid/0rs5fpkgm-dh63fl


https://wolfram.com/xid/0rs5fpkgm-276ggg


https://wolfram.com/xid/0rs5fpkgm-meu35j


https://wolfram.com/xid/0rs5fpkgm-30sk9e


https://wolfram.com/xid/0rs5fpkgm-xyfduz


https://wolfram.com/xid/0rs5fpkgm-445x4q


https://wolfram.com/xid/0rs5fpkgm-cdppr9

Options (11)Common values & functionality for each option
MeshCellHighlight (2)
MeshCellHighlight allows you to specify highlighting for parts of a MeshRegion:

https://wolfram.com/xid/0rs5fpkgm-k8yrwh

https://wolfram.com/xid/0rs5fpkgm-b75uqk

Individual cells can be highlighted using their cell index:

https://wolfram.com/xid/0rs5fpkgm-wd4xyh

https://wolfram.com/xid/0rs5fpkgm-fdayh


https://wolfram.com/xid/0rs5fpkgm-kf3njc

https://wolfram.com/xid/0rs5fpkgm-s6bmyr

MeshCellLabel (2)
MeshCellLabel can be used to label parts of a MeshRegion:

https://wolfram.com/xid/0rs5fpkgm-lx3493

https://wolfram.com/xid/0rs5fpkgm-12f6vz

Individual cells can be labeled using their cell index:

https://wolfram.com/xid/0rs5fpkgm-b4av8t

https://wolfram.com/xid/0rs5fpkgm-24qdb2


https://wolfram.com/xid/0rs5fpkgm-u8fjbz

https://wolfram.com/xid/0rs5fpkgm-qy49dy

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

https://wolfram.com/xid/0rs5fpkgm-wdwd1p

https://wolfram.com/xid/0rs5fpkgm-uw1p8p

Use MeshCellLabel to show the markers:

https://wolfram.com/xid/0rs5fpkgm-73m0k6

https://wolfram.com/xid/0rs5fpkgm-1lykh

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

https://wolfram.com/xid/0rs5fpkgm-5bhjlh

https://wolfram.com/xid/0rs5fpkgm-7ujm5w

Individual cells can be drawn using their cell index:

https://wolfram.com/xid/0rs5fpkgm-rsoco

https://wolfram.com/xid/0rs5fpkgm-gu80ky


https://wolfram.com/xid/0rs5fpkgm-8v8krz

https://wolfram.com/xid/0rs5fpkgm-oy9dyv

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

https://wolfram.com/xid/0rs5fpkgm-8m7b79

https://wolfram.com/xid/0rs5fpkgm-xiqzva

Individual cells can be highlighted using their cell index:

https://wolfram.com/xid/0rs5fpkgm-t47mio

https://wolfram.com/xid/0rs5fpkgm-6rmszt


https://wolfram.com/xid/0rs5fpkgm-5dt6dw

https://wolfram.com/xid/0rs5fpkgm-4e587g

Wolfram Research (2016), RepairMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/RepairMesh.html.
Text
Wolfram Research (2016), RepairMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/RepairMesh.html.
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.
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
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: 20-March-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: 20-March-2025
]}