started working on 3D building stuff

This commit is contained in:
2018-02-05 20:20:48 +01:00
parent d8b91cf144
commit 0bb1b707de
7 changed files with 145 additions and 74 deletions

View File

@@ -7,16 +7,31 @@
#include "../../../floorplan/v2/Floorplan.h"
/**
* 3D obstacle
* based on multiple triangles
* has a material and a type
*/
struct Obstacle3D {
enum class Type {
UNKNOWN,
GROUND_INDOOR,
GROUND_OUTDOOR,
STAIR,
DOOR,
WALL,
};
Type type;
Floorplan::Material mat;
std::vector<Triangle3> triangles;
/** empty ctor */
Obstacle3D() : mat() {;}
Obstacle3D() : type(Type::UNKNOWN), mat() {;}
/** ctor */
Obstacle3D(Floorplan::Material mat) : mat(mat) {;}
Obstacle3D(Type type, Floorplan::Material mat) : type(type), mat(mat) {;}
};