mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 03:16:01 +08:00
fix gcc compile, from 9b60be0c1aeda35d81cb30fbef05e11c7e7351e3
This commit is contained in:
parent
5fbc891707
commit
f266141d35
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
#define slic3r_MillingPostProcess_hpp_
|
||||
|
||||
#include "../libslic3r.h"
|
||||
#include <vector>
|
||||
#include "../ExPolygonCollection.hpp"
|
||||
#include "../Polygon.hpp"
|
||||
#include "../Layer.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user