From 06f9c6fa68bf66a3bb109ef0ccebfbd72ad69b9c Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 29 Mar 2010 07:36:37 +0000 Subject: [PATCH] Fix regression on reversed submeshes - Netgen_triangle[ isRev ? 3-iN : iN ] = ngID; + Netgen_triangle[ isRev ? 2-iN : iN ] = ngID; --- src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] || -- 2.39.2