mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 17:12:07 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user