added support for pillars
some new helper methods/classes
This commit is contained in:
@@ -165,6 +165,7 @@ namespace Floorplan {
|
||||
DRYWALL,
|
||||
GLASS,
|
||||
METAL,
|
||||
METALLIZED_GLAS,
|
||||
_END,
|
||||
};
|
||||
|
||||
@@ -356,8 +357,10 @@ namespace Floorplan {
|
||||
struct FloorObstacleCircle : public FloorObstacle {
|
||||
Point2 center;
|
||||
float radius;
|
||||
FloorObstacleCircle(const Material material, const Point2 center, const float radius) : FloorObstacle(material), center(center), radius(radius) {;}
|
||||
FloorObstacleCircle(const Material material, const float cx, const float cy, const float radius) : FloorObstacle(material), center(cx,cy), radius(radius) {;}
|
||||
float height = 0; // 0 = floor's height
|
||||
FloorObstacleCircle(const Material material, const Point2 center, const float radius, const float height=0) : FloorObstacle(material), center(center), radius(radius), height(height) {;}
|
||||
FloorObstacleCircle(const Material material, const float cx, const float cy, const float radius, const float height=0) : FloorObstacle(material), center(cx,cy), radius(radius), height(height) {;}
|
||||
//float getHeight(const Floor* f) const {return (height > 0) ? (height) : (f->height);}
|
||||
};
|
||||
|
||||
/** door obstacle */
|
||||
|
||||
Reference in New Issue
Block a user