Canvas

Calculations

CALC.tox

Layer: spatial logic
In: 2 POPs (point or shape)
Out: 1 CHOP

CALC measures how two spatial entities relate to each other: two points, a point and a shape, or two shapes. It reduces that relation to one control signal. Four measurements are available: centre-to-centre distance, signed distance to a surface, an inside/outside test, and a smooth fade between two concentric spheres. Together these are enough for most body-to-object interactions in the lab, such as proximity, entering a zone, and gradual transitions. They come from a single component with one predictable output.

Role in the setup

CALC turns geometry into control data. A typical setup has a tracked joint from Azure Kinect sensors on input 1 and a Virtual objects on input 2. The resulting CHOP drives any parameter: the opacity of a projected layer, the gain of a sound, the state of a scene.

Technical specification

Let A be input 1 and B be input 2.

Parameters

ParameterFunction
Distance between pointsdistance between the centres of both inputs
Distance between shapessigned distance to the surface of the shape(s)
In or outside of a shapecontainment test: is input 1 inside input 2
Fade to spheresmooth value between inner sphere and outer shell

Outputs

ChannelUnit / rangeMeaning
center_distmetres, ≥ 0distance between the centres
shell_distmetres; negative = insidesigned distance to the surface
inside0 / 1containment
fade0 … 11 inside the inner sphere, 0 outside the outer shell

Limitations and expected behaviour

History

Since the October 2026 revision, CALC replaces four earlier components: DIST_between_points, DIST_to_object, IN_or_OUT_object and FADE_to_sphere. Distance to a shape now works for any closed shape and between two shapes.

Relations

References