Skip to content

Commit

Permalink
Increase granularity of estimation for curled perimeters
Browse files Browse the repository at this point in the history
  • Loading branch information
igiannakas committed Jul 3, 2024
1 parent 0e26652 commit d5c24c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode/ExtrusionProcessor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class ExtrusionQualityEstimator
// The whole segment gets slower unnecesarily. For these long lines, we do additional check whether it is worth slowing down.
// NOTE that this is still quite rough approximation, e.g. we are still checking lines only near the middle point
// TODO maybe split the lines into smaller segments before running this alg? but can be demanding, and GCode will be huge
if (len > 8) {
if (len > 2) {
Vec2d dir = Vec2d(next.position - curr.position) / len;
Vec2d right = Vec2d(-dir.y(), dir.x());

Expand Down

0 comments on commit d5c24c6

Please sign in to comment.