]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
0020688: [CEA] Mesh computation fails
authordmv <dmv@opencascade.com>
Fri, 5 Feb 2010 11:10:21 +0000 (11:10 +0000)
committerdmv <dmv@opencascade.com>
Fri, 5 Feb 2010 11:10:21 +0000 (11:10 +0000)
src/GHS3DPlugin_GHS3D.cxx

index 009f158862bea134d23a12c9b1639faf551f8466..072fdb07ccca0c183dfb43629086656e553019d2 100644 (file)
@@ -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    = "  ";