Fix a rounded extrusion model when the new width is smaller than layer height - the code used radius in place of diameter

This commit is contained in:
PavelMikus 2023-05-04 14:59:50 +02:00
parent a039391131
commit 34015349c1

View File

@ -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