> For the complete documentation index, see [llms.txt](https://docs.meshmorpher.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meshmorpher.com/graph/repair/compact-mesh.md).

# Compact Mesh

<div align="left"><figure><img src="/files/GzRQoj3X1U59IRTOyTWc" alt=""><figcaption></figcaption></figure></div>

```
/**
 * Node that compacts mesh data by removing unused elements.
 * 
 * Cleans up vertex, edge, and triangle indices to create
 * a contiguous mesh structure.
 * 
 * Usage:
 * 1. Connect mesh input
 * 2. Output is the compacted mesh
 */
```
