skip to main content
article
Free Access

Analyzing bounding boxes for object intersection

Published:01 July 1999Publication History
Skip Abstract Section

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 σ.

References

  1. CHAZELLE, B. 1992. An optimal algorithm for intersecting three-dimensional convex polyhedra. SIAM J. Comput. 21, 4 (Aug. 1992), 671-696. Google ScholarGoogle Scholar
  2. 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 ScholarGoogle Scholar
  3. DE BERG, M. 1995. Linear size binary space partitions for fat objects. In Proceedings of the Third European Symposium on Algorithms, 252-263. Google ScholarGoogle Scholar
  4. 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 ScholarGoogle Scholar
  5. DOBKIN, D., HERSHBERGER, g., KIRKPATRICK, D., AND SURI, S. 1993. Computing the intersection-depth of polyhedra. Algorithmica 9, 518-533.Google ScholarGoogle Scholar
  6. 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 ScholarGoogle Scholar
  7. EDELSBRUNNER, H. 1983. A new approach to rectangle intersections, Parts I&II. Int. J. Comput. Math. 13, 209-229.Google ScholarGoogle Scholar
  8. 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 ScholarGoogle Scholar
  9. 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 ScholarGoogle Scholar
  10. 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 ScholarGoogle Scholar
  11. 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 ScholarGoogle Scholar
  12. 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 ScholarGoogle Scholar
  13. 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 ScholarGoogle Scholar
  14. 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 ScholarGoogle Scholar
  15. HARDY, H., LITTLEWOOD, g. E., AND P LYA, G. 1988. Inequalities. Cambridge University Press, New York, NY.Google ScholarGoogle Scholar
  16. 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 ScholarGoogle Scholar
  17. HOFFMANN, C. M. 1989. Geometric and Solid Modeling: An Introduction. Morgan Kaufmann Publishers Inc., San Francisco, CA. Google ScholarGoogle Scholar
  18. HUBBARD, P. M. 1995. Collision detection for interactive graphics applications. IEEE Trans. Visualization Comput. Graph. 1, 3, 218-230. Google ScholarGoogle Scholar
  19. 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 ScholarGoogle Scholar
  20. LATOMBE, J.-C. 1991. Robot Motion Planning. Kluwer Academic, Dordrecht, Netherlands. Google ScholarGoogle Scholar
  21. 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 ScholarGoogle Scholar
  22. 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 ScholarGoogle Scholar
  23. 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 ScholarGoogle Scholar
  24. 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 ScholarGoogle Scholar
  25. 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 ScholarGoogle Scholar
  26. 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 ScholarGoogle Scholar
  27. 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 ScholarGoogle Scholar

Index Terms

  1. Analyzing bounding boxes for object intersection

              Recommendations

              Comments

              Login options

              Check if you have access through your login credentials or your institution to get full access on this article.

              Sign in

              Full Access

              • Published in

                cover image ACM Transactions on Graphics
                ACM Transactions on Graphics  Volume 18, Issue 3
                July 1999
                80 pages
                ISSN:0730-0301
                EISSN:1557-7368
                DOI:10.1145/336414
                Issue’s Table of Contents

                Copyright © 1999 ACM

                Publisher

                Association for Computing Machinery

                New York, NY, United States

                Publication History

                • Published: 1 July 1999
                Published in tog Volume 18, Issue 3

                Permissions

                Request permissions about this article.

                Request Permissions

                Check for updates

                Qualifiers

                • article

              PDF Format

              View or Download as a PDF file.

              PDF

              eReader

              View online with eReader.

              eReader