I got this shape which is causing an issue in one of my grasshopper scripts and I’m trying to figure out why so I can build a solution into the script.
When this curve gets offset it results in a super tiny triangle which appears to be open.
Can anybody explain why this happens so I can come up with a solution to deal with these curves? It seems like it’s somehow related the to Seam of the curve, when that gets moved it sometimes does give a correct offset result. I’d rather not change the seam of every curve as that will cause issues in other parts of my definition. 211108 OffsetWrong.gh (7.3 KB)
Exploding this curve gives a combination of lines and several arc-like curves with extremely large radii, and hence centers which are way out from the origin. Maybe that’s a contributing factor. Also, according to the IsKinky component in Pufferfish, it is kinky.
Good thinking about the large radius, would that be it?
Not sure what “IsKinky” would tell me, though? Curves with Kinks should be able to be offset, no?
I don’t know if such shallow arcs are important to your project or are just artifacts of however this curve was generated. If not, you could try replacing them by lines.
The curve with lines does look a little different, but rebuilding the arcs as degree 2 nurbs with 2 segments works with offset and doesn’t look too bad – to me at least.
Yeah I need to end up with a curve made up of arcs and lines. Guess I’ll need to replace the arcs that have a large radius and can be changed only if they’re within a certain tolerance. Thanks for your help.
Would be nice if anybody from Mcneel could confirm that this is the issue here.
What’s even weirder is that when I mirror the curve along X-axis, the offset seems to work fine.