Merge pull request #5997 from gdamiand/GraphicsView-is_facet_convex-gdamiand

GraphicsView: Bug Fix in Buffer_for_vao::is_facet_convex()
This commit is contained in:
Laurent Rineau 2021-09-23 16:10:33 +02:00
commit 0f0f6c2cc9
1 changed files with 8 additions and 10 deletions

View File

@ -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;