REPRESENT A 3D MODEL OF A BONE WITH A COLORMAP BASED ON BONE THICKNESS

Hello!

We have an array of contours with information about the thickness of a bone tissue. In each one of the slices, all the values are zero except those that show the thickness. The following image is an example of one slice:

The idea is to represent a stacked model using the values of those slices to get a 3d representation of the bone with a colormap based on those thickness values. Something similar to what is shown in the following image but with a colormap based on bone thickness.


Image obtained from: https://es.dreamstime.com/

Any help is appreciated.
Thanks!