Files
Magne Sjaastad cc44d6c3be #13967 RigMainGrid: Invalidate face-normal direction cache on setFlipAxis
isFaceNormalsOutwards lazily computes whether cell face normals point outward
and caches the answer in m_isFaceNormalsOutwardsComputed. setFlipAxis was
mirroring the node coordinates without resetting that cache, so any consumer
that had triggered the lazy computation before the user toggled Flip X/Y kept
the pre-flip answer. The well-path/cell intersection in
RigEclipseWellLogExtractor::calculateIntersection then inverted the
entering/leaving flag the wrong way, causing the proper-pair filter in
populateReturnArrays to discard every intermediate cell along a perforation
interval - only the start and end cells survived through the
well-starts/ends-inside-a-cell fallback.

Reset m_isFaceNormalsOutwardsComputed when the flip state actually changes.

Add unit tests covering all four combinations of Flip X / Flip Y for both the
data-level node mirroring and the well-path/cell intersection (freshly-built
grid and interactive-toggle scenarios).
2026-05-08 10:30:17 +02:00
..
2025-05-19 17:40:39 +02:00
2025-05-19 17:40:39 +02:00
2023-09-19 18:03:36 +02:00
2023-09-19 18:03:36 +02:00
2025-08-27 14:22:11 +02:00
2025-12-20 09:50:51 +01:00
2022-11-17 15:51:01 +01:00
2021-05-20 07:37:55 +02:00