-
Notifications
You must be signed in to change notification settings - Fork 5
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
Pivot alignment and centering #298
Pivot alignment and centering #298
Conversation
lgtm |
Mat4d manip = getManipulator(-1)->transform(); | ||
CoordFrame vol_world = (CoordFrame::from_matrix(trans(manip)) * *tracker->trial()->getVolumeMatrix(-1)); | ||
|
||
// The translation center is the relative position of the center of the volume to the corner coordinate. |
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.
Could you confirm that "translation center" is synonym with "translation origin" ?
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.
Yes this is correct, I believe this was called the "translation center" since, by default, it is set to the center of the volume.
@@ -1033,4 +1033,12 @@ void Tracker::getFullDRR(unsigned int volumeID) const | |||
} | |||
} | |||
|
|||
gpu::VolumeDescription* Tracker::getVolumeDescription(const int& index) | |||
{ | |||
if (index == -1) { |
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.
Ensure consistency across the VolumeDescription API by removing the only method returning "Vec3f", which was added in the commit "ENH: Add short to align pivot with global axes".
3d9e8ea
to
e6c260a
Compare
O
to align the manipulator axes to the global axesP
to snap the pivot back to the center of the volume