Removed duplicated code regarding GPCPoly
This commit is contained in:
@@ -2,12 +2,11 @@
|
||||
#define MV3DELEMENTFLOOROUTLINE_H
|
||||
|
||||
#include <Indoor/floorplan/v2/Floorplan.h>
|
||||
#include <Indoor/wifi/estimate/ray3/ModelFactoryHelper.h>
|
||||
#include <Indoor/geo/GPCPolygon2.h>
|
||||
|
||||
#include "misc/Cube.h"
|
||||
#include "MV3DElement.h"
|
||||
|
||||
#include "../../lib/gpc/gpc.h"
|
||||
#include "misc/Outline.h"
|
||||
|
||||
class MV3DElementFloorOutline : public MV3DElement {
|
||||
@@ -17,7 +16,7 @@ class MV3DElementFloorOutline : public MV3DElement {
|
||||
|
||||
struct Temp {
|
||||
Point2 cacheSum;
|
||||
Ray3D::Polygon* pol = nullptr;
|
||||
GPCPolygon2* pol = nullptr;
|
||||
std::vector<std::vector<Point3>> trias;
|
||||
};
|
||||
|
||||
@@ -80,7 +79,7 @@ protected:
|
||||
std::vector<gpc_polygon> add;
|
||||
std::vector<gpc_polygon> rem;
|
||||
if (tmp.pol) {delete tmp.pol;}
|
||||
tmp.pol = new Ray3D::Polygon();
|
||||
tmp.pol = new GPCPolygon2();
|
||||
|
||||
// all to-be-added polygons (filter!)
|
||||
for (Floorplan::FloorOutlinePolygon* poly : polys) {
|
||||
|
||||
Reference in New Issue
Block a user