Skip to content

Commit

Permalink
Fixed #32
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Nov 12, 2016
1 parent 7ebc3b0 commit 9abe078
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xs/src/libslic3r/ExtrusionEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,19 @@ ExtrusionPath::_inflate_collection(const Polylines &polylines, ExtrusionEntityCo

void ExtrusionPath::polygons_covered_by_width(Polygons &out, const float scaled_epsilon) const
{
offset(this->polyline, &out, scale_(this->width/2) + scaled_epsilon);
Polygons tmp;
offset(this->polyline, &tmp, scale_(this->width/2) + scaled_epsilon);
polygons_append(out, STDMOVE(tmp));
}

void ExtrusionPath::polygons_covered_by_spacing(Polygons &out, const float scaled_epsilon) const
{
// Instantiating the Flow class to get the line spacing.
// Don't know the nozzle diameter, setting to zero. It shall not matter it shall be optimized out by the compiler.
Flow flow(this->width, this->height, 0.f, this->is_bridge());
offset(this->polyline, &out, 0.5f * flow.scaled_spacing() + scaled_epsilon);
Polygons tmp;
offset(this->polyline, &tmp, 0.5f * flow.scaled_spacing() + scaled_epsilon);
polygons_append(out, STDMOVE(tmp));
}

bool
Expand Down

0 comments on commit 9abe078

Please sign in to comment.