MADNESS  version 0.9
Classes | Namespaces

Implements the SignedDFInterface for common 2-D geometric objects.This file provides signed distance functions 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

 madness
 Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces.
 

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.