revolve

revolve

Creates a 3D SDF by revolving a 2D cross-section SDF around an axis.

Parameters

  • Axis:
    • X:
    • Y:
    • Z:
  • Radial Offset: Moves the cross-section shape closer or further from the axis.
  • Axis Offset: Moves the resulting shape along the axis.
  • Iteration Type:
    • None:
    • Ratio:

Inputs

  • Cross-Section SDF: (required) The 2D shape that is revolved around the axis.
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: Sdf
  • Rotate Field: (optional) Optional field that controls rotation of the cross-section as it goes around the axis.
    • Coordinate Types: float vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Scale Field: (optional) Optional field that controls scale of the cross-section as it goes around the axis.
    • Coordinate Types: float vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Translate Field: (optional) Optional field that controls translate of the cross-section as it goes around the axis.
    • Coordinate Types: float vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Radial Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Axis Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float

Variables

  • angle:
  • normangle: