I found this great video on YouTube, which seems to take advantage of the adjacency between shapes. I want to know how this is implemented. I saw contact detection in the function library, but I cannot determine the direction of the roof ridge from it. At the end of the video, I also saw the adjacent shape characteristics. The screenshot is video 11:51
https://www.youtube.com/watch?v=jLXNzoBpmf4

