chombo-discharge
|
Signed distance function from a DCEL mesh. More...
#include <CD_SignedDistanceDCEL.H>
Public Types | |
using | Mesh = EBGeometry::DCEL::MeshT< T > |
Alias for EBGeometry DCEl mesh with precision T. | |
Public Member Functions | |
SignedDistanceDCEL ()=delete | |
Disallowed, use the full constructor. | |
SignedDistanceDCEL (const std::shared_ptr< Mesh > &a_mesh, const bool a_flipInside, const Real a_zCoord=0.0) | |
Full constructor. More... | |
SignedDistanceDCEL (const SignedDistanceDCEL &a_object) | |
Copy constructor. More... | |
~SignedDistanceDCEL () | |
Destructor (does nothing) | |
Real | value (const RealVect &a_point) const override |
Value function. More... | |
BaseIF * | newImplicitFunction () const override |
Factory method. | |
Protected Attributes | |
std::shared_ptr< Mesh > | m_mesh |
DCEL mesh. | |
bool | m_flipInside |
Hook for turning inside to outside. | |
Real | m_zCoord |
For 2D only. z-coordinate through which we slice the 3D object. | |
Signed distance function from a DCEL mesh.
This does not use a bounding volume hierarchy for performance. The template parameter is the floating point precision.
SignedDistanceDCEL< T >::SignedDistanceDCEL | ( | const std::shared_ptr< Mesh > & | a_mesh, |
const bool | a_flipInside, | ||
const Real | a_zCoord = 0.0 |
||
) |
Full constructor.
[in] | a_mesh | DCEL mesh |
[in] | a_flipInside | Hook for turning inside to outside |
[in] | a_zCoord | 2D only. This is the z-coordinate through which we slice the 3D object. |
SignedDistanceDCEL< T >::SignedDistanceDCEL | ( | const SignedDistanceDCEL< T > & | a_object | ) |
Copy constructor.
[in] | a_object | Other distance function |
|
override |
Value function.
[in] | a_point | 2D/3D point |