I have a collection of closed curves. They were created by applying _CurveBoolean to a grid of curves in Rhino. They look like this:
Every curve in this collection appears, visually, to have three or four crisp corners, but when I bring them into grasshopper and explode them, many of them explode into more than three or four segments, like this:
I realize that this is probably because of how I created the curves (they’re from a wireframe, projected to c-plane, and then turned into cells with _curveboolean).
But I want to create edge surfaces from them, to project other stuff on to, with the goal effectively being a paneling grid, but curved. The Edge Surface component requires four or fewer input curves. I would like to find a way of automatically splitting my curves at their corners to achieve this.
I tried Simplify Curve. No luck. There does not appear to be a Merge Edges component, and it might not work anyway. So is there a way to detect the corners and split at them? or is there another way to delete the unwanted vertices, yielding my desired number of segments after passing them through Explode Curve?
I have made a few attempts at this. The best one so far doesn’t work perfectly, and is also probably way too complicated. It’s definitely processor intensive. Here it is, (some components are only hear for error checking):Split at crisp corners halp.gh (15.3 MB)
This should be simpler to achieve, right? I’m a newb and I’m self-taught, so I’m betting this is about a basic knowledge gap. Fill me in?