Skip to content

Commit

Permalink
Regenerate for KHR_implicit_shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
j9liu committed Oct 28, 2024
1 parent 0f9b90b commit d799da2
Show file tree
Hide file tree
Showing 42 changed files with 569 additions and 2,126 deletions.
6 changes: 3 additions & 3 deletions CesiumGltf/generated/include/CesiumGltf/Box.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

namespace CesiumGltf {
/**
* @brief An implicit box centered at the local space origin.
* @brief Parameters describing a box shape.
*/
struct CESIUMGLTF_API Box final : public CesiumUtility::ExtensibleObject {
static inline constexpr const char* TypeName = "Box";

/**
* @brief The size of the box in meters.
* @brief The extents of the box in each axis in local space.
*/
std::vector<double> size;
std::vector<double> size = {1, 1, 1};
};
} // namespace CesiumGltf
34 changes: 34 additions & 0 deletions CesiumGltf/generated/include/CesiumGltf/Capsule.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// This file was generated by generate-classes.
// DO NOT EDIT THIS FILE!
#pragma once

#include "CesiumGltf/Library.h"

#include <CesiumUtility/ExtensibleObject.h>

namespace CesiumGltf {
/**
* @brief Parameters describing a capsule shape.
*/
struct CESIUMGLTF_API Capsule final : public CesiumUtility::ExtensibleObject {
static inline constexpr const char* TypeName = "Capsule";

/**
* @brief The distance between the centers of the two capping spheres of
* capsule.
*/
double height = 0.5;

/**
* @brief The radius of the sphere located at the bottom of the capsule (i.e.
* the sphere at the half-height along -Y)
*/
double radiusBottom = 0.25;

/**
* @brief The radius of the sphere located at the top of the capsule (i.e. the
* sphere at the half-height along +Y)
*/
double radiusTop = 0.25;
};
} // namespace CesiumGltf
18 changes: 8 additions & 10 deletions CesiumGltf/generated/include/CesiumGltf/Cylinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,31 @@
// DO NOT EDIT THIS FILE!
#pragma once

#include "CesiumGltf/CylinderSlice.h"
#include "CesiumGltf/Library.h"

#include <CesiumUtility/ExtensibleObject.h>

#include <optional>

namespace CesiumGltf {
/**
* @brief An implicit cylinder centered at the local space origin.
* @brief Parameters describing a cylinder shape.
*/
struct CESIUMGLTF_API Cylinder final : public CesiumUtility::ExtensibleObject {
static inline constexpr const char* TypeName = "Cylinder";

/**
* @brief The radius of the cylinder in meters.
* @brief The height of the cylinder, centered along the Y axis.
*/
double radius = double();
double height = 0.5;

/**
* @brief The height of the cylinder in meters.
* @brief The radius of the bottom of the cylinder (the disk located along
* -Y.)
*/
double height = double();
double radiusBottom = 0.25;

/**
* @brief The optionally-defined slice of the cylinder.
* @brief The radius of the top of the cylinder (the disk located along +Y.)
*/
std::optional<CesiumGltf::CylinderSlice> slice;
double radiusTop = 0.25;
};
} // namespace CesiumGltf
50 changes: 0 additions & 50 deletions CesiumGltf/generated/include/CesiumGltf/CylinderSlice.h

This file was deleted.

30 changes: 0 additions & 30 deletions CesiumGltf/generated/include/CesiumGltf/Ellipsoid.h

This file was deleted.

48 changes: 0 additions & 48 deletions CesiumGltf/generated/include/CesiumGltf/EllipsoidSlice.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ struct CESIUMGLTF_API ExtensionExtPrimitiveVoxels final
static inline constexpr const char* ExtensionName = "EXT_primitive_voxels";

/**
* @brief The index of the shape in `EXT_implicit_geometry` that the voxel
* grid adheres to.
* @brief The index of the shape in `KHR_implicit_shapes` that the voxel grid
* adheres to.
*/
int32_t shape = -1;

/**
* @brief Dimensions of the voxel grid. The values are interpreted with
* respect to the shape indicated by `EXT_implicit_geometry`.
* respect to the shape indicated by `KHR_implicit_shapes`.
*/
std::vector<int64_t> dimensions;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// This file was generated by generate-classes.
// DO NOT EDIT THIS FILE!
#pragma once

#include "CesiumGltf/Library.h"
#include "CesiumGltf/Shape.h"

#include <CesiumUtility/ExtensibleObject.h>

#include <vector>

namespace CesiumGltf {
/**
* @brief Top level collision primitives.
*/
struct CESIUMGLTF_API ExtensionKhrImplicitShapes final
: public CesiumUtility::ExtensibleObject {
static inline constexpr const char* TypeName = "ExtensionKhrImplicitShapes";
static inline constexpr const char* ExtensionName = "KHR_implicit_shapes";

/**
* @brief An array of shape descriptions.
*/
std::vector<CesiumGltf::Shape> shapes;
};
} // namespace CesiumGltf
48 changes: 0 additions & 48 deletions CesiumGltf/generated/include/CesiumGltf/Geometry.h

This file was deleted.

43 changes: 0 additions & 43 deletions CesiumGltf/generated/include/CesiumGltf/Region.h

This file was deleted.

Loading

0 comments on commit d799da2

Please sign in to comment.