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

Converts an i3dm (Instanced 3D Model) file to a glTF model. More...

#include <Cesium3DTilesContent/I3dmToGltfConverter.h>

Static Public Member Functions

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

Detailed Description

Converts an i3dm (Instanced 3D Model) file to a glTF model.

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

Definition at line 20 of file I3dmToGltfConverter.h.

Member Function Documentation

◆ convert()

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

Converts an i3dm binary file to a glTF model.

Parameters
instancesBinaryThe bytes loaded for the i3dm 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: