Skip to content

fix(MeshOptions): opacity available when coloring a mesh with an attribute - #572

Open
SpliiT wants to merge 11 commits into
nextfrom
fix/attribute_coloring_opacity
Open

SpliiT wants to merge 11 commits into
nextfrom
fix/attribute_coloring_opacity

Conversation

@SpliiT

@SpliiT SpliiT commented Nov 3, 2026

Copy link
Copy Markdown
Member

Fixes Geode-solutions/Vease#825
Depends on Geode-solutions/OpenGeodeWeb-Viewer#198 (new opacity RPCs)

The opacity was only editable as the constant color picker alpha, hidden as soon as another coloring is selected.

  • Add an opacity style to mesh points, edges, polygons, polyhedra and cells: still stored as the constant color alpha (saved styles unchanged), sent through the viewer opacity RPC which keeps the active coloring
  • Restore the stored opacity after an attribute or textures coloring, a reloaded style lost its transparency
  • Add an opacity slider to ColoringTypeSelector, shown for non constant colorings (the color picker alpha already covers the constant one), and wire it in the mesh options
  • Tests: ColoringTypeSelector unit test, polygons opacity integration tests

The opacity stays stored as the constant color alpha, so saved styles are
unchanged, but it is now sent to the viewer opacity RPC, which keeps the
active attribute or textures coloring.
…s colorings

Only the constant color sent the opacity to the viewer: a style reloaded
with an attribute coloring lost its transparency.
…lorings

Shown when an opacity model is given and the coloring is not constant,
where the color picker alpha already edits it.
@SpliiT
SpliiT marked this pull request as ready for review November 3, 2026 10:43
@SpliiT
SpliiT requested review from JulienChampagnol and MaxNumerique and removed request for JulienChampagnol November 3, 2026 10:43
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.

2 participants