revolve

revolve

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

Parameters

Name Description Regular Handling Read-Only Handling
Axis Semi-Baked Semi-Baked
  • X:
  • Y:
  • Z:
Radial Offset

Moves the cross-section shape closer or further from the axis.

Runtime Baked
Axis Offset

Moves the resulting shape along the axis.

Runtime Baked
Iteration Type Semi-Baked Semi-Baked
  • 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 VertexContext PixelContext
    • Return Types: Sdf
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: cross_section_definition_in rotate_field_in scale_field_in translate_field_in
  • 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 VertexContext PixelContext
    • Return Types: float
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: radialOffsetField axisOffsetField
  • 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 VertexContext PixelContext
    • Return Types: float
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: rotateField radialOffsetField axisOffsetField
  • 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 VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: scaleField rotateField radialOffsetField axisOffsetField
  • Radial Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: angle normangle
  • Axis Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: radialOffsetField

Variables

  • Angle:
  • Normalized Angle: