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

Cam rotation and stats #631

Merged
merged 13 commits into from
Jan 30, 2024
Merged

Cam rotation and stats #631

merged 13 commits into from
Jan 30, 2024

Conversation

aryaman-gupta
Copy link
Member

Adds small miscellaneous functionalities: 1) use the ArcballCamera to rotate camera about a target by a fixed angle, 2) clearing an item recorded by the Statistics class. Extends fromPathRaw function in Volume to transparently handle volume buffers larger than 2 GB

Copy link
Member

@skalarproduktraum skalarproduktraum left a comment

Choose a reason for hiding this comment

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

Looks good, please only address the two minor things I've marked 👍

* with [fromPathRawSplit] to load volume files greater than 2 GiB into sliced partitions and place
* the partitions back-to-back, emulating a single large volume in the scene.
*/
fun positionSlices(volumes: List<Volume>, pixelToWorld: Float) {
Copy link
Member

Choose a reason for hiding this comment

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

I am not a fan of having this as a static method. How about an extension function of Volume or RichNode, so you can call this directly on the parent node? Also, pixelToWorld should get the default value volumes.first().pixelToWorldRatio, so you don't always have to hand it over.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, moved the positionSlices function to RichNode where it is called positionVolumeSlices and does not take pixelToWorld as parameter

@skalarproduktraum skalarproduktraum merged commit 1064d30 into main Jan 30, 2024
9 checks passed
@skalarproduktraum skalarproduktraum deleted the cam-rotation-and-stats branch January 30, 2024 13:17
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.

2 participants