dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 5 forks source link

Question about AABBTree split #67

Open junior-stack opened 12 months ago

junior-stack commented 12 months ago

Hi, I am just wondering what is the meaning of the "the longest axis of the box" in the description of AABBTree::AABBTree". Does it refer to the diagonal axis of the box? Also, should we consider the case when all objects at one side of the midpoint and no object is at the other side of the midpoint? In that case, how should we handle. I don't have a solution to handle that

Zhecheng-Wang commented 12 months ago

"The longest axis of the box" refers to one of the axes in Euclidean space (e.g. x, y, z).

See #68 for how to split objects when both object centers are on one side of the midpoint.