Skip to content

Commit

Permalink
Fix monotonic order for polylines with size > 2
Browse files Browse the repository at this point in the history
  • Loading branch information
BagelOrb committed Feb 5, 2022
1 parent 952d171 commit fa196db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ void LayerPlan::addLinesMonotonic
const PathOrder<ConstPolygonRef>::Path& path = order.paths[order_idx];
ConstPolygonRef polygon = *path.vertices;
const size_t start = path.start_vertex;
const size_t end = 1 - start;
const size_t end = path.vertices.size() - 1 - start;
const Point& p0 = polygon[start];
const Point& p1 = polygon[end];
// ignore line segments that are less than 5uM long
Expand Down

0 comments on commit fa196db

Please sign in to comment.