PRUSA 2.7.0

This commit is contained in:
sunsets
2023-12-27 18:02:35 +08:00
parent b33112327f
commit 0a3c63dcb1
488 changed files with 92371 additions and 29443 deletions

View File

@@ -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";