cesium-native
0.48.0
Loading...
Searching...
No Matches
SkirtMeshMetadata.h
1
#include <CesiumUtility/JsonValue.h>
2
3
#include <glm/vec3.hpp>
4
5
#include <optional>
6
7
namespace
CesiumGltfContent
{
8
23
struct
SkirtMeshMetadata
{
27
SkirtMeshMetadata
() noexcept
28
:
noSkirtIndicesBegin
{0},
29
noSkirtIndicesCount
{0},
30
noSkirtVerticesBegin
{0},
31
noSkirtVerticesCount
{0},
32
meshCenter
{0.0, 0.0, 0.0},
33
skirtWestHeight
{0.0},
34
skirtSouthHeight
{0.0},
35
skirtEastHeight
{0.0},
36
skirtNorthHeight
{0.0} {}
37
46
static
std::optional<SkirtMeshMetadata>
47
parseFromGltfExtras
(
const
CesiumUtility::JsonValue::Object
& extras);
48
60
static
CesiumUtility::JsonValue::Object
61
createGltfExtras
(
const
SkirtMeshMetadata
& skirt);
62
67
uint32_t
noSkirtIndicesBegin
;
76
uint32_t
noSkirtIndicesCount
;
81
uint32_t
noSkirtVerticesBegin
;
90
uint32_t
noSkirtVerticesCount
;
95
glm::dvec3
meshCenter
;
99
double
skirtWestHeight
;
103
double
skirtSouthHeight
;
107
double
skirtEastHeight
;
111
double
skirtNorthHeight
;
112
};
113
}
// namespace CesiumGltfContent
CesiumUtility::JsonValue::Object
std::map< std::string, JsonValue > Object
The type to represent an Object JSON value.
Definition
JsonValue.h:73
CesiumGltfContent
Classes that support manipulating the content of a glTF.
Definition
GltfUtilities.h:25
CesiumGltfContent::SkirtMeshMetadata::skirtSouthHeight
double skirtSouthHeight
The height of the skirt on the southern edge of the mesh.
Definition
SkirtMeshMetadata.h:103
CesiumGltfContent::SkirtMeshMetadata::parseFromGltfExtras
static std::optional< SkirtMeshMetadata > parseFromGltfExtras(const CesiumUtility::JsonValue::Object &extras)
Parses SkirtMeshMetadata from the extras field of a glTF mesh, if present.
CesiumGltfContent::SkirtMeshMetadata::noSkirtIndicesCount
uint32_t noSkirtIndicesCount
The length of the range of a glTF mesh's indices buffer that should NOT be considered part of the ski...
Definition
SkirtMeshMetadata.h:76
CesiumGltfContent::SkirtMeshMetadata::skirtWestHeight
double skirtWestHeight
The height of the skirt on the western edge of the mesh.
Definition
SkirtMeshMetadata.h:99
CesiumGltfContent::SkirtMeshMetadata::skirtEastHeight
double skirtEastHeight
The height of the skirt on the eastern edge of the mesh.
Definition
SkirtMeshMetadata.h:107
CesiumGltfContent::SkirtMeshMetadata::SkirtMeshMetadata
SkirtMeshMetadata() noexcept
Creates a new SkirtMeshMetadata with zeroes in all fields.
Definition
SkirtMeshMetadata.h:27
CesiumGltfContent::SkirtMeshMetadata::noSkirtIndicesBegin
uint32_t noSkirtIndicesBegin
The start index of the range of a glTF mesh's indices buffer that should NOT be considered part of th...
Definition
SkirtMeshMetadata.h:67
CesiumGltfContent::SkirtMeshMetadata::noSkirtVerticesBegin
uint32_t noSkirtVerticesBegin
The start index of the range of a glTF mesh's vertices buffer that should NOT be considered part of t...
Definition
SkirtMeshMetadata.h:81
CesiumGltfContent::SkirtMeshMetadata::createGltfExtras
static CesiumUtility::JsonValue::Object createGltfExtras(const SkirtMeshMetadata &skirt)
Creates a glTF mesh extras value from the provided SkirtMeshMetadata.
CesiumGltfContent::SkirtMeshMetadata::noSkirtVerticesCount
uint32_t noSkirtVerticesCount
The length of the range of a glTF mesh's vertices buffer that should NOT be considered part of the sk...
Definition
SkirtMeshMetadata.h:90
CesiumGltfContent::SkirtMeshMetadata::skirtNorthHeight
double skirtNorthHeight
The height of the skirt on the northern edge of the mesh.
Definition
SkirtMeshMetadata.h:111
CesiumGltfContent::SkirtMeshMetadata::meshCenter
glm::dvec3 meshCenter
The center coordinates of the mesh, in Earth-Centered, Earth-Fixed Coordinates (ECEF).
Definition
SkirtMeshMetadata.h:95
CesiumGltfContent
include
CesiumGltfContent
SkirtMeshMetadata.h
Generated by
1.13.2