cesium-native  0.41.0
CullingVolume.h
1 #pragma once
2 
3 #include "Plane.h"
4 
5 namespace Cesium3DTilesSelection {
6 
14 struct CullingVolume final {
15 
21  CesiumGeometry::Plane leftPlane{glm::dvec3(0.0, 0.0, 1.0), 0.0};
22 
28  CesiumGeometry::Plane rightPlane{glm::dvec3(0.0, 0.0, 1.0), 0.0};
29 
35  CesiumGeometry::Plane topPlane{glm::dvec3(0.0, 0.0, 1.0), 0.0};
36 
42  CesiumGeometry::Plane bottomPlane{glm::dvec3(0.0, 0.0, 1.0), 0.0};
43 };
44 
56  const glm::dvec3& position,
57  const glm::dvec3& direction,
58  const glm::dvec3& up,
59  double fovx,
60  double fovy) noexcept;
61 } // namespace Cesium3DTilesSelection
A plane in Hessian Normal Format.
Definition: Plane.h:12
Classes that implement the 3D Tiles standard.
CullingVolume createCullingVolume(const glm::dvec3 &position, const glm::dvec3 &direction, const glm::dvec3 &up, double fovx, double fovy) noexcept
Creates a CullingVolume for a perspective frustum.
A culling volume, defined by four planes.
Definition: CullingVolume.h:14
CesiumGeometry::Plane rightPlane
The right plane of the culling volume.
Definition: CullingVolume.h:28
CesiumGeometry::Plane topPlane
The top plane of the culling volume.
Definition: CullingVolume.h:35
CesiumGeometry::Plane leftPlane
The left plane of the culling volume.
Definition: CullingVolume.h:21
CesiumGeometry::Plane bottomPlane
The bottom plane of the culling volume.
Definition: CullingVolume.h:42