diff --git a/Skin_surface_3/include/CGAL/Compute_anchor_3.h b/Skin_surface_3/include/CGAL/Compute_anchor_3.h index cde3484c036..2693d493453 100644 --- a/Skin_surface_3/include/CGAL/Compute_anchor_3.h +++ b/Skin_surface_3/include/CGAL/Compute_anchor_3.h @@ -443,7 +443,10 @@ compute_anchor_vor (Vertex_handle const v) { for (adj_vertex = adj_vertices.begin(); adj_vertex != adj_vertices.end(); adj_vertex++) { - if (v_other != (*adj_vertex)) { + if ((v_other != (*adj_vertex)) && (!reg.is_infinite(*adj_vertex))) { + CGAL_assertion(!reg.is_infinite(v)); + CGAL_assertion(!reg.is_infinite(v_other)); + CGAL_assertion(!reg.is_infinite(*adj_vertex)); side = test_anchor(v->point(), v_other->point(), (*adj_vertex)->point()); if (side==ZERO) { diff --git a/Skin_surface_3/test/Skin_surface_3/degenerate_test.cpp b/Skin_surface_3/test/Skin_surface_3/degenerate_test.cpp index 764f4699d14..8c39ee5b3eb 100644 --- a/Skin_surface_3/test/Skin_surface_3/degenerate_test.cpp +++ b/Skin_surface_3/test/Skin_surface_3/degenerate_test.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -42,6 +43,8 @@ public: CGAL::mesh_skin_surface_3(skin_surface, p); CGAL_assertion(p.is_valid() && p.is_closed()); + + //std::cout << p << std::endl; } private: double s;