moved from ray3 to floorplan/3D

worked on new wall models
refactoring
This commit is contained in:
2018-07-24 08:13:16 +02:00
parent 083a1c2cf2
commit 8dd1ba0be6
25 changed files with 703 additions and 92 deletions

View File

@@ -57,6 +57,9 @@ public:
/** get the bbox's size */
const Point3 getSize() const {return p2-p1;}
/** get the boox's center */
const Point3 getCenter() const {return (p2+p1)/2;}
/** equal? */
bool operator == (const BBox3& o) const {
return (p1.x == o.p1.x) &&

View File

@@ -118,7 +118,7 @@ static bool polygonContainsPoint(const std::vector<Point2>& poly, const Point2 p
// only look at the fractional part
//const double y = x - std::floor(x);
return std::abs(x) >= 0.975;// && (std::abs(y) >= 0.9 || std::abs(y) < 0.1);
return std::abs(x) >= 0.995;// && (std::abs(y) >= 0.9 || std::abs(y) < 0.1);
}