Skip to content
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

Merged

Conversation

NicerNewerCar
Copy link
Contributor

@NicerNewerCar NicerNewerCar changed the title Pivot snap back to center Pivot alignment and centering Aug 22, 2024
@amymmorton
Copy link
Collaborator

lgtm

autoscoper/src/ui/AutoscoperMainWindow.cpp Outdated Show resolved Hide resolved
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.
Copy link
Contributor

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" ?

Copy link
Contributor Author

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.

autoscoper/src/ui/AutoscoperMainWindow.cpp Outdated Show resolved Hide resolved
autoscoper/src/ui/AutoscoperMainWindow.cpp Outdated Show resolved Hide resolved
@@ -1033,4 +1033,12 @@ void Tracker::getFullDRR(unsigned int volumeID) const
}
}

gpu::VolumeDescription* Tracker::getVolumeDescription(const int& index)
{
if (index == -1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libautoscoper/src/VolumeDescription.hpp Outdated Show resolved Hide resolved
autoscoper/src/ui/AutoscoperMainWindow.cpp Outdated Show resolved Hide resolved
NicerNewerCar and others added 4 commits September 5, 2024 17:42
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".
@jcfr jcfr merged commit 8bb1c4e into BrownBiomechanics:main Sep 6, 2024
3 checks passed
@NicerNewerCar NicerNewerCar deleted the pivot-snap-back-to-center branch September 6, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Queen's Feature Request - Pivot Alignment Features Queen's Feature Request - Body Readout
3 participants