mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-31 05:47:02 +00:00
Calibs: Disable reverse on even (#11988)
* Add overhang_reverse config to calibration routines Set the 'overhang_reverse' configuration option to false in both calib_temp and calib_retraction functions to ensure consistent calibration behavior. * Disable overhang_reverse in calib_pa function Adds a line to set the 'overhang_reverse' configuration option to false when running the calib_pa function, ensuring this feature is disabled during calibration. * Disable reverse on even for PA Tower * Remove unncesary overhang_reverse disablers * Update Plater.cpp Update Plater.cpp * Update Plater.cpp
This commit is contained in:
@@ -12066,6 +12066,10 @@ void Plater::calib_pa(const Calib_Params& params)
|
|||||||
const auto calib_pa_name = wxString::Format(L"Pressure Advance Test");
|
const auto calib_pa_name = wxString::Format(L"Pressure Advance Test");
|
||||||
new_project(false, false, calib_pa_name);
|
new_project(false, false, calib_pa_name);
|
||||||
wxGetApp().mainframe->select_tab(size_t(MainFrame::tp3DEditor));
|
wxGetApp().mainframe->select_tab(size_t(MainFrame::tp3DEditor));
|
||||||
|
auto print_config = &wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
||||||
|
auto printer_config = &wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
||||||
|
print_config->set_key_value("overhang_reverse", new ConfigOptionBool(false));
|
||||||
|
printer_config->set_key_value("resonance_avoidance", new ConfigOptionBool{false});
|
||||||
switch (params.mode) {
|
switch (params.mode) {
|
||||||
case CalibMode::Calib_PA_Line:
|
case CalibMode::Calib_PA_Line:
|
||||||
add_model(false, Slic3r::resources_dir() + "/calib/pressure_advance/pressure_advance_test.stl");
|
add_model(false, Slic3r::resources_dir() + "/calib/pressure_advance/pressure_advance_test.stl");
|
||||||
@@ -12078,8 +12082,6 @@ void Plater::calib_pa(const Calib_Params& params)
|
|||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
auto printer_config = &wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
|
||||||
printer_config->set_key_value("resonance_avoidance", new ConfigOptionBool{false});
|
|
||||||
p->background_process.fff_print()->set_calib_params(params);
|
p->background_process.fff_print()->set_calib_params(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12589,6 +12591,7 @@ void Plater::calib_temp(const Calib_Params& params) {
|
|||||||
model().objects[0]->config.set_key_value("brim_object_gap", new ConfigOptionFloat(0.0));
|
model().objects[0]->config.set_key_value("brim_object_gap", new ConfigOptionFloat(0.0));
|
||||||
model().objects[0]->config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
|
model().objects[0]->config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
|
||||||
model().objects[0]->config.set_key_value("seam_slope_type", new ConfigOptionEnum<SeamScarfType>(SeamScarfType::None));
|
model().objects[0]->config.set_key_value("seam_slope_type", new ConfigOptionEnum<SeamScarfType>(SeamScarfType::None));
|
||||||
|
model().objects[0]->config.set_key_value("overhang_reverse", new ConfigOptionBool(false));
|
||||||
|
|
||||||
auto print_config = &wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
auto print_config = &wxGetApp().preset_bundle->prints.get_edited_preset().config;
|
||||||
print_config->set_key_value("enable_wrapping_detection", new ConfigOptionBool(false));
|
print_config->set_key_value("enable_wrapping_detection", new ConfigOptionBool(false));
|
||||||
@@ -12663,7 +12666,6 @@ void Plater::calib_max_vol_speed(const Calib_Params& params)
|
|||||||
obj_cfg.set_key_value("top_shell_layers", new ConfigOptionInt(0));
|
obj_cfg.set_key_value("top_shell_layers", new ConfigOptionInt(0));
|
||||||
obj_cfg.set_key_value("bottom_shell_layers", new ConfigOptionInt(0));
|
obj_cfg.set_key_value("bottom_shell_layers", new ConfigOptionInt(0));
|
||||||
obj_cfg.set_key_value("sparse_infill_density", new ConfigOptionPercent(0));
|
obj_cfg.set_key_value("sparse_infill_density", new ConfigOptionPercent(0));
|
||||||
obj_cfg.set_key_value("overhang_reverse", new ConfigOptionBool(false));
|
|
||||||
obj_cfg.set_key_value("outer_wall_line_width", new ConfigOptionFloatOrPercent(line_width, false));
|
obj_cfg.set_key_value("outer_wall_line_width", new ConfigOptionFloatOrPercent(line_width, false));
|
||||||
obj_cfg.set_key_value("layer_height", new ConfigOptionFloat(layer_height));
|
obj_cfg.set_key_value("layer_height", new ConfigOptionFloat(layer_height));
|
||||||
obj_cfg.set_key_value("brim_type", new ConfigOptionEnum<BrimType>(btOuterAndInner));
|
obj_cfg.set_key_value("brim_type", new ConfigOptionEnum<BrimType>(btOuterAndInner));
|
||||||
@@ -12732,6 +12734,8 @@ void Plater::calib_retraction(const Calib_Params& params)
|
|||||||
obj->config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
|
obj->config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
|
||||||
obj->config.set_key_value("seam_position", new ConfigOptionEnum<SeamPosition>(spAligned));
|
obj->config.set_key_value("seam_position", new ConfigOptionEnum<SeamPosition>(spAligned));
|
||||||
obj->config.set_key_value("wall_sequence", new ConfigOptionEnum<WallSequence>(WallSequence::InnerOuter));
|
obj->config.set_key_value("wall_sequence", new ConfigOptionEnum<WallSequence>(WallSequence::InnerOuter));
|
||||||
|
obj->config.set_key_value("overhang_reverse", new ConfigOptionBool(false));
|
||||||
|
|
||||||
|
|
||||||
changed_objects({ 0 });
|
changed_objects({ 0 });
|
||||||
|
|
||||||
@@ -12766,7 +12770,6 @@ void Plater::calib_VFA(const Calib_Params& params)
|
|||||||
print_config->set_key_value("top_shell_layers", new ConfigOptionInt(0));
|
print_config->set_key_value("top_shell_layers", new ConfigOptionInt(0));
|
||||||
print_config->set_key_value("bottom_shell_layers", new ConfigOptionInt(1));
|
print_config->set_key_value("bottom_shell_layers", new ConfigOptionInt(1));
|
||||||
print_config->set_key_value("sparse_infill_density", new ConfigOptionPercent(0));
|
print_config->set_key_value("sparse_infill_density", new ConfigOptionPercent(0));
|
||||||
print_config->set_key_value("overhang_reverse", new ConfigOptionBool(false));
|
|
||||||
print_config->set_key_value("detect_thin_wall", new ConfigOptionBool(false));
|
print_config->set_key_value("detect_thin_wall", new ConfigOptionBool(false));
|
||||||
print_config->set_key_value("spiral_mode", new ConfigOptionBool(true));
|
print_config->set_key_value("spiral_mode", new ConfigOptionBool(true));
|
||||||
print_config->set_key_value("enable_wrapping_detection", new ConfigOptionBool(false));
|
print_config->set_key_value("enable_wrapping_detection", new ConfigOptionBool(false));
|
||||||
|
|||||||
Reference in New Issue
Block a user