Distance

Stores in an attribute how far each vertex is from a point, a line or a sphere.

Outputs

NameTypeDescription
OutputMeshThe mesh with the distance attribute added.

Inputs

NameTypeDescription
InputMeshThe mesh to measure.

Parameters

NameTypeDescription
Attribute NameStringThe name the distances are stored under.
ShapeEnumWhat the distance is measured to.Choices: Point, Line, Sphere
CenterVector 3Where the shape is, as the point itself, a point on the line or the center of the sphere.
DirectionVector 3Which way the line runs. Only used by the Line shape.
RadiusFloatThe radius of the sphere. Only used by the Sphere shape.
Shape TransformTransform 3DMoves, 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