5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/Padding.h>
7#include <CesiumUtility/ExtensibleObject.h>
24 static constexpr const char*
TypeName =
"Extension3dTilesTilesetVoxels";
37 std::optional<CesiumGltf::Padding>
padding;
56 accum += int64_t(
sizeof(int64_t) * this->dimensions.capacity());
61 accum += int64_t(this->classProperty.capacity() *
sizeof(
char));
Classes for working with glTF models.
3D Tiles voxel content extension. Indicates the presence of voxel content and associates it with meta...
static constexpr const char * TypeName
The original name of this type.
std::string classProperty
The class that property values conform to. The value shall be a class ID declared in the classes dict...
std::optional< CesiumGltf::Padding > padding
The optional padding of the voxels.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< int64_t > dimensions
Dimensions of the voxel grid.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
The padding around a voxel grid. Specifies how many rows of attribute data come from neighboring grid...
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...