mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
fix FindFace() after the previous integration
This commit is contained in:
parent
f4bf7b006c
commit
0e70fe931b
@ -1782,9 +1782,10 @@ const SMDS_MeshFace* SMDS_Mesh::FindFace (const std::vector<const SMDS_MeshNode
|
|||||||
while (itF->more()) {
|
while (itF->more()) {
|
||||||
const SMDS_MeshElement* f = itF->next();
|
const SMDS_MeshElement* f = itF->next();
|
||||||
if ( f->NbNodes() == nodes.size() ) {
|
if ( f->NbNodes() == nodes.size() ) {
|
||||||
for ( int i = 1; i < nodes.size(); ++ i )
|
for ( int i = 1; f && i < nodes.size(); ++ i )
|
||||||
if ( f->GetNodeIndex( nodes[ i ]) < 0 )
|
if ( f->GetNodeIndex( nodes[ i ]) < 0 )
|
||||||
return NULL;
|
f = 0;
|
||||||
|
if ( f )
|
||||||
return static_cast<const SMDS_MeshFace *> (f);
|
return static_cast<const SMDS_MeshFace *> (f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user