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