3D SDFs
sdf_x(co, offset)
Value of the X coordinate zeroed at some offset value.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_y(co, offset)
Value of the Y coordinate zeroed at some offset value.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_z(co, offset)
Value of the Z coordinate zeroed at some offset value.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_sphere(co, radius)
Sphere defined by its radius.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_cylinder(co, radius, height)
Cylinder defined by the radius and height.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_box(co, size)
Box defined by its side lengths.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_torus(co, R, r)
Torus defined by its primary and the secondary radius.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_arc_3d(co, R, r, start_angle, end_angle)
Arc defined by the radius, thickness, and the angles of both ends.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_plane(co, normal, offset)
Plane defined by its normal vector. SDF has a negative value for points below the plane.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sudf_plane(co, normal, thickness)
Plane defined by its normal vector.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_segment_3d(co, a, b)
Line defined by its starting and ending points.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_cone(co, height, angle)
Cone defined by its height and the angle of the slope. The base of the cone is moved down by: height - height_offset.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_oriented_infinite_cone(co, angle)
Cone with infinite height defined by the angle of its slope. The tip of the cone is at the origin. Values of the SDF below the cone are negative.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_infinite_cone(co, angle)
Cone with infinite height defined by the angle of its slope. The tip of the cone is at the origin.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_solid_angle(co, radius, angle_1, angle_2)
Solid angle defined by the radius of the globe and two angles.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_triangle_3d(co, a, b, c)
Triangle defined by its three vertices.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_quad_3d(co, a, b, c, d)
Quadrilateral defined by its four coplanar vertices.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sdf_segmented_line_3d(co, points)
Segmented line connecting the provided points.
| Parameters: |
|
|---|
sdf_closed_segmented_line_3d(co, points)
Closed segmented line connecting the provided points.
| Parameters: |
|
|---|