code cleanup: use vector math function minmax_v3v3_v3() and other minor vector function edits.

This commit is contained in:
2012-05-13 11:05:52 +00:00
parent 13bbf1cc7b
commit 305d341ec2
36 changed files with 186 additions and 198 deletions

View File

@@ -367,16 +367,16 @@ static void cuboid_do(
float vec[3];
/* let the center of the ctrl_ob be part of the bound box: */
DO_MINMAX(center, min, max);
minmax_v3v3_v3(min, max, center);
for (i = 0; i < numVerts; i++) {
sub_v3_v3v3(vec, vertexCos[i], center);
DO_MINMAX(vec, min, max);
minmax_v3v3_v3(min, max, vec);
}
}
else {
for (i = 0; i < numVerts; i++) {
DO_MINMAX(vertexCos[i], min, max);
minmax_v3v3_v3(min, max, vertexCos[i]);
}
}