Salome HOME
Merge branch 'master' into gni/evolution
[modules/smesh.git] / src / SMESH / SMESH_Gen.cxx
index 65e59d98dfdb38e53223261b42b0937910621293..db4fe213664fac96d245f4fa57089355fd972c9d 100644 (file)
@@ -40,7 +40,6 @@
 #include "SMESH_subMesh.hxx"
 
 #include "utilities.h"
-#include "OpUtil.hxx"
 #include "Utils_ExceptHandlers.hxx"
 
 #include <TopoDS_Iterator.hxx>
@@ -376,7 +375,7 @@ bool SMESH_Gen::Compute(SMESH_Mesh &                aMesh,
 
           const TopoDS_Shape& aSubShape = smToCompute->GetSubShape();
           const int aShapeDim = GetShapeDim( aSubShape );
-          if ( aShapeDim < 1 || aSubShape.ShapeType() == shapeType )
+          if ( aShapeDim < 1 || aSubShape.ShapeType() <= shapeType )
             continue;
 
           // check for preview dimension limitations