Skip to content

Commit

Permalink
fix: raft outline now uses rounded offset (CURA-1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
BagelOrb committed Jul 4, 2016
1 parent 03b654a commit ecd8327
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/raft.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */
#include <clipper/clipper.hpp>

#include "raft.h"
#include "support.h"

Expand All @@ -8,15 +10,15 @@ void generateRaft(SliceDataStorage& storage, int distance)
{
if (storage.draft_protection_shield.size() > 0)
{
storage.raftOutline = storage.raftOutline.unionPolygons(storage.draft_protection_shield.offset(distance));
storage.raftOutline = storage.raftOutline.unionPolygons(storage.draft_protection_shield.offset(distance, ClipperLib::jtRound));
}
else if (storage.oozeShield.size() > 0 && storage.oozeShield[0].size() > 0)
{
storage.raftOutline = storage.raftOutline.unionPolygons(storage.oozeShield[0].offset(distance));
storage.raftOutline = storage.raftOutline.unionPolygons(storage.oozeShield[0].offset(distance, ClipperLib::jtRound));
}
else
{
storage.raftOutline = storage.getLayerOutlines(0, true).offset(distance);
storage.raftOutline = storage.getLayerOutlines(0, true).offset(distance, ClipperLib::jtRound);
}
}

Expand Down

0 comments on commit ecd8327

Please sign in to comment.