File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* * Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */
2
+ #include < clipper/clipper.hpp>
3
+
2
4
#include " raft.h"
3
5
#include " support.h"
4
6
@@ -8,15 +10,15 @@ void generateRaft(SliceDataStorage& storage, int distance)
8
10
{
9
11
if (storage.draft_protection_shield .size () > 0 )
10
12
{
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 ));
12
14
}
13
15
else if (storage.oozeShield .size () > 0 && storage.oozeShield [0 ].size () > 0 )
14
16
{
15
- storage.raftOutline = storage.raftOutline .unionPolygons (storage.oozeShield [0 ].offset (distance));
17
+ storage.raftOutline = storage.raftOutline .unionPolygons (storage.oozeShield [0 ].offset (distance, ClipperLib::jtRound ));
16
18
}
17
19
else
18
20
{
19
- storage.raftOutline = storage.getLayerOutlines (0 , true ).offset (distance);
21
+ storage.raftOutline = storage.getLayerOutlines (0 , true ).offset (distance, ClipperLib::jtRound );
20
22
}
21
23
}
22
24
You can’t perform that action at this time.
0 commit comments