Medirap is a project mainly written in C++ and PROLOG, it's free.
Software to convert medical data (TIFF, DICOM) into RepRap STL/GCode instructions