# Match Mesh Edge

## <img src="/files/msSBOVJ8Fe0B8xDVTEQI" alt="" data-size="line"> Match Mesh Edge <a href="#profiles" id="profiles"></a>

The **MatchMeshEdge** command adjusts the edges of an open mesh to align them with adjacent mesh edges. This is particularly useful for repairing and closing gaps in meshes. It ensures that no part of the mesh moves beyond a specified tolerance, making it suitable for precise adjustments.

![](https://docs.mcneel.com/rhino/8/help/en-us/image/topic_illustrations/stlrepair_074.png)

***

**Key Features**

* Aligns open edges to adjacent mesh edges by matching vertices or splitting edges as needed.
* Operates on the entire mesh or selected edges for targeted corrections.
* Supports a progressive matching approach to address small gaps first and gradually adjust larger ones.
* Prevents excessive distortion by adhering to user-defined tolerance limits.

***

**Usage Guidelines**

1. **Select edges or a complete mesh** to apply the command.
2. **Set the distance tolerance** to define the maximum adjustment allowed.
3. **Run the command** and review the adjustments made to the mesh edges.

*Note*: When working with large tolerances on a complete mesh, unexpected results may occur. It is recommended to use higher tolerances only for specific edges.

***

**Command-Line Options**

* **PickEdges**\
  Allows selection of specific edges to match, ensuring targeted adjustments.
* **DistanceToAdjust**\
  Specifies the maximum distance vertices or edges can move during matching.
* **RatchetMode**\
  Enables a multi-pass adjustment process, starting with smaller tolerances and progressing to the specified maximum tolerance.
* **AverageVertexesToAdjust**\
  Moves vertices to an averaged position rather than relocating one vertex to another.
* **Join**\
  Joins input meshes with aligned vertices, effectively merging them.

***

**Tips for Best Results**

* Use this command to repair gaps in meshes intended for 3D printing, especially for STL/SLA models.
* Smaller tolerances are recommended for precise work and to avoid unintended distortions.
* Always verify the results when working on complex meshes to ensure optimal performance and geometry.

This tool is ideal for improving the quality and continuity of mesh geometries while maintaining control over tolerances and edge alignment.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rhinoartisan.com/commands/mesh/mesh-repair/match-mesh-edge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
