diff options
Diffstat (limited to 'src/utils/ExtrusionLine.cpp')
-rw-r--r-- | src/utils/ExtrusionLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/ExtrusionLine.cpp b/src/utils/ExtrusionLine.cpp index 6523b4428..cdfb5ce90 100644 --- a/src/utils/ExtrusionLine.cpp +++ b/src/utils/ExtrusionLine.cpp @@ -136,7 +136,7 @@ void ExtrusionLine::simplify(const coord_t smallest_line_segment_squared, const && height_2 <= allowed_error_distance_squared) // Removing the junction (vertex) doesn't introduce too much error. { const coord_t next_length2 = vSize2(current - next); - if (next_length2 > smallest_line_segment_squared) + if (next_length2 > 4 * smallest_line_segment_squared) { // Special case; The next line is long. If we were to remove this, it could happen that we get quite noticeable artifacts. // We should instead move this point to a location where both edges are kept and then remove the previous point that we wanted to keep. |