Bounding Volumes(包围体)

用于快速粗略判断两个物体是否可能发生碰撞,优点是测试速度快

image.png

Bounding Volume Hierarchies(BVH)

为了解决复杂模型的碰撞检测,不是用一个包围盒包所有三角形,而是构造树形结构

Model Hierarchy:

– each node has a simple volume that bounds a set of triangles

– children contain volumes that each bound a different portion of the parent’s triangles

– The leaves of the hierarchy usually contain individual triangles

这种层次结构在碰撞检测时非常高效,因为:

  1. 递归排除:上层包围体若不相交,下面就不必检测了
  2. 早停机制:越早排除越省计算

A binary bounding volume hierarchy:

image.png