Hey, I’m working on a little viewer that display image slices of a VTI file, (AXIAL, CORONAL, SAGITTAL), Using the example below I was able to display Z direction, but it doesn’t work for X and Y, I know I must change camera position and orientation, I tried camera.setPosition()
and camera.getOrientationWXYZ()
and camera.setViewUp()
with some random values because I don’t know what I must enter as parameters, I’m not sure about the functions I must use as well.
https://github.com/KitwareMedical/vtk.js-examples/blob/master/src/image-slicing.js