> For the complete documentation index, see [llms.txt](https://community.threekit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community.threekit.com/platform-documentation/catalog-2.0-docs/project-data/operators/polymesh-operators/stretch.md).

# Stretch

The Stretch Operator "stretches" a 3D mesh along a specified axis, by a specified distance, within a specified range.

### Properties

The Stretch Operator has three properties; Axis, Stretch Distance, and Margin.

Consider a sphere with a radius of 1 meter, viewed orthogonally from the top, with the x-axis of the stretch operator as the target.

![](https://content.gitbook.com/content/efQOUWnh8WUpteoAKY9N/blobs/Le11IMubNLpj1PrpFVGr/Stretch_1.png)

***

Increasing the Stretch Distance to 1.0, the object is uniformly stretched along its x-axis from the center, on both sides.

![](https://content.gitbook.com/content/efQOUWnh8WUpteoAKY9N/blobs/GXjTJuAUBjaVlq0l5L7k/Stretch_2.png)

Increasing the Margin has the effect of limiting the application of the stretch operation. In the figure below, the outer 0.5 meters (the Margin value) on either side of the sphere has been excluded from the stretch operation, effectively retaining the sphere's original shape over that interval.

![](https://content.gitbook.com/content/efQOUWnh8WUpteoAKY9N/blobs/FIUenvkZ5utG0wBpE2uM/Stretch_3.png)

### Interactive Demo

### In Practice

The use-case outlined in the custom script action article presents a practical application of this operator.

Consider one of the table legs. Without use of the stretch operator, expanding the width of the table provides an undesirable result because it not only increases the width of the leg, it also increases the thickness of the leg's perpendicular section. See the figure below.

![](https://content.gitbook.com/content/efQOUWnh8WUpteoAKY9N/blobs/JCLTrI6efIm9o61KZxaN/Stretch_4.png)

The Margin of the Stretch Operator is very useful in this context because we can limit the affect of the stretch operation, meaning we can effectively target the part of the leg that should be expanded, while ensuring the original geometry of the perpendicular section remains static.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community.threekit.com/platform-documentation/catalog-2.0-docs/project-data/operators/polymesh-operators/stretch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
