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:
parent
a039391131
commit
34015349c1
@ -176,7 +176,7 @@ Flow Flow::with_cross_section(float area_new) const
|
|||||||
return this->with_width(width_new);
|
return this->with_width(width_new);
|
||||||
} else {
|
} else {
|
||||||
// Create a rounded extrusion.
|
// 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);
|
return Flow(dmr, dmr, m_spacing, m_nozzle_diameter, false);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user