Repository navigation
feat: add geometry picker for server mode - #199
Merged
Merged
Conversation
LKasianAnsys
force-pushed
the
feat/geometry-picker-for-server-mode
branch
6 times, most recently
from
November 4, 2026 21:16
186dd1c to
1f417e1
Compare
LKasianAnsys
marked this pull request as ready for review
November 5, 2026 15:32
LKasianAnsys
force-pushed
the
feat/geometry-picker-for-server-mode
branch
from
November 5, 2026 15:33
3e91fa9 to
e4c32db
Compare
Closed
ansBAkula
approved these changes
Nov 6, 2026
ansBAkula
left a comment
Collaborator
There was a problem hiding this comment.
Tested and works well. Since we have now refactored the picking logic into shared functionality, we could consider changing the mouse cursor when it hovers over a pickable model while in selection mode. This would help distinguish between areas where selection is possible and other parts of the viewport where picking is not available. It also provides a clear visual cue that the user is in selection mode and currently over a valid pick target. Just a suggestion, as this is purely a usability enhancement and not a functional requirement.
Base automatically changed from
feat/4.5b-publish-cross-section-plane-to-client
to
main
November 9, 2026 14:22
# Conflicts: # tests/unit/app/test_server_app.py
LKasianAnsys
force-pushed
the
feat/geometry-picker-for-server-mode
branch
from
November 9, 2026 14:58
e4c32db to
93a693e
Compare
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.
Issue
Addresses #192
Summary
Adds geometry picking and highlighting to server mode, so clicking in the client viewport selects and highlights geometry rendered on the server, matching client-mode behavior.
Server side (Python)
CellFeatureFinderand pick models (GeometryPick,PartCellHit) into sharedvtk/pickingmodules so local and server renderers use the same pick logic.GeometryHighlightwidget that mirrors the client highlight style (including edge picking, edge dots, and line width fixes).LocalRenderer/PipelineRendererto share the pick/highlight code, and made highlight updates data-only (no extra render calls).Client side (TypeScript)
ServerRenderernow sends pick requests using viewport pixel coordinates (ViewportPixel) and reads results via the newGeometryPickReader.IRenderer,SceneTriggerSends, and frontend wiring accordingly.Tests
Notes
This adds geometry picking to server mode, but it leaves client mode unchanged: client mode still picks geometry in the browser with the wasm picker and draws the highlight on a canvas overlaid on the view. The follow-up PRs (#202, #203, #204, #210) move the client mode onto this server-side picker and highlight, so they will share an implementation.