Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
MeshLoader.h
1 #ifndef _MESHLOADER_H_
2 #define _MESHLOADER_H_
3 
4 #include "Mesh.h"
5 #include <string>
6 #include <assimp/scene.h>
7 
11 enum Origin
12 {
13  Min,
14  Center,
15  Max,
16  Unchanged
17 };
18 
24 {
26 
27  bool loadNormals;
28  bool loadTexCoords;
29  bool loadColors;
30  bool loadTextures;
31  bool moveOrigin;
32  Origin originX, originY, originZ;
33 };
34 
39 {
40 public:
44  static void loadCollada(const std::string& path, Mesh* mesh,
45  bool loadNormals=false, bool loadTexCoords=false, bool loadColors=false, bool loadTextures=false);
46 
56  static void loadCollada(const std::string& path, Mesh* mesh, const MeshLoadDescription& descr);
57 
58 private:
59  static void printMaterial(const aiMaterial& material);
60 };
61 
62 
63 #endif