|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Quadratic polynomial smooth minimum 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 minimum. | |
Quadratic polynomial smooth minimum for blending two signed-distance values.
Approximates min(a, b) within the overlap region |a - b| < s; coincides exactly with min(a, b) outside that region. Cheaper to evaluate than ExpMinOp and the default choice for CSG unions. A trivially copyable function object, so it can be stored in a BVHSmoothUnion and evaluated on a device.
| T | Floating-point precision. |
|
inlinenoexcept |
Evaluate the polynomial smooth minimum.
| [in] | a | First value. |
| [in] | b | Second value. |
| [in] | s | Smoothing length (must be > 0). Controls the blend region width. |