mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-25 02:27:55 +05:00
not initialized value
This commit is contained in:
parent
cbe632e32e
commit
b337ba17f3
@ -6577,6 +6577,7 @@ double SMESH_ElementSearcherImpl::getTolerance()
|
|||||||
const SMDS_MeshElement* elem = elemIt->next();
|
const SMDS_MeshElement* elem = elemIt->next();
|
||||||
SMDS_ElemIteratorPtr nodeIt = elem->nodesIterator();
|
SMDS_ElemIteratorPtr nodeIt = elem->nodesIterator();
|
||||||
SMESH_MeshEditor::TNodeXYZ n1( cast2Node( nodeIt->next() ));
|
SMESH_MeshEditor::TNodeXYZ n1( cast2Node( nodeIt->next() ));
|
||||||
|
elemSize = 0;
|
||||||
while ( nodeIt->more() )
|
while ( nodeIt->more() )
|
||||||
{
|
{
|
||||||
double dist = n1.Distance( cast2Node( nodeIt->next() ));
|
double dist = n1.Distance( cast2Node( nodeIt->next() ));
|
||||||
|
@ -131,7 +131,10 @@ namespace
|
|||||||
if ( tooClose && !hasShape )
|
if ( tooClose && !hasShape )
|
||||||
{
|
{
|
||||||
// check order of baseNodes within pyramids, it must be opposite
|
// 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;
|
isOutJ = ( abs(dInd)==1 ) ? dInd < 0 : dInd > 0;
|
||||||
if ( isOutJ == isOutI )
|
if ( isOutJ == isOutI )
|
||||||
return false; // other domain
|
return false; // other domain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user