EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
EBGeometry::BlurIF< T > Class Template Reference

Blurred/interpolated implicit function — can be used for smoothing. More...

#include <EBGeometry_Transform.hpp>

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

Public Member Functions

 BlurIF ()=delete
 Disallowed weak construction.
 
 BlurIF (const BlurIF &a_other) noexcept=default
 Copy constructor.
 
 BlurIF (BlurIF &&a_other) noexcept=default
 Move constructor.
 
 BlurIF (const std::shared_ptr< ImplicitFunction< T > > &a_implicitFunction, const T a_blurDistance, const T a_alpha=0.5) noexcept
 Full constructor.
 
 ~BlurIF () override=default
 Destructor.
 
BlurIFoperator= (const BlurIF &a_other) noexcept=default
 Copy assignment operator.
 
BlurIFoperator= (BlurIF &&a_other) noexcept=default
 Move assignment operator.
 
value (const Vec3T< T > &a_point) const noexcept override
 Value function.
 
- Public Member Functions inherited from EBGeometry::ImplicitFunction< T >
 ImplicitFunction ()=default
 Default constructor.
 
virtual ~ImplicitFunction ()=default
 Default destructor.
 
operator() (const Vec3T< T > &a_point) const noexcept
 Call operator — 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
 Compute an approximation to the bounding volume for the implicit surface using octree subdivision.
 

Protected Attributes

std::shared_ptr< ImplicitFunction< T > > m_implicitFunction = nullptr
 Original implicit function.
 
m_blurDistance
 Blur distance.
 
m_alpha
 Alpha factor.
 

Detailed Description

template<class T>
class EBGeometry::BlurIF< T >

Blurred/interpolated implicit function — can be used for smoothing.

Passes the input implicit function through a 3D box filter sampled at face centres, edge centres, and corners of a cube with half-side m_blurDistance. The per-sample weights are products of alpha^(3-n) * ((1-alpha)/2)^n where n is the number of displaced axes.

Template Parameters
TFloating-point precision

Constructor & Destructor Documentation

◆ BlurIF() [1/3]

template<class T >
EBGeometry::BlurIF< T >::BlurIF ( const BlurIF< T > &  a_other)
defaultnoexcept

Copy constructor.

Parameters
[in]a_otherOther BlurIF.

◆ BlurIF() [2/3]

template<class T >
EBGeometry::BlurIF< T >::BlurIF ( BlurIF< T > &&  a_other)
defaultnoexcept

Move constructor.

Parameters
[in,out]a_otherOther BlurIF.

◆ BlurIF() [3/3]

template<class T >
EBGeometry::BlurIF< T >::BlurIF ( const std::shared_ptr< ImplicitFunction< T > > &  a_implicitFunction,
const a_blurDistance,
const a_alpha = 0.5 
)
noexcept

Full constructor.

Parameters
[in]a_implicitFunctionInput implicit function
[in]a_blurDistanceBlur distance
[in]a_alphaBlend factor in [0, 1]; 1 = no blur, 0 = full blur.

Member Function Documentation

◆ operator=() [1/2]

template<class T >
BlurIF & EBGeometry::BlurIF< T >::operator= ( BlurIF< T > &&  a_other)
defaultnoexcept

Move assignment operator.

Parameters
[in,out]a_otherOther BlurIF.
Returns
Reference to (*this).

◆ operator=() [2/2]

template<class T >
BlurIF & EBGeometry::BlurIF< T >::operator= ( const BlurIF< T > &  a_other)
defaultnoexcept

Copy assignment operator.

Parameters
[in]a_otherOther BlurIF.
Returns
Reference to (*this).

◆ value()

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

Value function.

Parameters
[in]a_pointQuery point
Returns
Blurred implicit function value at a_point

Implements EBGeometry::ImplicitFunction< T >.


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