3#include <CesiumGeometry/BoundingSphere.h>
4#include <CesiumGeometry/OrientedBoundingBox.h>
5#include <CesiumGeospatial/BoundingRegion.h>
6#include <CesiumGeospatial/S2CellBoundingVolume.h>
30 static std::optional<CesiumGeometry::OrientedBoundingBox>
80 static std::optional<CesiumGeometry::BoundingSphere>
108 static std::optional<CesiumGeospatial::S2CellBoundingVolume>
Provides functions for extracting bounding volumes types from the vectors stored in Cesium3DTiles::Bo...
static void setBoundingRegion(Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::BoundingRegion &boundingRegion)
Sets the region property in a Cesium3DTiles::BoundingVolume based on a CesiumGeospatial::BoundingRegi...
static void setBoundingSphere(Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeometry::BoundingSphere &boundingSphere)
Sets the sphere property in a Cesium3DTiles::BoundingVolume based on a CesiumGeometry::BoundingSphere...
static std::optional< CesiumGeospatial::S2CellBoundingVolume > getS2CellBoundingVolume(const Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
Gets the S2 cell bounding volume defined in the 3DTILES_bounding_volume_S2 extension of a Cesium3DTil...
static void setOrientedBoundingBox(Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeometry::OrientedBoundingBox &boundingBox)
Sets the box property in a Cesium3DTiles::BoundingVolume based on an CesiumGeometry::OrientedBounding...
static std::optional< CesiumGeometry::OrientedBoundingBox > getOrientedBoundingBox(const Cesium3DTiles::BoundingVolume &boundingVolume)
Gets the bounding box defined in a Cesium3DTiles::BoundingVolume, if any.
static void setS2CellBoundingVolume(Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::S2CellBoundingVolume &s2BoundingVolume)
Adds the 3DTILES_bounding_volume_S2 extension to a Cesium3DTiles::BoundingVolume based on a CesiumGeo...
static std::optional< CesiumGeospatial::BoundingRegion > getBoundingRegion(const Cesium3DTiles::BoundingVolume &boundingVolume, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
Gets the bounding region defined in a Cesium3DTiles::BoundingVolume, if any.
static std::optional< CesiumGeometry::BoundingSphere > getBoundingSphere(const Cesium3DTiles::BoundingVolume &boundingVolume)
Gets the bounding sphere defined in a Cesium3DTiles::BoundingVolume, if any.
A bounding sphere with a center and a radius.
A bounding volume defined as a closed and convex cuboid with any orientation.
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
A quadratic surface defined in Cartesian coordinates.
Classes that support loading and converting 3D Tiles tile content.
std::variant< CesiumGeometry::BoundingSphere, CesiumGeometry::OrientedBoundingBox, CesiumGeospatial::BoundingRegion, CesiumGeospatial::BoundingRegionWithLooseFittingHeights, CesiumGeospatial::S2CellBoundingVolume > BoundingVolume
A bounding volume.
Classes for using 3D Tiles.
A bounding volume that encloses a tile or its content. At least one bounding volume property is requi...