Salome HOME
0021459: EDF 1495 SMESH: Manipulation of discrete elements with attributes
authoreap <eap@opencascade.com>
Thu, 19 Jul 2012 13:20:15 +0000 (13:20 +0000)
committereap <eap@opencascade.com>
Thu, 19 Jul 2012 13:20:15 +0000 (13:20 +0000)
+  GROUP_BALL,

src/SMESHFiltersSelection/SMESH_Type.h
src/SMESHFiltersSelection/SMESH_TypeFilter.cxx

index 9eb30cb03105549dc162185ffd4d4cefb16ea835..e29c918a07dced71801bf5fa6631161bfda1e1d6 100644 (file)
@@ -56,6 +56,7 @@ enum MeshObjectType {
   GROUP_FACE,
   GROUP_VOLUME,
   GROUP_0D,
+  GROUP_BALL,
   COMPONENT,
   IDSOURCE
 };
index 26a9dc0a6307a590897655875459e71d65026265..e9b83166c25add1125c1dc2b2298a27f95208d5d 100644 (file)
@@ -199,7 +199,13 @@ bool SMESH_TypeFilter::isOk (const SUIT_DataOwner* theDataOwner) const
         }
       case GROUP_0D:
         {
-          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_VolumeGroups+1))
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_0DElementsGroups))
+            Ok = true;
+          break;
+        }
+      case GROUP_BALL:
+        {
+          if (aLevel == 3 && (objFather->Tag() == SMESH::Tag_BallElementsGroups))
             Ok = true;
           break;
         }