|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Declaration of various space-filling curves. More...
#include <cstdint>#include <vector>#include "EBGeometry_Array.hpp"#include "EBGeometry_GPU.hpp"#include "EBGeometry_Math.hpp"#include "EBGeometry_Vec.hpp"#include "EBGeometry_SFCImplem.hpp"

Go to the source code of this file.
Classes | |
| struct | EBGeometry::SFC::Morton |
| Implementation of the Morton SFC. More... | |
| struct | EBGeometry::SFC::Nested |
| Implementation of a nested index SFC. More... | |
| struct | EBGeometry::SFC::Hilbert |
| Implementation of the 3D Hilbert space-filling curve. More... | |
| struct | EBGeometry::SFCDetail::MortonKey |
| A point's sort key: its cell's Morton code, then its index, so that no two keys are equal and every sort (std::sort on the host, GPU::bitonicSort() on a device) gives the one order. More... | |
| struct | EBGeometry::SFCDetail::MortonGrid< T > |
| The Morton grid over a box: a point's cell is (p / 2 - lo / 2) * scale, clamped to [0, SFC::ValidSpan]. More... | |
Namespaces | |
| namespace | EBGeometry |
| Namespace containing all of EBGeometry's functionality. | |
| namespace | EBGeometry::SFC |
| Namespace for space-filling curves (SFCs) used to linearly order 3D grid cells. | |
| namespace | EBGeometry::SFCDetail |
| The Morton grid and sort key shared by the cloud BVH builds and GPU::mortonOrder(). | |
Typedefs | |
| using | EBGeometry::SFC::Code = uint64_t |
| Alias for SFC code. | |
| using | EBGeometry::SFC::Index = Array< unsigned int, 3 > |
| Alias for 3D cell index. | |
Functions | |
| template<class T > | |
| std::vector< Index > | EBGeometry::SFC::computeBins (const std::vector< Vec3T< T > > &a_points) |
| Bin a set of points into the space-filling curve's integer grid, normalizing by their own bounding range. | |
| template<class Curve = Morton, class T > | |
| std::vector< uint32_t > | EBGeometry::SFC::order (const std::vector< Vec3T< T > > &a_points) |
| Return the index permutation that orders a_points along a space-filling curve. | |
Variables | |
| static constexpr unsigned int | EBGeometry::SFC::ValidBits = 21 |
| Maximum available bits per dimension. 21 is the largest value for which 3*ValidBits (63) still fits in a 64-bit Morton code with one bit to spare. | |
| static constexpr Code | EBGeometry::SFC::ValidSpan = (static_cast<uint64_t>(1) << ValidBits) - 1 |
| Maximum permitted span along any spatial coordinate. | |
Declaration of various space-filling curves.