cesium-native
0.41.0
|
Basic geometry classes for Cesium. More...
Classes | |
struct | ConstantAvailability |
struct | SubtreeBufferView |
struct | AvailabilitySubtree |
struct | AvailabilityNode |
Availability nodes wrap subtree objects and link them together to form a downwardly traversable availability tree. More... | |
struct | AvailabilityTree |
class | AvailabilityAccessor |
struct | AxisAlignedBox |
class | BoundingSphere |
A bounding sphere with a center and a radius. More... | |
struct | InterpolatedVertex |
A structure describing a vertex that results from interpolating two other vertices. More... | |
class | IntersectionTests |
Functions for computing the intersection between geometries such as rays, planes, triangles, and ellipsoids. More... | |
class | OctreeAvailability |
struct | OctreeTileID |
A structure serving as a unique identifier for a node in an octree. More... | |
class | OctreeTilingScheme |
Defines how an AxisAlignedBox is divided into octree tiles. More... | |
class | OrientedBoundingBox |
A bounding volume defined as a closed and convex cuboid with any orientation. More... | |
class | Plane |
A plane in Hessian Normal Format. More... | |
class | QuadtreeAvailability |
class | QuadtreeRectangleAvailability |
Manages information about the availability of tiles in a quadtree. More... | |
struct | QuadtreeTileID |
Uniquely identifies a node in a quadtree. More... | |
struct | UpsampledQuadtreeNode |
A node of a tile hierarchy that was created by upsampling the tile content of a parent node. More... | |
struct | QuadtreeTileRectangularRange |
A rectangular range of tiles at a particular level of a quadtree. More... | |
class | QuadtreeTilingScheme |
Defines how a rectangular region is divided into quadtree tiles. More... | |
class | Ray |
A ray that extends infinitely from the provided origin in the provided direction. More... | |
struct | Rectangle |
A 2D rectangle. More... | |
struct | Transforms |
Coordinate system matrix constructions helpers. More... | |
Typedefs | |
typedef std::variant< ConstantAvailability, SubtreeBufferView > | AvailabilityView |
using | TriangleClipVertex = std::variant< int, InterpolatedVertex > |
A vertex resulting from clipping a triangle against a threshold. More... | |
Enumerations | |
enum class | Axis { X , Y , Z } |
An enum describing the x, y, and z axes. More... | |
enum class | CullingResult { Outside = -1 , Intersecting = 0 , Inside = 1 } |
The result of culling an object. More... | |
enum | TileAvailabilityFlags { TILE_AVAILABLE = 1U , CONTENT_AVAILABLE = 2U , SUBTREE_AVAILABLE = 4U , SUBTREE_LOADED = 8U , REACHABLE = 16U } |
Functions | |
void | clipTriangleAtAxisAlignedThreshold (double threshold, bool keepAbove, int i0, int i1, int i2, double u0, double u1, double u2, std::vector< TriangleClipVertex > &result) noexcept |
Splits a 2D triangle at given axis-aligned threshold value and returns the resulting polygon on a given side of the threshold. More... | |
Basic geometry classes for Cesium.
using CesiumGeometry::TriangleClipVertex = typedef std::variant<int, InterpolatedVertex> |
A vertex resulting from clipping a triangle against a threshold.
It may either be a simple index referring to an existing vertex, or an interpolation between two vertices.
Definition at line 51 of file clipTriangleAtAxisAlignedThreshold.h.
|
strong |
|
strong |
The result of culling an object.
Definition at line 10 of file CullingResult.h.
Definition at line 9 of file TileAvailabilityFlags.h.
|
noexcept |
Splits a 2D triangle at given axis-aligned threshold value and returns the resulting polygon on a given side of the threshold.
The resulting polygon may have 0, 1, 2, 3, or 4 vertices.
threshold | The threshold coordinate value at which to clip the triangle. |
keepAbove | true to keep the portion of the triangle above the threshold, or false to keep the portion below. |
i0 | The index of the first vertex in the triangle in counter-clockwise order, used only to construct the TriangleClipVertex result. |
i1 | The index of the second vertex in the triangle in counter-clockwise order, used only to construct the TriangleClipVertex result. |
i2 | The index of the third vertex in the triangle in counter-clockwise order, used only to construct the TriangleClipVertex result. |
u0 | The coordinate of the first vertex in the triangle, in counter-clockwise order. |
u1 | The coordinate of the second vertex in the triangle, in counter-clockwise order. |
u2 | The coordinate of the third vertex in the triangle, in counter-clockwise order. |
result | On return, contains the polygon that results after the clip, specified as a list of vertices. If this vector already contains elements, the result is pushed onto the end of the vector. |