Elefant foot compensation for solid layers (#11526)

* Elefant foot compensation for solid layers

Elefant foot compensation for solid layers above bottommost by infill density manipulation.

* Update Fill.cpp

* change the option to expert cat

* use is_approx for float

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
π²
2026-04-26 12:03:35 +03:00
committed by GitHub
parent b3cadbd368
commit f0d8014ef1
7 changed files with 25 additions and 3 deletions

View File

@@ -695,6 +695,18 @@ void PrintConfigDef::init_common_params()
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionInt(1));
def = this->add("elefant_foot_layers_density", coPercent);
def->label = L("Elefant foot layers density");
def->category = L("Quality");
def->tooltip = L("Density of internal solid infill for elefant foot layers compensation. "
"The initial value for the second layer is set. "
"Subsequent layers become linearly denser by the height specified in elefant_foot_compensation_layers. ");
def->sidetext = "%";
def->min = 50;
def->max = 100;
def->mode = comExpert;
def->set_default_value(new ConfigOptionPercent(100));
def = this->add("layer_height", coFloat);
def->label = L("Layer height");
def->category = L("Quality");