|
|
| BoxSDF ()=default |
| | Default constructor. Constructs a unit cube centered at the origin: [-0.5, 0.5]^3.
|
| |
| | BoxSDF (const Vec3T< T > &a_loCorner, const Vec3T< T > &a_hiCorner) |
| | Full constructor.
|
| |
|
| BoxSDF (const BoxSDF &)=default |
| | Copy constructor.
|
| |
|
| BoxSDF (BoxSDF &&)=default |
| | Move constructor.
|
| |
| BoxSDF & | operator= (const BoxSDF &)=default |
| | Copy assignment.
|
| |
| BoxSDF & | operator= (BoxSDF &&)=default |
| | Move assignment.
|
| |
| const Vec3T< T > & | getLowCorner () const noexcept |
| | Get lower-left corner.
|
| |
| Vec3T< T > & | getLowCorner () noexcept |
| | Get lower-left corner.
|
| |
| const Vec3T< T > & | getHighCorner () const noexcept |
| | Get upper-right corner.
|
| |
| Vec3T< T > & | getHighCorner () noexcept |
| | Get upper-right corner.
|
| |
| T | signedDistance (const Vec3T< T > &a_point) const noexcept |
| | Signed distance function for the axis-aligned box.
|
| |
| uint32_t | getNumParts () const noexcept |
| | How many parts the shape has (see hasParts): 6.
|
| |
| uint32_t | closestPart (const Vec3T< T > &a_point) const noexcept |
| | The part whose term decides the value at a point (see hasParts): 2 axis + 0 for the face at the low corner, 2 axis + 1 for the one at the high corner (-x, +x, -y, +y, -z, +z), the axis whose term is largest, as in signedDistance().
|
| |
| BoundingVolumes::AABBT< T > | computeBoundingVolume () const noexcept |
| | The shape's axis-aligned bounding box.
|
| |
template<class T>
class EBGeometry::BoxSDF< T >
Signed distance field for an axis-aligned box (AABB).
The box is defined by its lower and upper corners m_loCorner and m_hiCorner. It is axis-aligned (faces are perpendicular to the coordinate axes). The SDF is negative inside and positive outside. Side lengths are m_hiCorner[i] - m_loCorner[i] per axis. By default the box is the unit cube [-0.5, 0.5]^3 centered at the origin.
- Template Parameters
-
| T | Floating-point precision. |
The part whose term decides the value at a point (see hasParts): 2 axis + 0 for the face at the low corner, 2 axis + 1 for the one at the high corner (-x, +x, -y, +y, -z, +z), the axis whose term is largest, as in signedDistance().
- Parameters
-
- Returns
- The part.