Skip to content

Commit

Permalink
bug fix #21
Browse files Browse the repository at this point in the history
medial axis ensure_not_overextrude feature fix.
  • Loading branch information
supermerill committed Dec 21, 2018
1 parent a1a6bec commit e15600d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions xs/src/libslic3r/MedialAxis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1279,9 +1279,9 @@ MedialAxis::ensure_not_overextrude(ThickPolylines& pp)
//reduce width
double reduce_by = boundsVolume / volume;
for (ThickPolyline& polyline : pp) {
for (ThickLine &l : polyline.thicklines()) {
l.a_width *= reduce_by;
l.b_width *= reduce_by;
for (coordf_t &width : polyline.width) {
width *= reduce_by;
width *= reduce_by;
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions xs/src/libslic3r/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,12 @@ void Print::_make_skirt()
for (const SupportLayer *layer : object->support_layers) {
if (layer->print_z > skirt_height_z)
break;
for (const ExtrusionEntity *extrusion_entity : layer->support_fills.entities)
append(object_points, extrusion_entity->as_polyline().points);
for (const ExtrusionEntity *extrusion_entity : layer->support_fills.entities) {
Polylines poly;
extrusion_entity->collect_polylines(poly);
for (const Polyline &polyline : poly)
append(object_points, polyline.points);
}
}
// Repeat points for each object copy.
for (const Point &shift : object->_shifted_copies) {
Expand Down

0 comments on commit e15600d

Please sign in to comment.