From: eap Date: Mon, 29 Mar 2010 07:36:37 +0000 (+0000) Subject: Fix regression on reversed submeshes X-Git-Tag: V5_1_4a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=06f9c6fa68bf66a3bb109ef0ccebfbd72ad69b9c;p=plugins%2Fnetgenplugin.git Fix regression on reversed submeshes - Netgen_triangle[ isRev ? 3-iN : iN ] = ngID; + Netgen_triangle[ isRev ? 2-iN : iN ] = ngID; --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index 8d485b9..d198ab0 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -271,7 +271,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh, Netgen_point [ 2 ] = node->Z(); Ng_AddPoint(Netgen_mesh, Netgen_point); } - Netgen_triangle[ isRev ? 3-iN : iN ] = ngID; + Netgen_triangle[ isRev ? 2-iN : iN ] = ngID; } // add triangle if ( hasDegen && (Netgen_triangle[0] == Netgen_triangle[1] ||