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::IntersectionIF< T > Class Template Reference

Implicit function whose interior is the intersection of all input function interiors. More...

#include <EBGeometry_CSG.hpp>

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

Public Member Functions

 IntersectionIF ()=delete
 Disallowed, use the full constructor.
 
 IntersectionIF (const std::vector< std::shared_ptr< ImplicitFunction< T > > > &a_implicitFunctions) noexcept
 Constructs the intersection of the given implicit functions.
 
 ~IntersectionIF () override=default
 Destructor.
 
value (const Vec3T< T > &a_point) const noexcept override
 Evaluates the signed distance at a_point.
 
- 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::vector< std::shared_ptr< const ImplicitFunction< T > > > m_implicitFunctions
 Stored implicit functions.
 

Detailed Description

template<class T>
class EBGeometry::IntersectionIF< T >

Implicit function whose interior is the intersection of all input function interiors.

A point is inside IntersectionIF if and only if it is inside every stored function. The value at any point is the maximum over all stored functions; a negative value indicates membership in the intersection.

Template Parameters
TFloating-point precision.

Constructor & Destructor Documentation

◆ IntersectionIF()

template<class T >
EBGeometry::IntersectionIF< T >::IntersectionIF ( const std::vector< std::shared_ptr< ImplicitFunction< T > > > &  a_implicitFunctions)
noexcept

Constructs the intersection of the given implicit functions.

Parameters
[in]a_implicitFunctionsList of implicit functions (must be non-empty; no null entries).

Member Function Documentation

◆ value()

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

Evaluates the signed distance at a_point.

Returns the maximum over all stored functions. Negative when inside the intersection.

Parameters
[in]a_point3D query point.
Returns
Maximum signed distance value among all stored functions.

Implements EBGeometry::ImplicitFunction< T >.


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