I have a surface model in Rhino. Those surfaces have different layers and their colors are assigned to the respective layer. Keep in mind that the amount of surfaces and layers is quite large. Then, using grasshopper, I intersect that model with several planes and extract the intersecting curves. My goal is for those curve objects to be assigned to the same layer of the surface that originated it. Keeping the parent color would be a plus! Any thoughts? Thanks!
I actually deleted my previous reply because I thought it did not work but indeed it did. However, it only works if the number of layers equals the number of objects. If I have, e.g., 10 different layers but at a given intersection my plane only intersects surfaces from 8 layers, then errors start to appear because the number of inputs from layers (10) is different than the number of objects (8).
You can also find the files attached. As you can see, at 30m or 50 m from origin (x direction), the cross section does not catch any object/surface in layer 20 (green), hence the error I suppose. Thanks!
Indeed, I believe my problem is with properly handling data trees… I’m trying to learn more about the topic but it still is a bit confusing. I’ve been testing with your re_Example.gh file and basically, when we depart from simpler models, it seems the algorithm stops behaving as expected. Please check this new Rhino model attached, which is just larger than the previous Example.3dm.