Skip to main content Link Menu Expand (external link) Document Search Copy Copied
knife

knife

Keywords:
  • crop
  • knife
  • slice

Cuts off an SDF along a plane.

Parameters

  • Enable:
  • Keep Side: Which side of the cut to keep.
    • Above Plane:
    • Below Plane:
  • Offset: Shifts the cut plane along the axis that it faces.
  • Rotate Plane: Rotate the cut plane in XYZ. When in 2D, only the Z rotation is used.
  • Direction:
    • X:
    • Y:
    • Z:

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf
  • Offset Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float