EBGeometry
1.0
|
Signed distance function for a DCEL mesh. Does not use BVHs. More...
#include <EBGeometry_MeshDistanceFunctions.hpp>
Public Types | |
using | Mesh = EBGeometry::DCEL::MeshT< T, Meta > |
Alias for DCEL mesh type. | |
Public Member Functions | |
MeshSDF ()=delete | |
Disallowed constructor. | |
MeshSDF (const std::shared_ptr< Mesh > &a_mesh) noexcept | |
Full constructor. More... | |
virtual | ~MeshSDF ()=default |
Destructor. | |
virtual T | signedDistance (const Vec3T< T > &a_point) const noexcept override |
Value function. | |
const std::shared_ptr< Mesh > | getMesh () const noexcept |
Get the surface mesh. | |
template<class BV > | |
BV | computeBoundingVolume () const noexcept |
Compute bounding volume for this mesh. | |
Public Member Functions inherited from SignedDistanceFunction< T > | |
SignedDistanceFunction ()=default | |
Disallowed, use the full constructor. | |
virtual | ~SignedDistanceFunction ()=default |
Destructor (does nothing) | |
virtual T | value (const Vec3T< T > &a_point) const noexcept override final |
Implementation of ImplicitFunction::value. More... | |
virtual Vec3T< T > | normal (const Vec3T< T > &a_point, const T &a_delta) const noexcept |
Signed distance normal vector. More... | |
Public Member Functions inherited from ImplicitFunction< T > | |
ImplicitFunction ()=default | |
Disallowed, use the full constructor. | |
virtual | ~ImplicitFunction ()=default |
Destructor (does nothing) | |
T | operator() (const Vec3T< T > &a_point) const noexcept |
Alternative signature for the value function. More... | |
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 noexcept |
Compute an approximation to the bounding volume for the implicit surface, using octrees. More... | |
Protected Attributes | |
std::shared_ptr< Mesh > | m_mesh |
DCEL mesh. | |
Signed distance function for a DCEL mesh. Does not use BVHs.
|
noexcept |
Full constructor.
[in] | a_mesh | Input mesh |