]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Make ElemEntityType pass nodes through as well
authoreap <eap@opencascade.com>
Tue, 28 May 2013 16:51:03 +0000 (16:51 +0000)
committereap <eap@opencascade.com>
Tue, 28 May 2013 16:51:03 +0000 (16:51 +0000)
src/Controls/SMESH_Controls.cxx

index b78c2f0f7a60ae7b3949ca041b21e4bbfcec65f4..7686e655db6ba1215f01d19318b80dcf844a738a 100644 (file)
@@ -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 )