mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-25 02:02:04 +05:00
PAL16834 (smesh Prism don't work with NETGEN_2D algorithm)
fix regression involved by the previous fix
This commit is contained in:
parent
c7d7f3a3f0
commit
3fa5dd52ed
@ -1079,6 +1079,8 @@ FindMatchingNodesOnFaces( const TopoDS_Face& face1,
|
|||||||
} // case on a sphere
|
} // case on a sphere
|
||||||
} // loop on 2 faces
|
} // loop on 2 faces
|
||||||
|
|
||||||
|
// int quadFactor = (*Elems1.begin())->IsQuadratic() ? 2 : 1;
|
||||||
|
|
||||||
node1To2Map.clear();
|
node1To2Map.clear();
|
||||||
int res = SMESH_MeshEditor::FindMatchingNodes( Elems1, Elems2,
|
int res = SMESH_MeshEditor::FindMatchingNodes( Elems1, Elems2,
|
||||||
vNode1, vNode2,
|
vNode1, vNode2,
|
||||||
@ -1086,10 +1088,6 @@ FindMatchingNodesOnFaces( const TopoDS_Face& face1,
|
|||||||
node1To2Map);
|
node1To2Map);
|
||||||
if ( res != SMESH_MeshEditor::SEW_OK )
|
if ( res != SMESH_MeshEditor::SEW_OK )
|
||||||
RETURN_BAD_RESULT("FindMatchingNodes() result " << res );
|
RETURN_BAD_RESULT("FindMatchingNodes() result " << res );
|
||||||
if ( node1To2Map.size() < SM1->NbNodes() )
|
|
||||||
RETURN_BAD_RESULT("FindMatchingNodes() failed starting from nodes ("
|
|
||||||
<< vNode1->GetID() << " - " << eNode1[0]->GetID() << ") ("
|
|
||||||
<< vNode2->GetID() << " - " << eNode2[0]->GetID() << ")");
|
|
||||||
|
|
||||||
// On a sphere, add matching nodes on the edge
|
// On a sphere, add matching nodes on the edge
|
||||||
|
|
||||||
@ -1150,6 +1148,13 @@ FindMatchingNodesOnFaces( const TopoDS_Face& face1,
|
|||||||
node1To2Map.insert( make_pair( vNode1, vNode2 ));
|
node1To2Map.insert( make_pair( vNode1, vNode2 ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't know why this condition is usually true :(
|
||||||
|
// if ( node1To2Map.size() * quadFactor < SM1->NbNodes() )
|
||||||
|
// MESSAGE("FindMatchingNodes() found too few node pairs starting from nodes ("
|
||||||
|
// << vNode1->GetID() << " - " << eNode1[0]->GetID() << ") ("
|
||||||
|
// << vNode2->GetID() << " - " << eNode2[0]->GetID() << "):"
|
||||||
|
// << node1To2Map.size() * quadFactor << " < " << SM1->NbNodes());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user