Skip to content

Commit

Permalink
Verify dpoints before reducing
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolchanov committed Aug 20, 2024
1 parent a638126 commit fe711af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/chapters/offsetting/offsetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ reduce(curve) {
pass2 = [];

// first pass: split on extrema
curve.vefify();
let extrema = curve.extrema().values;
if (extrema.indexOf(0) === -1) {
extrema = [0].concat(extrema);
Expand Down

0 comments on commit fe711af

Please sign in to comment.