From: eap Date: Thu, 27 Jan 2011 13:40:10 +0000 (+0000) Subject: not initialized value X-Git-Tag: StartingPortingMED3~109 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b337ba17f3fcca3f906c825cfb0901666825e7f9;p=modules%2Fsmesh.git not initialized value --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 48784b5f2..d6ad5acf2 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -6577,6 +6577,7 @@ double SMESH_ElementSearcherImpl::getTolerance() const SMDS_MeshElement* elem = elemIt->next(); SMDS_ElemIteratorPtr nodeIt = elem->nodesIterator(); SMESH_MeshEditor::TNodeXYZ n1( cast2Node( nodeIt->next() )); + elemSize = 0; while ( nodeIt->more() ) { double dist = n1.Distance( cast2Node( nodeIt->next() )); diff --git a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx index ecf386bd4..f37e1fa44 100644 --- a/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx +++ b/src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx @@ -131,7 +131,10 @@ namespace if ( tooClose && !hasShape ) { // check order of baseNodes within pyramids, it must be opposite - int dInd = baseNodesIndJ[1] - baseNodesIndJ[0]; + int dInd; + dInd = baseNodesIndI[1] - baseNodesIndI[0]; + isOutI = ( abs(dInd)==1 ) ? dInd < 0 : dInd > 0; + dInd = baseNodesIndJ[1] - baseNodesIndJ[0]; isOutJ = ( abs(dInd)==1 ) ? dInd < 0 : dInd > 0; if ( isOutJ == isOutI ) return false; // other domain