moved from ray3 to floorplan/3D
worked on new wall models refactoring
This commit is contained in:
@@ -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) &&
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user