added floorplan support for object-sizing
added floorplan support for different wall-heights minor fixes/changes
This commit is contained in:
@@ -32,6 +32,7 @@ private:
|
||||
std::vector<T*> toDelete;
|
||||
|
||||
bool tryImproveStairConnections = true;
|
||||
bool abortOnError = true;
|
||||
|
||||
private:
|
||||
|
||||
@@ -47,7 +48,6 @@ private:
|
||||
|
||||
StairNode(const int x_cm, const int y_cm, const int quadIdx) : x_cm(x_cm), y_cm(y_cm), belongsToQuadIdx(quadIdx) {;}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -62,7 +62,10 @@ public:
|
||||
finalize();
|
||||
}
|
||||
|
||||
|
||||
/** whether to abort when errors are detected */
|
||||
void setAbortOnError(const bool abort) {
|
||||
this->abortOnError = abort;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -184,7 +187,11 @@ public:
|
||||
|
||||
// be sure both are connected to a floor
|
||||
if (!end1OK || !end2OK) {
|
||||
throw Exception("stair's start or end is not directly connectable to a floor");
|
||||
if (abortOnError) {
|
||||
throw Exception("stair's start or end is not directly connectable to a floor");
|
||||
} else{
|
||||
std::cout << "stair's start or end is not directly connectable to a floor" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user