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

![](/files/eguBkobINA8bbGd7N51D)

***

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

![](/files/IKFa6RvppDXrKkEI4pqt)

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.

![](/files/zVEgwfEMNyIos6sdZB9I)

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

![](/files/AGFTllGUQEHCl1iFTjBo)

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: 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://community.threekit.com/platform-documentation/catalog-2.0-docs/project-data/operators/polymesh-operators/stretch.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.
