0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes

+  int NbBalls() const throw(SALOME_Exception);
This commit is contained in:
eap 2012-07-19 13:14:54 +00:00
parent 9f74998b92
commit baade10114
2 changed files with 14 additions and 2 deletions

View File

@ -20,7 +20,6 @@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// SMESH SMESH : implementaion of SMESH idl descriptions
// File : SMESH_Mesh.cxx
// Author : Paul RASCLE, EDF
// Module : SMESH
@ -1584,6 +1583,18 @@ int SMESH_Mesh::NbPolyhedrons() const throw(SALOME_Exception)
return _myMeshDS->GetMeshInfo().NbPolyhedrons();
}
//================================================================================
/*!
* \brief Return number of ball elements in the mesh
*/
//================================================================================
int SMESH_Mesh::NbBalls() const throw(SALOME_Exception)
{
Unexpect aCatch(SalomeException);
return _myMeshDS->GetMeshInfo().NbBalls();
}
//================================================================================
/*!
* \brief Return number of submeshes in the mesh

View File

@ -20,7 +20,6 @@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// SMESH SMESH : implementaion of SMESH idl descriptions
// File : SMESH_Mesh.hxx
// Author : Paul RASCLE, EDF
// Module : SMESH
@ -277,6 +276,8 @@ public:
int NbPolyhedrons() const throw(SALOME_Exception);
int NbBalls() const throw(SALOME_Exception);
int NbSubMesh() const throw(SALOME_Exception);
int NbGroup() const { return _mapGroup.size(); }