How can i update two slice with same silde in nrrd loader

Viewed 105

I am new to Javascript and NRRD Loader, in nrrd loader we can change the index value of a slice using the slider

sliceY = volume.extractSlice('y', Math.floor(volume.RASDimensions[1]/2));
scene3.add(sliceY.mesh);

gui.add(sliceY, 'index', 0, volume.RASDimensions[1], 1).name('indexY').onChange(function () {
  sliceY.repaint.call(sliceY);
});

Consider I need update value of slicesX at same time with the same slider

sliceX = volume.extractSlice('x', Math.floor(volume.RASDimensions[1]/2));
1 Answers
Related