Rotate Volume issue
See original GitHub issueHi, I have a volume render, and I would like to rotate it in Desktop/VR, but I have issue in both of them, When I set myVolume.rotateX(interValue) volume is rotate but some of data is missing like this image:

the volume result in image after I rotateX 33 degree, I think this issue related to 858.
Any way, is rotate action a truth way to rotate volume? Since if I use camera view up nested of rotate, its work nice on desktop, but in VR not working truth since VR has left and right projection/view matrix and maybe I need to build a new matrix for that, Im not sure…
Additional Note: VTKJS Version: 11.1.0 Browser: Google Chrome 77.0 OS: Windows 10 64 bit.
Thanks for help.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Calculus I - Volumes of Solids of Revolution / Method of Rings
For purposes of this discussion let's rotate the curve about the x x -axis, although it could be any vertical or horizontal axis....
Read more >Calculus Volume of Rotation Problem - YouTube
In this video, we find the area of a trapezoid geometrically and by integrating. Then we find a volume of rotation by rotating...
Read more >Math Tutor: 4 Easy Steps to Volume Rotation Integration - CC
Here's a step by step guide to volume rotation integration programs. Plus more math goodies, from our math tutor in the MIT/Harvard neighborhood....
Read more >Audio output changes with orientation - Apple Community
On my iPhone 7 while playing videos the volume will change depending on how the phone is rotated. In portrait orientation I will...
Read more >Volumes of solids of revolution - Mathcentre
After reading this text, and/or viewing the video tutorial on this topic, ... The curve would then map out the surface of a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @jourdain
After trace rotate code, and take look at direction for input data, we can change the way for rotate data, we can build Orthogonal matrix from Rotation matrix and pass it to
setDirection(), this way will make rotate work perfect with direction, I test it and implement it in my code, and all is good…For example for my work (sample of code):
After I implement this way, Volume is rotate in Desktop/Vr without any issue, so that I share it, and no visual artifacts seen, I wish its be helpful too like your suggestions before.
Reference
You can also adjust the VR camera as well. But since you want to rotate the volume at the representation level, that’s fine.
BTW, based on what I can understand from your explanations, the vtkImageData does exactly what you are looking for. But it is true, that you should also be able to define transform on Props so I’ll stop suggesting workarounds that will let you move forward.