From 328c64b6111a2a1278a179599f97bd09da5843aa Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 8 Aug 2013 14:48:03 +0000 Subject: [PATCH] Fix regression of SMESH_TEST/Grids/smesh/3D_mesh_Extrusion/A3 Pb with INTERNAL FACE --- src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2