]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020855: [CEA] Problem with ijk algo
authoreap <eap@opencascade.com>
Fri, 30 Apr 2010 06:41:17 +0000 (06:41 +0000)
committereap <eap@opencascade.com>
Fri, 30 Apr 2010 06:41:17 +0000 (06:41 +0000)
 * Fix uninitialized gravity center
-      gp_XYZ gc;
+      gp_XYZ gc(0,0,0);

src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx

index b53f96db1b9ab3e5ddaa83f29a1c77e29bf3e272..abc2af26a0b80dbd38e8c2854580b12e2d97f6e0 100644 (file)
@@ -627,7 +627,7 @@ namespace
       // Select one of found sides most close to startBlockSide
 
       // gravity center of already loaded block sides
-      gp_XYZ gc;
+      gp_XYZ gc(0,0,0);
       for (int i = 0; i < B_UNDEFINED; ++i )
         if ( block._side[ i ] )
           gc += block._side[ i ]._side->getGC();