-
-
Notifications
You must be signed in to change notification settings - Fork 315
Feature: Add yaw camera support #2357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add yaw camera support #2357
Conversation
As fas as I can tell, |
Well, I was wrong, the method we want to expose is not yaw, but elevation: Yaw: Rotate the focal point about the view up vector, using the camera's position as the center of rotation. Sorry about the misdirection, please correct to use the elevation method instead. |
to confirm you want "2" and "8" to be bound to elevation_camrea 90 and elevation_camera -90. Then just add a function for azimuth_camera but without binding it to any key. |
Yes! exactly. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2357 +/- ##
==========================================
+ Coverage 96.13% 96.17% +0.03%
==========================================
Files 131 133 +2
Lines 11951 12074 +123
==========================================
+ Hits 11489 11612 +123
Misses 462 462 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi @mwestphal , I believe the pull request is ready to be merged. |
I'll review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changes needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small changes needed
Nice! I'll merge if CI comes back green. |
It seems TestInteractionElevationCameraRotation is still failing. But after I commit the image that you generated, its passing for VTK 9.3 and less, but failing for VTK 9.4 and higher |
Alright, CI is clean! Merging! |
Thanks for your contribution @Medyan-Naser ! |
Describe your changes
elevation_camera
function.elevation_camera
rotation to keys 2 (rotate 90°) and 8 (rotate -90°).azimuth_camera
function but did not bind it to any key yet.elevation_camera
andazimuth_camera
, including a baseline image for verification.Test logs
Medyans-MacBook-Air:f3d medyan$ ctest -R TestCommandScriptElevation
Test project /Users/medyan/Desktop/projects/open_source/f3d
Start 465: f3d::TestCommandScriptElevation
1/1 Test #465: f3d::TestCommandScriptElevation ... Passed 5.02 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 5.07 sec
Medyans-MacBook-Air:f3d medyan$
Medyans-MacBook-Air:f3d medyan$ ctest -R TestCommandScriptAzimuth
Test project /Users/medyan/Desktop/projects/open_source/f3d
Start 466: f3d::TestCommandScriptAzimuth
1/1 Test #466: f3d::TestCommandScriptAzimuth .... Passed 6.53 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 6.58 sec
Medyans-MacBook-Air:f3d medyan$
Issue ticket number and link if any
#2342
Checklist for finalizing the PR
.github/workflows/versions.json
, I have updatedtimestamp
Continuous integration
Please check the checkbox of the CI you want to run, then push again on your branch.