worked on 3D walls
This commit is contained in:
@@ -1,22 +1,21 @@
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
#include "../Tests.h"
|
||||
#include "../../wifi/estimate/ray3/ModelFactory.h"
|
||||
#include "../../floorplan/3D/Builder.h"
|
||||
#include "../../floorplan/v2/FloorplanReader.h"
|
||||
#include <fstream>
|
||||
using namespace Ray3D;
|
||||
|
||||
TEST(Ray, ModelFac) {
|
||||
TEST(Floorplan3D, ModelFac) {
|
||||
|
||||
//std::string file = "/apps/paper/diss/data/maps/SHL42_nm.xml";
|
||||
std::string file = "/mnt/vm/paper/diss/data/maps/SHL42_nm.xml";
|
||||
|
||||
Floorplan::IndoorMap* map = Floorplan::Reader::readFromFile(file);
|
||||
|
||||
ModelFactory fac(map);
|
||||
Floorplan3D::Builder fac(map);
|
||||
//fac.triangulize();
|
||||
|
||||
FloorplanMesh mesh = fac.getMesh();
|
||||
Floorplan3D::FloorplanMesh mesh = fac.getMesh();
|
||||
|
||||
std::ofstream out("/tmp/fhws.ply");
|
||||
out << mesh.toPLY() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user