From 0700e561681c14f06438f0a8017dcdc1ec7e9410 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 17 Sep 2021 10:47:26 +0200 Subject: [PATCH] Fix the previous fix in is_facet_convex() --- GraphicsView/include/CGAL/Buffer_for_vao.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/GraphicsView/include/CGAL/Buffer_for_vao.h b/GraphicsView/include/CGAL/Buffer_for_vao.h index c27e24e50c9..6f523c40def 100644 --- a/GraphicsView/include/CGAL/Buffer_for_vao.h +++ b/GraphicsView/include/CGAL/Buffer_for_vao.h @@ -521,17 +521,15 @@ public: local_orientation=Local_kernel::Orientation_3()(V1, V2, normal) ; - if(local_orientation!=CGAL::ZERO && local_orientation!=orientation) - { return false; } - // V1 and V2 are collinear - if(local_orientation==CGAL::ZERO ) + if(local_orientation!=CGAL::ZERO) { - //TS and TU are opposite - if(CGAL::scalar_product(V1,V2) >=0) - return true; - //TS and TU have the same direction. - else - return false; + if(local_orientation!=orientation) + { return false; } + } + else + { + if(CGAL::scalar_product(V1,V2)<0) + { return false; } //TS and TU are opposite } } return true;