计算机科学 ›› 2021, Vol. 48 ›› Issue (6A): 331-333.doi: 10.11896/jsjkx.200600113

• 智能计算 • 上一篇    下一篇

基于B+树存储的AABB包围盒碰撞检测算法

杨帆   

  1. 电子科技大学 成都611731
  • 出版日期:2021-06-10 发布日期:2021-06-17
  • 通讯作者: 杨帆(fanyang21110301@163.com)

Collision Detection Algorithm of AABB Bounding Box Based on B+ Tree

YANG Fan   

  1. University of Electronic Science and Technology of China,Chengdu 611731,China
  • Online:2021-06-10 Published:2021-06-17
  • About author:YANG Fan,born in 1995,postgraduate.His main research interests include artificial intelligence and big data.

摘要: 对于碰撞检测算法,使用传统的AABB包围盒来构建包围盒层次树时,其包围盒层次树的层数、叶子结点的个数和各结点的存储字节数是影响碰撞检测效率的主要因素。为了减少结点存储容量对碰撞检测效率的影响,提高碰撞检测的效率,文中采取B+树的存储结构来存储包围盒等信息。在包围盒相交测试之前,使得各结点存储索引有序,不需要再对各结点进行额外的排序,减少了内存开销,并且避免了不必要的包围盒测试。此外B+树的非叶子结点不存储具体的数据信息,从而减少了整棵树的存储空间。实验表明,在检测环境和检测对象相同的条件下,使用B+树存储的AABB包围盒碰撞检测算法的检测时间明显比传统的AABB算法短。

关键词: AABB, B+树, 层次包围盒, 碰撞检测, 相交测试

Abstract: For the collision detection algorithm,when using a traditional AABB bounding box to construct a bounding box hierarchy tree,the number of bounding box hierarchy trees,the number of leaf nodes,and the number of bytes stored in each node are the main factors that affect the efficiency of collision detection factor.In order to reduce the impact of node storage capacity on collision detection efficiency and improve the efficiency of collision detection,this paper adopts a B+ tree storage structure to store information such as bounding boxes.Before the bounding box intersection test,the storage index of each node is ordered,no additional sorting of each node is required,which reduces the memory overhead and avoids unnecessary bounding box testing.In addition,the non-leaf nodes of the B+ tree do not store specific data information,thereby reducing the storage space of the entire tree.Experiments show that the detection time of the AABB bounding box collision detection algorithm using B+ tree storage is significantly shorter than the traditional AABB algorithm under the same detection environment and detection object.

Key words: AABB, B+ tree, Collision detection, Hierarchical bounding box, Intersection test

中图分类号: 

  • TP391.41
[1] 王志强,洪嘉振,杨辉.碰撞检测问题研究综述[J].软件学报,1999(5):98-104.
[2] GARICA-ALONSO A,SERRANO N.Solving the Collision Detection Problem[J].IEEE Computer Graphics and Application,1994,13(3):36-43.
[3] 王伟.轴对齐包围盒算法的研究[J].网络安全技术与应用,2013(10):127-128.
[4] 潘振宽,李建波.基于压缩的AABB树的碰撞检测算法[J].计算机科学,2005,33(2):213-215.
[5] 沈学利,吴琼.基于包围盒和空间分割的混合碰撞检测算法[J].计算机工程,2012,38(6):256-258.
[6] LI C F,FENG Y T,OWEN D R J.SMB:Collision detectionbased on temporal coherence[J].Computer Methods in AppliedMechanics and Engineering,2005,195(19):2252-2269.
[7] 施恩,顾大权,冯径,等.B+树索引机制的研究及优化[J].计算机应用研究,2017,34(6):1766-1769.
[8] 王崴,周诚,杨云,等.面向虚拟维修的碰撞检测算法[J].计算机应用与软件,2016,33(4):235-238.
[9] AKENINE-MÖLLSER T.Fast 3D Triangle-Box Overlap Testing[J].Journal of Graphics Tools,2001,6(1):29-33.
[10] 金汉均.虚拟环境中物体碰撞检测算法研究[D].武汉:华中科技大学,2006.
[11] 孙黎阳,毛少杰,林剑柠,等.基于XYZ/ADL的网络中心化仿真运行支撑平台体系结构形式化描述[J].计算机科学,2012,39(S1):365-369.
[1] 李普, 孙长乐, 熊伟, 王海涛.
一种基于半透明颜色叠加与深度值的碰撞检测算法
Collision Detection Algorithm Based on Semi-transparent Color Overlay and Depth Value
计算机科学, 2018, 45(6A): 193-197.
[2] 杨良怀,项俊腱,徐卫,范玉雷.
一种大数据流内存B+树构建方法
In-memory B+tree Construction Methodology for Big Data Stream
计算机科学, 2018, 45(3): 171-177. https://doi.org/10.11896/j.issn.1002-137X.2018.03.027
[3] 沈瑛,王辉,王立晖,吴青青.
面向移动终端的三维模型简化与碰撞检测方法研究
Simplifying 3D Models and Collision Detection on Smartphones
计算机科学, 2017, 44(Z11): 251-256. https://doi.org/10.11896/j.issn.1002-137X.2017.11A.052
[4] 潘仁宇,孙长乐,熊伟,王海涛.
虚拟装配环境中碰撞检测算法的研究综述与展望
Survey and Prospect of Collision Detection Based on Virtual Assembly Environment
计算机科学, 2016, 43(Z11): 136-139. https://doi.org/10.11896/j.issn.1002-137X.2016.11A.029
[5] 刘海平.
基于混合人工鱼群算法的凸多面体碰撞检测研究
Research on Collision Detection of Convex Polyhedron Based on Mixed Artificial Fish Swarm Algorithm
计算机科学, 2014, 41(Z6): 61-63.
[6] 伍艳莲,汤亮,曹卫星,朱艳.
作物可视化中的碰撞检测及响应研究
Collision Detection and Response in Crop Visualization
计算机科学, 2011, 38(10): 263-266.
[7] 赵伟,李文辉.
一种快速的基于球体混合重建的碰撞检测算法
Fast Collision Detection Algorithm for Spherical Blend Reconstruction
计算机科学, 2009, 36(7): 164-169. https://doi.org/10.11896/j.issn.1002-137X.2009.07.039
[8] 卢萍 陈进才.
一种基于对象存储的文件系统的设计

计算机科学, 2008, 35(10): 131-133.
[9] 李建波 潘振宽 孙志军.
基于包围盒与空间分解的碰撞检测算法

计算机科学, 2005, 32(6): 155-157.
[10] 潘振宽 李建波.
基于压缩的AABB树的碰撞检测算法

计算机科学, 2005, 32(2): 213-215.
[11] 张恩德 王国仁 宁博 王斌.
DVBB:基于Dewey向量的B+树索引结构连接算法

计算机科学, 2005, 32(11): 94-98.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!