Docs

Distance To Line

Perpendicular distance to an infinite line.

Distance To Line node

The Distance To Line node

When to use it

Perpendicular distance to an infinite line.

Subtract a radius and you have an infinite cylinder along any axis, which is the cheapest way to get a tilted cylinder without rotating the domain.

Infinite is the catch. To cap it, intersect with two Planes, or use the Cylinder and Capsule primitives, which are finite to begin with.

Pins

Pin Type Description
LinePointX Number X of a point the line passes through.
LinePointY Number Y of a point the line passes through.
LinePointZ Number Z of a point the line passes through.
LineDirX Number X of the direction the line runs. All three together must come to length 1.
LineDirY Number Y of the direction the line runs.
LineDirZ Number Z of the direction the line runs.
Pin Type Description
Distance Number How far the voxel being sampled sits from the line, measured square to it. Never negative.