From d6b2698e9a2a0e49fdf61dc9679e63c2189cbdb3 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 5 Feb 2010 11:10:21 +0000 Subject: [PATCH] 0020688: [CEA] Mesh computation fails --- src/GHS3DPlugin_GHS3D.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index 009f158..072fdb0 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -447,8 +447,10 @@ static bool writePoints (ofstream & theFile, for (TopExp_Explorer e(theMesh->ShapeToMesh(), TopAbs_EDGE ); e.More(); e.Next()) { SMESH_subMesh* sm = theHelper.GetMesh()->GetSubMesh( e.Current() ); - if ( checkedSM.insert( sm->GetId() ).second && theHelper.IsDegenShape(sm->GetId() )) - nbNodes -= sm->GetSubMeshDS()->NbNodes(); + if ( checkedSM.insert( sm->GetId() ).second && theHelper.IsDegenShape(sm->GetId() )) { + if ( sm->GetSubMeshDS() ) + nbNodes -= sm->GetSubMeshDS()->NbNodes(); + } } } const char* space = " "; -- 2.39.2