mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-11 19:19:28 -07: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:
parent
942d023a1e
commit
bd066e7f96
11 changed files with 127 additions and 31 deletions
|
|
@ -1021,6 +1021,7 @@ void GCodeViewer::load(const GCodeProcessorResult& gcode_result, const Print& pr
|
|||
Pointfs printable_area;
|
||||
//BBS: add bed exclude area
|
||||
Pointfs bed_exclude_area = Pointfs();
|
||||
Pointfs wrapping_exclude_area = Pointfs();
|
||||
std::vector<Pointfs> extruder_areas;
|
||||
std::vector<double> extruder_heights;
|
||||
std::string texture;
|
||||
|
|
@ -1042,12 +1043,15 @@ void GCodeViewer::load(const GCodeProcessorResult& gcode_result, const Print& pr
|
|||
if (!gcode_result.bed_exclude_area.empty())
|
||||
bed_exclude_area = gcode_result.bed_exclude_area;
|
||||
|
||||
if (!gcode_result.wrapping_exclude_area.empty())
|
||||
wrapping_exclude_area = gcode_result.wrapping_exclude_area;
|
||||
|
||||
if (!gcode_result.extruder_areas.empty())
|
||||
extruder_areas = gcode_result.extruder_areas;
|
||||
if (!gcode_result.extruder_heights.empty())
|
||||
extruder_heights = gcode_result.extruder_heights;
|
||||
|
||||
wxGetApp().plater()->set_bed_shape(printable_area, bed_exclude_area, gcode_result.printable_height, extruder_areas, extruder_heights, texture, model, gcode_result.printable_area.empty());
|
||||
wxGetApp().plater()->set_bed_shape(printable_area, bed_exclude_area, wrapping_exclude_area, gcode_result.printable_height, extruder_areas, extruder_heights, texture, model, gcode_result.printable_area.empty());
|
||||
}
|
||||
/*else {
|
||||
// adjust printbed size in dependence of toolpaths bbox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue