Internal helpers shared by the point-cloud search structures; not part of the public API.
More...
|
| template<class T > |
| void | requireValidCloud (const char *a_who, const std::vector< Vec3T< T > > &a_positions) noexcept |
| | Abort with a message unless a point cloud can be indexed.
|
| |
| uint32_t | keyCount (const uint32_t a_n) noexcept |
| | The smallest power of two at least a_n, and 0 for 0: how many keys a build sorts with GPU::bitonicSort().
|
| |
| template<class T , class Source > |
| BoundingVolumes::AABBT< T > | boxOf (const Source &a_source, const uint32_t a_numPoints, const bool a_parallel, Vec3T< T > *a_scratch, const char *a_who, const char *a_noun="point") |
| | The box of a cloud, found where a build runs, and every coordinate checked finite.
|
| |
Internal helpers shared by the point-cloud search structures; not part of the public API.
template<class T , class Source >
| BoundingVolumes::AABBT< T > EBGeometry::PointCloudDetail::boxOf |
( |
const Source & |
a_source, |
|
|
const uint32_t |
a_numPoints, |
|
|
const bool |
a_parallel, |
|
|
Vec3T< T > * |
a_scratch, |
|
|
const char * |
a_who, |
|
|
const char * |
a_noun = "point" |
|
) |
| |
|
inline |
The box of a cloud, found where a build runs, and every coordinate checked finite.
Internal helper; not part of the public API. Through GPU::parallelFor() (GPU::boundingBoxOf()), a non-finite point shows only as a non-finite box, so it is reported as "a point"; on the host it is reported by its index.
- Template Parameters
-
| T | Floating-point precision. |
| Source | The positions' source. |
- Parameters
-
| [in] | a_source | The positions. |
| [in] | a_numPoints | Number of points. |
| [in] | a_parallel | Whether the build runs through GPU::parallelFor(). |
| [in] | a_scratch | GPU::boundingBoxScratchSize(a_numPoints) elements the launches can write, for a build through GPU::parallelFor(); unused otherwise. |
| [in] | a_who | The calling function, for the message when a point is not finite. |
| [in] | a_noun | What a point is called in that message ("point", or "sphere" for a box of centers). |
- Returns
- The box; zeros for no points.