From 929a0adbcea287bca304c9ab475948452b4f69c9 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 30 Apr 2010 06:41:17 +0000 Subject: [PATCH] 0020855: [CEA] Problem with ijk algo * Fix uninitialized gravity center - gp_XYZ gc; + gp_XYZ gc(0,0,0); --- src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx b/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx index b53f96db1..abc2af26a 100644 --- a/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx +++ b/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx @@ -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(); -- 2.39.2