cesium-native  0.41.0
Mesh.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/MeshPrimitive.h"
7 #include "CesiumGltf/NamedObject.h"
8 
9 #include <vector>
10 
11 namespace CesiumGltf {
16 struct CESIUMGLTF_API Mesh final : public CesiumGltf::NamedObject {
17  static inline constexpr const char* TypeName = "Mesh";
18 
22  std::vector<CesiumGltf::MeshPrimitive> primitives;
23 
28  std::vector<double> weights;
29 };
30 } // namespace CesiumGltf
Classes for working with glTF models.
A set of primitives to be rendered. Its global transform is defined by a node that references it.
Definition: Mesh.h:16
std::vector< double > weights
Array of weights to be applied to the morph targets. The number of array elements MUST match the numb...
Definition: Mesh.h:28
std::vector< CesiumGltf::MeshPrimitive > primitives
An array of primitives, each defining geometry to be rendered.
Definition: Mesh.h:22
The base class for objects in a glTF that have a name.
Definition: NamedObject.h:15