I am trying to develop a script for the following problem.
This is a small example model which I created to explain the task. The blue solids can be assumed to be the nodes of grid shell structure and the green solids are beams. As shown in case 1, the beam face is within the bounds of the node face. But in the other cases the beam face is either above or below the bounds. I have hundreds of such nodes in a model and no two nodes have the same inclination. I want to write a script which can extract the distance by which the beam is outside the node bounds using a separate coordinate system for each node in the model (something like a Gumball in Rhinoceros). It would be great if someone can share an approach on how to implement this in Grasshopper.