Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-13 18:03:44 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-13 18:03:44 +0300
commit79e6f23fdc4ce0aa7508fb04b8c15be1529d82f3 (patch)
tree1f1e75bd2a2a6ea947e08d990a00fc6a3cc8fc16 /xs/src/libslic3r/PrintObject.cpp
parentc96d7946040d4bb6f943fd596bc42e5c063bc06a (diff)
code beautification, C++11 loops
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r--xs/src/libslic3r/PrintObject.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp
index 5ef59d60f..3a4ba6630 100644
--- a/xs/src/libslic3r/PrintObject.cpp
+++ b/xs/src/libslic3r/PrintObject.cpp
@@ -942,18 +942,12 @@ PrintObject::bridge_over_infill()
// compute the remaning internal solid surfaces as difference
ExPolygons not_to_bridge = diff_ex(internal_solid, to_polygons(to_bridge), true);
to_bridge = intersection_ex(to_polygons(to_bridge), internal_solid, true);
-
// build the new collection of fill_surfaces
- {
- layerm->fill_surfaces.remove_type(stInternalSolid);
-
- for (ExPolygons::const_iterator ex = to_bridge.begin(); ex != to_bridge.end(); ++ex)
- layerm->fill_surfaces.surfaces.push_back(Surface(stInternalBridge, *ex));
-
- for (ExPolygons::const_iterator ex = not_to_bridge.begin(); ex != not_to_bridge.end(); ++ex)
- layerm->fill_surfaces.surfaces.push_back(Surface(stInternalSolid, *ex));
- }
-
+ layerm->fill_surfaces.remove_type(stInternalSolid);
+ for (ExPolygon &ex : to_bridge)
+ layerm->fill_surfaces.surfaces.push_back(Surface(stInternalBridge, ex));
+ for (ExPolygon &ex : not_to_bridge)
+ layerm->fill_surfaces.surfaces.push_back(Surface(stInternalSolid, ex));
/*
# exclude infill from the layers below if needed
# see discussion at https://github.com/alexrj/Slic3r/issues/240