|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
A BVH ray query whose boxes are grown by a radius: what a mesh's offset faces are walked with. More...
#include <EBGeometry_OffsetRayForms.hpp>
Public Types | |
| using | Scalar = T |
| Floating-point precision. | |
| using | Key = T |
| Key type: a distance along the ray. | |
Public Member Functions | |
| GrownRayQuery (const RayT< T > &a_ray, const T a_tMin, const T a_grow) noexcept | |
| The query along a ray. | |
| T | entry (const T(&a_lo)[3], const T(&a_hi)[3]) const noexcept |
| Where the ray enters a grown box. | |
| template<size_t K> | |
| Array< T, K > | keys (const BVH::ChildBoxes< T, K > &a_row) const noexcept |
| Where the ray enters the K grown child boxes. | |
| template<size_t K> | |
| T | key (const BVH::ChildBoxes< T, K > &a_row, const size_t a_k) const noexcept |
| Where the ray enters one grown child box. | |
| T | key (const BoundingVolumes::AABBT< T > &a_box) const noexcept |
| Where the ray enters a grown box. | |
Public Attributes | |
| Vec3T< T > | m_origin |
| Ray origin. | |
| Vec3T< T > | m_inverseDirection |
| 1 / direction, per component. | |
| T | m_tMin |
| Start of the ray. | |
| T | m_grow |
| How much each box is grown. | |
A BVH ray query whose boxes are grown by a radius: what a mesh's offset faces are walked with.
Internal helper; not part of the public API. Growing [lo, hi] by g moves each axis's slab distances by g / |direction component| outward.
| T | Floating-point precision. |
|
inlinenoexcept |
The query along a ray.
| [in] | a_ray | The ray. |
| [in] | a_tMin | Start. |
| [in] | a_grow | How much each box is grown. |
|
inlinenoexcept |
Where the ray enters a grown box.
| [in] | a_lo | Low corner. |
| [in] | a_hi | High corner. |
|
inlinenoexcept |
Where the ray enters a grown box.
| [in] | a_box | Box. |
|
inlinenoexcept |
Where the ray enters one grown child box.
| K | Branching factor. |
| [in] | a_row | Child boxes. |
| [in] | a_k | Child slot. |
|
inlinenoexcept |
Where the ray enters the K grown child boxes.
| K | Branching factor. |
| [in] | a_row | Child boxes. |