HDK
|
This class works as a functor to clamp/revert values. More...
#include <GAS_Limit.h>
Public Member Functions | |
GAS_RevertOperation (bool useMinField, float minValue, bool useMaxField, float maxValue, bool useRevertField, float revertValue, float blendwidth) | |
float | operator() (float v, float mv, float Mv, float rv) const |
Static Public Attributes | |
static constexpr float | MINBLEND = 1e-3 |
Blend widths below this amount get clamped to 0. More... | |
This class works as a functor to clamp/revert values.
Definition at line 103 of file GAS_Limit.h.
|
inline |
Definition at line 109 of file GAS_Limit.h.
|
inline |
Returns the limited/reverted value. v is the current voxel value, mv is the voxel value of the minimum field, Mv is the voxel value of the maximum field, rv is the voxel value of the revert field. Depending on the template instantiations and parameters passed to the constructor, some of these operations may be skipped or their voxel values replaced by constant bounds.
Definition at line 129 of file GAS_Limit.h.
|
static |
Blend widths below this amount get clamped to 0.
Definition at line 107 of file GAS_Limit.h.