From: eap Date: Mon, 18 Jan 2021 15:29:15 +0000 (+0300) Subject: bos #20597 EDF 22725 - Problem with NETGEN2D X-Git-Tag: V9_7_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5aa8a56502b9cb4a273b6bcab9563aabc4fd0778;p=plugins%2Fnetgenplugin.git bos #20597 EDF 22725 - Problem with NETGEN2D --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index e271a09..d063d22 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -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 ) ==