From 34015349c177feef289dc3f480f5d52cc69ddecf Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Thu, 4 May 2023 14:59:50 +0200 Subject: [PATCH] Fix a rounded extrusion model when the new width is smaller than layer height - the code used radius in place of diameter --- src/libslic3r/Flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Flow.cpp b/src/libslic3r/Flow.cpp index 1084e6f102..bc3a2d7775 100644 --- a/src/libslic3r/Flow.cpp +++ b/src/libslic3r/Flow.cpp @@ -176,7 +176,7 @@ Flow Flow::with_cross_section(float area_new) const return this->with_width(width_new); } else { // Create a rounded extrusion. - auto dmr = float(sqrt(area_new / M_PI)); + auto dmr = 2.0 * float(sqrt(area_new / M_PI)); return Flow(dmr, dmr, m_spacing, m_nozzle_diameter, false); } } else