
springSdf
beta
sdf
springSdf
RayTK
v0.36
A coiled spring shape.
This is similar to helixSdf
, but with the fixed height rather than infinite.
Parameters
-
Axis
:-
X
: -
Y
: -
Z
:
-
-
Reverse
: -
Radius
: The radius of the spring, i.e. the distance of the spring from the center axis. -
Height
: Height or length of the spring. -
Coils
: The number of rotations in the spring. Larger values mean a tighter coil. -
Thickness
: Thickness of the spring, used when no cross-section SDF is attached.
Inputs
-
Height Field
: (optional)- Coordinate Types:
float
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Radius Field
: (optional)- Coordinate Types:
float
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Coils Field
: (optional)- Coordinate Types:
float
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Thickness Field
: (optional)- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Cross Section Shape
: (optional) Optional 2D SDF used as the cross-section for the shape.- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
Sdf
- Coordinate Types:
Variables
-
axisoffset
: -
normoffset
: -
angle
: -
normangle
: