initial commit
setup for 2D and 3D raytracing
This commit is contained in:
18
code/misc.h
Normal file
18
code/misc.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef MISC_H
|
||||
#define MISC_H
|
||||
|
||||
#include <Indoor/floorplan/v2/FloorplanReader.h>
|
||||
#include <Indoor/wifi/estimate/ray3/ModelFactory.h>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
void writeMap3(const Floorplan::IndoorMap* map, const std::string& file) {
|
||||
|
||||
ModelFactory fac(map);
|
||||
std::ofstream outOBJ(file);
|
||||
outOBJ << fac.toOBJ();
|
||||
outOBJ.close();
|
||||
|
||||
}
|
||||
|
||||
#endif // MISC_H
|
||||
Reference in New Issue
Block a user