Paul Jeffries Profile picture
Computational Designer, Structural Engineer, Head of Automation @Ramboll. Built @Site_Solve. Geoist. Occasional gamedev.

Aug 27, 2019, 5 tweets

No hubris is greater or more despised by the gods than that of a man who believes he has written a robust curve offsetting algorithm.

My offsetting algorithm is still giving me problems, but I do feel slightly better that when I tried the latest edge-case in #Rhino3D to see how they handle it I get exactly the same result as from my own crappy code:

If you can't be right, at least be wrong in company.

In fairness to both myself and McNeel; it's not entirely obvious what the correct behaviour here actually is. When you get right down to it, what exactly constitutes an 'offset curve' is a bit fuzzily defined and there's several ways of approaching it.

Fixed it! Stay tuned to hear how the horrible hacky bodge that I used comes back to bite me in the butt in a few days...

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling