extrudeLine

beta

Extrudes a 2D SDF cross-section into a 3D volume, like the extrude operator, but between two points.

The extrude operator goes along a selected axis, with a height center on the origin. Instead of doing that, this operator extrudes so that one side is centered at Point1 and the other end at Point2.

Parameters

  • Point 1:
  • Point 2:

Inputs

  • Cross-Section SDF: (required) 2D SDF cross-section to extrude.
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: Sdf
  • Point 1 Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Point 2 Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4

Variables

  • axispos:
  • normoffset: