|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Implicit function whose interior is the union of all input function interiors. More...
#include <EBGeometry_CSG.hpp>


Public Member Functions | |
| UnionIF ()=delete | |
| Disallowed, use the full constructor. | |
| UnionIF (const std::vector< std::shared_ptr< ImplicitFunction< T > > > &a_implicitFunctions) | |
| Constructs the union of the given implicit functions. | |
| ~UnionIF () override=default | |
| Destructor. | |
| T | 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. | |
| T | 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. | |
Implicit function whose interior is the union of all input function interiors.
A point is inside UnionIF if and only if it is inside at least one stored function. The value at any point is the minimum over all stored functions; a negative value indicates membership in the union.
| T | Floating-point precision. |
| EBGeometry::UnionIF< T >::UnionIF | ( | const std::vector< std::shared_ptr< ImplicitFunction< T > > > & | a_implicitFunctions | ) |
Constructs the union of the given implicit functions.
| [in] | a_implicitFunctions | List of implicit functions (must be non-empty; no null entries). |
|
overridevirtualnoexcept |
Evaluates the signed distance at a_point.
Returns the minimum over all stored functions. Negative when inside the union.
| [in] | a_point | 3D query point. |
Implements EBGeometry::ImplicitFunction< T >.