worked on 3D model creation
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "../../floorplan/v2/FloorplanReader.h"
|
||||
#include "../../wifi/estimate/ray3/ModelFactory.h"
|
||||
|
||||
using namespace Ray3D;
|
||||
|
||||
struct Wrapper {
|
||||
|
||||
static std::vector<Point3> getVertices(const BBox3& bbox) {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "../Tests.h"
|
||||
#include "../../wifi/estimate/ray3/DataMap3.h"
|
||||
using namespace Ray3D;
|
||||
|
||||
TEST(DataMap3, test) {
|
||||
|
||||
|
||||
@@ -4,17 +4,20 @@
|
||||
#include "../../wifi/estimate/ray3/ModelFactory.h"
|
||||
#include "../../floorplan/v2/FloorplanReader.h"
|
||||
#include <fstream>
|
||||
using namespace Ray3D;
|
||||
|
||||
TEST(Ray, ModelFac) {
|
||||
|
||||
std::string file = "/mnt/data/workspaces/IndoorMap/maps/SHL39.xml";
|
||||
std::string file = "/apps/paper/diss/data/maps/SHL41_nm.xml";
|
||||
Floorplan::IndoorMap* map = Floorplan::Reader::readFromFile(file);
|
||||
|
||||
ModelFactory fac(map);
|
||||
fac.triangulize();
|
||||
//fac.triangulize();
|
||||
|
||||
std::ofstream out("/mnt/vm/fhws.obj");
|
||||
out << fac.toOBJ() << std::endl;
|
||||
FloorplanMesh mesh = fac.getMesh();
|
||||
|
||||
std::ofstream out("/tmp/fhws.ply");
|
||||
out << mesh.toPLY() << std::endl;
|
||||
out.close();
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "../../wifi/estimate/ray3/WifiRayTrace3D.h"
|
||||
#include "../../floorplan/v2/FloorplanReader.h"
|
||||
#include <fstream>
|
||||
using namespace Ray3D;
|
||||
|
||||
TEST(RayTrace3, test) {
|
||||
|
||||
@@ -19,7 +20,7 @@ TEST(RayTrace3, test) {
|
||||
|
||||
ModelFactory fac(map);
|
||||
std::ofstream outOBJ("/tmp/vm/map.obj");
|
||||
outOBJ << fac.toOBJ();
|
||||
outOBJ << fac.getMesh().toOBJ();
|
||||
outOBJ.close();
|
||||
|
||||
const int gs_cm = 50;
|
||||
|
||||
Reference in New Issue
Block a user