> 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/geometry/stitch.md).

# 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).                           |
