From: eap Date: Mon, 18 Jun 2007 12:49:46 +0000 (+0000) Subject: NPAL16132 (GHS3D execution failed in Salome version 4.0.0) X-Git-Tag: V4_1_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f133bb6dbbc2bb50746c871928616f8a0b0680d;p=plugins%2Fghs3dplugin.git NPAL16132 (GHS3D execution failed in Salome version 4.0.0) Fix setting volumes on shapes in the case of one solid shape --- diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index 047b5d5..4b15c49 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -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];