From 87fe85f9914cd841e92e7a91aea387927cbcc11d Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 28 Feb 2025 03:56:32 +0100 Subject: [PATCH 1/2] Building with cesium-native set up for vcpkg use I.e., https://github.com/CesiumGS/cesium-native/pull/1026 --- native~/extern/cesium-native | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native~/extern/cesium-native b/native~/extern/cesium-native index b659f724..09919ace 160000 --- a/native~/extern/cesium-native +++ b/native~/extern/cesium-native @@ -1 +1 @@ -Subproject commit b659f724ac3f736e062b039c59d7a92b6b87ac78 +Subproject commit 09919aceca9765d692b379054262877e36659d75 From 702f0d8e5b8b4524424ccb701b435c2c714c9ae0 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Fri, 28 Feb 2025 05:01:39 +0100 Subject: [PATCH 2/2] Visitor function to handle CesiumGeometry::BoundingCylinderRegion --- native~/Runtime/src/Cesium3DTilesetImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native~/Runtime/src/Cesium3DTilesetImpl.cpp b/native~/Runtime/src/Cesium3DTilesetImpl.cpp index 1e5ff12b..01aba635 100644 --- a/native~/Runtime/src/Cesium3DTilesetImpl.cpp +++ b/native~/Runtime/src/Cesium3DTilesetImpl.cpp @@ -279,6 +279,10 @@ struct CalculateECEFCameraPosition { glm::dvec3 operator()(const CesiumGeospatial::S2CellBoundingVolume& s2) { return (*this)(s2.computeBoundingRegion(ellipsoid)); } + + glm::dvec3 operator()(const CesiumGeometry::BoundingCylinderRegion& cyl) { + return (*this)(cyl.toOrientedBoundingBox()); + } }; } // namespace