A mesh BVH node. More...
#include <types.h>

Data Fields | |
| b3Vec3 | lowerBound |
| The lower bound of the node AABB. Strategic placement for SIMD. | |
| union { | |
| struct { | |
| uint32_t | axis: 2 |
| Split axis. 0, 1, or 2. | |
| uint32_t | childOffset: 30 |
| Offset of the second child node. | |
| } | asNode |
| Internal node. | |
| struct { | |
| uint32_t | type: 2 |
| Aligned with axis above and has value of 3 if this is a leaf. | |
| uint32_t | triangleCount: 30 |
| The number of triangles for this leaf node. | |
| } | asLeaf |
| Leaf node. | |
| } | data |
| Anonymous union. | |
| b3Vec3 | upperBound |
| The upper bound of the node AABB. Strategic placement for SIMD. | |
| uint32_t | triangleOffset |
| The index of the leaf triangles. | |
A mesh BVH node.