FIX: fix a bbox compute error issue when using multiple height ranges

Change-Id: I8a5f044a9817b946eb1321f98b96fe5d1d4bcdf1
(cherry picked from commit 045ee2537cac64160d53b2aa2ce2b96ed63a6d86)
This commit is contained in:
lane.wei 2023-05-19 20:29:54 +08:00 committed by Lane.Wei
parent 3c5f5f1ea3
commit 716f4a9b5c
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ static void transformed_its_bboxes_in_z_ranges(
if (p2->z() <= z_range.first || p1->z() >= z_range.second) {
// Out of this slab.
} else if (p1->z() < z_range.first) {
if (p1->z() > z_range.second) {
if (p2->z() > z_range.second) {
// Two intersections.
float zspan = p2->z() - p1->z();
float t1 = (z_range.first - p1->z()) / zspan;