MADNESS 0.10.1
|
The interface for a signed distance function (sdf). More...
#include <sdf_domainmask.h>
Public Member Functions | |
virtual | ~SignedDFInterface () |
virtual Vector< double, NDIM > | grad_sdf (const Vector< double, NDIM > &x) const =0 |
Returns the gradient of the signed distance from the surface (i.e., dsdf(x)/dx [i] ) | |
virtual double | sdf (const Vector< double, NDIM > &x) const =0 |
Returns the signed distance from the surface,. | |
The interface for a signed distance function (sdf).
A class implementing this interface will need to provide the sdf given a point in coordinate space, and also the gradient of the sdf at this point.
NDIM
is the dimensionality of the coordinate space.
|
inlinevirtual |
|
pure virtual |
Returns the gradient of the signed distance from the surface (i.e., dsdf(x)/dx
[i] )
[in] | x | The coordinate |
|
pure virtual |
Returns the signed distance from the surface,.
inside''
Negative is
outside''[in] | x | The coordinate |
Referenced by EmbeddedDirichlet::operator()().