Skip to content

fix(colormap): default to the implicit colorbar for geode_implicit_attribute on implicit models - #625

Merged
BenPinet merged 11 commits into
nextfrom
fix/implicit_attribute_colormap
Dec 3, 2026
Merged

BenPinet merged 11 commits into
nextfrom
fix/implicit_attribute_colormap

Conversation

@SpliiT

@SpliiT SpliiT commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Keep batlow (DEFAULT_COLORMAP) as the default colorbar for all attributes and models except geode_implicit_attribute on implicit models (ImplicitStructuralModel and ImplicitCrossSection), which defaults to implicit (IMPLICIT_COLORMAP).
  • Automatically activate and display geode_implicit_attribute with the implicit colormap and its vertex value range immediately upon loading/importing an ImplicitStructuralModel (Blocks) or ImplicitCrossSection (Surfaces), without overriding restored project or reloaded object styles.
  • Preserve existing UI layout and non-implicit model defaults.

Changes

  • app/utils/colormap.ts: DEFAULT_COLORMAP, IMPLICIT_COLORMAP, IMPLICIT_ATTRIBUTE_NAME, IMPLICIT_MODEL_TYPES, isImplicitModelType, defaultAttributeColorMap
  • app/composables/attribute_selector.ts, app/components/Viewer/Options/AttributeSelector.vue, app/composables/physical_property_coloring.ts: apply defaultAttributeColorMap when selecting attributes
  • internal/stores/data_style/model/implicit.ts, internal/stores/data_style/model/index.ts, app/utils/import_item.ts: initialize and apply geode_implicit_attribute + implicit colormap on implicit model import
  • Unit tests in tests/unit/utils/colormap.nuxt.test.ts, tests/unit/components/AttributeSelectorColormap.nuxt.test.ts, tests/unit/composables/physical_property_coloring.nuxt.test.ts, tests/unit/stores/data_style_implicit_model.nuxt.test.ts

…ttribute on implicit models

Add defaultAttributeColorMap so geode_implicit_attribute on ImplicitStructuralModel and ImplicitCrossSection defaults to the implicit preset instead of batlow (Geode-solutions/Vease#841).
…is stored

Resolve the data geode_object_type and apply defaultAttributeColorMap for both single-target and group attribute selections while preserving any stored custom colormap.
@SpliiT
SpliiT requested a review from MaxNumerique December 2, 2026 16:14
Comment thread app/composables/attribute_selector.ts Resolved
Comment thread app/utils/colormap.ts Resolved
Comment thread app/utils/import_item.ts Resolved
useDefaultAttributeColorMap and useAttributeDefaultColorMap had nearly the same name: they become useColorMapResolver and useSelectedAttributeColorMap.
…ap util

isImplicitModelType, IMPLICIT_MODEL_TYPES and IMPLICIT_ATTRIBUTE_NAME describe object types, not colormaps: they move to utils/implicit_model.ts.
setModelMeshComponentsDefaultStyle is back to its generic form; import_item calls applyImplicitDefaultStyle for implicit models only, so the implicit model check happens once.
@BenPinet
BenPinet merged commit d00e933 into next Dec 3, 2026
35 checks passed
@BenPinet
BenPinet deleted the fix/implicit_attribute_colormap branch December 3, 2026 10:11
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.

3 participants