|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Quadratic polynomial smooth maximum for blending two signed-distance values. More...
#include <EBGeometry_Blend.hpp>
Public Member Functions | |
| T | operator() (const T &a, const T &b, const T &s) const noexcept |
| Evaluate the polynomial smooth maximum. | |
Quadratic polynomial smooth maximum for blending two signed-distance values.
Approximates max(a, b) within the overlap region |a - b| < s; coincides exactly with max(a, b) outside that region. Symmetric counterpart to SmoothMinOp; used for CSG intersections and differences.
| T | Floating-point precision. |
|
inlinenoexcept |
Evaluate the polynomial smooth maximum.
| [in] | a | First value. |
| [in] | b | Second value. |
| [in] | s | Smoothing length (must be > 0). Controls the blend region width. |