How to calculate thickness of an object?

What is the best way to calculate the thickness at each loaction of a mesh composed by triangular elements, assuming it represents a solid and that normals are pointing outwards.

Depends on how you define the thickness of a mesh…