From 38712a85846cacb1dd8826ef23b75d15e1d46b41 Mon Sep 17 00:00:00 2001 From: Peter Hachenberger Date: Mon, 16 Apr 2007 16:56:26 +0000 Subject: [PATCH] removed some warnings --- Nef_S2/include/CGAL/Nef_S2/SM_point_locator.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Nef_S2/include/CGAL/Nef_S2/SM_point_locator.h b/Nef_S2/include/CGAL/Nef_S2/SM_point_locator.h index 8ed7dd1fe88..14938c573cc 100644 --- a/Nef_S2/include/CGAL/Nef_S2/SM_point_locator.h +++ b/Nef_S2/include/CGAL/Nef_S2/SM_point_locator.h @@ -522,12 +522,13 @@ public: if(this->has_shalfloop()) { Sphere_circle cl(this->shalfloop()->circle()); - if(!s_init || s.is_long()) + if(!s_init || s.is_long()) { if(cl.has_on(p)) { ip = p.antipode(); return Object_handle(SHalfloop_handle(this->shalfloop())); } else s = Sphere_segment(p,p.antipode(),c); + } Sphere_point p_res; CGAL_NEF_TRACEN("do intersect " << cl << ", " << s); if(!do_intersect_internally(cl,s,p_res)) @@ -591,9 +592,9 @@ marks_of_halfspheres(Mark& lower, Mark& upper, int axis) { CGAL_assertion(e->circle().has_on(y_minus)); Sphere_point op(CGAL::ORIGIN+e->circle().orthogonal_vector()); CGAL_NEF_TRACEN("on edge "<twin(); - if (axis==1 && ((op.x() > 0) || (op.x() == 0) && (op.y() < 0))) e = e->twin(); - if (axis==2 && ((op.x() > 0) || (op.x() == 0) && (op.z() < 0))) e = e->twin(); + if (axis==0 && ((op.z() < 0) || ((op.z() == 0) && (op.x() < 0)))) e = e->twin(); + if (axis==1 && ((op.x() > 0) || ((op.x() == 0) && (op.y() < 0)))) e = e->twin(); + if (axis==2 && ((op.x() > 0) || ((op.x() == 0) && (op.z() < 0)))) e = e->twin(); upper = e->incident_sface()->mark(); lower = e->twin()->incident_sface()->mark(); return; @@ -604,9 +605,9 @@ marks_of_halfspheres(Mark& lower, Mark& upper, int axis) { CGAL_assertion(l->circle().has_on(y_minus)); Sphere_point op(CGAL::ORIGIN+l->circle().orthogonal_vector()); CGAL_NEF_TRACEN("on loop "<twin(); - if (axis==1 && ((op.x() > 0) || (op.x() == 0) && (op.y() < 0))) l = l->twin(); - if (axis==2 && ((op.x() > 0) || (op.x() == 0) && (op.z() < 0))) l = l->twin(); + if (axis==0 && ((op.z() < 0) || ((op.z() == 0) && (op.x() < 0)))) l = l->twin(); + if (axis==1 && ((op.x() > 0) || ((op.x() == 0) && (op.y() < 0)))) l = l->twin(); + if (axis==2 && ((op.x() > 0) || ((op.x() == 0) && (op.z() < 0)))) l = l->twin(); upper = l->incident_sface()->mark(); lower = l->twin()->incident_sface()->mark(); return;