fix warnings

This commit is contained in:
Sébastien Loriot 2022-01-07 09:26:10 +01:00
parent e7f2e6f162
commit 6ac74caffb
3 changed files with 4 additions and 6 deletions

View File

@ -431,9 +431,9 @@ namespace CGAL {
// Compute its center. // Compute its center.
const Point_3 center = Point_3( const Point_3 center = Point_3(
(bbox.min(0) + bbox.max(0)) / FT(2), (bbox.xmin() + bbox.xmax()) / FT(2),
(bbox.min(1) + bbox.max(1)) / FT(2), (bbox.ymin() + bbox.ymax()) / FT(2),
(bbox.min(2) + bbox.max(2)) / FT(2)); (bbox.zmin() + bbox.zmax()) / FT(2));
// Find the point from TM2 closest to the center. // Find the point from TM2 closest to the center.
const Point_3 closest = m_tm2_tree.closest_point(center); const Point_3 closest = m_tm2_tree.closest_point(center);

View File

@ -298,6 +298,7 @@ namespace CGAL {
for(bool exit = false; ; exit = true) for(bool exit = false; ; exit = true)
{ {
CGAL_USE(exit);
// this for loop is a trick to pass in the following "if" once // this for loop is a trick to pass in the following "if" once
// with center="surface center", and once with // with center="surface center", and once with
// center="circumcenter" // center="circumcenter"

View File

@ -591,7 +591,6 @@ namespace Surface_mesher {
const Point_3&, const Point_3&,
const Zone& zone) const Zone& zone)
{ {
CGAL_assertion_code(bool is_e_removed = false);
CGAL_assertion_code(const Cell_handle& c = e.first); CGAL_assertion_code(const Cell_handle& c = e.first);
CGAL_assertion_code(Vertex_handle va = c->vertex(e.second)); CGAL_assertion_code(Vertex_handle va = c->vertex(e.second));
CGAL_assertion_code(Vertex_handle vb = c->vertex(e.third)); CGAL_assertion_code(Vertex_handle vb = c->vertex(e.third));
@ -614,7 +613,6 @@ namespace Surface_mesher {
CGAL_assertion_code(Vertex_handle eit_va = eit->first->vertex(eit->second)); CGAL_assertion_code(Vertex_handle eit_va = eit->first->vertex(eit->second));
CGAL_assertion_code(Vertex_handle eit_vb = eit->first->vertex(eit->third)); CGAL_assertion_code(Vertex_handle eit_vb = eit->first->vertex(eit->third));
CGAL_assertion_code(order_pair(eit_va, eit_vb)); CGAL_assertion_code(order_pair(eit_va, eit_vb));
CGAL_assertion_code(if(va == eit_va && vb == eit_vb) is_e_removed = true);
// c2t3.remove_from_complex(*eit); // c2t3.remove_from_complex(*eit);
this->remove_element(make_pair_of_vertices(*eit)); this->remove_element(make_pair_of_vertices(*eit));
#ifdef CGAL_SURFACE_MESHER_EDGES_DEBUG_INSERTIONS #ifdef CGAL_SURFACE_MESHER_EDGES_DEBUG_INSERTIONS
@ -626,7 +624,6 @@ namespace Surface_mesher {
boost::format(" before insertion: remove %1% edges\n") boost::format(" before insertion: remove %1% edges\n")
% number_of_edges_removed; % number_of_edges_removed;
#endif #endif
// CGAL_assertion(is_e_removed == true);
} }
// for visitors // for visitors