Creating a colored cube from a three-dimensional array
843799Apr 25 2008 — edited Apr 26 2008Hey guys,
I'm working on this application which basically displays a 3-dimensional MRI representation of a brain as well as 2-dimensional slices of that representation. As of right now, this MRI data is being stored as gray-scale values in a 3-dimensional array. I've perused the Java3d tutorial and API but I'm not quite sure how I should go about doing this. I am new to using Java3D and so I was wondering if any of you more experienced guys could suggest what you believe is the most sensible as well as efficient method of going about doing this. I was thinking of treating each element in the array as a pixel and representing each pixel as a cube or some other geometric object but this seems highly inefficient and considerably difficult to work with in terms of allowing the user to manipulate (rotate, etc.) the object. I've looked into using geometry arrays but I'm not quite sure they are what I want. Any thoughts, even those such as "this is a stupid post, do more research, the answer is pretty obvious", would be greatly appreciated.