Salome HOME
bos #20597 EDF 22725 - Problem with NETGEN2D
authoreap <eap@opencascade.com>
Mon, 18 Jan 2021 15:29:15 +0000 (18:29 +0300)
committereap <eap@opencascade.com>
Mon, 18 Jan 2021 15:29:15 +0000 (18:29 +0300)
src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index e271a09055718bb72231045281f399f1aa22061c..d063d2202a8cb6e77820a4c409656607e44ee9db 100644 (file)
@@ -245,7 +245,7 @@ namespace
       SMESH_subMesh* sm = helper.GetMesh()->GetSubMesh( *eItFwd );
 
       bool connected = TopExp::CommonVertex( *ePrev, *eItFwd, vCommon );
-      bool computed  = sm->IsMeshComputed();
+      bool computed  = !sm->IsEmpty();
       bool added     = addedEdgeSM2Faces[ sm ].count( helper.GetSubShapeID() );
       bool doubled   = !eAdded.Add( *eItFwd );
       bool orientOK  = (( ePrev ->Orientation() < TopAbs_INTERNAL ) ==
@@ -267,7 +267,7 @@ namespace
       SMESH_subMesh* sm = helper.GetMesh()->GetSubMesh( *eItBack );
 
       bool connected = TopExp::CommonVertex( *ePrev, *eItBack, vCommon );
-      bool computed  = sm->IsMeshComputed();
+      bool computed  = !sm->IsEmpty();
       bool added     = addedEdgeSM2Faces[ sm ].count( helper.GetSubShapeID() );
       bool doubled   = !eAdded.Add( *eItBack );
       bool orientOK  = (( ePrev  ->Orientation() < TopAbs_INTERNAL ) ==