Merge branch 'main' into dev/bbl-network-upd

This commit is contained in:
Noisyfox
2025-06-17 20:43:27 +08:00
3 changed files with 20 additions and 17 deletions

View File

@@ -1382,6 +1382,7 @@ void PrintObject::detect_surfaces_type()
if (! top.empty() && ! bottom.empty()) { if (! top.empty() && ! bottom.empty()) {
const auto cracks = intersection_ex(top, bottom); const auto cracks = intersection_ex(top, bottom);
if (!cracks.empty()) { if (!cracks.empty()) {
if (lower_layer) { // Only detect small cracks for non-first layer, because first layer should always be bottom
const float small_crack_threshold = -layerm->flow(frExternalPerimeter).scaled_width() * 1.5; const float small_crack_threshold = -layerm->flow(frExternalPerimeter).scaled_width() * 1.5;
for (const auto& crack : cracks) { for (const auto& crack : cracks) {
@@ -1402,6 +1403,7 @@ void PrintObject::detect_surfaces_type()
bottom = std::move(bot_tmp); bottom = std::move(bot_tmp);
} }
} }
}
Polygons top_polygons = to_polygons(std::move(top)); Polygons top_polygons = to_polygons(std::move(top));
top.clear(); top.clear();

View File

@@ -857,6 +857,7 @@ void CalibUtils::calib_VFA(const CalibInfo &calib_info, wxString &error_message)
print_config.set_key_value("wall_loops", new ConfigOptionInt(1)); print_config.set_key_value("wall_loops", new ConfigOptionInt(1));
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("alternate_extra_wall", new ConfigOptionBool(false)); print_config.set_key_value("alternate_extra_wall", new ConfigOptionBool(false));
print_config.set_key_value("detect_thin_wall", new ConfigOptionBool(false));
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));