Repository navigation
mcdisplay-webgl(-classic): --campath file for the tour - #3154
Merged
Merged
Conversation
One loop 1 m above the storage ring, against the electron direction so the beamline labels read correctly. Use with --campath. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rows of x y z, optionally with the viewing direction dx dy dz. When given, a ticked "campath file" toggle tours its points instead of the components, with the offset/view settings applied, and stops at the last point. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Video-dumps from various settings of the SOLEIL tour with campath @farhi https://github.com/user-attachments/assets/ece7a4db-70ed-436a-b819-47401a7d4b51 |
Contributor
Author
|
Default display of ILL_H5 with a y=1 m position above beam / component path |
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.
Free-form text area
Please describe what your PR is adding in terms of features or bugfixes:
Adds
--campath FILEto mcdisplay-webgl and mcdisplay-webgl-classic (McStas and McXtrace), so the tour can follow a given camera path instead of the component centres:x y z(m), orx y z dx dy dzwith the viewing direction. Spaces, tabs or commas;#starts a comment. Without a direction the camera looks towards the next point.exit(-1)before the simulation runs.SOLEIL_ring_campath.txtnext to the McXtraceSOLEILexample: one loop 1 m above the storage ring, against the electron direction so the beamline labels read correctly.Example, from a copy of the
SOLEILexample folder:mxdisplay-webgl-classicfor the classic viewer).dist/bundle is rebuilt.Declaration of use of AI-tools
Co-Authored-Byline naming the tool, see CONTRIBUTING.mdDevelopment OS / boundary conditions
Please describe what OS you developed and tested your additions on, and if any special dependencies are required:
macOS (arm64), mccode-dev conda env. No new dependencies. Tested:
--campath.Not tested on Linux or Windows.
PR Checklist for contributing to McStas/McXtrace
My contribution contains something else
🤖 Generated with Claude Code