Pomax / BezierInfo-2

The development repo for the Primer on Bézier curves, https://pomax.github.io/bezierinfo
https://pomax.github.io/bezierinfo
Other
2.35k stars 289 forks source link

Missing extreme points in the Curve offsetting section #395

Open pkolchanov opened 3 months ago

pkolchanov commented 3 months ago

Hi! The example graphics in the Curve offsetting section is misleading, because it doesn’t show extreme points of simplified curves:

I’ve traced the problem. It occurs due to the use of outdated dpoints in the reduce() method. A simple invalidation resolves the issue.