mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Make ElemEntityType pass nodes through as well
This commit is contained in:
parent
dc9f23c3cd
commit
cbfe948334
@ -2768,10 +2768,11 @@ void ElemEntityType::SetMesh( const SMDS_Mesh* theMesh )
|
||||
bool ElemEntityType::IsSatisfy( long theId )
|
||||
{
|
||||
if ( !myMesh ) return false;
|
||||
if ( myType == SMDSAbs_Node )
|
||||
return myMesh->FindNode( theId );
|
||||
const SMDS_MeshElement* anElem = myMesh->FindElement( theId );
|
||||
return ( anElem &&
|
||||
myEntityType == anElem->GetEntityType() &&
|
||||
( myType == SMDSAbs_Edge || myType == SMDSAbs_Face || myType == SMDSAbs_Volume ));
|
||||
myEntityType == anElem->GetEntityType() );
|
||||
}
|
||||
|
||||
void ElemEntityType::SetType( SMDSAbs_ElementType theType )
|
||||
|
Loading…
Reference in New Issue
Block a user