merged duplicated code regarding GPCPolygon

This commit is contained in:
2018-04-04 09:37:05 +02:00
parent e6444ceeb7
commit 3b76c09986
5 changed files with 144 additions and 224 deletions

View File

@@ -3,7 +3,8 @@
#include "../../../floorplan/v2/Floorplan.h"
#include "../../../geo/Triangle3.h"
#include "ModelFactoryHelper.h"
#include "../../../geo/GPCPolygon2.h"
#include "Obstacle3.h"
#include "Cube.h"
#include "Tube.h"
@@ -129,7 +130,7 @@ namespace Ray3D {
// process all "add" regions by type
// [this allows for overlaps of the same type]
std::unordered_map<std::string, Polygon> types;
std::unordered_map<std::string, GPCPolygon2> types;
for (Floorplan::FloorOutlinePolygon* fop : f->outline) {
if (fop->method == Floorplan::OutlineMethod::ADD) {
if (fop->outdoor) {