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:
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: