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:
parent
3c5f5f1ea3
commit
716f4a9b5c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue