|
EBGeometry 1.0
|
Signed distance field for sphere. More...
#include <EBGeometry_AnalyticDistanceFunctions.hpp>


Public Member Functions | |
| SphereSDF ()=delete | |
| Disallowed weak construction. | |
| SphereSDF (const Vec3T< T > &a_center, const T &a_radius) noexcept | |
| Default constructor. | |
| SphereSDF (const SphereSDF &a_other) noexcept | |
| Copy constructor. | |
| virtual | ~SphereSDF () noexcept=default |
| Destructor. | |
| const Vec3T< T > & | getCenter () const noexcept |
| Get center. | |
| Vec3T< T > & | getCenter () noexcept |
| Get center. | |
| const T & | getRadius () const noexcept |
| Get radius. | |
| T & | getRadius () noexcept |
| Get radius. | |
| virtual T | signedDistance (const Vec3T< T > &a_point) const noexcept override |
| Signed distance function for sphere. | |
Public Member Functions inherited from SignedDistanceFunction< T > | |
| SignedDistanceFunction ()=default | |
| Disallowed, use the full constructor. | |
| virtual | ~SignedDistanceFunction ()=default |
| Destructor (does nothing) | |
| virtual T | value (const Vec3T< T > &a_point) const noexcept override final |
| Implementation of ImplicitFunction::value. | |
| virtual Vec3T< T > | normal (const Vec3T< T > &a_point, const T &a_delta) const noexcept |
| Signed distance normal vector. | |
Public Member Functions inherited from ImplicitFunction< T > | |
| ImplicitFunction ()=default | |
| Disallowed, use the full constructor. | |
| virtual | ~ImplicitFunction ()=default |
| Destructor (does nothing) | |
| T | operator() (const Vec3T< T > &a_point) const noexcept |
| Alternative signature for the value function. | |
| template<class BV > | |
| BV | approximateBoundingVolumeOctree (const Vec3T< T > &a_initialLowCorner, const Vec3T< T > &a_initialHighCorner, const unsigned int a_maxTreeDepth, const T &a_safety=0.0) const noexcept |
| Compute an approximation to the bounding volume for the implicit surface, using octrees. | |
Protected Attributes | |
| Vec3T< T > | m_center |
| Sphere center. | |
| T | m_radius |
| Sphere radius. | |
Default constructor.
| [in] | a_center | Sphere center |
| [in] | a_radius | Sphere radius |
|
inlineoverridevirtualnoexcept |
Signed distance function for sphere.
| [in] | a_point | Position. |
Implements SignedDistanceFunction< T >.