diff --git a/resources/profiles/BBL/filament/Bambu PET-CF @base.json b/resources/profiles/BBL/filament/Bambu PET-CF @base.json index 6fce433274..5f5617ba19 100644 --- a/resources/profiles/BBL/filament/Bambu PET-CF @base.json +++ b/resources/profiles/BBL/filament/Bambu PET-CF @base.json @@ -87,7 +87,7 @@ "textured_plate_temp_initial_layer": [ "100" ], - "filament_category": [ + "filament_adhesiveness_category": [ "800" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/Bambu Support For PA PET @base.json b/resources/profiles/BBL/filament/Bambu Support For PA PET @base.json index 41763092db..03553506d7 100644 --- a/resources/profiles/BBL/filament/Bambu Support For PA PET @base.json +++ b/resources/profiles/BBL/filament/Bambu Support For PA PET @base.json @@ -33,7 +33,7 @@ "slow_down_layer_time": [ "6" ], - "filament_category": [ + "filament_adhesiveness_category": [ "703" ] } \ No newline at end of file diff --git a/resources/profiles/BBL/filament/Bambu Support For PLA @base.json b/resources/profiles/BBL/filament/Bambu Support For PLA @base.json index e326a17383..c289896dfe 100644 --- a/resources/profiles/BBL/filament/Bambu Support For PLA @base.json +++ b/resources/profiles/BBL/filament/Bambu Support For PLA @base.json @@ -30,7 +30,7 @@ "slow_down_layer_time": [ "8" ], - "filament_category": [ + "filament_adhesiveness_category": [ "702" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/Bambu Support For PLA-PETG @base.json b/resources/profiles/BBL/filament/Bambu Support For PLA-PETG @base.json index 9462afaa3d..88b3565148 100644 --- a/resources/profiles/BBL/filament/Bambu Support For PLA-PETG @base.json +++ b/resources/profiles/BBL/filament/Bambu Support For PLA-PETG @base.json @@ -57,7 +57,7 @@ "textured_plate_temp_initial_layer": [ "60" ], - "filament_category": [ + "filament_adhesiveness_category": [ "705" ] } \ No newline at end of file diff --git a/resources/profiles/BBL/filament/Bambu Support G @base.json b/resources/profiles/BBL/filament/Bambu Support G @base.json index c3973642a2..dfc053abf0 100644 --- a/resources/profiles/BBL/filament/Bambu Support G @base.json +++ b/resources/profiles/BBL/filament/Bambu Support G @base.json @@ -36,7 +36,7 @@ "slow_down_layer_time": [ "6" ], - "filament_category": [ + "filament_adhesiveness_category": [ "701" ] } \ No newline at end of file diff --git a/resources/profiles/BBL/filament/Bambu Support W @base.json b/resources/profiles/BBL/filament/Bambu Support W @base.json index 58775b59d7..6594745959 100644 --- a/resources/profiles/BBL/filament/Bambu Support W @base.json +++ b/resources/profiles/BBL/filament/Bambu Support W @base.json @@ -30,7 +30,7 @@ "slow_down_layer_time": [ "8" ], - "filament_category": [ + "filament_adhesiveness_category": [ "700" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/Bambu Support for ABS @base.json b/resources/profiles/BBL/filament/Bambu Support for ABS @base.json index 58c5f39b84..cad3fb4f54 100644 --- a/resources/profiles/BBL/filament/Bambu Support for ABS @base.json +++ b/resources/profiles/BBL/filament/Bambu Support for ABS @base.json @@ -39,7 +39,7 @@ "temperature_vitrification": [ "90" ], - "filament_category": [ + "filament_adhesiveness_category": [ "706" ] } \ No newline at end of file diff --git a/resources/profiles/BBL/filament/Generic BVOH @base.json b/resources/profiles/BBL/filament/Generic BVOH @base.json index ca35ccbcb2..551976dd3f 100644 --- a/resources/profiles/BBL/filament/Generic BVOH @base.json +++ b/resources/profiles/BBL/filament/Generic BVOH @base.json @@ -5,7 +5,7 @@ "from": "system", "filament_id": "GFS97", "instantiation": "false", - "filament_category": [ + "filament_adhesiveness_category": [ "797" ] } \ No newline at end of file diff --git a/resources/profiles/BBL/filament/Generic PE @base.json b/resources/profiles/BBL/filament/Generic PE @base.json index 8826da3d59..e7744a8a5d 100644 --- a/resources/profiles/BBL/filament/Generic PE @base.json +++ b/resources/profiles/BBL/filament/Generic PE @base.json @@ -29,7 +29,7 @@ "temperature_vitrification": [ "70" ], - "filament_category": [ + "filament_adhesiveness_category": [ "901" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/Generic PE-CF @base.json b/resources/profiles/BBL/filament/Generic PE-CF @base.json index 7ae0dc835e..97a8cf35ba 100644 --- a/resources/profiles/BBL/filament/Generic PE-CF @base.json +++ b/resources/profiles/BBL/filament/Generic PE-CF @base.json @@ -32,7 +32,7 @@ "temperature_vitrification": [ "70" ], - "filament_category": [ + "filament_adhesiveness_category": [ "901" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/Polymaker/Fiberon PET-CF @base.json b/resources/profiles/BBL/filament/Polymaker/Fiberon PET-CF @base.json index dab61c5014..ce0c5644df 100644 --- a/resources/profiles/BBL/filament/Polymaker/Fiberon PET-CF @base.json +++ b/resources/profiles/BBL/filament/Polymaker/Fiberon PET-CF @base.json @@ -83,7 +83,7 @@ "textured_plate_temp_initial_layer": [ "70" ], - "filament_category": [ + "filament_adhesiveness_category": [ "800" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_abs.json b/resources/profiles/BBL/filament/fdm_filament_abs.json index efe57c7014..979b4b8d81 100644 --- a/resources/profiles/BBL/filament/fdm_filament_abs.json +++ b/resources/profiles/BBL/filament/fdm_filament_abs.json @@ -85,7 +85,7 @@ "textured_plate_temp_initial_layer": [ "90" ], - "filament_category": [ + "filament_adhesiveness_category": [ "200" ], "filament_end_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_asa.json b/resources/profiles/BBL/filament/fdm_filament_asa.json index b2e42ce370..a38fcd1709 100644 --- a/resources/profiles/BBL/filament/fdm_filament_asa.json +++ b/resources/profiles/BBL/filament/fdm_filament_asa.json @@ -85,7 +85,7 @@ "textured_plate_temp_initial_layer": [ "90" ], - "filament_category": [ + "filament_adhesiveness_category": [ "200" ], "filament_end_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_hips.json b/resources/profiles/BBL/filament/fdm_filament_hips.json index b2482996d8..e0ce90027b 100644 --- a/resources/profiles/BBL/filament/fdm_filament_hips.json +++ b/resources/profiles/BBL/filament/fdm_filament_hips.json @@ -82,7 +82,7 @@ "textured_plate_temp_initial_layer": [ "90" ], - "filament_category": [ + "filament_adhesiveness_category": [ "798" ], "filament_end_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pa.json b/resources/profiles/BBL/filament/fdm_filament_pa.json index 546ad05285..48e13610d2 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pa.json +++ b/resources/profiles/BBL/filament/fdm_filament_pa.json @@ -85,7 +85,7 @@ "textured_plate_temp_initial_layer": [ "100" ], - "filament_category": [ + "filament_adhesiveness_category": [ "400" ], "filament_end_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pc.json b/resources/profiles/BBL/filament/fdm_filament_pc.json index 49f257fc4a..dc7da534ca 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pc.json +++ b/resources/profiles/BBL/filament/fdm_filament_pc.json @@ -85,7 +85,7 @@ "textured_plate_temp_initial_layer": [ "110" ], - "filament_category": [ + "filament_adhesiveness_category": [ "500" ], "filament_end_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pet.json b/resources/profiles/BBL/filament/fdm_filament_pet.json index efcad4f151..3bdac08638 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pet.json +++ b/resources/profiles/BBL/filament/fdm_filament_pet.json @@ -64,7 +64,7 @@ "textured_plate_temp_initial_layer": [ "80" ], - "filament_category": [ + "filament_adhesiveness_category": [ "300" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pla.json b/resources/profiles/BBL/filament/fdm_filament_pla.json index 340dbdf481..f6a5fb7181 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pla.json +++ b/resources/profiles/BBL/filament/fdm_filament_pla.json @@ -76,7 +76,7 @@ "textured_plate_temp_initial_layer": [ "55" ], - "filament_category": [ + "filament_adhesiveness_category": [ "100" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pp.json b/resources/profiles/BBL/filament/fdm_filament_pp.json index 9bda61f8de..228ae4c1a2 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pp.json +++ b/resources/profiles/BBL/filament/fdm_filament_pp.json @@ -85,7 +85,7 @@ "textured_plate_temp_initial_layer": [ "55" ], - "filament_category": [ + "filament_adhesiveness_category": [ "902" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pps.json b/resources/profiles/BBL/filament/fdm_filament_pps.json index 4c9f5f05cc..d529a9f7f6 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pps.json +++ b/resources/profiles/BBL/filament/fdm_filament_pps.json @@ -82,7 +82,7 @@ "textured_plate_temp_initial_layer": [ "110" ], - "filament_category": [ + "filament_adhesiveness_category": [ "801" ], "filament_end_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_pva.json b/resources/profiles/BBL/filament/fdm_filament_pva.json index 2ef17b8280..3452a63f67 100644 --- a/resources/profiles/BBL/filament/fdm_filament_pva.json +++ b/resources/profiles/BBL/filament/fdm_filament_pva.json @@ -85,7 +85,7 @@ "textured_plate_temp_initial_layer": [ "55" ], - "filament_category": [ + "filament_adhesiveness_category": [ "704" ], "filament_start_gcode": [ diff --git a/resources/profiles/BBL/filament/fdm_filament_tpu.json b/resources/profiles/BBL/filament/fdm_filament_tpu.json index d80217ea66..fda65cd492 100644 --- a/resources/profiles/BBL/filament/fdm_filament_tpu.json +++ b/resources/profiles/BBL/filament/fdm_filament_tpu.json @@ -79,7 +79,7 @@ "textured_plate_temp_initial_layer": [ "35" ], - "filament_category": [ + "filament_adhesiveness_category": [ "600" ], "filament_start_gcode": [ diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp index 641bb56f19..fb61cf0648 100644 --- a/src/libslic3r/GCode/WipeTower.cpp +++ b/src/libslic3r/GCode/WipeTower.cpp @@ -1421,7 +1421,7 @@ void WipeTower::set_extruder(size_t idx, const PrintConfig& config) m_filpar[idx].is_support = config.filament_is_support.get_at(idx); m_filpar[idx].nozzle_temperature = config.nozzle_temperature.get_at(idx); m_filpar[idx].nozzle_temperature_initial_layer = config.nozzle_temperature_initial_layer.get_at(idx); - m_filpar[idx].category = config.filament_category.get_at(idx); + m_filpar[idx].category = config.filament_adhesiveness_category.get_at(idx); // If this is a single extruder MM printer, we will use all the SE-specific config values. // Otherwise, the defaults will be used to turn off the SE stuff. @@ -3295,10 +3295,10 @@ void WipeTower::toolchange_wipe_new(WipeTowerWriter &writer, const box_coordinat if (is_first_layer()) { writer.append(";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Width) + std::to_string(m_perimeter_width) + "\n"); } } -WipeTower::WipeTowerBlock &WipeTower::get_block_by_category(int filament_category) +WipeTower::WipeTowerBlock &WipeTower::get_block_by_category(int filament_adhesiveness_category) { - auto iter = std::find_if(m_wipe_tower_blocks.begin(), m_wipe_tower_blocks.end(), [&filament_category](const WipeTower::WipeTowerBlock &item) { - return item.filament_category == filament_category; + auto iter = std::find_if(m_wipe_tower_blocks.begin(), m_wipe_tower_blocks.end(), [&filament_adhesiveness_category](const WipeTower::WipeTowerBlock &item) { + return item.filament_adhesiveness_category == filament_adhesiveness_category; }); if (iter != m_wipe_tower_blocks.end()) { @@ -3307,17 +3307,17 @@ WipeTower::WipeTowerBlock &WipeTower::get_block_by_category(int filament_categor else { WipeTower::WipeTowerBlock new_block; new_block.block_id = m_wipe_tower_blocks.size(); - new_block.filament_category = filament_category; + new_block.filament_adhesiveness_category = filament_adhesiveness_category; m_wipe_tower_blocks.emplace_back(new_block); return m_wipe_tower_blocks.back(); } } -void WipeTower::add_depth_to_block(int filament_id, int filament_category, float depth, bool is_nozzle_change) +void WipeTower::add_depth_to_block(int filament_id, int filament_adhesiveness_category, float depth, bool is_nozzle_change) { std::vector &layer_depth = m_all_layers_depth[m_cur_layer_id]; - auto iter = std::find_if(layer_depth.begin(), layer_depth.end(), [&filament_category](const WipeTower::BlockDepthInfo &item) { - return item.category == filament_category; + auto iter = std::find_if(layer_depth.begin(), layer_depth.end(), [&filament_adhesiveness_category](const WipeTower::BlockDepthInfo &item) { + return item.category == filament_adhesiveness_category; }); if (iter != layer_depth.end()) { @@ -3327,7 +3327,7 @@ void WipeTower::add_depth_to_block(int filament_id, int filament_category, float } else { WipeTower::BlockDepthInfo new_block; - new_block.category = filament_category; + new_block.category = filament_adhesiveness_category; new_block.depth = depth; if (is_nozzle_change) new_block.nozzle_change_depth += depth; @@ -3399,8 +3399,8 @@ void WipeTower::generate_wipe_tower_blocks() for (auto& info : m_plan) { for (const WipeTowerInfo::ToolChange &tool_change : info.tool_changes) { if (is_in_same_extruder(tool_change.old_tool, tool_change.new_tool)) { - int filament_category = get_filament_category(tool_change.new_tool); - add_depth_to_block(tool_change.new_tool, filament_category, tool_change.required_depth); + int filament_adhesiveness_category = get_filament_category(tool_change.new_tool); + add_depth_to_block(tool_change.new_tool, filament_adhesiveness_category, tool_change.required_depth); } else { int old_filament_category = get_filament_category(tool_change.old_tool); @@ -3443,12 +3443,12 @@ void WipeTower::generate_wipe_tower_blocks() for (WipeTowerBlock& block : m_wipe_tower_blocks) { for (int layer_id = 0; layer_id < all_layer_category_to_depth.size(); ++layer_id) { std::unordered_map &category_to_depth = all_layer_category_to_depth[layer_id]; - if (is_approx(category_to_depth[block.filament_category], 0.f)) { + if (is_approx(category_to_depth[block.filament_adhesiveness_category], 0.f)) { int layer_count = solid_infill_layer; while (layer_count > 0) { if (layer_id + layer_count < all_layer_category_to_depth.size()) { std::unordered_map& up_layer_depth = all_layer_category_to_depth[layer_id + layer_count]; - if (!is_approx(up_layer_depth[block.filament_category], 0.f)) { + if (!is_approx(up_layer_depth[block.filament_adhesiveness_category], 0.f)) { block.solid_infill[layer_id] = true; break; } @@ -3681,7 +3681,7 @@ void WipeTower::generate_new(std::vector layer_depths; std::vector solid_infill; float depth{0}; @@ -344,8 +344,8 @@ public: int m_last_block_id; // help function - WipeTowerBlock& get_block_by_category(int filament_category); - void add_depth_to_block(int filament_id, int filament_category, float depth, bool is_nozzle_change = false); + WipeTowerBlock& get_block_by_category(int filament_adhesiveness_category); + void add_depth_to_block(int filament_id, int filament_adhesiveness_category, float depth, bool is_nozzle_change = false); int get_filament_category(int filament_id); bool is_in_same_extruder(int filament_id_1, int filament_id_2); void reset_block_status(); diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index d3e83e51e2..6373803e2c 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -850,7 +850,7 @@ static std::vector s_Preset_print_options { static std::vector s_Preset_filament_options { /*"filament_colour", */ "default_filament_colour","required_nozzle_HRC","filament_diameter", "pellet_flow_coefficient", "filament_type", "filament_soluble", "filament_is_support", "filament_max_volumetric_speed", - "filament_flow_ratio", "filament_density", "filament_category", "filament_cost", "filament_minimal_purge_on_wipe_tower", + "filament_flow_ratio", "filament_density", "filament_adhesiveness_category", "filament_cost", "filament_minimal_purge_on_wipe_tower", "nozzle_temperature", "nozzle_temperature_initial_layer", // BBS "cool_plate_temp", "textured_cool_plate_temp", "eng_plate_temp", "hot_plate_temp", "textured_plate_temp", "cool_plate_temp_initial_layer", "textured_cool_plate_temp_initial_layer", "eng_plate_temp_initial_layer", "hot_plate_temp_initial_layer", "textured_plate_temp_initial_layer", "supertack_plate_temp_initial_layer", "supertack_plate_temp", diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index ec101fd0c1..165f51b9bd 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -309,7 +309,7 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n || opt_key == "filament_map_mode" || opt_key == "filament_map" || opt_key == "unprintable_filament_map" - || opt_key == "filament_category" + || opt_key == "filament_adhesiveness_category" || opt_key == "wipe_tower_bridging" || opt_key == "wipe_tower_extra_flow" || opt_key == "wipe_tower_no_sparse_layers" @@ -3006,8 +3006,8 @@ void Print::_make_wipe_tower() wipe_tower.set_used_filament_ids(std::vector(used_filament_ids.begin(), used_filament_ids.end())); std::vector categories; - for (size_t i = 0; i < m_config.filament_category.values.size(); ++i) { - categories.push_back(m_config.filament_category.get_at(i)); + for (size_t i = 0; i < m_config.filament_adhesiveness_category.values.size(); ++i) { + categories.push_back(m_config.filament_adhesiveness_category.get_at(i)); } wipe_tower.set_filament_categories(categories); diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 074e38b2db..f322a60235 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -2281,8 +2281,8 @@ void PrintConfigDef::init_fff_params() def->mode = comAdvanced; def->set_default_value(new ConfigOptionPercents{ 100 }); - def = this->add("filament_category", coInts); - def->label = L("Category"); + def = this->add("filament_adhesiveness_category", coInts); + def->label = L("Adhesiveness Category"); def->tooltip = L("Filament category"); def->min = 0; def->mode = comDevelop; diff --git a/src/libslic3r/PrintConfig.hpp b/src/libslic3r/PrintConfig.hpp index 24af45a125..755f0c68ec 100644 --- a/src/libslic3r/PrintConfig.hpp +++ b/src/libslic3r/PrintConfig.hpp @@ -1218,7 +1218,7 @@ PRINT_CONFIG_CLASS_DEFINE( ((ConfigOptionBool, fan_speedup_overhangs)) ((ConfigOptionFloat, fan_speedup_time)) ((ConfigOptionFloats, filament_diameter)) - ((ConfigOptionInts, filament_category)) + ((ConfigOptionInts, filament_adhesiveness_category)) ((ConfigOptionFloats, filament_density)) ((ConfigOptionStrings, filament_type)) ((ConfigOptionBools, filament_soluble)) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 29da522d65..96b46856fe 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -3569,7 +3569,7 @@ void TabFilament::build() optgroup->append_single_option_line("required_nozzle_HRC"); optgroup->append_single_option_line("default_filament_colour"); optgroup->append_single_option_line("filament_diameter"); - optgroup->append_single_option_line("filament_category"); + optgroup->append_single_option_line("filament_adhesiveness_category"); optgroup->append_single_option_line("filament_density"); optgroup->append_single_option_line("filament_shrink");