diff --git a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h index a5821ac5984..b4f2fb7cf7b 100644 --- a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h +++ b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h @@ -696,7 +696,7 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}. candidates.resize(end); } - keep_searching = (stop_probability(m_options.min_points, + keep_searching = (stop_probability(m_options.min_points, m_num_available_points - num_invalid, generated_candidates, m_global_octree->maxLevel()) diff --git a/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp index eb2c5921012..a92e0833640 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp @@ -405,7 +405,7 @@ Scene_polygon_soup_item::load(std::istream& in) void Scene_polygon_soup_item::init_polygon_soup(std::size_t nb_pts, std::size_t nb_polygons){ if(!soup) soup = new Polygon_soup; - soup->clear(); + soup->clear(); soup->points.reserve(nb_pts); soup->polygons.reserve(nb_polygons); oriented = false; diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp index 57766615b22..464cb997ebb 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp @@ -468,17 +468,17 @@ Scene_polyhedron_item::compute_normals_and_vertices(void) const if (f == boost::graph_traits::null_face()) continue; - if(!is_triangle(f->halfedge(),*poly)) - { - triangulate_facet(f); - } - else - { - int i=0; - HF_circulator he = f->facet_begin(); - HF_circulator end = he; - CGAL_For_all(he,end) - { + if(!is_triangle(f->halfedge(),*poly)) + { + triangulate_facet(f); + } + else + { + int i=0; + HF_circulator he = f->facet_begin(); + HF_circulator end = he; + CGAL_For_all(he,end) + { // If Flat shading:1 normal per polygon added once per vertex