Find thickness of a complex object

Hey guys, does somebody know how to find thickness of a complex object (more surfaces joined and created a closed polysurface) like in image , a easy and efficent way

You could mesh your brep and use Mesh.ComputeThickness, like so: