]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Filter for the cylindrical face.
authornds <natalia.donis@opencascade.com>
Thu, 26 Feb 2015 07:10:12 +0000 (10:10 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 26 Feb 2015 07:10:12 +0000 (10:10 +0300)
To use it, xml should contain: <selection_filter id="FaceFilter" parameters="cylinder"/>

src/ModuleBase/ModuleBase_FilterFace.cpp

index 8391e17be2960887424e366736980a878bbd3379..3e6544557d285278f5f839e549603c06baafbe9d 100644 (file)
@@ -22,6 +22,7 @@ StdSelect_TypeOfFace ModuleBase_FilterFace::faceType(const std::string& theType)
 {
   if (MyFaceTypes.count() == 0) {
     MyFaceTypes["plane"] = StdSelect_Plane;
+    MyFaceTypes["cylinder"] = StdSelect_Cylinder;
   }
   QString aType = QString(theType.c_str()).toLower();
   if (MyFaceTypes.contains(aType))