mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.66k stars 35.37k forks source link

Supporting Volume.extractSlice on any vector #23888

Open Gaelik-git opened 2 years ago

Gaelik-git commented 2 years ago

Hello !

I using the nrrd-loader and Volume.extractSlice to display my data, it's working well. Is it planned to add possibility extractSlice on different vector than ('x', 'y', and 'z') ? I found this comment on the VolumeSlice type

https://github.com/mrdoob/three.js/blob/8db7a598ed6e71538e286e5c56c02cc5823157dc/examples/jsm/misc/VolumeSlice.js#L16

Mugen87 commented 2 years ago

@developers-mirrorme3d @sonisourabh What do you think about this issue? Is it possible with the current Volume class to have volume slices along arbitrary directions (and not just the cardinal axes)?