ENH: add new arrangement features for wrapping detection area

Jira: STUDIO-13735

Change-Id: I198d19f5e6ef70f0adfa6370269290c81d21a557
(cherry picked from commit dc83637652526111611d0833d5f5798aaa3e7be7)
This commit is contained in:
shan.chang
2025-08-04 21:44:39 +08:00
committed by Noisyfox
parent 942d023a1e
commit bd066e7f96
11 changed files with 127 additions and 31 deletions

View File

@@ -1440,6 +1440,7 @@ void GCodeProcessorResult::reset() {
printable_area = Pointfs();
//BBS: add bed exclude area
bed_exclude_area = Pointfs();
wrapping_exclude_area = Pointfs();
//BBS: add toolpath_outside
toolpath_outside = false;
//BBS: add label_object_enabled
@@ -1468,6 +1469,7 @@ void GCodeProcessorResult::reset() {
printable_area = Pointfs();
//BBS: add bed exclude area
bed_exclude_area = Pointfs();
wrapping_exclude_area = Pointfs();
//BBS: add toolpath_outside
toolpath_outside = false;
//BBS: add label_object_enabled
@@ -1990,6 +1992,10 @@ void GCodeProcessor::apply_config(const DynamicPrintConfig& config)
if (bed_exclude_area != nullptr)
m_result.bed_exclude_area = bed_exclude_area->values;
const ConfigOptionPoints* wrapping_exclude_area = config.option<ConfigOptionPoints>("wrapping_exclude_area");
if (wrapping_exclude_area != nullptr)
m_result.wrapping_exclude_area = wrapping_exclude_area->values;
const ConfigOptionString* print_settings_id = config.option<ConfigOptionString>("print_settings_id");
if (print_settings_id != nullptr)
m_result.settings_ids.print = print_settings_id->value;