From 9a50014cc348632a52748dec42f88c04f30657b9 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 17 Mar 2022 14:08:23 +0100 Subject: [PATCH] locally tested :< --- Nef_S2/include/CGAL/Nef_S2/Sphere_segment.h | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Nef_S2/include/CGAL/Nef_S2/Sphere_segment.h b/Nef_S2/include/CGAL/Nef_S2/Sphere_segment.h index fb0fa92f2a9..4976ad38672 100644 --- a/Nef_S2/include/CGAL/Nef_S2/Sphere_segment.h +++ b/Nef_S2/include/CGAL/Nef_S2/Sphere_segment.h @@ -177,7 +177,7 @@ void split_halfcircle(Sphere_segment& s1, /*{\Mop splits a halfcircle into two equally sized segments. \precond |\Mvar| is a halfcircle.}*/ { CGAL_assertion( is_halfcircle() ); - Plane_3 h(Point_3(CGAL::ORIGIN),(target()-CGAL::ORIGIN)); + Plane_3 h(CGAL::ORIGIN,(target()-CGAL::ORIGIN)); Sphere_point p = CGAL::intersection(sphere_circle(),Sphere_circle(h)); if ( !has_on_after_intersection(p) ) p = p.antipode(); @@ -189,16 +189,16 @@ bool is_short() const /*{\Mop a segment is short iff it is shorter than a halfcircle.}*/ { return R().orientation_3_object()(CGAL::ORIGIN, - Point_3(source()), - Point_3(target()), + source(), + target(), orthogonal_pole()) == CGAL::POSITIVE; } bool is_long() const /*{\Mop a segment is long iff it is longer than a halfcircle.}*/ { return R().orientation_3_object()(CGAL::ORIGIN, - Point_3(source()), - Point_3(target()), + source(), + target(), orthogonal_pole()) == CGAL::NEGATIVE; } @@ -230,17 +230,17 @@ Point_3 orthogonal_pole() const { return CGAL::ORIGIN + sphere_circle().orthogonal_vector(); } CGAL::Orientation source_orientation(const CGAL::Sphere_point& p) const -{ return orientation(CGAL::ORIGIN, - orthogonal_pole(), - source(), - p); +{ return R().orientation_3_object()(CGAL::ORIGIN, + orthogonal_pole(), + source(), + p); } CGAL::Orientation target_orientation(const CGAL::Sphere_point& p) const -{ return orientation(CGAL::ORIGIN, - target(), - orthogonal_pole(), - p); +{ return R().orientation_3_object()(CGAL::ORIGIN, + target(), + orthogonal_pole(), + p); } };