I have the following situation. I have lines which form shapes. I have to offset these lines with different values. So far so good. Now the problem is to join the offseted lines together with a sharp angle. I can´t seem to do it in grasshopper.
It is very easy to do in Autocad (I hate using Autocad instead of Rhino… that is a mortal sin), via the Fillet comand. And then for the green line is also easy to extend it until intersecs with the yellow one via the Extend command. However, this has to be done great many times, so I decided to do it via Grasshopper. Hope it is possible.
Any corners that have the same offset value in both directions could be joined first and offset as one polyline/crv in the GH def. Then the remaining line(s) get offset at the other distance and extended using the first offset value to meet up with the first offsets corners. Essentially, the simplest way I can figure is to extend by this value rather then test for intersections and trim>sort>join. You have a couple profiles that have nonuniform offset values at the corners and in these cases the lines will need to be separate using the type of def I made. HTH
Make sure to “Set Multiple Curves” in the right click menu of the crv component. This should work like this…
Can you right click the curve components in your GH def and choose Internalize Data and post that GH file?
edit: I see what you mean, sorry I missed that, I couldn’t tell what lines to offset in your 3dm so I was mocking it up. I’ll see if I can account for corner angles.
Maybe if we can extend the curves exactly at their intersection points it will do the trick. I am ables to find the intersection points… how ever no way to either extend the lines to them or trim them somehow at these intersection points.
Then bake out the result and use the command CurveBoolean to create the closed regions you need. I think you’ll have to do it twice for each set if I’m understanding the boundaries you want. Check out the command line for the options too, you can delete the used curves or keep them around.
The whole idea is to by-pass the manual work. Manually it is easily doable in Autocad. However Imagine 300 patterns like this… Then an automation is the only good solution.
I totally understand, sorry I couldn’t get you all the way there. @DavidRutten may know a way. I think once we can provide CurveBoolean as a component it would be possible to automate it all.
I‘m not at my computer, so I can‘t make the script. But you could move the lines + and - in z direction and loft them. Than you should be able to trim with brep.
The left bottom slider (10) just needs to be replaced with a “list lenght” of the non offset rectangle.
Than it should be completly parametric, if the structure is the same in the future.