|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
The sphere, query result and sphere sources of SphereCloudBVH. More...
Classes | |
| struct | FromArray |
| A source of spheres reading one array of Sphere<T>, indexed by cloud index. More... | |
| struct | FromCentersAndRadii |
| A source of spheres combining a source of centers and a source of radii, for a caller who keeps them apart. More... | |
| struct | FromRadii |
| A source of radii reading one array of T, indexed by cloud index. More... | |
| struct | Hit |
| One query result: the cloud index of a sphere and the signed distance to its surface. More... | |
| struct | Sphere |
| A sphere of a sphere cloud: a center and a radius. More... | |
Variables | |
| constexpr uint32_t | InvalidIndex = Math::Limits<uint32_t>::max() |
| The cloud index of "no sphere": a miss. | |
The sphere, query result and sphere sources of SphereCloudBVH.
A sphere is identified by its cloud index: the index its source is called with, or its position in the array the BVH was built from. Per-sphere user data lives in the caller's own array, indexed by it.
|
inlineconstexpr |
The cloud index of "no sphere": a miss.
A cloud holds fewer spheres than this (the builds check it), so it never names a real sphere.