News for hackers. Stuff that matters.
Re:Parallel Curves of Cubic Béziers by bufferoverflow on Saturday September 10, 2022 @12:18AM (#32787768)
All 3 methods fail on this example

https://i.imgur.com/rKcdjpv.jpg

Re:Parallel Curves of Cubic Béziers by nullc on Saturday September 10, 2022 @01:25AM (#32788052)
That cusp isn't a failure, so much as the definition of parallel not matching your expectations. You can't have the radius of the curve smaller than your offset without forcing a cusp.

If you imagine dragging an eraser across the 'roadway' produced by the parallel lines, you'll see that the solution with the cusp still obeys the constraint that the lines are a constant distance apart for every point along the road, it's just that it turns so tight your eraser needs to turn in place at the corner.

Re:Parallel Curves of Cubic Béziers by jansan on Monday September 12, 2022 @04:28AM (#32807471)
Actually, that's what the offset of the curve looks like. Take a pencil and paper and draw a parabola. Then try to draw an offset curve to the inside with an offset greater than the smallest curvature radius of the parabel. You will get this strange path with two cusps and an inverted curve between them. Try it out, it is an eye opener.