Files
Raytrace/code/misc.h
kazu c9e425ec96 initial commit
setup for 2D and 3D raytracing
2017-09-13 08:04:56 +02:00

19 lines
361 B
C++

#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