cesium-native/Cesium3DTilesContent/test/ConvertTileToGltf.h

29 lines
881 B
C
Raw Permalink Normal View History

#pragma once
#include <Cesium3DTilesContent/GltfConverters.h>
#include <CesiumAsync/AsyncSystem.h>
#include <CesiumGltfReader/GltfReader.h>
#include <CesiumNativeTests/readFile.h>
2023-11-02 14:41:09 +08:00
#include <filesystem>
namespace Cesium3DTilesContent {
class ConvertTileToGltf {
public:
static GltfConverterResult fromB3dm(
const std::filesystem::path& filePath,
const CesiumGltfReader::GltfReaderOptions& options = {});
static GltfConverterResult fromPnts(
const std::filesystem::path& filePath,
const CesiumGltfReader::GltfReaderOptions& options = {});
2024-06-03 08:57:46 +08:00
static GltfConverterResult fromI3dm(
const std::filesystem::path& filePath,
const CesiumGltfReader::GltfReaderOptions& options = {});
private:
static CesiumAsync::AsyncSystem asyncSystem;
2024-05-20 21:40:18 +08:00
static AssetFetcher makeAssetFetcher(const std::string& baseUrl);
};
} // namespace Cesium3DTilesContent