Cleanup: style, use braces in source/

Automated using clang-tidy.
This commit is contained in:
2019-05-31 22:51:19 +10:00
parent 8987f7987d
commit d8dbd49a2f
290 changed files with 4326 additions and 2162 deletions

View File

@@ -38,22 +38,28 @@ void LineRep::ComputeBBox()
vector<Vec3r>::iterator v;
for (v = _vertices.begin(); v != _vertices.end(); ++v) {
// X
if ((*v)[0] > XMax)
if ((*v)[0] > XMax) {
XMax = (*v)[0];
if ((*v)[0] < XMin)
}
if ((*v)[0] < XMin) {
XMin = (*v)[0];
}
// Y
if ((*v)[1] > YMax)
if ((*v)[1] > YMax) {
YMax = (*v)[1];
if ((*v)[1] < YMin)
}
if ((*v)[1] < YMin) {
YMin = (*v)[1];
}
// Z
if ((*v)[2] > ZMax)
if ((*v)[2] > ZMax) {
ZMax = (*v)[2];
if ((*v)[2] < ZMin)
}
if ((*v)[2] < ZMin) {
ZMin = (*v)[2];
}
}
setBBox(BBox<Vec3r>(Vec3r(XMin, YMin, ZMin), Vec3r(XMax, YMax, ZMax)));