From 5a559d88d21d21bbd8d7107bb6400f154213f9fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 8 Jan 2018 10:42:47 +0100 Subject: [PATCH] Avoid one call to 'at' --- Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h b/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h index c6c4560a01d..c94734e4343 100644 --- a/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h +++ b/Mesh_3/include/CGAL/Mesh_3/tet_soup_to_c3t3.h @@ -114,12 +114,11 @@ void build_finite_cells(Tr& tr, for(int j=0; j<4; ++j) { - CGAL_precondition(static_cast(tet[j]) < tr.number_of_vertices() && - tet[j] >= 0); - vertex_handle_vector.at(tet[j] + 1)->set_dimension(3); + CGAL_precondition(static_cast(tet[j]) < tr.number_of_vertices() && tet[j] >= 0); vs[j] = vertex_handle_vector.at(tet[j] + 1); CGAL_postcondition(vs[j] != Vertex_handle()); CGAL_postcondition(!tr.is_infinite(vs[j])); + vs[j]->set_dimension(3); } // this assertion also tests for degeneracy