mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
"viscous layer 3d around foil"
http://www.salome-platform.org/forum/forum_10/77751736 Fix InverseDiag()
This commit is contained in:
parent
21619a293e
commit
065232801d
@ -658,7 +658,7 @@ bool SMESH_MeshEditor::InverseDiag (const SMDS_MeshElement * theTria1,
|
|||||||
|
|
||||||
// put nodes in array and find out indices of the same ones
|
// put nodes in array and find out indices of the same ones
|
||||||
const SMDS_MeshNode* aNodes [6];
|
const SMDS_MeshNode* aNodes [6];
|
||||||
int sameInd [] = { 0, 0, 0, 0, 0, 0 };
|
int sameInd [] = { -1, -1, -1, -1, -1, -1 };
|
||||||
int i = 0;
|
int i = 0;
|
||||||
SMDS_ElemIteratorPtr it = theTria1->nodesIterator();
|
SMDS_ElemIteratorPtr it = theTria1->nodesIterator();
|
||||||
while ( it->more() ) {
|
while ( it->more() ) {
|
||||||
@ -684,14 +684,14 @@ bool SMESH_MeshEditor::InverseDiag (const SMDS_MeshElement * theTria1,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find indices of 1,2 and of A,B in theTria1
|
// find indices of 1,2 and of A,B in theTria1
|
||||||
int iA = 0, iB = 0, i1 = 0, i2 = 0;
|
int iA = -1, iB = 0, i1 = 0, i2 = 0;
|
||||||
for ( i = 0; i < 6; i++ ) {
|
for ( i = 0; i < 6; i++ ) {
|
||||||
if ( sameInd [ i ] == 0 ) {
|
if ( sameInd [ i ] == -1 ) {
|
||||||
if ( i < 3 ) i1 = i;
|
if ( i < 3 ) i1 = i;
|
||||||
else i2 = i;
|
else i2 = i;
|
||||||
}
|
}
|
||||||
else if (i < 3) {
|
else if (i < 3) {
|
||||||
if ( iA ) iB = i;
|
if ( iA >= 0) iB = i;
|
||||||
else iA = i;
|
else iA = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user