OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MeshImport.h
Go to the documentation of this file.
1#pragma once
2
3#include "OldTreeIcon.h"
4
5#include <string>
6
7class Application;
8class ModelComponent;
9
10class MeshWriter;
11class EntityMeshTet;
12
14{
15public:
16 MeshImport(Application *app) : application(app) {};
18
19 std::string getFileExtensions(void);
20
21 void importMesh(const std::string &meshName, const std::string &originalName, const std::string &content, ot::UID uncompressedDataLength);
22
23
24private:
25 void CreateTmpFileFromCompressedData(std::string fileName, const std::string& data, ot::UID uncompressedDataLength);
26 void writeMeshEntities(MeshWriter* meshWriter, EntityMeshTet* mesh, const std::string& materialsFolder, ot::UID materialsFolderID);
27 void getNewColor(size_t count, double& colorR, double& colorG, double& colorB);
28
29 Application *application;
30 std::string tmpDir;
31
32};
Definition Application.h:25
Definition MeshImport.h:14
~MeshImport()
Definition MeshImport.h:17
std::string getFileExtensions(void)
Definition MeshImport.cpp:25
MeshImport(Application *app)
Definition MeshImport.h:16
void importMesh(const std::string &meshName, const std::string &originalName, const std::string &content, ot::UID uncompressedDataLength)
Definition MeshImport.cpp:41
Definition MeshWriter.h:30
The app namespace contains several functions that may be used to start processes.
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27