# Generate Cage

<div align="left"><figure><img src="https://2202237093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FililYtTOKJkeJpzbCa02%2Fuploads%2F8EyIOP5bSg63ssSleRfZ%2Fimage.png?alt=media&#x26;token=8c7dadab-46c6-4fc4-a3b6-14f61b974299" alt=""><figcaption></figcaption></figure></div>

```
/**
 * Node that generates a cage mesh for deformation.
 * 
 * Creates a low-resolution control cage around the input mesh
 * for use with cage-based deformation.
 * 
 * Usage:
 * 1. Connect mesh input
 * 2. Configure cage density and smoothing
 * 3. Click Apply to generate cage
 */
```

| Parameter                                          | Description                                                                                |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| <p>Density</p><p><code>float</code></p>            | Controls the density of the generated cage mesh; higher values create more detailed cages. |
| <p>SmoothStrength</p><p><code>float</code></p>     | Determines the strength of the smoothing applied to the cage mesh.                         |
| <p>SmoothIterations</p><p><code>integer</code></p> | Number of smoothing iterations to apply to the cage mesh.                                  |
| <p>BoundingBoxOffset</p><p><code>float</code></p>  | Offset distance to expand the bounding box around the target mesh.                         |
