mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-18 04:15:53 +08:00
little update to config: debug message & fill_smooth_distribution type
This commit is contained in:
parent
47196dd2c9
commit
c4140ef707
@ -514,7 +514,7 @@ bool ConfigBase::set_deserialize_nothrow(const t_config_option_key &opt_key_src,
|
|||||||
void ConfigBase::set_deserialize(const t_config_option_key &opt_key_src, const std::string &value_src, bool append)
|
void ConfigBase::set_deserialize(const t_config_option_key &opt_key_src, const std::string &value_src, bool append)
|
||||||
{
|
{
|
||||||
if (! this->set_deserialize_nothrow(opt_key_src, value_src, append))
|
if (! this->set_deserialize_nothrow(opt_key_src, value_src, append))
|
||||||
throw BadOptionTypeException("ConfigBase::set_deserialize() failed");
|
throw BadOptionTypeException(("ConfigBase::set_deserialize() failed for '"+ opt_key_src+"' = '"+ value_src+"'").c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigBase::set_deserialize(std::initializer_list<SetDeserializeItem> items)
|
void ConfigBase::set_deserialize(std::initializer_list<SetDeserializeItem> items)
|
||||||
@ -560,7 +560,11 @@ bool ConfigBase::set_deserialize_raw(const t_config_option_key &opt_key_src, con
|
|||||||
ConfigOption *opt = this->option(opt_key, true);
|
ConfigOption *opt = this->option(opt_key, true);
|
||||||
if (opt == nullptr)
|
if (opt == nullptr)
|
||||||
throw new UnknownOptionException(opt_key);
|
throw new UnknownOptionException(opt_key);
|
||||||
return opt->deserialize(value, append);
|
bool ok= opt->deserialize(value, append);
|
||||||
|
if (!ok) {
|
||||||
|
return opt->deserialize(value, append);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return an absolute value of a possibly relative config variable.
|
// Return an absolute value of a possibly relative config variable.
|
||||||
|
@ -1308,12 +1308,14 @@ void PrintConfigDef::init_fff_params()
|
|||||||
def->category = OptionCategory::infill;
|
def->category = OptionCategory::infill;
|
||||||
def->tooltip = L("This is the width of the ironing pass, in a % of the top extrusion width, should not be more than 50%"
|
def->tooltip = L("This is the width of the ironing pass, in a % of the top extrusion width, should not be more than 50%"
|
||||||
" (two times more lines, 50% overlap). It's not necessary to go below 25% (four times more lines, 75% overlap). \nIf you have problems with your ironing process,"
|
" (two times more lines, 50% overlap). It's not necessary to go below 25% (four times more lines, 75% overlap). \nIf you have problems with your ironing process,"
|
||||||
" don't forget to look at the flow->above bridge flow, as this setting should be set to min 110% to let you have enough plastic in the top layer.");
|
" don't forget to look at the flow->above bridge flow, as this setting should be set to min 110% to let you have enough plastic in the top layer."
|
||||||
|
" A value too low will make your extruder eat the filament.");
|
||||||
def->min = 0;
|
def->min = 0;
|
||||||
def->mode = comExpert;
|
def->mode = comExpert;
|
||||||
|
def->sidetext = L("% or mm");
|
||||||
def->set_default_value(new ConfigOptionFloatOrPercent(50, true));
|
def->set_default_value(new ConfigOptionFloatOrPercent(50, true));
|
||||||
|
|
||||||
def = this->add("fill_smooth_distribution", coFloatOrPercent);
|
def = this->add("fill_smooth_distribution", coPercent);
|
||||||
def->label = L("distribution");
|
def->label = L("distribution");
|
||||||
def->full_label = L("Ironing flow distribution");
|
def->full_label = L("Ironing flow distribution");
|
||||||
def->category = OptionCategory::infill;
|
def->category = OptionCategory::infill;
|
||||||
@ -1323,7 +1325,8 @@ void PrintConfigDef::init_fff_params()
|
|||||||
//def->min = 0;
|
//def->min = 0;
|
||||||
//def->max = 0.9;
|
//def->max = 0.9;
|
||||||
def->mode = comExpert;
|
def->mode = comExpert;
|
||||||
def->set_default_value(new ConfigOptionFloatOrPercent(10, true));
|
def->sidetext = L("%");
|
||||||
|
def->set_default_value(new ConfigOptionPercent(10));
|
||||||
|
|
||||||
def = this->add("first_layer_acceleration", coFloat);
|
def = this->add("first_layer_acceleration", coFloat);
|
||||||
def->label = L("First layer");
|
def->label = L("First layer");
|
||||||
@ -2941,7 +2944,7 @@ void PrintConfigDef::init_fff_params()
|
|||||||
def->category = OptionCategory::perimeter;
|
def->category = OptionCategory::perimeter;
|
||||||
def->tooltip = L("Allow external perimeter to overlap each other to avoid the use of thin walls. Note that their flow isn't adjusted and so it will result in over-extruding and undefined behavior.");
|
def->tooltip = L("Allow external perimeter to overlap each other to avoid the use of thin walls. Note that their flow isn't adjusted and so it will result in over-extruding and undefined behavior.");
|
||||||
def->mode = comExpert;
|
def->mode = comExpert;
|
||||||
def->set_default_value(new ConfigOptionBool(false));
|
def->set_default_value(new ConfigOptionBool(true));
|
||||||
|
|
||||||
def = this->add("thin_walls", coBool);
|
def = this->add("thin_walls", coBool);
|
||||||
def->label = L("");
|
def->label = L("");
|
||||||
|
@ -601,7 +601,7 @@ public:
|
|||||||
ConfigOptionPercent fill_density;
|
ConfigOptionPercent fill_density;
|
||||||
ConfigOptionEnum<InfillPattern> fill_pattern;
|
ConfigOptionEnum<InfillPattern> fill_pattern;
|
||||||
ConfigOptionPercent fill_top_flow_ratio;
|
ConfigOptionPercent fill_top_flow_ratio;
|
||||||
ConfigOptionFloatOrPercent fill_smooth_distribution;
|
ConfigOptionPercent fill_smooth_distribution;
|
||||||
ConfigOptionFloatOrPercent fill_smooth_width;
|
ConfigOptionFloatOrPercent fill_smooth_width;
|
||||||
ConfigOptionBool gap_fill;
|
ConfigOptionBool gap_fill;
|
||||||
ConfigOptionFloatOrPercent gap_fill_min_area;
|
ConfigOptionFloatOrPercent gap_fill_min_area;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user