Internal Bridge Flow rate parameter introduction

Updated internal bridging flow change and reverted bridge PR (#2943)

Updated internal bridging flow change & reverted bridge PR

(cherry picked from commit ae9a2d5929)
Internal Bridge Flow rate parameter introduction (#2859)

* Internal Bridge Flow rate parameter introduction

* updated incorrect capitalisation

* Updated parameter ordering

(cherry picked from commit ce9a8d7b20)
This commit is contained in:
Ioannis Giannakas 2023-12-01 15:50:58 +00:00 committed by SoftFever
parent 5676e0e76a
commit 3a8b799083
6 changed files with 20 additions and 2 deletions

View file

@ -776,6 +776,15 @@ void PrintConfigDef::init_fff_params()
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(1));
def = this->add("internal_bridge_flow", coFloat);
def->label = L("Internal bridge flow");
def->category = L("Quality");
def->tooltip = L("This value governs the thickness of the internal bridge layer. This is the first layer over sparse infill. Decrease this value slightly (for example 0.9) to improve surface quality over sparse infill.");
def->min = 0;
def->max = 2.0;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(1));
def = this->add("top_solid_infill_flow_ratio", coFloat);
def->label = L("Top surface flow ratio");
def->category = L("Advanced");
@ -5702,6 +5711,11 @@ std::map<std::string, std::string> validate(const FullPrintConfig &cfg, bool und
if (cfg.bridge_flow <= 0) {
error_message.emplace("bridge_flow", L("invalid value ") + std::to_string(cfg.bridge_flow));
}
// --bridge-flow-ratio
if (cfg.bridge_flow <= 0) {
error_message.emplace("internal_bridge_flow", L("invalid value ") + std::to_string(cfg.internal_bridge_flow));
}
// extruder clearance
if (cfg.extruder_clearance_radius <= 0) {