|
EBGeometry 1.0
|
Capsulate/pill SDF. Basically a cylinder with spherical endcaps, oriented along the specified axis. More...
#include <EBGeometry_AnalyticDistanceFunctions.hpp>


Public Member Functions | |
| CapsuleSDF ()=delete | |
| No weak construction. | |
| CapsuleSDF (const Vec3T< T > &a_tip1, const Vec3T< T > a_tip2, const T &a_radius) noexcept | |
| Full constructor. | |
| virtual T | signedDistance (const Vec3T< T > &a_point) const noexcept override |
| Implementation of the signed distance function. | |
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_center1 |
| Capsule center1. | |
| Vec3T< T > | m_center2 |
| Capsule center2. | |
| T | m_radius |
| Capsule radius. | |
Capsulate/pill SDF. Basically a cylinder with spherical endcaps, oriented along the specified axis.
|
inlinenoexcept |
Full constructor.
| [in] | a_tip1 | One tip point |
| [in] | a_tip2 | Other center point. |
| [in] | a_radius | Radius. |
|
inlineoverridevirtualnoexcept |
Implementation of the signed distance function.
| [in] | a_point | Position. |
Implements SignedDistanceFunction< T >.