]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Fix regression of SMESH_TEST/Grids/smesh/3D_mesh_Extrusion/A3
authoreap <eap@opencascade.com>
Thu, 8 Aug 2013 14:48:03 +0000 (14:48 +0000)
committereap <eap@opencascade.com>
Thu, 8 Aug 2013 14:48:03 +0000 (14:48 +0000)
Pb with INTERNAL FACE

src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx

index bf3fbf201d5de2caf6ff33c44f1f9a19b6e5c67b..c916084410ce5ddbe3c830f85f99687ec02d8a87 100644 (file)
@@ -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;