|
@@ -1122,30 +1122,26 @@ make_bounds() const {
|
|
|
LPoint3f nll, nlr, nul, nur;
|
|
LPoint3f nll, nlr, nul, nur;
|
|
|
LPoint2f corner;
|
|
LPoint2f corner;
|
|
|
|
|
|
|
|
- corner[0] = -1.0f; corner[1] = 1.0f;
|
|
|
|
|
-
|
|
|
|
|
// Upper left.
|
|
// Upper left.
|
|
|
|
|
+ corner.set(-1.0f, 1.0f);
|
|
|
if (!extrude(corner, nul, ful)) {
|
|
if (!extrude(corner, nul, ful)) {
|
|
|
return (BoundingVolume *)NULL;
|
|
return (BoundingVolume *)NULL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- corner[0] = 1.0f; corner[1] = 1.0f;
|
|
|
|
|
-
|
|
|
|
|
// Upper right.
|
|
// Upper right.
|
|
|
|
|
+ corner.set(1.0f, 1.0f);
|
|
|
if (!extrude(corner, nur, fur)) {
|
|
if (!extrude(corner, nur, fur)) {
|
|
|
return (BoundingVolume *)NULL;
|
|
return (BoundingVolume *)NULL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- corner[0] = 1.0f; corner[1] = -1.0f;
|
|
|
|
|
-
|
|
|
|
|
// Lower right.
|
|
// Lower right.
|
|
|
|
|
+ corner.set(1.0f, -1.0f);
|
|
|
if (!extrude(corner, nlr, flr)) {
|
|
if (!extrude(corner, nlr, flr)) {
|
|
|
return (BoundingVolume *)NULL;
|
|
return (BoundingVolume *)NULL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- corner[0] = -1.0f; corner[1] = -1.0f;
|
|
|
|
|
-
|
|
|
|
|
// Lower left.
|
|
// Lower left.
|
|
|
|
|
+ corner.set(-1.0f, -1.0f);
|
|
|
if (!extrude(corner, nll, fll)) {
|
|
if (!extrude(corner, nll, fll)) {
|
|
|
return (BoundingVolume *)NULL;
|
|
return (BoundingVolume *)NULL;
|
|
|
}
|
|
}
|