cesium-native 0.66.0
Loading...
Searching...
No Matches
Cylinder.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
8namespace CesiumGltf {
16struct CESIUMGLTF_API Cylinder final : public CesiumUtility::ExtensibleObject {
20 static constexpr const char* TypeName = "Cylinder";
21
25 double height = 2;
26
31 double radiusBottom = 0.5;
32
36 double radiusTop = 0.5;
37
44 int64_t getSizeBytes() const {
45 int64_t accum = 0;
46 accum += int64_t(sizeof(Cylinder));
48 int64_t(sizeof(CesiumUtility::ExtensibleObject));
49
50 return accum;
51 }
52};
53} // namespace CesiumGltf
Classes for working with glTF models.
A cylinder, centered at the origin in local space with potentially different radii at each end,...
Definition Cylinder.h:16
double radiusBottom
The radius of the bottom of the cylinder (the disc located along -Y.)
Definition Cylinder.h:31
static constexpr const char * TypeName
The original name of this type.
Definition Cylinder.h:20
double height
The height of the cylinder, centered along the Y axis.
Definition Cylinder.h:25
double radiusTop
The radius of the top of the cylinder (the disc located along +Y.)
Definition Cylinder.h:36
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Cylinder.h:44
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 ...