- float x = model.position.x();
- float y = model.position.y();
- float z = model.position.z();
-
- if (_models.size() == 0)
- {
- min_x = x;
- max_x = x;
-
- min_y = y;
- max_y = y;
-
- min_z = z;
- max_z = z;
- }
- else
- {
- min_x = SGMisc<float>::min(min_x, x);
- max_x = SGMisc<float>::max(max_x, x);
-
- min_y = SGMisc<float>::min(min_y, y);
- max_y = SGMisc<float>::max(max_y, y);
-
- min_z = SGMisc<float>::min(min_z, z);
- max_z = SGMisc<float>::max(max_z, z);
- }
-