Fix boundingbox
parent
b95276ec06
commit
86afcd0e7e
|
@ -102,11 +102,11 @@ void MeshGenerator::resolveBoundingBox(QRectF *mainProfile, QRectF *sideProfile)
|
||||||
top = y - radius;
|
top = y - radius;
|
||||||
topFirstTime = false;
|
topFirstTime = false;
|
||||||
}
|
}
|
||||||
if (rightFirstTime > right) {
|
if (rightFirstTime || x + radius > right) {
|
||||||
right = x + radius;
|
right = x + radius;
|
||||||
rightFirstTime = false;
|
rightFirstTime = false;
|
||||||
}
|
}
|
||||||
if (bottomFirstTime > bottom) {
|
if (bottomFirstTime || y + radius > bottom) {
|
||||||
bottom = y + radius;
|
bottom = y + radius;
|
||||||
bottomFirstTime = false;
|
bottomFirstTime = false;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ void MeshGenerator::resolveBoundingBox(QRectF *mainProfile, QRectF *sideProfile)
|
||||||
zLeft = z - radius;
|
zLeft = z - radius;
|
||||||
zLeftFirstTime = false;
|
zLeftFirstTime = false;
|
||||||
}
|
}
|
||||||
if (zRightFirstTime > zRight) {
|
if (zRightFirstTime || z + radius > zRight) {
|
||||||
zRight = z + radius;
|
zRight = z + radius;
|
||||||
zRightFirstTime = false;
|
zRightFirstTime = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue