FIX: normal support missing base interface layers

jira: STUDIO-8642
Change-Id: Ib104fdb195f8766d452138eb85d8b86cbac96981
This commit is contained in:
Arthur 2024-11-06 14:10:08 +08:00 committed by Lane.Wei
parent a31a9d541e
commit 4655ec449b
2 changed files with 7 additions and 11 deletions

View File

@ -70,15 +70,6 @@ std::pair<SupportGeneratorLayersPtr, SupportGeneratorLayersPtr> generate_interfa
SupportGeneratorLayersPtr &interface_layers = base_and_interface_layers.first;
SupportGeneratorLayersPtr &base_interface_layers = base_and_interface_layers.second;
// BBS: if support interface and support base do not use the same filament, add a base layer to improve their adhesion
// Note: support materials (such as Supp.W) can't be used as support base now, so support interface and base are still using different filaments even if support_filament==0
bool differnt_support_interface_filament = config.support_interface_filament != 0 && config.support_interface_filament.value != config.support_filament.value;
int num_base_interface_layers_top = differnt_support_interface_filament ? 1 : 0;
int num_base_interface_layers_bottom = differnt_support_interface_filament ? 1 : 0;
int num_interface_layers_top = config.support_interface_top_layers + num_base_interface_layers_top;
int num_interface_layers_bottom = config.support_interface_bottom_layers + num_base_interface_layers_bottom;
if (num_interface_layers_bottom < 0)
num_interface_layers_bottom = num_interface_layers_top;
interface_layers.assign(intermediate_layers.size(), nullptr);
if (support_params.has_base_interfaces())
base_interface_layers.assign(intermediate_layers.size(), nullptr);

View File

@ -38,8 +38,13 @@ struct SupportParameters {
this->num_top_base_interface_layers = size_t(std::min(int(num_top_interface_layers) / 2, 2));
this->num_bottom_base_interface_layers = size_t(std::min(int(num_bottom_interface_layers) / 2, 2));
} else {
this->num_top_base_interface_layers = 0;
this->num_bottom_base_interface_layers = 0;
// BBS: if support interface and support base do not use the same filament, add a base layer to improve their adhesion
// Note: support materials (such as Supp.W) can't be used as support base now, so support interface and base are still using different filaments even if
// support_filament==0
bool differnt_support_interface_filament = object_config.support_interface_filament != 0 &&
object_config.support_interface_filament != object_config.support_filament;
this->num_top_base_interface_layers = differnt_support_interface_filament ? 1 : 0;
this->num_bottom_base_interface_layers = differnt_support_interface_filament ? 1 : 0;
}
}
this->first_layer_flow = Slic3r::support_material_1st_layer_flow(&object, float(slicing_params.first_print_layer_height));