mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 06:10:32 +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 )
|
bool ElemEntityType::IsSatisfy( long theId )
|
||||||
{
|
{
|
||||||
if ( !myMesh ) return false;
|
if ( !myMesh ) return false;
|
||||||
|
if ( myType == SMDSAbs_Node )
|
||||||
|
return myMesh->FindNode( theId );
|
||||||
const SMDS_MeshElement* anElem = myMesh->FindElement( theId );
|
const SMDS_MeshElement* anElem = myMesh->FindElement( theId );
|
||||||
return ( anElem &&
|
return ( anElem &&
|
||||||
myEntityType == anElem->GetEntityType() &&
|
myEntityType == anElem->GetEntityType() );
|
||||||
( myType == SMDSAbs_Edge || myType == SMDSAbs_Face || myType == SMDSAbs_Volume ));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElemEntityType::SetType( SMDSAbs_ElementType theType )
|
void ElemEntityType::SetType( SMDSAbs_ElementType theType )
|
||||||
|
Loading…
Reference in New Issue
Block a user