Skip to content

Commit ecd8327

Browse files
committed
fix: raft outline now uses rounded offset (CURA-1835)
1 parent 03b654a commit ecd8327

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/raft.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */
2+
#include <clipper/clipper.hpp>
3+
24
#include "raft.h"
35
#include "support.h"
46

@@ -8,15 +10,15 @@ void generateRaft(SliceDataStorage& storage, int distance)
810
{
911
if (storage.draft_protection_shield.size() > 0)
1012
{
11-
storage.raftOutline = storage.raftOutline.unionPolygons(storage.draft_protection_shield.offset(distance));
13+
storage.raftOutline = storage.raftOutline.unionPolygons(storage.draft_protection_shield.offset(distance, ClipperLib::jtRound));
1214
}
1315
else if (storage.oozeShield.size() > 0 && storage.oozeShield[0].size() > 0)
1416
{
15-
storage.raftOutline = storage.raftOutline.unionPolygons(storage.oozeShield[0].offset(distance));
17+
storage.raftOutline = storage.raftOutline.unionPolygons(storage.oozeShield[0].offset(distance, ClipperLib::jtRound));
1618
}
1719
else
1820
{
19-
storage.raftOutline = storage.getLayerOutlines(0, true).offset(distance);
21+
storage.raftOutline = storage.getLayerOutlines(0, true).offset(distance, ClipperLib::jtRound);
2022
}
2123
}
2224

0 commit comments

Comments
 (0)