X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_ActorUtils.cxx;h=3e2225b07c62511967f386e1e14c7d6ed1323f7c;hb=5acab3d3271d9516ca568577b1465693f5db96dd;hp=ee0a31efddfba1066958a292e2c63f91e5214bc3;hpb=6722eec5f53c7415b4dbfca58c7578a2cf2ec876;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_ActorUtils.cxx b/src/OBJECT/SMESH_ActorUtils.cxx index ee0a31efd..3e2225b07 100644 --- a/src/OBJECT/SMESH_ActorUtils.cxx +++ b/src/OBJECT/SMESH_ActorUtils.cxx @@ -41,8 +41,10 @@ #include "utilities.h" #include +#include #include #include +#include //#ifdef _DEBUG_ //static int MYDEBUG = 1; @@ -155,6 +157,20 @@ namespace SMESH } } + std::map GetEntitiesFromObject(SMESH_VisualObj *theObject) { + std::map entities; + entities.insert(std::pair(SMDSAbs_0DElement, + theObject ? theObject->GetNbEntities(SMDSAbs_0DElement) : 0)); + entities.insert(std::pair(SMDSAbs_Edge, + theObject ? theObject->GetNbEntities(SMDSAbs_Edge) : 0)); + entities.insert(std::pair(SMDSAbs_Face, + theObject ? theObject->GetNbEntities(SMDSAbs_Face) : 0)); + entities.insert(std::pair(SMDSAbs_Volume, + theObject ? theObject->GetNbEntities(SMDSAbs_Volume) : 0)); + return entities; + } + + #ifndef DISABLE_PLOT2DVIEWER //=======================================================================