I have a set of curves that I wanted to offset all outwards. But when I am doing so, the offset is random. I have tried multiple options but couldn’t figure out what is the problem.
I have even created a region outside and used short list with the distance but didn’t work.
Actually, I want the curves to be louvers. So, I am offsetting it outwards and then will create surface between those 2 lines sets and then will extrude that surface to make it solid.
I am inserting a grasshopper file with integrated curves.Offset curves.gh (110.1 KB)
If anyone can help me with it, will be very helpful.
Thank you!
I see no reason to graft your geometry? And I see no reason to have a list of offsets for Offset Curve The ‘Distance’ input expects a distance value, not a vector (or list of vectors).
I didn’t study all your options. This is the basic code:
I think you would get much better results if those curves were generated in a more reliable way
and because it looks like those curves are generated over some Breps/Surfaces (I assume it’s the exterior of a building?) sharing also those Breps/Surfaces could be much helpful because could use their Normals to find the direction along which you want the offset to happen
so the question somehow simplifies, because it’s not anymore about the direction of the offset of a curve in space, but is the direction of a curve offset in relation to the Surface on which it lies
for instance, you could even think of offsetting the surface itself, and find the curves on this outer surface directly
The purple group in this version culls only the horizontal lines (yellow group) and ignores the rest.
Then uses Brep CP to pull midpoints to an outer “wall” that surrounds all the curves and uses Side(Curve Side) to P’n’C(Pick’n’Choose) the original curve or a flipped curve for Offset Curve.
My initial thought was that I will offset the curve in both directions and will sort the list with only outer curves. That’s why I have grafted the set of curves in first place.
Yes, I got the mistake you are pointing of vector input in the distance.
Thank you for giving your time. I will clean up the curves and provide the breps/surfaces on which the curves are setting. I got you point that we can take the Surface plan and can offset the curves on the normal of that.
In one of the options. I have extruded the line in z-direction and took normal of those surfaces, but the surface normal was not pointing out, rather it was random.