diff --git a/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h b/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h index 458e9ea5050..970fbf0089a 100644 --- a/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h +++ b/Mesh_3/include/CGAL/Mesh_domain_with_polyline_features_3.h @@ -649,9 +649,11 @@ public: } void build_curves_aabb_tree() const { +#if CGAL_MESH_3_VERBOSE std::cerr << "Building curves AABB tree..."; CGAL::Real_timer timer; timer.start(); +#endif curves_aabb_tree_.clear(); for(typename Edges::const_iterator edges_it = edges_.begin(), @@ -669,9 +671,10 @@ public: } curves_aabb_tree_.build(); curves_aabb_tree_is_built = true; +#if CGAL_MESH_3_VERBOSE timer.stop(); std::cerr << " done (" << timer.time() * 1000 << " ms)" << std::endl; - +#endif } // end build_curves_aabb_tree() private: diff --git a/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h b/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h index f70959fb004..1d85e183aef 100644 --- a/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h +++ b/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h @@ -464,9 +464,8 @@ add_features_from_split_graph_into_polylines(const Polyhedron& p, BOOST_FOREACH(Graph_edge_descriptor e, edges(graph)){ vertex_descriptor vs = p2vmap[source(e,graph)->point()]; vertex_descriptor vt = p2vmap[target(e,graph)->point()]; - if(vs == vt){ - std::cerr << "ignore self loop\n"; - }else{ + CGAL_warning_msg(vs != vt, "ignore self loop"); + if(vs != vt) { const std::pair pair = add_edge(vs,vt,g_copy); typename Polyhedron::Halfedge_handle he = halfedge(e, p); if(!is_border(he, p)) {