3 #include "CesiumGeometry/AxisAlignedBox.h"
4 #include "CesiumGeometry/Library.h"
5 #include "CesiumGeometry/OctreeTileID.h"
7 #include <glm/vec3.hpp>
35 uint32_t rootTilesZ) noexcept;
85 std::optional<CesiumGeometry::OctreeTileID>
104 uint32_t _rootTilesX;
105 uint32_t _rootTilesY;
106 uint32_t _rootTilesZ;
Defines how an AxisAlignedBox is divided into octree tiles.
uint32_t getNumberOfXTilesAtLevel(uint32_t level) const noexcept
Returns the number of tiles, in x-direction, at the given level.
uint32_t getRootTilesX() const noexcept
Returns the number of root tiles, in x-direction.
uint32_t getRootTilesZ() const noexcept
Returns the number of root tiles, in z-direction.
OctreeTilingScheme(const AxisAlignedBox &box, uint32_t rootTilesX, uint32_t rootTilesY, uint32_t rootTilesZ) noexcept
Constructs a new instance.
std::optional< CesiumGeometry::OctreeTileID > positionToTile(const glm::dvec3 &position, uint32_t level) const noexcept
Computes the CesiumGeometry::OctreeTileID for a given position and level.
AxisAlignedBox tileToBox(const CesiumGeometry::OctreeTileID &tileID) const noexcept
Returns the AxisAlignedBox that is covered by the specified tile.
const AxisAlignedBox & getBox() const noexcept
Return the overall box that is tiled.
uint32_t getRootTilesY() const noexcept
Returns the number of root tiles, in y-direction.
uint32_t getNumberOfYTilesAtLevel(uint32_t level) const noexcept
Returns the number of tiles, in y-direction, at the given level.
uint32_t getNumberOfZTilesAtLevel(uint32_t level) const noexcept
Returns the number of tiles, in z-direction, at the given level.
Basic geometry classes for Cesium.
A structure serving as a unique identifier for a node in an octree.