dilevin / computer-graphics-bounding-volume-hierarchy

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

Question about AABBTree split #67

Open junior-stack opened 1 year ago

junior-stack commented 1 year 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 1 year 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.