Repository navigation
feat(hybrid_viewer): detailed light viewables, styles and app highlight colours - #627
Draft
JulienChampagnol wants to merge 17 commits into
Draft
JulienChampagnol wants to merge 17 commits into
JulienChampagnol wants to merge 17 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model drew one vtk.js actor per mesh component, so a camera move cost one draw per component. Each entry now draws its visible parts merged in one polydata: hiding a component re-merges the visible ones, and an exploded entry is re-stretched over the z range of all its parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Camera focus and the clipping widget use the bounds as drawn: every part, stretched by the scene z-scaling. - The detail replacing the bounding box keeps the current explode. - An add whose geometry loads after a later add or removal of the same data is dropped; the z-scaling is read once the geometry is loaded. - Removing or clearing a data cancels its pending detail, and a detail cancelled while it is stored no longer rebuilds the actor. - Fire-and-forget detail requests no longer leave unhandled rejections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model components take their constant color, without alpha; a mesh takes the color, opacity, point size and line width of its main element. Model points and lines are one pixel wide again, as the viewer draws them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model colours (constant and random) and the mesh colour, opacity, point size and edge width the viewer applies now restyle the light view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The viewer draws a model's corners with the model's points size, 10 by default: the light actor takes it when built and follows its changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… once VTK numbers polygons before strips: the cell colours now follow that order. A model recoloured (constant or random) updates every component's light colour, then renders once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vtk.js uploads the cell colours again only when the polydata itself is modified, not its colour array. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ColorRGB, Opacity, PointSize and EdgeWidth replace the colour tuple and plain numbers; the mesh style change derives from MeshLightStyle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vtk.js leaves coincident topology resolution off: lines and corners lying on surfaces fought with them for depth. The light mappers now use polygon offset, as the viewer does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An app sets ogwFront.highlightColors in its app config: it is sent to the viewer after each reset, next to the scene colours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser tests failed to load: DataArray, PolyData and CoincidentTopologyHelper were served unbundled, and the CommonJS fast-deep-equal they import broke in the browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Light view (vtk.js)
light_viewableroute for the simplified light viewable (one per mesh component for a model, blocks excluded) and rebuilds the light actor. Also after a CRS change.App highlight colours
ogwFront.highlightColorsin the app config, sent to the viewer (viewer.set_highlight_colors) after each reset.Depends on
light_viewableroute)set_highlight_colors)Tests
Unit tests for the merged entries, cell colours, detail requests and races, light styles, style hooks and the viewer reset.
🤖 Generated with Claude Code