]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
NPAL16132 (GHS3D execution failed in Salome version 4.0.0)
authoreap <eap@opencascade.com>
Mon, 18 Jun 2007 12:49:46 +0000 (12:49 +0000)
committereap <eap@opencascade.com>
Mon, 18 Jun 2007 12:49:46 +0000 (12:49 +0000)
     Fix setting volumes on shapes in the case of one solid shape

src/GHS3DPlugin_GHS3D.cxx

index 047b5d5210bb47491d0fcf2db76145ca65d326e9..4b15c493173ec5b593d9e84cf585f0ab97d2e90d 100644 (file)
@@ -413,6 +413,7 @@ static bool readResultFile(const int                      fileOpen,
     }
     aTet = theMeshDS->AddVolume( node[1], node[0], node[2], node[3] );
     ghs3dShapeID = strtol(shapePtr, &shapePtr, 10);
+    if ( !ghs3dShapeID ) ghs3dShapeID = 1;
     if ( tabID[ ghs3dShapeID - 1 ] == 0 ) {
       if (iElem == 0)
         aSolid = tabShape[0];