Skip to content

Commit

Permalink
Layerplan int -> coord_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Piezoid committed Sep 13, 2022
1 parent ead7283 commit 70590f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ void LayerPlan::addLinesInGivenOrder(const std::vector<PathOrderPath<ConstPolygo
if (wipe_dist != 0)
{
bool wipe = true;
int line_width = config.getLineWidth();
coord_t line_width = config.getLineWidth();

// Don't wipe if current extrusion is too small
if (polyline.polylineLength() <= line_width * 2)
Expand Down Expand Up @@ -1346,10 +1346,10 @@ void LayerPlan::spiralizeWallSlice(const GCodePathConfig& config, ConstPolygonRe
}
}

const int n_points = wall.size();
const size_t n_points = wall.size();
Polygons last_wall_polygons;
last_wall_polygons.add(last_wall);
const int max_dist2 = config.getLineWidth() * config.getLineWidth() * 4; // (2 * lineWidth)^2;
const coord_t max_dist2 = config.getLineWidth() * config.getLineWidth() * 4; // (2 * lineWidth)^2;

double total_length = 0.0; // determine the length of the complete wall
Point p0 = origin;
Expand Down

0 comments on commit 70590f5

Please sign in to comment.