# Stitch

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

```
/**
 * Node that stitches mesh boundaries together.
 * 
 * Connects open edges between meshes using weight-based or
 * proximity-based vertex matching.
 * 
 * Usage:
 * 1. Connect two meshes with matching boundaries
 * 2. Select stitching method (Weights or Proximity)
 * 3. Output is the stitched mesh
 */
```

| Parameter                                          | Description                                                                                                                    |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| <p>StitchingType</p><p><code>enum</code></p>       | Specifies the method used for stitching geometry (either by weights or proximity).                                             |
| <p>UseEdgeClosestPoint</p><p><code>bool</code></p> | If true, matches vertices to the closest point on mesh edges instead of exact vertex correspondence.                           |
| <p>WeightThreshold</p><p><code>float</code></p>    | Controls the strictness of weight-based matching; higher values allow more lenient matches (used only with Weights stitching). |
| <p>VertexThreshold</p><p><code>float</code></p>    | Sets the maximum allowed distance for proximity-based matching (used only with Proximity stitching).                           |


---

# 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.meshmorpher.com/graph/geometry/stitch.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.
