cesium-native 0.43.0
Loading...
Searching...
No Matches
CullingVolume.h
1#pragma once
2
3#include "Plane.h"
4
6
14struct 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.
CesiumGeometry::Plane rightPlane
The right plane of the culling volume.
CesiumGeometry::Plane topPlane
The top plane of the culling volume.
CesiumGeometry::Plane leftPlane
The left plane of the culling volume.
CesiumGeometry::Plane bottomPlane
The bottom plane of the culling volume.