Get Distance from surfaces

Thanks for all the answers, but I have found for myself a more efficient way in which I can do it without having to specify any faces, simply using two rays from each part:

https://gyazo.com/85a822a536d164d85caf2e35ba7120a8