Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc9f23c
)
Make ElemEntityType pass nodes through as well
author
eap
<eap@opencascade.com>
Tue, 28 May 2013 16:51:03 +0000
(16:51 +0000)
committer
eap
<eap@opencascade.com>
Tue, 28 May 2013 16:51:03 +0000
(16:51 +0000)
src/Controls/SMESH_Controls.cxx
patch
|
blob
|
history
diff --git
a/src/Controls/SMESH_Controls.cxx
b/src/Controls/SMESH_Controls.cxx
index b78c2f0f7a60ae7b3949ca041b21e4bbfcec65f4..7686e655db6ba1215f01d19318b80dcf844a738a 100644
(file)
--- a/
src/Controls/SMESH_Controls.cxx
+++ b/
src/Controls/SMESH_Controls.cxx
@@
-2768,10
+2768,11
@@
void ElemEntityType::SetMesh( const SMDS_Mesh* theMesh )
bool ElemEntityType::IsSatisfy( long theId )
{
if ( !myMesh ) return false;
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 &&
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 )
}
void ElemEntityType::SetType( SMDSAbs_ElementType theType )