Skip to content

#14083 Well Disks: Keep disk radius stable when toggling well visibility#14085

Open
kriben wants to merge 3 commits into
devfrom
fix-14083-well-disk-radius-on-toggle
Open

#14083 Well Disks: Keep disk radius stable when toggling well visibility#14085
kriben wants to merge 3 commits into
devfrom
fix-14083-well-disk-radius-on-toggle

Conversation

@kriben
Copy link
Copy Markdown
Collaborator

@kriben kriben commented May 30, 2026

Normalize disk radius over all wells instead of only the currently visible ones. Computing the min/max range over visible wells only made one well's disk radius depend on whether unrelated wells were filtered out, so toggling a range filter on one well changed another well's disk.

Fixes #14083.

kriben added 3 commits May 30, 2026 10:37
Normalize disk radius over all wells instead of only the currently
visible ones. Computing the min/max range over visible wells only made
one well's disk radius depend on whether unrelated wells were filtered
out, so toggling a range filter on one well changed another well's disk.

Fixes #14083.
On project reload the simulation well disks were not drawn until the user
toggled the Simulation Wells visibility. Two load-ordering issues caused this:

scaleWellDisks() ran before synchronizeWellsWithResults() had populated the
wells list, so it iterated an empty collection. It also bailed out early on the
transient m_showWellDisks aggregate (disableIO), which is only synced from the
restored per-well states when the property panel is built.

Move scaleWellDisks() after synchronizeWellsWithResults(), and sync the
visibility checkbox state at the start of scaleWellDisks() so the disks are
scaled and marked valid before the first display-model build.
Well disks are flat, zero-thickness discs drawn at a fixed elevation above each
well head. When the disks of different wells overlap horizontally they end up
coplanar at the same depth and z-fight.

Offset each disk along Z by a small per-well amount derived from the stable
resultWellIndex(), scaled by arrowLength so the spacing tracks the disk scale and
view zoom. Coincident disks fan out into a readable vertical stack instead of
fighting.
@kriben kriben marked this pull request as ready for review May 30, 2026 09:55
@kriben kriben requested a review from magnesj May 30, 2026 09:56
@kriben kriben self-assigned this May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Well disks: The radius of the disk changes when visibility of individual wells is toggled

1 participant