feat: Zernike flip buttons (X/Y/Z) and copy coefficients#43
Merged
Conversation
For Zernike surfaces in the property panel, next to the existing Invert button, add: - Flip around X: mirrors the surface about the xz-plane (y → -y). Negates all sine-type (Y) azimuthal Zernike terms; leaves cosine-type (X) and spherical terms unchanged. - Flip around Y: mirrors the surface about the yz-plane (x → -x). Negates odd-m cosine (X) terms and even-m sine (Y) terms. - Flip around Z: rotates the surface 180° about the z-axis. Negates all odd-m terms (both X and Y components). Each flip creates a new surface in the folder named after the original with a suffix like '(flipped around X)'. Radius of curvature is intentionally left unchanged. - Copy Coefficients: copies Z1-Z37 values as tab-separated text to the clipboard for direct paste into Excel. Files changed: src/utils/surfaceTransformations.js — flipZernikeAroundX/Y/Z src/utils/surfaceOperationHandlers.js — handlers + clipboard src/components/ui/SurfaceActionButtons.js — 4 new buttons src/components/panels/PropertiesPanel.js — new props src/renderer-modular.js — import, closures, prop pass-through
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
Each flip creates a new surface named ' (flipped around X)'. Radius of curvature is unchanged.
Files changed