|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Implicit function whose interior is the set difference A \ B. More...
#include <EBGeometry_CSG.hpp>


Public Member Functions | |
| DifferenceIF ()=delete | |
| Disallowed, use the full constructor. | |
| DifferenceIF (const std::shared_ptr< ImplicitFunction< T > > &a_implicitFunctionA, const std::shared_ptr< ImplicitFunction< T > > &a_implicitFunctionB) noexcept | |
| Constructs A \ B from two implicit functions. | |
| DifferenceIF (const std::shared_ptr< ImplicitFunction< T > > &a_implicitFunctionA, const std::vector< std::shared_ptr< ImplicitFunction< T > > > &a_implicitFunctionsB) noexcept | |
| Constructs A \ union(Bs) from A and a list of subtrahends. | |
| ~DifferenceIF () 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::shared_ptr< ImplicitFunction< T > > | m_implicitFunctionA |
| Minuend implicit function. | |
| std::shared_ptr< ImplicitFunction< T > > | m_implicitFunctionB |
| Subtrahend implicit function (may wrap a union of multiple subtrahends). | |
Implicit function whose interior is the set difference A \ B.
A point is inside DifferenceIF if and only if it is inside A and outside B. The value function returns max(A(x), -B(x)).
| T | Floating-point precision. |
|
noexcept |
Constructs A \ B from two implicit functions.
| [in] | a_implicitFunctionA | Minuend (must not be null). |
| [in] | a_implicitFunctionB | Subtrahend (must not be null). |
|
noexcept |
Constructs A \ union(Bs) from A and a list of subtrahends.
| [in] | a_implicitFunctionA | Minuend (must not be null). |
| [in] | a_implicitFunctionsB | Subtrahends (must be non-empty; no null entries). |
|
overridevirtualnoexcept |
Evaluates the signed distance at a_point.
Returns max(A(x), -B(x)). Negative when inside A and outside B.
| [in] | a_point | 3D query point. |
Implements EBGeometry::ImplicitFunction< T >.