Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+12
-11
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "vwm_math.h"
|
||||
#include <utility>
|
||||
|
||||
#include <logger.h>
|
||||
|
||||
@@ -278,7 +279,7 @@ static inline bool getHitPositionInternal(const QVector<LtsUtils::QPoint3D> &pla
|
||||
ERROR_LOG(l) << "planePoints are not sufficiant";
|
||||
for (auto coord : planePoints)
|
||||
ERROR_LOG(l) << "planePoints are not sufficiant: << " << coord;
|
||||
for (auto coord : qAsConst(localPoly))
|
||||
for (auto coord : std::as_const(localPoly))
|
||||
ERROR_LOG(l) << "localPoly are not sufficiant: << " << coord;
|
||||
return false;
|
||||
}
|
||||
@@ -453,12 +454,12 @@ HitPosition checkBsmPosition(const LtsUtils::QPoint3D &position, const LtsUtils:
|
||||
ERROR_LOG(l) << "localWallElement are not sufficiant";
|
||||
for (auto coord : wallElement)
|
||||
ERROR_LOG(l) << "wallElement are not sufficiant: << " << coord;
|
||||
for (auto coord : qAsConst(localWallElement))
|
||||
for (auto coord : std::as_const(localWallElement))
|
||||
ERROR_LOG(l) << "localWallElement are not sufficiant: << " << coord;
|
||||
continue;
|
||||
}
|
||||
|
||||
for (auto pointOfWallElementLinear : qAsConst(localWallElement))
|
||||
for (auto pointOfWallElementLinear : std::as_const(localWallElement))
|
||||
DEBUG_LOG(l) << "room[" << room.id() << "]" << " wall[" << idxOuterWall << "] " << " wallElement[" << idxWallElement << "] #points = " << localWallElement.size() << ", pointOfWallElementLinear=" << pointOfWallElementLinear;
|
||||
|
||||
const VwmPlane vwmPlaneOW(localWallElement.at(0), localWallElement.at(1), localWallElement.at(2));
|
||||
@@ -537,9 +538,9 @@ LtsUtils::QPoint3D getIntersectionInternal(
|
||||
if (localPoly.size() < 3)
|
||||
{
|
||||
ERROR_LOG(l) << "planePoints are not sufficiant";
|
||||
for (auto coord : qAsConst(planePoints))
|
||||
for (auto coord : std::as_const(planePoints))
|
||||
ERROR_LOG(l) << "planePoints are not sufficiant: << " << coord;
|
||||
for (auto coord : qAsConst(localPoly))
|
||||
for (auto coord : std::as_const(localPoly))
|
||||
ERROR_LOG(l) << "localPoly are not sufficiant: << " << coord;
|
||||
return invalidPosition();
|
||||
}
|
||||
@@ -592,9 +593,9 @@ LtsUtils::QPoint3D intersection(const LtsUtils::QPoint3D &start, const LtsUtils:
|
||||
|
||||
int cnt = 0;
|
||||
int roomId4Debugging = 1;
|
||||
for (const Room &room : qAsConst(rooms))
|
||||
for (const OuterWall &outerWall : qAsConst(room.outerWalls()))
|
||||
for (const WallElement &wallElement : qAsConst(outerWall.elements()))
|
||||
for (const Room &room : std::as_const(rooms))
|
||||
for (const OuterWall &outerWall : std::as_const(room.outerWalls()))
|
||||
for (const WallElement &wallElement : std::as_const(outerWall.elements()))
|
||||
{
|
||||
const LtsUtils::QPoint3D point = getIntersectionInternal(wallElement, start, direction);
|
||||
DEBUG_LOG(l) << "getIntersectionInternal:"
|
||||
@@ -628,9 +629,9 @@ bool hasIntersection(const LtsUtils::QPoint3D &start, const LtsUtils::QPoint3D &
|
||||
{
|
||||
const double distance = (end - start).length();
|
||||
const LtsUtils::QPoint3D direction = (end - start).normalized();
|
||||
for (const Room &room : qAsConst(rooms))
|
||||
for (const OuterWall &outerWall : qAsConst(room.outerWalls()))
|
||||
for (const WallElement &wallElement : qAsConst(outerWall.elements()))
|
||||
for (const Room &room : std::as_const(rooms))
|
||||
for (const OuterWall &outerWall : std::as_const(room.outerWalls()))
|
||||
for (const WallElement &wallElement : std::as_const(outerWall.elements()))
|
||||
{
|
||||
const LtsUtils::QPoint3D point = getIntersectionInternal(wallElement, start, direction);
|
||||
if (point == invalidPosition())
|
||||
|
||||
Reference in new issue
Block a user