cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesContent::B3dmToGltfConverter Struct Reference

Converts a b3dm (Batched 3D Model) file to a glTF. More...

#include <Cesium3DTilesContent/B3dmToGltfConverter.h>

Static Public Member Functions

static CesiumAsync::Future< GltfConverterResultconvert (const std::span< const std::byte > &b3dmBinary, const CesiumGltfReader::GltfReaderOptions &options, const AssetFetcher &assetFetcher)
 Converts a b3dm binary file to a glTF model.
 

Detailed Description

Converts a b3dm (Batched 3D Model) file to a glTF.

For more information on the b3dm format, see https://github.com/CesiumGS/3d-tiles/blob/main/specification/TileFormats/Batched3DModel/README.adoc

Definition at line 21 of file B3dmToGltfConverter.h.

Member Function Documentation

◆ convert()

static CesiumAsync::Future< GltfConverterResult > Cesium3DTilesContent::B3dmToGltfConverter::convert ( const std::span< const std::byte > & b3dmBinary,
const CesiumGltfReader::GltfReaderOptions & options,
const AssetFetcher & assetFetcher )
static

Converts a b3dm binary file to a glTF model.

Parameters
b3dmBinaryThe bytes loaded for the b3dm model.
optionsOptions for how the glTF should be loaded.
assetFetcherThe AssetFetcher containing information used by loaded assets.
Returns
A future that resolves to a GltfConverterResult.

The documentation for this struct was generated from the following file: