|
MADNESS 0.10.1
|
An ellipsoid (3 dimensions) More...
#include <sdf_shape_3D.h>


Public Member Functions | |
| SDFEllipsoid (const coord_3d &radii, const coord_3d ¢er) | |
| Constructor for ellipsoid. | |
| coord_3d | grad_sdf (const coord_3d &pt) const |
| double | sdf (const coord_3d &pt) const |
| Computes the normal distance. | |
Public Member Functions inherited from madness::SignedDFInterface< 3 > | |
| 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 | |
| coord_3d | center |
| the center | |
| coord_3d | radii |
| the directional radii | |
An ellipsoid (3 dimensions)
Constructor for ellipsoid.
| radii | The directional radii of the ellipsoid |
| center | The center of the ellipsoid |
Computes the gradient of the SDF.
| pt | Point at which to compute the gradient |
References MADNESS_EXCEPTION.
Computes the normal distance.
This SDF naively uses contours, and should be improved before serious usage.
| pt | Point at which to compute the distance from the surface |
References center, madness::nonlinear_vector_solver(), radii, and sum.