I want to trim and join separate closed curves that are on the same Z-plane. My current script works if I have two curves, but breaks down when I have three or more curves that I want to trim and blend together. I’m using circles and
Trim with Region to trim the curves and then Blend them together using
Right now, I’m having trouble getting the circles to trim all of the necessary sections, as shown below. First set of curves, middle closed loop trims in one direction but not the other. I assume this has something to do with my poor data tree management.
Additionally, I see I’m going to have another problem down the road once I’m successful in trimming the problematic curve, as I’m using
Unflatten Tree to move everything the curves back into their respective branches. (Edit: Figured part of this out. Use
Shift Path to move back down one level.)
I’m assuming there are better method than what I’m currently doing, but I’m not 100% sure what else to do for the moment. Any ideas? Attached my GH file as well.
trim and join separate closed curves.gh (51.6 KB)