springSdf

springSdf

beta

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
  • Radius Field: (optional)
    • Coordinate Types: float vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Coils Field: (optional)
    • Coordinate Types: float vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Thickness Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • 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

Variables

  • axisoffset:
  • normoffset:
  • angle:
  • normangle: