EBGeometry  1.0
Public Member Functions | Protected Attributes | List of all members
CapsuleSDF< T > Class Template Reference

Capsulate/pill SDF. Basically a cylinder with spherical endcaps, oriented along the specified axis. More...

#include <EBGeometry_AnalyticDistanceFunctions.hpp>

Inheritance diagram for CapsuleSDF< T >:
Inheritance graph
[legend]
Collaboration diagram for CapsuleSDF< T >:
Collaboration graph
[legend]

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. More...
 
virtual T signedDistance (const Vec3T< T > &a_point) const noexcept override
 Implementation of the signed distance function. More...
 
- 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. More...
 
virtual Vec3T< T > normal (const Vec3T< T > &a_point, const T &a_delta) const noexcept
 Signed distance normal vector. More...
 
- Public Member Functions inherited from ImplicitFunction< T >
 ImplicitFunction ()=default
 Disallowed, use the full constructor.
 
virtual ~ImplicitFunction ()=default
 Destructor (does nothing)
 
operator() (const Vec3T< T > &a_point) const noexcept
 Alternative signature for the value function. More...
 
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. More...
 

Protected Attributes

Vec3T< T > m_center1
 Capsule center1.
 
Vec3T< T > m_center2
 Capsule center2.
 
m_radius
 Capsule radius.
 

Detailed Description

template<class T>
class CapsuleSDF< T >

Capsulate/pill SDF. Basically a cylinder with spherical endcaps, oriented along the specified axis.

Constructor & Destructor Documentation

◆ CapsuleSDF()

template<class T >
CapsuleSDF< T >::CapsuleSDF ( const Vec3T< T > &  a_tip1,
const Vec3T< T >  a_tip2,
const T &  a_radius 
)
inlinenoexcept

Full constructor.

Parameters
[in]a_tip1One tip point
[in]a_tip2Other center point.
[in]a_radiusRadius.

Member Function Documentation

◆ signedDistance()

template<class T >
virtual T CapsuleSDF< T >::signedDistance ( const Vec3T< T > &  a_point) const
inlineoverridevirtualnoexcept

Implementation of the signed distance function.

Parameters
[in]a_pointPosition.

Implements SignedDistanceFunction< T >.


The documentation for this class was generated from the following file: