From: abn Date: Mon, 29 Oct 2018 13:58:16 +0000 (+0100) Subject: Bug fix: IsPolygonWellOriented() was not working properly QPLOYG X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57f6a422e4ec70d36ec750aba851b4ab3548b50a;p=tools%2Fmedcoupling.git Bug fix: IsPolygonWellOriented() was not working properly QPLOYG If the linearized version was self-intersecting, algo was faulty. --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 21cbde8cd..fb1c2f934 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -8417,21 +8417,18 @@ bool MEDCouplingUMesh::IsPolygonWellOriented(bool isQuadratic, const double *vec std::size_t i, ip1; double v[3]={0.,0.,0.}; std::size_t sz=std::distance(begin,end); - if(isQuadratic) - sz/=2; - for(i=0;i0.); }