Salome HOME
refix 19978
authoreap <eap@opencascade.com>
Fri, 3 Oct 2008 10:38:12 +0000 (10:38 +0000)
committereap <eap@opencascade.com>
Fri, 3 Oct 2008 10:38:12 +0000 (10:38 +0000)
src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx

index a98c33fe372c18daffb3eb292b44eea4a1533824..40acce58c07fbce945b9e87fe175ee125672013e 100644 (file)
@@ -319,6 +319,8 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh&         aMesh,
 
   netgen::OCCGeometry occgeo;
   NETGENPlugin_Mesher::PrepareOCCgeometry( occgeo, F, aMesh );
+  occgeo.fmap.Clear(); // face can be reversed, which is wrong in this case (issue 19978)
+  occgeo.fmap.Add( F );
 
   vector< const SMDS_MeshNode* > nodeVec;
   problem = AddSegmentsToMesh( *ngMesh, occgeo, wires, helper, nodeVec );