mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
FIX: Auto brim will not be considered during model arrange
if the brim of an object exceeds the bed area, it will be clipped before transformed to G-Codes Change-Id: I68d700a85e1d28a5e337e53d614266f6e5e0a653 (cherry picked from commit d19ffaa7bdf4b0ab750119d9ef6252491d936f3e)
This commit is contained in:
parent
bf24a71b60
commit
6dfd598b7f
6 changed files with 34 additions and 5 deletions
|
@ -876,6 +876,8 @@ static ExPolygons outer_inner_brim_area(const Print& print,
|
|||
brimToWrite.insert({ objectWithExtruder.first, {true,true} });
|
||||
|
||||
ExPolygons objectIslands;
|
||||
auto bedPoly = Model::getBedPolygon();
|
||||
auto bedExPoly = diff_ex((offset(bedPoly, scale_(30.), jtRound, SCALED_RESOLUTION)), { bedPoly });
|
||||
|
||||
for (unsigned int extruderNo : printExtruders) {
|
||||
++extruderNo;
|
||||
|
@ -1036,7 +1038,9 @@ static ExPolygons outer_inner_brim_area(const Print& print,
|
|||
}
|
||||
}
|
||||
}
|
||||
for (const PrintObject* object : print.objects())
|
||||
if (!bedExPoly.empty())
|
||||
no_brim_area.push_back(bedExPoly.front());
|
||||
for (const PrintObject* object : print.objects())
|
||||
if (brimAreaMap.find(object->id()) != brimAreaMap.end()) {
|
||||
brimAreaMap[object->id()] = diff_ex(brimAreaMap[object->id()], no_brim_area);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue