This code shows an algorithm for importing and mapping 2D images to 3D plots. Mapping algorithm: maps 2D binary image to 3D form by transforming relative pixel color to depth.
Primary Code - generated from the attached code [from mapto3d.py]
Modern Code - generated for a more recent code that uses the same algorithm but cuts the main algorithm code to 5 lines and allows for the automation of generating N slices on the X-dimension without any additional code development.
3D rendering generated from Joe Clark's Human Skull Photographic Print 2D Image