From: dmv Date: Fri, 5 Feb 2010 11:10:21 +0000 (+0000) Subject: 0020688: [CEA] Mesh computation fails X-Git-Tag: V5_1_4a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6b2698e9a2a0e49fdf61dc9679e63c2189cbdb3;p=plugins%2Fghs3dplugin.git 0020688: [CEA] Mesh computation fails --- 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 = " ";