cesium-native 0.61.0
Loading...
Searching...
No Matches
ExtensionExtMeshPolygon.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9
10namespace CesiumGltf {
14struct CESIUMGLTF_API ExtensionExtMeshPolygon final
19 static constexpr const char* TypeName = "ExtensionExtMeshPolygon";
22 static constexpr const char* ExtensionName = "EXT_mesh_polygon";
23
27 int32_t count = -1;
28
34 int32_t loopIndices = -1;
35
41 int32_t loopIndicesOffsets = -1;
42
48 int32_t indicesOffsets = -1;
49
56 int64_t getSizeBytes() const {
57 int64_t accum = 0;
58 accum += int64_t(sizeof(ExtensionExtMeshPolygon));
60 int64_t(sizeof(CesiumUtility::ExtensibleObject));
61
62 return accum;
63 }
64};
65} // namespace CesiumGltf
Classes for working with glTF models.
glTF extension adding an encoding of polygon primitive topology
int32_t indicesOffsets
Index of an accessor containing one integer offset per polygon in the primitive, indicating the first...
int32_t count
Integer number of polygons encoded in the mesh primitive.
static constexpr const char * TypeName
The original name of this type.
int32_t loopIndices
Index of an accessor containing indices of the polygons' exterior and interior loops....
int32_t loopIndicesOffsets
Index of an accessor containing one integer offset per polygon in the primitive, indicating the first...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
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 ...