1#include <CesiumUtility/JsonValue.h>
46 static std::optional<SkirtMeshMetadata>
std::map< std::string, JsonValue > Object
The type to represent an Object JSON value.
Classes that support manipulating the content of a glTF.
Metadata obtained from a glTF that describes the skirts present on the mesh.
double skirtSouthHeight
The height of the skirt on the southern edge of the mesh.
static std::optional< SkirtMeshMetadata > parseFromGltfExtras(const CesiumUtility::JsonValue::Object &extras)
Parses SkirtMeshMetadata from the extras field of a glTF mesh, if present.
uint32_t noSkirtIndicesCount
The length of the range of a glTF mesh's indices buffer that should NOT be considered part of the ski...
double skirtWestHeight
The height of the skirt on the western edge of the mesh.
double skirtEastHeight
The height of the skirt on the eastern edge of the mesh.
SkirtMeshMetadata() noexcept
Creates a new SkirtMeshMetadata with zeroes in all fields.
uint32_t noSkirtIndicesBegin
The start index of the range of a glTF mesh's indices buffer that should NOT be considered part of th...
uint32_t noSkirtVerticesBegin
The start index of the range of a glTF mesh's vertices buffer that should NOT be considered part of t...
static CesiumUtility::JsonValue::Object createGltfExtras(const SkirtMeshMetadata &skirt)
Creates a glTF mesh extras value from the provided SkirtMeshMetadata.
uint32_t noSkirtVerticesCount
The length of the range of a glTF mesh's vertices buffer that should NOT be considered part of the sk...
double skirtNorthHeight
The height of the skirt on the northern edge of the mesh.
glm::dvec3 meshCenter
The center coordinates of the mesh, in Earth-Centered, Earth-Fixed Coordinates (ECEF).