How to find wall thickness of 3d models (STL) files?

Something related to @hesamoy’s reply.