For handling DICOM images, and for assembling and viewing them in 3D I recommend
ImageJ. It already does all that, and it's open source Java software, so you can make it do everything else you might need it to do.
Check the list of "Stacks"
plugins for various options of displaying 3D data sets.