|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Signed distance function for a plane. More...
#include <EBGeometry_AnalyticDistanceFunctions.hpp>


Public Member Functions | |
| PlaneSDF ()=default | |
| Default constructor. Constructs the y = 0 plane with outward normal (0, 1, 0). | |
| PlaneSDF (const Vec3T< T > &a_point, const Vec3T< T > &a_normal) noexcept | |
| Full constructor. | |
| PlaneSDF (const PlaneSDF &)=default | |
| Copy constructor. | |
| PlaneSDF (PlaneSDF &&)=default | |
| Move constructor. | |
| PlaneSDF & | operator= (const PlaneSDF &)=default |
| Copy assignment. | |
| PlaneSDF & | operator= (PlaneSDF &&)=default |
| Move assignment. | |
| ~PlaneSDF () override=default | |
| Destructor. | |
| T | signedDistance (const Vec3T< T > &a_point) const noexcept override |
| Signed distance function for the plane. | |
Public Member Functions inherited from EBGeometry::SignedDistanceFunction< T > | |
| SignedDistanceFunction ()=default | |
| Default constructor. | |
| ~SignedDistanceFunction () override=default | |
| Destructor. | |
| T | value (const Vec3T< T > &a_point) const noexcept final |
| Implementation of ImplicitFunction::value; delegates to signedDistance(). | |
| virtual Vec3T< T > | normal (const Vec3T< T > &a_point, const T &a_delta) const noexcept |
| Compute the outward normal using central finite differences. | |
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 | |
| Vec3T< T > | m_point = Vec3T<T>::zeros() |
| Point on plane. | |
| Vec3T< T > | m_normal = Vec3T<T>(T(0), T(1), T(0)) |
| Plane normal vector (unit length). | |
Signed distance function for a plane.
The SDF evaluates to dot(a_point - m_point, m_normal): positive on the half-space the normal points into, negative on the opposite side. The plane itself is the zero level-set. m_normal must be unit length for the SDF to return a true distance; the full constructor normalizes the input automatically. By default the plane is the y = 0 plane with normal (0,1,0).
| T | Floating-point precision. |
|
default |
Default constructor. Constructs the y = 0 plane with outward normal (0, 1, 0).
The default plane passes through the origin and separates y < 0 (negative SDF) from y > 0 (positive SDF).
|
inlinenoexcept |
Full constructor.
| [in] | a_point | Any point on the plane. |
| [in] | a_normal | Plane normal vector (need not be unit length; it is normalized internally). |
|
default |
Copy assignment.
|
default |
Move assignment.
|
inlineoverridevirtualnoexcept |
Signed distance function for the plane.
| [in] | a_point | Position. |
Implements EBGeometry::SignedDistanceFunction< T >.