2023-01-28 06:48:04 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
2024-05-07 21:51:21 +08:00
|
|
|
#include <Cesium3DTilesContent/GltfConverters.h>
|
|
|
|
|
#include <CesiumAsync/AsyncSystem.h>
|
|
|
|
|
#include <CesiumGltfReader/GltfReader.h>
|
2023-11-02 16:48:57 +08:00
|
|
|
#include <CesiumNativeTests/readFile.h>
|
2023-11-02 14:41:09 +08:00
|
|
|
|
2023-01-28 06:48:04 +08:00
|
|
|
#include <filesystem>
|
|
|
|
|
|
2023-11-02 19:05:00 +08:00
|
|
|
namespace Cesium3DTilesContent {
|
2023-01-28 06:48:04 +08:00
|
|
|
|
|
|
|
|
class ConvertTileToGltf {
|
|
|
|
|
public:
|
2024-05-07 21:51:21 +08:00
|
|
|
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 = {});
|
2023-01-28 06:48:04 +08:00
|
|
|
|
2024-05-07 21:51:21 +08:00
|
|
|
private:
|
|
|
|
|
static CesiumAsync::AsyncSystem asyncSystem;
|
2024-05-20 21:40:18 +08:00
|
|
|
static AssetFetcher makeAssetFetcher(const std::string& baseUrl);
|
2023-01-28 06:48:04 +08:00
|
|
|
};
|
2023-11-02 19:05:00 +08:00
|
|
|
} // namespace Cesium3DTilesContent
|