assert triggering

todo: check if it's dangerous, seems not.
This commit is contained in:
supermerill 2021-10-25 17:55:28 +02:00
parent 7ac7a0af15
commit 3de87d3d42

View File

@ -996,7 +996,7 @@ namespace PrusaSimpleConnect {
EdgeGrid::Grid::ClosestPointResult cp = grid.closest_point(*pt, SCALED_EPSILON);
if (cp.valid()) {
// The infill end point shall lie on the contour.
assert(cp.distance < 2.);
//assert(cp.distance < 2.); //triggered with simple cube with gyroid. Is it dangerous?
intersection_points.emplace_back(cp, (&pl - infill_ordered.data()) * 2 + (pt == &pl.points.front() ? 0 : 1));
}
}