prototyping tweakable XY supports;

option should be present now in advanced support menu.
Can't figure out what's going on atm; support should be moving but isn't
This commit is contained in:
slicer-builder 2016-03-19 22:30:02 -05:00 committed by bubnikv
parent f63c21f0f3
commit bb22f1dc8a
6 changed files with 19 additions and 3 deletions

View file

@ -1121,6 +1121,13 @@ PrintConfigDef::PrintConfigDef()
def->cli = "support-material!";
def->default_value = new ConfigOptionBool(false);
def = this->add("support_material_xy_spacing", coFloat);
def->label = "Extra separation between part and support (mm)";
def->category = "Support material";
def->tooltip = "Add offset to support material separation (0 is 1 extrusion width).";
def->cli = "support-material-xy-spacing=f";
def->default_value = new ConfigOptionFloat(0.0);
def = this->add("support_material_angle", coInt);
def->label = "Pattern angle";
def->category = "Support material";

View file

@ -164,6 +164,7 @@ class PrintObjectConfig : public virtual StaticPrintConfig
ConfigOptionBool support_material_synchronize_layers;
ConfigOptionInt support_material_threshold;
ConfigOptionBool support_material_with_sheath;
ConfigOptionFloat support_material_xy_spacing;
ConfigOptionFloat xy_size_compensation;
PrintObjectConfig(bool initialize = true) : StaticPrintConfig() {
@ -198,6 +199,7 @@ class PrintObjectConfig : public virtual StaticPrintConfig
OPT_PTR(support_material_spacing);
OPT_PTR(support_material_speed);
OPT_PTR(support_material_synchronize_layers);
OPT_PTR(support_material_xy_spacing);
OPT_PTR(support_material_threshold);
OPT_PTR(support_material_with_sheath);
OPT_PTR(xy_size_compensation);

View file

@ -221,6 +221,7 @@ PrintObject::invalidate_state_by_config_options(const std::vector<t_config_optio
|| *opt_key == "support_material_interface_speed"
|| *opt_key == "support_material_buildplate_only"
|| *opt_key == "support_material_pattern"
|| *opt_key == "support_material_xy_spacing"
|| *opt_key == "support_material_spacing"
|| *opt_key == "support_material_synchronize_layers"
|| *opt_key == "support_material_threshold"