From: eap Date: Thu, 8 Aug 2013 14:48:03 +0000 (+0000) Subject: Fix regression of SMESH_TEST/Grids/smesh/3D_mesh_Extrusion/A3 X-Git-Tag: V7_3_0a1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=328c64b6111a2a1278a179599f97bd09da5843aa;p=plugins%2Fnetgenplugin.git Fix regression of SMESH_TEST/Grids/smesh/3D_mesh_Extrusion/A3 Pb with INTERNAL FACE --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index bf3fbf2..c916084 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -193,7 +193,10 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh, const bool ignoreMediumNodes = _quadraticMesh; // build viscous layers if required - const TopoDS_Face F = TopoDS::Face( aShape/*.Oriented( TopAbs_FORWARD )*/); + TopoDS_Face F = TopoDS::Face( aShape/*.Oriented( TopAbs_FORWARD )*/); + if ( F.Orientation() != TopAbs_FORWARD && + F.Orientation() != TopAbs_REVERSED ) + F.Orientation( TopAbs_FORWARD ); // avoid pb with TopAbs_INTERNAL SMESH_ProxyMesh::Ptr proxyMesh = StdMeshers_ViscousLayers2D::Compute( aMesh, F ); if ( !proxyMesh ) return false;