From 5aa8a56502b9cb4a273b6bcab9563aabc4fd0778 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 18 Jan 2021 18:29:15 +0300 Subject: [PATCH] bos #20597 EDF 22725 - Problem with NETGEN2D --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) == -- 2.39.2