Conversion of DICOM files to STL files
The marching cubes algorithm can convert voxel data into a surface mesh. A global threshold to determine the surface in the greyvalues is used. 
This article might be helpful.