I’m trying to branch a number of branches of curves according to the sheet they are on (using Opennest)
See below for a screenshot as an example. Opennest outputs contour curves in a series of branches, organised in branches. The IDS number is a list of indexes for which sheet the curve appears on. For example Branch {0,4,0} (labelled RR in 3d) has only 1 element on sheet 1, and 4 elements on sheet 0
How can I branch the curves so that curves are organised in branches according to their sheet. So {0,4,0} becomes {0,4,0} for sheet 0, and {0,4,1} for sheet 1.
Thanks for the message. I wonder if it can’t be done more simply though - finding the centres of each curve does seem like a lot of work when there is a list of digits which denote which sheet it is on (under IDS).
I was hoping that it could be solved just by working with the trees created from opennest.
Earlier today I tried a couple of methods just working with the DataTrees but wasn’t having success, so I re-started using the point-in-curve method that I posted above and found a solution fairly quickly.
Made another attempt working with the DataTrees and came up with this: