From b337ba17f3fcca3f906c825cfb0901666825e7f9 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 27 Jan 2011 13:40:10 +0000 Subject: [PATCH] not initialized value --- src/SMESH/SMESH_MeshEditor.cxx | 1 + src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2