A spherical surface (3 dimensions).
More...
#include <sdf_shape_3D.h>
A spherical surface (3 dimensions).
◆ SDFSphere()
| madness::SDFSphere::SDFSphere |
( |
const double | radius, |
|
|
const coord_3d & | center ) |
|
inline |
SDF for a sphere.
- Parameters
-
| radius | The radius of the sphere |
| center | The center of the sphere |
References center, and radius.
◆ grad_sdf()
Computes the gradient of the SDF.
- Parameters
-
| pt | Point at which to compute the gradient |
- Returns
- the gradient
References center, and madness::g.
◆ sdf()
| double madness::SDFSphere::sdf |
( |
const coord_3d & | pt | ) |
const |
|
inline |
Computes the normal distance.
This SDF is exact, and easy to show.
- Parameters
-
| pt | Point at which to compute the distance from the surface |
- Returns
- The signed distance from the surface
References center, and radius.
◆ center
| const coord_3d madness::SDFSphere::center |
|
protected |
◆ radius
| const double madness::SDFSphere::radius |
|
protected |
The documentation for this class was generated from the following file: