Thanks! You’ve worked on what I’ve been working on!
I started learning Grasshopper last Friday. I had already worked out the first part, creating the offsetting curves on both sides and capping them flat. My approach tests for closed curves and doesn’t cap the closed curves as they don’t need it for my purposes. You’re making much better use of the built-in commands and I was using C# script components to handle some of my tasks. I want to study yours and better understand it, then modify it to not cap the offset curves that are already closed.
I’ll post my finished version when I’ve merged in what I’ve learned from you.
I tested the trimming and it’s close to what I’m looking for. Again, you’ve made very good use of the built-in components. For the offsets for input curves that started off closed, i.e., a circle, the trim code is removing the inner offset line and both caps. That’s a no-go for my purposes, I need to keep the inner offset line. I’ll go thru your code and see whether I can modify it not to do that.
Again, I’ll post back with that, too. It’s possible that the first change (not capping already closed lines) will solve the second problem. One can hope!
You’ve given me something to chew on!
After I get this utility done, I have several more to do. The first will be a quality control check to identify any offset lines that are (a) open, (b) self-intersecting or (c) bad objects.
The next will be one that looks for offset lines that are too close for too long. Those closed offset lines will be extruded into solids that will be cast into metal and if they are too close for too long they will trap air bubbles and cause the cast to be less than perfect. I want a quality control check so I can toss the offset line layer contents, modify the original drawing lines to be less likely to trap bubbles, and re-run the utility to create new offset lines.
The next one will extrude the offset lines into solid extrusions and then convert them to closed polysurfaces.
And the final one will be a quality control report that marks (a) bad objects, (b) naked edges and (c) non-manifold objects.