Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+8
-7
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "vwm_building.h"
|
||||
#include <utility>
|
||||
#include "vwm_math.h"
|
||||
#include <QSet>
|
||||
#include <QVector>
|
||||
@@ -88,11 +89,11 @@ double Room::damagePercent() const
|
||||
|
||||
double currentProtection = 0.0;
|
||||
double initialProtection = 0.0;
|
||||
for (const OuterWall &wall : qAsConst(m_outerWalls))
|
||||
for (const OuterWall &wall : std::as_const(m_outerWalls))
|
||||
{
|
||||
currentProtection += wall.protection();
|
||||
initialProtection += wall.initialProtection();
|
||||
for (const ExclusionZone &exZone : qAsConst(wall.exclusionZones()))
|
||||
for (const ExclusionZone &exZone : std::as_const(wall.exclusionZones()))
|
||||
{
|
||||
currentProtection += exZone.protection();
|
||||
initialProtection += exZone.initialProtection();
|
||||
@@ -264,7 +265,7 @@ Building::Building()
|
||||
int Building::checkPolygons()
|
||||
{
|
||||
int numberOfDuplicates = 0;
|
||||
for (const Room &room : qAsConst(m_rooms))
|
||||
for (const Room &room : std::as_const(m_rooms))
|
||||
{
|
||||
for (int owIdx = 0; owIdx < room.outerWalls().size(); ++owIdx)
|
||||
{
|
||||
@@ -311,7 +312,7 @@ int Building::cleanupPolygons()
|
||||
<< " in room " << room.id() << " OuterWall[" << owIdx
|
||||
<< "], element[" << elemIdx << "] "
|
||||
<< " makePlanar and cleanupDublicatePointsInPolygon would generate short polygon, size=" << candidate.size();
|
||||
for (auto point : qAsConst(candidate))
|
||||
for (auto point : std::as_const(candidate))
|
||||
NOTICE_LOG(m_logger) << " point= " << point;
|
||||
|
||||
bMakePlanarDone = false;
|
||||
@@ -673,7 +674,7 @@ QMap<int, Building::NeighboursToCheck> Building::checkHitNeighbours(const QMap<i
|
||||
<< oldRe << " -> new: " << neighbour.remainingEffect();
|
||||
|
||||
|
||||
for (const NeighbourRoom &grade2Neighbour : qAsConst(neighbour.neighbours()))
|
||||
for (const NeighbourRoom &grade2Neighbour : std::as_const(neighbour.neighbours()))
|
||||
{
|
||||
if (lowerGradeNeighbours.contains(grade2Neighbour.id()) ||
|
||||
currentGradeNeighbours.contains(grade2Neighbour.id()))
|
||||
@@ -829,7 +830,7 @@ double MakePlanar::ratioOfSmallestAndBiggestDimension()
|
||||
rangeX.min = m_poly.first().x(); rangeX.max = m_poly.first().x();
|
||||
rangeY.min = m_poly.first().y(); rangeY.max = m_poly.first().y();
|
||||
rangeZ.min = m_poly.first().z(); rangeZ.max = m_poly.first().z();
|
||||
for (const LtsUtils::QPoint3D &pnt : qAsConst(m_poly))
|
||||
for (const LtsUtils::QPoint3D &pnt : std::as_const(m_poly))
|
||||
{
|
||||
rangeX.min = std::min(rangeX.min, pnt.x());
|
||||
rangeX.max = std::max(rangeX.max, pnt.x());
|
||||
@@ -890,7 +891,7 @@ void wallElementToBottomLeftTopRight3D(const WallElement &wallElement,
|
||||
const LtsUtils::QPoint3D &frontItem = wallElement.front();
|
||||
bottomLeftOut = frontItem;
|
||||
topRightOut = frontItem;
|
||||
for (auto coord : qAsConst(wallElement))
|
||||
for (auto coord : std::as_const(wallElement))
|
||||
{
|
||||
if (coord.x() < bottomLeftOut.x())
|
||||
bottomLeftOut.setX(coord.x());
|
||||
|
||||
Reference in new issue
Block a user