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


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. | |
| 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 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.
| T | Floating-point precision. |
|
noexcept |
Constructs the intersection 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 maximum over all stored functions. Negative when inside the intersection.
| [in] | a_point | 3D query point. |
Implements EBGeometry::ImplicitFunction< T >.