Made the sheath around the base support configurable. Without the sheath

it is easier to remove the support, but the support is more fragile.
This commit is contained in:
bubnikv 2016-10-04 14:38:13 +02:00
parent 5bb37ad2c4
commit 5268574ade
6 changed files with 18 additions and 3 deletions

View file

@ -1219,6 +1219,13 @@ PrintConfigDef::PrintConfigDef()
def->max = 90;
def->default_value = new ConfigOptionInt(0);
def = this->add("support_material_with_sheath", coBool);
def->label = "With sheath around the support";
def->category = "Support material";
def->tooltip = "Add a sheath (a single perimeter line) around the base support. This makes the support more reliable, but also more difficult to remove.";
def->cli = "support-material-with-sheath!";
def->default_value = new ConfigOptionBool(true);
def = this->add("temperature", coInts);
def->label = "Other layers";
def->tooltip = "Extruder temperature for layers after the first one. Set this to zero to disable temperature control commands in the output.";

View file

@ -158,6 +158,7 @@ class PrintObjectConfig : public virtual StaticPrintConfig
ConfigOptionFloat support_material_spacing;
ConfigOptionFloat support_material_speed;
ConfigOptionInt support_material_threshold;
ConfigOptionBool support_material_with_sheath;
ConfigOptionFloat xy_size_compensation;
PrintObjectConfig(bool initialize = true) : StaticPrintConfig() {
@ -191,6 +192,7 @@ class PrintObjectConfig : public virtual StaticPrintConfig
OPT_PTR(support_material_spacing);
OPT_PTR(support_material_speed);
OPT_PTR(support_material_threshold);
OPT_PTR(support_material_with_sheath);
OPT_PTR(xy_size_compensation);
return NULL;

View file

@ -240,6 +240,7 @@ PrintObject::invalidate_state_by_config_options(const std::vector<t_config_optio
|| *opt_key == "support_material_pattern"
|| *opt_key == "support_material_spacing"
|| *opt_key == "support_material_threshold"
|| *opt_key == "support_material_with_sheath"
|| *opt_key == "dont_support_bridges"
|| *opt_key == "first_layer_extrusion_width") {
steps.insert(posSupportMaterial);