cesium-native 0.61.0
Loading...
Searching...
No Matches
ExtensionExtMeshPrimitiveEdgeVisibilitySpec.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 <CesiumGltf/LineString.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <cstdint>
10#include <vector>
11
12namespace CesiumGltf {
22 static constexpr const char* TypeName =
23 "ExtensionExtMeshPrimitiveEdgeVisibility";
26 static constexpr const char* ExtensionName =
27 "EXT_mesh_primitive_edge_visibility";
28
37 int32_t visibility = -1;
38
45 int32_t material = -1;
46
55 int32_t silhouetteNormals = -1;
56
63 std::vector<CesiumGltf::LineString> lineStrings;
64
71 int64_t getSizeBytes() const {
72 int64_t accum = 0;
73 accum += int64_t(sizeof(ExtensionExtMeshPrimitiveEdgeVisibilitySpec));
75 int64_t(sizeof(CesiumUtility::ExtensibleObject));
76 accum +=
77 int64_t(sizeof(CesiumGltf::LineString) * this->lineStrings.capacity());
78 for (const CesiumGltf::LineString& value : this->lineStrings) {
79 accum += value.getSizeBytes() - int64_t(sizeof(CesiumGltf::LineString));
80 }
81 return accum;
82 }
83
84protected:
89 friend struct ExtensionExtMeshPrimitiveEdgeVisibility;
90};
91} // namespace CesiumGltf
Classes for working with glTF models.
int32_t visibility
The index of the accessor encoding the visibility of each triangle edge as a bitfield with two bits p...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
static constexpr const char * TypeName
The original name of this type.
std::vector< CesiumGltf::LineString > lineStrings
An array of edges encoded as line strings.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
int32_t material
The index of a glTF material with which the edges are to be drawn.
ExtensionExtMeshPrimitiveEdgeVisibilitySpec()=default
This class is not meant to be instantiated directly. Use ExtensionExtMeshPrimitiveEdgeVisibility inst...
int32_t silhouetteNormals
The index of the accessor encoding the pair of outward-facing normals for the two faces sharing each ...
Represents one or more line strings to be drawn as edges of a triangle mesh.
Definition LineString.h:16
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 ...