Abstract
Heuristics that exploit bouning boxes are common in algorithms for rendering, modeling, and animation. While experience has shown that bounding boxes improve the performance of these algorithms in practice, the previous theoretical analysis has concluded that bounding boxes perform poorly in the worst case. This paper reconciles this discrepancy by analyzing intersections among n geometric objects in terms of two parameters: α an upper bound on the aspect ratio or elongatedness of each object; and σ an upper bound on the scale factor or size disparity between the largest and smallest objects. Letting Ko and Kb be the number of intersecting object pairs and bounding box pairs, respectively, we analyze a ratio measure of the bounding boxes' efficiency, ρ = Kb / (n + K0). The analysis proves that ρ = O(α√σlog2σ) and ρ = Ω(α√σ).
One important consequence is that if α and σ are small constants (as is often the case in practice), then Kb= O(Ko)+ O(n, so an algorithm that uses bounding boxes has time complexity proportional to the number of actual object intersections. This theoretical result validates the efficiency that bounding boxes have demonstrated in practice. Another consequence of our analysis is a proof of the output-sensitivity of an algorithm for reporting all intersecting pairs in a set of n convex polyhedra with constant α and σ. The algorithm takes time O(nlogd-1n+ Kologd-1n) for dimension d = 2, 3. This running time improves on the performance of previous algorithms, which make no assumptions about α and σ.
- CHAZELLE, B. 1992. An optimal algorithm for intersecting three-dimensional convex polyhedra. SIAM J. Comput. 21, 4 (Aug. 1992), 671-696. Google Scholar
- COHEN, J. D., LIN, M. C., MANOCHA, D., AND PONAMGI, M. 1995. I-COLLIDE: an interactive and exact collision detection system for large-scale environments. In Proceedings of the 1995 Symposium on Interactive 3D Graphics (Monterey, CA, Apr. 9-12, 1995), M. Zyda, Ed. ACM Press, New York, NY, 189ff. Google Scholar
- DE BERG, M. 1995. Linear size binary space partitions for fat objects. In Proceedings of the Third European Symposium on Algorithms, 252-263. Google Scholar
- DE BERG, M., KATZ, M., VAN DER STAPPEN, A. F., AND VLEUGELS, J. 1997. Realistic input models for geometric algorithms. In Proceedings of the 13th Annual Symposium on Computational Geometry (Nice, France, June 4-6, 1997), J.-D. Boissonnat, Ed. ACM Press, New York, NY, 294-303. Google Scholar
- DOBKIN, D., HERSHBERGER, g., KIRKPATRICK, D., AND SURI, S. 1993. Computing the intersection-depth of polyhedra. Algorithmica 9, 518-533.Google Scholar
- DOBKIN, D. P. AND KIRKPATRICK, D. G. 1990. Determining the separation of preprocessed polyhedra--a unified approach. In Proceedings of the 17th Conference on ICALP, Lecture Notes in Computer Science, vol. LNCS 443. Springer-Verlag, New York, 400-413. Google Scholar
- EDELSBRUNNER, H. 1983. A new approach to rectangle intersections, Parts I&II. Int. J. Comput. Math. 13, 209-229.Google Scholar
- EFRAT, A. AND SHARIR, M. 1997. On the complexity of the union of fat objects in the plane. In Proceedings of the 13th Annual Symposium on Computational Geometry (Nice, France, June 4-6, 1997), J.-D. Boissonnat, Ed. ACM Press, New York, NY, 104-112. Google Scholar
- FOLEY, J. D., VAN DAM, A., FEINER, S. K., AND HUGHES, J. F. 1996. Computer Graphics (in C): Principles and Practice. 2nd ed. Addison-Wesley systems programming series. Addison-Wesley Longman Publ. Co., Inc., Reading, MA. Google Scholar
- GARCIA-ALONSO, A., SERRANO, N., AND FLAQUER, J. 1994. Solving the collision detection problem. IEEE Comput. Graph. Appl. 14, 3 (May 1994), 36-43. Google Scholar
- GOTTSCHALK, S., LIN, M. C., AND MANOCHA, D. 1996. OBBTree: A hierarchical structure for rapid interference detection. In Proceedings of the 23rd Annual Conference on Computer Graphics (SIGGRAPH '96, New Orleans, LA, Aug. 4-9, 1996), J. Fujii, Ed. Annual conference series ACM Press, New York, NY, 171-180. Google Scholar
- GREENE, N. 1994. Detecting intersection of a rectangular solid and a convex polyhedron. In Graphics Gems IV, P. S. Heckbert, Ed. Academic Press Graphics Gems series. Academic Press Prof., Inc., San Diego, CA, 74-82. Google Scholar
- GUPTA, P., JANARDAN, R., AND SMID, M. 1996. Efficient algorithms for counting and reporting pairwise intersection between convex polygons. Tech. Rep. Computer Science, King's College, UK.Google Scholar
- HALPERIN, D. AND OVERMARS, M. H. 1994. Spheres, molecules, and hidden surface removal. In Proceedings of the lOth Annual Symposium on Computational Geometry (Stony Brook, NY, June 6-8, 1994), K. Mehlhorn, Ed. ACM Press, New York, NY, 113-122. Google Scholar
- HARDY, H., LITTLEWOOD, g. E., AND P LYA, G. 1988. Inequalities. Cambridge University Press, New York, NY.Google Scholar
- HELD, M., KLOSOWSKI, J. T., AND MITCHELL, J. S.B. 1996. Collision detection for fly-throughs in virtual environments. In Proceedings of the 12th Annual Symposium on Computational Geometry (Philadelphia, PA, May 24-26, 1996), S. Whitesides, Ed. ACM Press, New York, NY, 513-514. Google Scholar
- HOFFMANN, C. M. 1989. Geometric and Solid Modeling: An Introduction. Morgan Kaufmann Publishers Inc., San Francisco, CA. Google Scholar
- HUBBARD, P. M. 1995. Collision detection for interactive graphics applications. IEEE Trans. Visualization Comput. Graph. 1, 3, 218-230. Google Scholar
- KLOSOWSKI, J. T., HELD, M., MITCHEL, J. S. B., SOWIZRAL, H., AND ZIKAN, K. 1998. Efficient collision detection using bounding volume hierarchies of k-DOPs. IEEE Trans. Visualization Comput. Graph. 4, 1, 21-36. Google Scholar
- LATOMBE, J.-C. 1991. Robot Motion Planning. Kluwer Academic, Dordrecht, Netherlands. Google Scholar
- MATOUSEK, J., SHARIR, M., SIFRONY, S., AND WELZL, E. 1994. Fat triangles determine linearly many holes. SIAM J. Comput. 23, 1 (Feb. 1994), 154-169. Google Scholar
- MCMILLAN, L. 1997. An image-based approach to three-dimensional computer graphics. Ph.D. Dissertation. University of North Carolina at Chapel Hill, Chapel Hill, NC. Google Scholar
- MEHLHORN, K. 1984. Data Structures and Algorithms 3: Multi-dimensional Searching and Computational Geometry. EATCS monographs on theoretical computer science. Springer-Verlag, New York, NY. Google Scholar
- MOORE, M. AND WILHELMS, g. 1988. Collision detection and response for computer animation. In Proceedings of the 15th Annual Conference on Computer Graphics (SIG- GRAPH '89, Atlanta, Ga, Aug. 1-5), R. J. Beach, Ed. ACM Press, New York, NY, 289-298. Google Scholar
- SCH MER, E. AND THIEL, C. 1995. Efficient collision detection for moving polyhedra. In Proceedings of the 11th Annual Symposium on Computational Geometry (Vancouver, B.C., Canada, June 5-12, 1995), J. Snoeyink, Ed. ACM Press, New York, NY, 51-60. Google Scholar
- VAN DER STAPPEN, A. F., HALPERIN, D., AND OVERMARS, M. H. 1993. Efficient algorithms for exact motion planning amidst fat obstacles. In Proceedings of the IEEE International Conference on Robotics and Automation, IEEE Computer Society, New York, NY, 297-304.Google Scholar
- ZHOU, Y. AND SURI, S. 1999. Analysis of a bounding box heuristic for object intersection. In Proceedings of the Tenth Annual Symposium on Discrete Algorithms (Baltimore, MD). Google Scholar
Index Terms
- Analyzing bounding boxes for object intersection
Recommendations
Bounds on the quality of the PCA bounding boxes
Principal component analysis (PCA) is commonly used to compute a bounding box of a point set in R^d. The popularity of this heuristic lies in its speed, easy implementation and in the fact that usually, PCA bounding boxes quite well approximate the ...
New upper bounds on the quality of the PCA bounding boxes in r2 and r3
SCG '07: Proceedings of the twenty-third annual symposium on Computational geometryPrincipal component analysis (PCA) is commonly used to compute a bounding box of a point set in Rd. The popularity of this heuristic lies in its speed, easy implementation and in the fact that usually, PCA bounding boxes quite well approximate the ...
Comments