NLToolbox
src/include/ObjExporter.h
00001 /*
00002  * ObjExporter.h
00003  *
00004  *  Created on: Feb 4, 2013
00005  *      Author: romain
00006  */
00007 
00008 #ifndef OBJEXPORTER_H_
00009 #define OBJEXPORTER_H_
00010 
00011 #include "utils.h"
00012 #include "Hpolyhedron.h"
00013 
00014 namespace nltool {
00015 
00016 
00017 using namespace std;
00018 
00019 class ObjExporter {
00020 public:
00021         ObjExporter(int dim, const string fname="noname.obj");
00022         virtual ~ObjExporter();
00023         void save(Hpolyhedron& set);
00024         void save(std::vector<Hpolyhedron>& sets);
00025 
00026 private:
00027         unsigned dimension;
00028         string filename;
00029         unsigned verticesOffset;
00030         unsigned objectIndices;
00031         unsigned groupIndices;
00032         vector<int> projectedAxis;
00033 
00034 };
00035 
00036 }  // namespace nltool
00037 
00038 #endif /* OBJEXPORTER_H_ */
 All Classes Namespaces Functions