From 19312d0a1aa8f85a8413216af603baca6ad42960 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 17 Oct 2016 09:34:48 +0200 Subject: [PATCH] Yet another fixes to make SupportMaterial.cpp compile on gcc. --- xs/src/libslic3r/SupportMaterial.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xs/src/libslic3r/SupportMaterial.cpp b/xs/src/libslic3r/SupportMaterial.cpp index c7266fa37..d3a445860 100644 --- a/xs/src/libslic3r/SupportMaterial.cpp +++ b/xs/src/libslic3r/SupportMaterial.cpp @@ -1047,10 +1047,11 @@ void PrintSupportMaterial::generate_toolpaths( ExPolygons to_fill = union_ex(interface_polygons); for (ExPolygons::const_iterator it_expolygon = to_fill.begin(); it_expolygon != to_fill.end(); ++ it_expolygon) { + Surface surface(stInternal, *it_expolygon); FillParams fill_params; fill_params.density = interface_density; fill_params.complete = true; - Polylines polylines = filler_interface->fill_surface(&Surface(stInternal, *it_expolygon), fill_params); + Polylines polylines = filler_interface->fill_surface(&surface, fill_params); for (Polylines::const_iterator it_polyline = polylines.begin(); it_polyline != polylines.end(); ++ it_polyline) { ExtrusionPath *extrusion_path = new ExtrusionPath(erSupportMaterialInterface); support_layer.support_interface_fills.entities.push_back(extrusion_path); @@ -1115,10 +1116,11 @@ void PrintSupportMaterial::generate_toolpaths( } for (ExPolygons::const_iterator it_expolygon = to_infill.begin(); it_expolygon != to_infill.end(); ++ it_expolygon) { + Surface surface(stInternal, *it_expolygon); FillParams fill_params; fill_params.density = density; fill_params.complete = true; - Polylines polylines = filler->fill_surface(&Surface(stInternal, *it_expolygon), fill_params); + Polylines polylines = filler->fill_surface(&surface, fill_params); for (Polylines::const_iterator it_polyline = polylines.begin(); it_polyline != polylines.end(); ++ it_polyline) { ExtrusionPath *extrusion_path = new ExtrusionPath(erSupportMaterial); support_layer.support_fills.entities.push_back(extrusion_path); @@ -1183,10 +1185,11 @@ void PrintSupportMaterial::generate_toolpaths( } for (ExPolygons::const_iterator it_expolygon = to_infill.begin(); it_expolygon != to_infill.end(); ++ it_expolygon) { + Surface surface(stInternal, *it_expolygon); FillParams fill_params; fill_params.density = density; fill_params.complete = true; - Polylines polylines = filler->fill_surface(&Surface(stInternal, *it_expolygon), fill_params); + Polylines polylines = filler->fill_surface(&surface, fill_params); for (Polylines::const_iterator it_polyline = polylines.begin(); it_polyline != polylines.end(); ++ it_polyline) { ExtrusionPath *extrusion_path = new ExtrusionPath(erSupportMaterial); support_layer.support_fills.entities.push_back(extrusion_path);