mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-02-07 04:11:50 +03:00
Updated to 1.9.5, and optimize calibration and device
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user