add One wall threshold parameter

This commit is contained in:
SoftFever
2023-08-10 10:55:43 +08:00
parent b396f55ddc
commit bb89336285
6 changed files with 23 additions and 6 deletions

View File

@@ -749,6 +749,21 @@ void PrintConfigDef::init_fff_params()
def->tooltip = L("Use only one wall on flat top surface, to give more space to the top infill pattern");
def->set_default_value(new ConfigOptionBool(false));
// the tooltip is copied from SuperStudio
def = this->add("min_width_top_surface", coFloatOrPercent);
def->label = L("One wall threshold");
def->category = L("Quality");
def->tooltip = L("If a top surface has to be printed and it's partially covered by another layer, it won't be considered at a top layer where its width is below this value."
" This can be useful to not let the 'one perimeter on top' trigger on surface that should be covered only by perimeters."
" This value can be a mm or a % of the perimeter extrusion width."
"\nWarning: If enabled, artifacts can be created is you have some thin features on the next layer, like letters. Set this setting to 0 to remove these artifacts.");
def->sidetext = L("mm or %");
def->ratio_over = "inner_wall_line_width";
def->min = 0;
def->max_literal = 15;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloatOrPercent(300, true));
def = this->add("only_one_wall_first_layer", coBool);
def->label = L("Only one wall on first layer");
def->category = L("Quality");