Hello everyone, I am creating a pattern for the ceiling, it consists of two elements - a metal segment and a light segment. The elements had to be generated randomly, and there was a problem with the light segment of the ceiling hitting the structural elements of the building (columns, walls, etc.) (shown in the attached). this should not be the case. I decided to make a contour on the spline of all structural elements, and then uncheck the slice checkbox in the light segment, and in the 2S1 array, when scrolling through the clipping area settings, select remove in the no-slice item so that all light segment are removed when crossing the spline boundary. But instead of them there is a void, and I have not found how to replace empty elements with metal parts. And then I came to a dead end.
Logically, it is necessary to somehow check whether the railclone segment crosses the spline boundary, and, depending on this condition, if it crosses, then use a metal segment, if not, then generate metal segment with light segment.
The question is, how do I check if the segment crosses the spline boundary in railclone?
Or maybe there is some other logic so that the setting I need from metal and light segments is generated and does not fall on the structural elements?
I attached the scene below, 3ds max 2022. I hope for your help, thank you.