diff options
author | Remco Burema <r.burema@ultimaker.com> | 2022-10-30 19:24:58 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2022-10-30 19:24:58 +0300 |
commit | b6fba68ff8d800a3c7eca1377639076057dfecb6 (patch) | |
tree | c351e28ef082965e3227a7516af4daa4c19474f9 | |
parent | f6d19fe180504fd32f8c4967f3a8ac2bcd777652 (diff) |
Can now access wether to offset disallowed areas for nozzles from front-end.
... but should probably be an actual setting now at some point.
part of CURA-9066
-rw-r--r-- | src/sliceDataStorage.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sliceDataStorage.cpp b/src/sliceDataStorage.cpp index 4e42397b8..18e729030 100644 --- a/src/sliceDataStorage.cpp +++ b/src/sliceDataStorage.cpp @@ -578,11 +578,6 @@ Polygons SliceDataStorage::getMachineBorder(int checking_extruder_nr) const break; } - bool nozzle_offsetting_for_disallowed_areas = - mesh_group_settings.has("nozzle_offsetting_for_disallowed_areas")? // TODO: is that metadata provided to CuraEngien as a setting?! - mesh_group_settings.get<bool>("nozzle_offsetting_for_disallowed_areas") - : true; - Polygons disallowed_areas = mesh_group_settings.get<Polygons>("machine_disallowed_areas"); disallowed_areas = disallowed_areas.unionPolygons(); // union overlapping disallowed areas for (PolygonRef poly : disallowed_areas) @@ -640,7 +635,7 @@ Polygons SliceDataStorage::getMachineBorder(int checking_extruder_nr) const disallowed_all_extruders.processEvenOdd(ClipperLib::pftNonZero); // prevent overlapping disallowed areas from XORing Polygons border_all_extruders = border; // each extruders border areas must be limited to the global border, which is the union of all extruders borders - if (nozzle_offsetting_for_disallowed_areas) + if (mesh_group_settings.has("nozzle_offsetting_for_disallowed_areas") && mesh_group_settings.get<bool>("nozzle_offsetting_for_disallowed_areas")) { for (size_t extruder_nr = 0; extruder_nr < extruder_is_used.size(); extruder_nr++) { |