Documentation / Node reference / code nodes

code/SDFSphere

An SDF sphere, whole or cut flat.

Sdf3d

The twin of geo/SDFSphere, for use inside a geo/SDFBuilder sub-network. Every input can be DRIVEN by another node here, which is the difference that matters: a radius that follows a point attribute, a center that follows the cursor. The cut form is the same one geo/SDFSphere has, and it is picked by the toggle rather than by a height, because no height means "not cut".

Parameters

Name Type What it does
cut Bool Cut the sphere flat with a horizontal plane, keeping the part above it. At a height of 0 that is the upper half. It is a toggle rather than a height because the cut form costs a longer expression on every march step, and most spheres are whole.
P Vector3 Position to measure from. Left unwired it reads the builder's own sample position.
t Vector3 Where the sphere sits.
s Float Sphere radius.
cutHeight Float Height of the cut plane above the center, read only when the cut is on. Clamped just inside the sphere, so the cut always leaves something and never removes everything. Driven from an input, that clamp rides the generated code rather than being folded once.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.