# Stitch

<div align="left"><figure><img src="https://2202237093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FililYtTOKJkeJpzbCa02%2Fuploads%2FqyTIZGiz3GSETOu1Mnzf%2Fimage.png?alt=media&#x26;token=2e79e532-89e5-406b-aa06-2131ace59692" 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).                           |
