MADNESS 0.10.1
|
A circle (2 dimensions) More...
#include <sdf_shape_2D.h>
Public Member Functions | |
SDFCircle (const double radius, const coord_2d ¢er) | |
SDF for a sphere. | |
coord_2d | grad_sdf (const coord_2d &pt) const |
Computes the gradient of the SDF. | |
double | sdf (const coord_2d &pt) const |
Computes the normal distance. | |
![]() | |
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,. | |
Protected Attributes | |
const coord_2d | center |
Center of circle. | |
const double | radius |
Radius of circle. | |
A circle (2 dimensions)
SDF for a sphere.
radius | The radius of the sphere |
center | The center of the sphere |
Computes the gradient of the SDF.
pt | Point at which to compute the gradient |
References center, madness::g, and madness::nonlinear_vector_solver().
Computes the normal distance.
This SDF is exact, and easy to show.
pt | Point at which to compute the distance from the surface |
References center, madness::nonlinear_vector_solver(), and radius.
|
protected |
Center of circle.
Referenced by grad_sdf(), and sdf().