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

Smooth intersection. More...

#include <EBGeometry_CSG.hpp>

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

Public Member Functions

 SmoothIntersectionIF ()=delete
 Disallowed, use the full constructor.
 
 SmoothIntersectionIF (const std::shared_ptr< ImplicitFunction< T >> &a_implicitFunctionA, const std::shared_ptr< ImplicitFunction< T >> &a_implicitFunctionB, const T a_smoothLen, const std::function< T(const T &a, const T &b, const T &s)> &a_smoothMax=smoothMax< T >) noexcept
 Full constructor. Computes the CSG intersection. More...
 
 SmoothIntersectionIF (const std::vector< std::shared_ptr< ImplicitFunction< T >>> &a_implicitFunctions, const T a_smoothLen, const std::function< T(const T &a, const T &b, const T &s)> &a_smoothMax=smoothMax< T >) noexcept
 Full constructor. Computes the CSG intersection. More...
 
virtual ~SmoothIntersectionIF ()=default
 Destructor (does nothing)
 
value (const Vec3T< T > &a_point) const noexcept override
 Value function. 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

std::vector< std::shared_ptr< const ImplicitFunction< T > > > m_implicitFunctions
 List of primitives.
 
m_smoothLen
 Smoothing parameter.
 
std::function< T(const T &a, const T &b, const T &s)> m_smoothMax
 Smooth max operator.
 

Detailed Description

template<class T>
class SmoothIntersectionIF< T >

Smooth intersection.

Constructor & Destructor Documentation

◆ SmoothIntersectionIF() [1/2]

template<class T >
SmoothIntersectionIF< T >::SmoothIntersectionIF ( const std::shared_ptr< ImplicitFunction< T >> &  a_implicitFunctionA,
const std::shared_ptr< ImplicitFunction< T >> &  a_implicitFunctionB,
const T  a_smoothLen,
const std::function< T(const T &a, const T &b, const T &s)> &  a_smoothMax = smoothMax< T > 
)
noexcept

Full constructor. Computes the CSG intersection.

Parameters
[in]a_implicitFunctionAFirst implicit function.
[in]a_implicitFunctionBSecond implicit function.
[in]a_smoothLenSmoothing length
[in]a_smoothMaxSmooth max operator

◆ SmoothIntersectionIF() [2/2]

template<class T >
SmoothIntersectionIF< T >::SmoothIntersectionIF ( const std::vector< std::shared_ptr< ImplicitFunction< T >>> &  a_implicitFunctions,
const T  a_smoothLen,
const std::function< T(const T &a, const T &b, const T &s)> &  a_smoothMax = smoothMax< T > 
)
noexcept

Full constructor. Computes the CSG intersection.

Parameters
[in]a_implicitFunctionsList of primitives
[in]a_smoothLenSmoothing length
[in]a_smoothMaxSmooth max operator

Member Function Documentation

◆ value()

template<class T >
T SmoothIntersectionIF< T >::value ( const Vec3T< T > &  a_point) const
overridevirtualnoexcept

Value function.

Parameters
[in]a_point3D point.

Implements ImplicitFunction< T >.


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