Blob 1.0
|
Wyvill's cubic falloff function. More...
#include <blend.h>
Public Member Functions | |
BlendWyvill (const double &, const double &=1.0) | |
Creates Wyvill's cubic falloff function. More... | |
virtual | ~BlendWyvill () |
Empty. | |
virtual BlendWyvill * | Copy () const |
Deep copy. | |
Public Member Functions inherited from BlendCubic | |
BlendCubic (const double &, const double &=1.0) | |
Creates a cubic polynomial potential function. More... | |
virtual double | Eval (const double &) const |
Computes the falloff function value. More... | |
virtual double | Gradient (const double &) const |
Computes the first derivative of the falloff function. More... | |
virtual double | K (const double &, const double &) const |
Returns the Lipschitz constant of the blend. More... | |
virtual void | Scale (const double &) |
Scales the radius if the blending function. More... | |
virtual void | Alpha (const double &) |
Scales the maximum intensity of the blending function. More... | |
double | Radius (const double &) const |
Computes the radius of the blend given a threshold value. More... | |
void | Analytic (const Quadric &, Polynomial &) const |
Compute the closed form expression of the field along the ray. More... | |
virtual double | K () const |
Returns the Lipschitz constant. | |
virtual double | K (const double &, const double &) const |
Returns the Lipschitz constant of the blend. | |
Public Member Functions inherited from BlendAnalytic | |
BlendAnalytic () | |
Empty. | |
BlendAnalytic (const double &, const double &) | |
Stores the radius of influence and the strength (maximum intensity). More... | |
virtual | ~BlendAnalytic () |
Empty. | |
Public Member Functions inherited from BlendCompact | |
BlendCompact () | |
Empty. | |
BlendCompact (const double &, const double &) | |
Stores the radius of influence and the strength (maximum intensity). More... | |
virtual | ~BlendCompact () |
Empty. | |
double | R () const |
Returns the radius of the blend. | |
double | I () const |
Returns the strength (maximum intensity) of the blend. | |
virtual int | Memory () const |
Compute the size of a falloff node. | |
Additional Inherited Members | |
Protected Attributes inherited from BlendCubic | |
Cubic | blend |
Cubic polynomial blending function. | |
Protected Attributes inherited from BlendCompact | |
double | r [2] = { 1.0,1.0 } |
Radius and squared radius. | |
double | strength = 1.0 |
Strength, i.e., maximum intensity. | |
double | k = 1.0 |
Lipschitz constant. | |
Wyvill's cubic falloff function.
The cubic is defined as p(r)=-4/9 r3+17/9 r2-22/9 r+1.
|
explicit |
Creates Wyvill's cubic falloff function.
r | Radius. |
s | Strength. |