MADNESS 0.10.1
Classes | Namespaces
sdf_shape_2D.h File Reference

Implements the SignedDFInterface for common 2-D geometric objects. More...

#include <madness/mra/sdf_domainmask.h>
Include dependency graph for sdf_shape_2D.h:

Go to the source code of this file.

Classes

class  madness::SDFCircle
 A circle (2 dimensions) More...
 
class  madness::SDFRectangle
 A rectangle (2 dimensions) More...
 

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.
 

Detailed Description

Implements the SignedDFInterface for common 2-D geometric objects.

This file provides signed distance functions for common 2-D geometric objects:

Note
The signed distance functions should be the shortest distance between a point and any point on the surface. This is hard to calculate in many cases, so we use contours here. The surface layer may not be equally thick around all points on the surface. Some shapes have the exact shortest distances, which will be noted on a class-by-class basis. Serious usage of the contour-based signed distance functions is not recommended.