mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 00:18:44 +03:00
PRUSA 2.7.0
This commit is contained in:
@@ -1939,7 +1939,7 @@ std::vector<ExPolygons> slice_mesh_ex(
|
||||
&expolygons);
|
||||
|
||||
#if 0
|
||||
//#ifndef _NDEBUG
|
||||
//#ifndef NDEBUG
|
||||
// Test whether the expolygons in a single layer overlap.
|
||||
for (size_t i = 0; i < expolygons.size(); ++ i)
|
||||
for (size_t j = i + 1; j < expolygons.size(); ++ j) {
|
||||
@@ -1948,7 +1948,7 @@ std::vector<ExPolygons> slice_mesh_ex(
|
||||
}
|
||||
#endif
|
||||
#if 0
|
||||
//#ifndef _NDEBUG
|
||||
//#ifndef NDEBUG
|
||||
for (const ExPolygon &ex : expolygons) {
|
||||
assert(! has_duplicate_points(ex.contour));
|
||||
for (const Polygon &hole : ex.holes)
|
||||
@@ -1956,7 +1956,7 @@ std::vector<ExPolygons> slice_mesh_ex(
|
||||
assert(! has_duplicate_points(ex));
|
||||
}
|
||||
assert(!has_duplicate_points(expolygons));
|
||||
#endif // _NDEBUG
|
||||
#endif // NDEBUG
|
||||
//FIXME simplify
|
||||
if (this_mode == MeshSlicingParams::SlicingMode::PositiveLargestContour)
|
||||
keep_largest_contour_only(expolygons);
|
||||
@@ -1968,7 +1968,7 @@ std::vector<ExPolygons> slice_mesh_ex(
|
||||
expolygons = std::move(simplified);
|
||||
}
|
||||
#if 0
|
||||
//#ifndef _NDEBUG
|
||||
//#ifndef NDEBUG
|
||||
for (const ExPolygon &ex : expolygons) {
|
||||
assert(! has_duplicate_points(ex.contour));
|
||||
for (const Polygon &hole : ex.holes)
|
||||
@@ -1976,7 +1976,7 @@ std::vector<ExPolygons> slice_mesh_ex(
|
||||
assert(! has_duplicate_points(ex));
|
||||
}
|
||||
assert(! has_duplicate_points(expolygons));
|
||||
#endif // _NDEBUG
|
||||
#endif // NDEBUG
|
||||
}
|
||||
});
|
||||
// BOOST_LOG_TRIVIAL(debug) << "slice_mesh make_expolygons in parallel - end";
|
||||
|
||||
Reference in New Issue
Block a user