Repository navigation
fix(colormap): default to the implicit colorbar for geode_implicit_attribute on implicit models - #625
Merged
Merged
Conversation
…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.
…oring model properties
…uteSelector, and physical properties
…rmap on implicit models
MaxNumerique
approved these changes
Dec 3, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
batlow(DEFAULT_COLORMAP) as the default colorbar for all attributes and models exceptgeode_implicit_attributeon implicit models (ImplicitStructuralModelandImplicitCrossSection), which defaults toimplicit(IMPLICIT_COLORMAP).geode_implicit_attributewith theimplicitcolormap and its vertex value range immediately upon loading/importing anImplicitStructuralModel(Blocks) orImplicitCrossSection(Surfaces), without overriding restored project or reloaded object styles.Changes
app/utils/colormap.ts:DEFAULT_COLORMAP,IMPLICIT_COLORMAP,IMPLICIT_ATTRIBUTE_NAME,IMPLICIT_MODEL_TYPES,isImplicitModelType,defaultAttributeColorMapapp/composables/attribute_selector.ts,app/components/Viewer/Options/AttributeSelector.vue,app/composables/physical_property_coloring.ts: applydefaultAttributeColorMapwhen selecting attributesinternal/stores/data_style/model/implicit.ts,internal/stores/data_style/model/index.ts,app/utils/import_item.ts: initialize and applygeode_implicit_attribute+implicitcolormap on implicit model importtests/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