mirror of https://github.com/CGAL/cgal
Restore consistency between bounds and candidates queue
This commit is contained in:
parent
6fcc5f64a5
commit
30e0a5d021
|
|
@ -1712,14 +1712,10 @@ bounded_error_squared_Hausdorff_distance_impl(const TriangleMesh1& tm1,
|
||||||
// which can go down, so it is only recomputed once splitting is finished,
|
// which can go down, so it is only recomputed once splitting is finished,
|
||||||
// using the top value of the PQ
|
// using the top value of the PQ
|
||||||
|
|
||||||
// Add the subtriangle to the candidate list if it is meaningful
|
|
||||||
if(sub_triangle_bounds.upper >= global_bounds.lower)
|
|
||||||
candidate_triangles.emplace(sub_triangles[i], sub_triangle_bounds, triangle_and_bounds.tm1_face);
|
candidate_triangles.emplace(sub_triangles[i], sub_triangle_bounds, triangle_and_bounds.tm1_face);
|
||||||
}
|
}
|
||||||
|
|
||||||
// In case all subdividing triangles of the last queue entry are useless
|
CGAL_assertion(!candidate_triangles.empty());
|
||||||
if(candidate_triangles.empty())
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Update global upper Hausdorff bound after subdivision.
|
// Update global upper Hausdorff bound after subdivision.
|
||||||
const Candidate& top_candidate = candidate_triangles.top();
|
const Candidate& top_candidate = candidate_triangles.top();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue