fix gcc compile, from 9b60be0c1aeda35d81cb30fbef05e11c7e7351e3

This commit is contained in:
supermerill 2020-05-30 16:28:43 +02:00
parent 5fbc891707
commit f266141d35
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#include "MillingPostProcess.hpp"
#include "../Layer.hpp"
#include "../ClipperUtils.hpp"
namespace Slic3r {
@ -121,9 +122,11 @@ namespace Slic3r {
ExtrusionEntityCollection all_milling;
for (ExPolygon &ex_poly : milling_lines) {
getExtrusionLoop(layer, ex_poly.contour, intersection_pl(offset(ex_poly.contour, milling_diameter / 4), entrypoints_poly), all_milling);
Polylines good_entry_point = intersection_pl(offset(ex_poly.contour, milling_diameter / 4), entrypoints_poly);
getExtrusionLoop(layer, ex_poly.contour, good_entry_point, all_milling);
for (Polygon& hole : ex_poly.holes) {
getExtrusionLoop(layer, hole, intersection_pl(offset(hole, milling_diameter / 3), entrypoints_poly), all_milling);
good_entry_point = intersection_pl(offset(hole, milling_diameter / 3), entrypoints_poly);
getExtrusionLoop(layer, hole, good_entry_point, all_milling);
}
}

View File

@ -2,7 +2,6 @@
#define slic3r_MillingPostProcess_hpp_
#include "../libslic3r.h"
#include <vector>
#include "../ExPolygonCollection.hpp"
#include "../Polygon.hpp"
#include "../Layer.hpp"