News for hackers. Stuff that matters.
Re:Bezier-rs – algorithms for Bézier segments and shapes by ttoinou on Thursday August 14, 2025 @04:59AM (#44898313)
Interesting. Arc segments are arc circles ?
Re:Bezier-rs – algorithms for Bézier segments and shapes by neutronicus on Thursday August 14, 2025 @10:30AM (#44900842)
Yep, subsets of circles.

Users can specify them by three points on the perimeter, by tangents at endpoints (up to 180deg of course), with various other conveniences (you can place two tangent arc or bezier vertices in a row and create an implicit g1 interface between the two arc / bezier segments).

Constraint solvers are good at circles and you can offset them analytically so they make a lot of sense for CAD.

I can't really say this rigorously but I also think that Bezier segments and circle segments are good "partners" for approximating smooth curves - each has just enough degrees of freedom for you to require g1 continuity between them, one of them always has constant non-zero curvature, the other cannot have constant non-zero curvature, and the locality aspect matches the intuition of a human operator.

Re:Bezier-rs – algorithms for Bézier segments and shapes by ttoinou on Friday August 15, 2025 @04:02PM (#44916737)
Thanks ! I don't think Offsets are straightforward (closed form equation) with Bezier but it can be approximated