Code optimisation

This commit is contained in:
igiannakas 2023-09-12 12:33:14 +01:00
parent 03c644f4c4
commit 3f8cfa74ea

View file

@ -306,8 +306,9 @@ public:
const ExtendedPoint &curr = extended_points[i];
const ExtendedPoint &next = extended_points[i + 1 < extended_points.size() ? i + 1 : i];
// The following code artifically increases the distance to provide slowdown for extrusions that are over curled lines
float artificial_distance_to_curled_lines = 0.0;
if(slowdown_for_curled_edges) {
// The following code artifically increases the distance to provide slowdown for extrusions that are over curled lines
const double dist_limit = 10.0 * path.width;
{
Vec2d middle = 0.5 * (curr.position + next.position);
@ -353,6 +354,7 @@ public:
}
}
}
}
auto calculate_speed = [&speed_sections, &original_speed](float distance) {
float final_speed;