File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments