diff --git a/src/libslic3r/Geometry/ArcWelder.hpp b/src/libslic3r/Geometry/ArcWelder.hpp index 660d0ccf2c..dceec568a4 100644 --- a/src/libslic3r/Geometry/ArcWelder.hpp +++ b/src/libslic3r/Geometry/ArcWelder.hpp @@ -375,6 +375,7 @@ double arc_fit_max_deviation(const Point &start_point, const Point &end_point, c const Points::const_iterator begin, const Points::const_iterator end); // 1.2m diameter, maximum given by coord_t +static_assert(sizeof(coord_t) == 4); static constexpr const double default_scaled_max_radius = scaled(600.); // 0.05mm static constexpr const double default_scaled_resolution = scaled(0.05); diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 1cd114d14d..f565995d10 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -465,7 +465,7 @@ static std::vector s_Preset_print_options { "ooze_prevention", "standby_temperature_delta", "interface_shells", "extrusion_width", "first_layer_extrusion_width", "perimeter_extrusion_width", "external_perimeter_extrusion_width", "infill_extrusion_width", "solid_infill_extrusion_width", "top_infill_extrusion_width", "support_material_extrusion_width", "infill_overlap", "infill_anchor", "infill_anchor_max", "bridge_flow_ratio", - "elefant_foot_compensation", "xy_size_compensation", "resolution", "gcode_resolution", "arc_fitting", "arc_fitting_tolerance", + "elefant_foot_compensation", "xy_size_compensation", "resolution", "gcode_resolution", "arc_fitting", "wipe_tower", "wipe_tower_x", "wipe_tower_y", "wipe_tower_width", "wipe_tower_cone_angle", "wipe_tower_rotation_angle", "wipe_tower_brim_width", "wipe_tower_bridging", "single_extruder_multi_material_priming", "mmu_segmented_region_max_width", "mmu_segmented_region_interlocking_depth", "wipe_tower_extruder", "wipe_tower_no_sparse_layers", "wipe_tower_extra_spacing", "compatible_printers", "compatible_printers_condition", "inherits", diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index e9add773a6..c38ae76269 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -447,15 +447,6 @@ void PrintConfigDef::init_fff_params() def->mode = comAdvanced; def->set_default_value(new ConfigOptionEnum(ArcFittingType::Disabled)); - def = this->add("arc_fitting_tolerance", coFloatOrPercent); - def->label = L("Arc fitting tolerance"); - def->sidetext = L("mm or %"); - def->tooltip = L("When using the arc_fitting option, allow the curve to deviate certain % from the collection of straight paths.\n" - "Can be either a mm value or a percentage of the current extrusion width."); - def->mode = comAdvanced; - def->min = 0; - def->set_default_value(new ConfigOptionFloatOrPercent(5, true)); - // Maximum extruder temperature, bumped to 1500 to support printing of glass. const int max_temp = 1500; def = this->add("avoid_crossing_curled_overhangs", coBool); diff --git a/src/libslic3r/PrintConfig.hpp b/src/libslic3r/PrintConfig.hpp index 63ffcde0e3..97c2d89d40 100644 --- a/src/libslic3r/PrintConfig.hpp +++ b/src/libslic3r/PrintConfig.hpp @@ -701,7 +701,6 @@ PRINT_CONFIG_CLASS_DEFINE( GCodeConfig, ((ConfigOptionEnum, arc_fitting)) - ((ConfigOptionFloatOrPercent, arc_fitting_tolerance)) ((ConfigOptionBool, autoemit_temperature_commands)) ((ConfigOptionString, before_layer_gcode)) ((ConfigOptionString, between_objects_gcode)) diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 228cc00672..dc5a86fc3b 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -715,8 +715,7 @@ bool PrintObject::invalidate_state_by_config_options( || opt_key == "perimeter_extrusion_width" || opt_key == "infill_overlap" || opt_key == "external_perimeters_first" - || opt_key == "arc_fitting" - || opt_key == "arc_fitting_tolerance") { + || opt_key == "arc_fitting") { steps.emplace_back(posPerimeters); } else if ( opt_key == "gap_fill_enabled" diff --git a/src/slic3r/GUI/ConfigManipulation.cpp b/src/slic3r/GUI/ConfigManipulation.cpp index cd5248d1a1..e6abeda550 100644 --- a/src/slic3r/GUI/ConfigManipulation.cpp +++ b/src/slic3r/GUI/ConfigManipulation.cpp @@ -345,9 +345,6 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config) toggle_field("min_feature_size", have_arachne); toggle_field("min_bead_width", have_arachne); toggle_field("thin_walls", !have_arachne); - - bool has_arc_fitting = config->opt_enum("arc_fitting") != ArcFittingType::Disabled; - toggle_field("arc_fitting_tolerance", has_arc_fitting); } void ConfigManipulation::update_print_sla_config(DynamicPrintConfig* config, const bool is_global_config/* = false*/) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 45ce29468f..4d279ebbeb 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1677,7 +1677,6 @@ void TabPrint::build() optgroup->append_single_option_line("resolution"); optgroup->append_single_option_line("gcode_resolution"); optgroup->append_single_option_line("arc_fitting"); - optgroup->append_single_option_line("arc_fitting_tolerance"); optgroup->append_single_option_line("xy_size_compensation"); optgroup->append_single_option_line("elefant_foot_compensation", "elephant-foot-compensation_114487");