Merge pull request #2735 from sgiraudot/Kernel-Fix_plane_point-GF

Cartesian kernel: improve plane point() computation
This commit is contained in:
Laurent Rineau
2018-01-19 15:22:31 +01:00
2 changed files with 16 additions and 5 deletions
@@ -1763,10 +1763,10 @@ namespace CartesianKernelFunctors {
// to avoid badly defined vectors with coordinates all close
// to 0 when the plane is almost horizontal, we ignore the
// smallest coordinate instead of always ignoring Z
if (CGAL::possibly(a <= b && a <= c))
if (CGAL::possibly(CGAL_AND (a <= b, a <= c)))
return Vector_3(FT(0), -h.c(), h.b());
if (CGAL::possibly(b <= a && b <= c))
if (CGAL::possibly(CGAL_AND (b <= a, b <= c)))
return Vector_3(-h.c(), FT(0), h.a());
return Vector_3(-h.b(), h.a(), FT(0));