From 5ccda006944e795d2f002566b15c7e2ad68c9d6e Mon Sep 17 00:00:00 2001 From: Eric Berberich Date: Tue, 6 Nov 2007 09:19:11 +0000 Subject: [PATCH] bugfix: are_equal does not assume some bdry condition --- .../Arr_torus_topology_traits_2_impl.h | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_torus_topology_traits_2_impl.h b/Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_torus_topology_traits_2_impl.h index f6404fede13..af0a759f8d5 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_torus_topology_traits_2_impl.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_torus_topology_traits_2_impl.h @@ -304,21 +304,17 @@ bool Arr_torus_topology_traits_2::are_equal CGAL_precondition(_valid(bound_x, bound_y)); - // In case the given boundary conditions do not match those of the given - // vertex, v cannot represent the curve end. - if (bound_x != v->boundary_in_x() || bound_y != v->boundary_in_y()) { - return false; - } - // TODO use compare_on_identification! // check wether the two concrete points are equal - return (this->_m_traits->compare_xy_2_object() ( - v->point(), - (ind == CGAL::MIN_END ? - this->_m_traits->construct_min_vertex_2_object()(cv) : - this->_m_traits->construct_max_vertex_2_object()(cv))) - == CGAL::EQUAL - ); + bool res = + (this->_m_traits->compare_xy_2_object() ( + v->point(), + (ind == CGAL::MIN_END ? + this->_m_traits->construct_min_vertex_2_object()(cv) : + this->_m_traits->construct_max_vertex_2_object()(cv))) + == CGAL::EQUAL + ); + return res; } //-----------------------------------------------------------------------------