Set feature speeds in mm³/s or % of max volumetric speed (#16299)

This commit is contained in:
Ian Bassi authored and GitHub committed 2026-11-16 17:55:09 -03:00
1 parent 59acdedd06
commit c49e32c1e7
19 files changed
+776 -138

No files matched your search

+16 -2
View File
@@ -816,7 +816,8 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, in
for (auto el : { "extra_perimeters_on_overhangs", "ensure_vertical_shell_thickness", "detect_thin_wall", "detect_overhang_wall",
"seam_position", "staggered_inner_seams", "wall_sequence", "outer_wall_line_width" })
toggle_field(el, have_perimeters, -1, wall_loops_reason);
for (auto el : { "inner_wall_speed", "outer_wall_speed", "small_perimeter_speed", "small_perimeter_threshold" })
for (auto el : { "inner_wall_speed", "outer_wall_speed", "small_perimeter_speed", "small_perimeter_threshold",
"inner_wall_volumetric_flow", "outer_wall_volumetric_flow" })
toggle_field(el, have_perimeters, variant_index, wall_loops_reason);
bool have_infill = config->option<ConfigOptionPercent>("sparse_infill_density")->value > 0;
@@ -945,7 +946,8 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, in
"solid_infill_direction", "solid_infill_rotate_template", "internal_solid_infill_pattern", "internal_solid_filament_id", "top_surface_filament_id", "bottom_surface_filament_id",
})
toggle_field(el, have_infill || has_solid_infill, -1, infill_or_shell_reason);
for (auto el : { "sparse_infill_speed", "bridge_speed", "internal_bridge_speed"})
for (auto el : { "sparse_infill_speed", "bridge_speed", "internal_bridge_speed",
"sparse_infill_volumetric_flow", "bridge_volumetric_flow", "internal_bridge_volumetric_flow" })
toggle_field(el, have_infill || has_solid_infill, variant_index, infill_or_shell_reason);
toggle_field("top_shell_thickness", ! has_spiral_vase && has_top_shell_layers, -1, _L("Disable spiral vase mode and set top shell layers above zero to edit top shell thickness."));
@@ -953,9 +955,21 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, in
// Gap fill is newly allowed in between perimeter lines even for empty infill (see GH #1476).
toggle_field("gap_infill_speed", have_perimeters, variant_index, wall_loops_reason);
toggle_field("gap_infill_volumetric_flow", have_perimeters, variant_index, wall_loops_reason);
toggle_field("top_surface_line_width", has_top_shell, -1, top_shell_reason);
toggle_field("top_surface_speed", has_top_shell, variant_index, top_shell_reason);
toggle_field("top_surface_volumetric_flow", has_top_shell, variant_index, top_shell_reason);
// Orca: each feature shows either its linear speed or its volumetric alternative.
const bool use_volumetric_speeds = config->opt_bool("enable_volumetric_speeds");
const wxString linear_speed_reason = _L("Disable volumetric speeds to use this setting.");
const wxString volumetric_speed_reason = _L("Enable volumetric speeds to use this setting.");
for (const std::string feature : { "initial_layer", "initial_layer_infill", "outer_wall", "inner_wall", "sparse_infill",
"internal_solid_infill", "top_surface", "gap_infill", "support", "support_interface", "bridge" }) {
toggle_line(feature + "_speed", !use_volumetric_speeds, variant_index, linear_speed_reason);
toggle_line(feature + "_volumetric_flow", use_volumetric_speeds, variant_index, volumetric_speed_reason);
}
bool have_default_acceleration = config->opt_float_nullable("default_acceleration", variant_index) > 0;