0020855: [CEA] Problem with ijk algo

* Fix uninitialized gravity center
-      gp_XYZ gc;
+      gp_XYZ gc(0,0,0);
This commit is contained in:
eap 2010-04-30 06:41:17 +00:00
parent c1f92a4104
commit 929a0adbce

View 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();