How to achieve this effect?

Thank you for answering! From a dentist’s perspective, I think Measuring the distance between surface might help. However, I still do not how to actually do this since I do not have much blender experience. Can anyone upload a blender file to do this?