Merge branch 'master' of https://git.frank-ebner.de/FHWS/Indoor
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "Elevators.h"
|
||||
|
||||
#include "../../../geo/Units.h"
|
||||
#include "../../../geo/Circle2.h"
|
||||
#include "../../GridNodeBBox.h"
|
||||
#include "../../Grid.h"
|
||||
|
||||
@@ -583,7 +584,10 @@ private:
|
||||
if (lineObstacle.getSegmentIntersection(lineNodes)) {return true;}
|
||||
|
||||
} else if (dynamic_cast<Floorplan::FloorObstacleCircle*>(fo)) {
|
||||
throw Exception("should not happen");
|
||||
const Floorplan::FloorObstacleCircle* circle = (Floorplan::FloorObstacleCircle*) fo;
|
||||
Circle2 circ(circle->center, circle->radius);
|
||||
if (circ.intersects(lineNodes)) {return true;}
|
||||
//throw Exception("should not happen");
|
||||
|
||||
} else if (dynamic_cast<Floorplan::FloorObstacleDoor*>(fo)) {
|
||||
// DOORS ARE NOT AN OBSTACLE
|
||||
|
||||
Reference in New Issue
Block a user