Updated to 1.9.5, and optimize calibration and device

This commit is contained in:
QIDI TECH
2024-09-16 16:07:29 +08:00
parent fa251e0a9a
commit d842832b25
90 changed files with 2753 additions and 998 deletions

View File

@@ -190,8 +190,11 @@ Flow Flow::with_cross_section(float area_new) const
float Flow::rounded_rectangle_extrusion_spacing(float width, float height)
{
auto out = width - height * float(1. - 0.25 * PI);
if (out <= 0.f)
//1.9.5
if (out <= 0.f){
BOOST_LOG_TRIVIAL(error)<< __FUNCTION__ << boost::format("negative extrusion : width %1% height %2%") % width % height;
throw FlowErrorNegativeSpacing();
}
return out;
}