Distance
Stores in an attribute how far each vertex is from a point, a line or a sphere.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | Mesh | The mesh with the distance attribute added. |
Inputs
| Name | Type | Description |
|---|---|---|
| Input | Mesh | The mesh to measure. |
Parameters
| Name | Type | Description |
|---|---|---|
| Attribute Name | String | The name the distances are stored under. |
| Shape | Enum | What the distance is measured to.Choices: Point, Line, Sphere |
| Center | Vector 3 | Where the shape is, as the point itself, a point on the line or the center of the sphere. |
| Direction | Vector 3 | Which way the line runs. Only used by the Line shape. |
| Radius | Float | The radius of the sphere. Only used by the Sphere shape. |
| Shape Transform | Transform 3D | Moves, turns and scales the shape as a whole. |
The Distance operator measures how far every vertex is from a shape and stores it as an attribute, one number per vertex. Nothing changes visibly until another operator reads it. Feed it into Move to make a bulge or a dent that fades out with distance.
In Point mode, the distance is measured straight to the center. In Line mode, it is measured to a line through the center, which has no ends. In Sphere mode, it is measured to the surface of the sphere, negative inside and positive outside.
See also Move.
Keywords: falloff, field, radius, proximity, mask, gradient, sdf