WriteAsFBX and WriteAsSTL refactoring

This commit is contained in:
Vladyslav Baranovskyi
2025-02-06 20:34:43 +02:00
parent e603668023
commit dc460cb106
2 changed files with 90 additions and 140 deletions

View File

@@ -8,6 +8,10 @@
#include <string>
#if __has_include("assimp/Exporter.hpp")
#include <assimp/scene.h>
#endif
namespace OpenVulkano::Scene
{
class Geometry;
@@ -20,5 +24,10 @@ namespace OpenVulkano::Scene
static void WriteAsUSDZ(Geometry* geometry, const std::string& texturePath, const std::string& usdzPath);
static void WriteAsFBX(Geometry* geometry, const std::string& texturePath, const std::string& fbxPath);
static void WriteAsSTL(Geometry* geometry, const std::string& filePath, bool binary);
private:
#if __has_include("assimp/Exporter.hpp")
static void SetupAssimpScene(Geometry* geometry, aiScene& scene, aiNode& rootNode, aiMesh& mesh,
bool withTexCoords, float scaling);
#endif
};
}