This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/wifi/estimate/ray3/Obstacle3.h

40 lines
632 B
C++

#ifndef OBSTACLE3_H
#define OBSTACLE3_H
#include <vector>
#include "../../../geo/Triangle3.h"
#include "../../../geo/Sphere3.h"
#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() : type(Type::UNKNOWN), mat() {;}
/** ctor */
Obstacle3D(Type type, Floorplan::Material mat) : type(type), mat(mat) {;}
};
#endif // OBSTACLE3_H