EBGeometry 1.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
RoundedCylinderSDF< T > Class Template Reference

Rounded cylinder signed-distance function. More...

#include <EBGeometry_AnalyticDistanceFunctions.hpp>

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

Public Member Functions

 RoundedCylinderSDF ()=delete
 Disallowed default constructor.
 
 RoundedCylinderSDF (const T a_radius, const T a_curvature, const T a_height) noexcept
 Full constructor. User inputs the radius, curvature, and height. Adjust parameters as necessary.
 
virtual ~RoundedCylinderSDF () noexcept
 Destructor (does nothing).
 
virtual T signedDistance (const Vec3T< T > &a_point) const noexcept override
 Signed distance function for the rounded box.
 
- 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< Tnormal (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

T m_majorRadius
 Major radius.
 
T m_minorRadius
 Minor radius.
 
T m_height
 Minor radius.
 

Detailed Description

template<class T>
class RoundedCylinderSDF< T >

Rounded cylinder signed-distance function.

Constructor & Destructor Documentation

◆ RoundedCylinderSDF()

template<class T >
RoundedCylinderSDF< T >::RoundedCylinderSDF ( const T  a_radius,
const T  a_curvature,
const T  a_height 
)
inlinenoexcept

Full constructor. User inputs the radius, curvature, and height. Adjust parameters as necessary.

Parameters
[in]a_radiusCylinder outer radius
[in]a_curvatureCorner curvature
[in]a_heightCylinder height

Member Function Documentation

◆ signedDistance()

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

Signed distance function for the rounded box.

Implements SignedDistanceFunction< T >.


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