-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// function : UpdateFunctor
// purpose : Update functor in accordance with current mesh
//=================================================================================
+
void SMESH_SubMeshObj::UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor )
{
theFunctor->SetMesh( myMeshObj->GetMesh() );
//=================================================================================
bool SMESH_SubMeshObj::Update( int theIsClear )
{
- MESSAGE("SMESH_SubMeshObj::Update " << this)
+ MESSAGE("SMESH_SubMeshObj::Update " << this)
bool changed = myMeshObj->Update( theIsClear );
buildPrs(true);
return changed;
//=================================================================================
int SMESH_GroupObj::GetNbEntities( const SMDSAbs_ElementType theType) const
{
- if(SMDSAbs_ElementType(myGroupServer->GetType()) == theType){
+ if(SMDSAbs_ElementType(myGroupServer->GetType()) == theType) {
return myGroupServer->Size();
}
+ if ( theType == SMDSAbs_Node ) {
+ return myGroupServer->GetNumberOfNodes();
+ }
return 0;
}
{
case SMDSAbs_Node:
{
- return mySubMeshServer->GetNumberOfNodes( false );
+ return mySubMeshServer->GetNumberOfNodes( /*all=*/true );
}
break;
case SMDSAbs_0DElement: