MADNESS  0.10.1
Public Member Functions | List of all members
madness::SDFCube Class Reference

A cube (3 dimensions) More...

#include <sdf_shape_3D.h>

Inheritance diagram for madness::SDFCube:
Inheritance graph
[legend]
Collaboration diagram for madness::SDFCube:
Collaboration graph
[legend]

Public Member Functions

 SDFCube (const double length, const coord_3d &center)
 Constructor for box. More...
 
- Public Member Functions inherited from madness::SDFBox
 SDFBox (const coord_3d &length, const coord_3d &center)
 Constructor for box. More...
 
coord_3d grad_sdf (const coord_3d &pt) const
 
double sdf (const coord_3d &pt) const
 Computes the normal distance. More...
 
- Public Member Functions inherited from madness::SignedDFInterface< 3 >
virtual ~SignedDFInterface ()
 
virtual Vector< double, NDIMgrad_sdf (const Vector< double, NDIM > &x) const=0
 Returns the gradient of the signed distance from the surface (i.e., dsdf(x)/dx[i] ) More...
 
virtual double sdf (const Vector< double, NDIM > &x) const=0
 Returns the signed distance from the surface,. More...
 

Additional Inherited Members

- Protected Attributes inherited from madness::SDFBox
const coord_3d center
 the center of the box More...
 
const coord_3d lengths
 Half the length of each side of the box. More...
 

Detailed Description

A cube (3 dimensions)

Note
LIMIT – the 3 primary axes must be x, y, and z

Constructor & Destructor Documentation

◆ SDFCube()

madness::SDFCube::SDFCube ( const double  length,
const coord_3d center 
)
inline

Constructor for box.

Parameters
lengthThe length of each side of the cube
centerThe center of the cube

The documentation for this class was generated from the following file: