X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Hypothesis_i.hxx;fp=src%2FSMESH_I%2FSMESH_Hypothesis_i.hxx;h=1551d0a473edde329aaaad563eaf648981d660c5;hb=a87bde2a084268d40af501d4b8b5c9e8d48c8323;hp=1408ee384ef453c7e20b5141f57811dccf20f4f3;hpb=bb1e4b11d8f1c4b90fe7b2c9c59a65c1d30c37f4;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_Hypothesis_i.hxx b/src/SMESH_I/SMESH_Hypothesis_i.hxx index 1408ee384..1551d0a47 100644 --- a/src/SMESH_I/SMESH_Hypothesis_i.hxx +++ b/src/SMESH_I/SMESH_Hypothesis_i.hxx @@ -148,9 +148,17 @@ public: ::SMESH_Gen* theGenImpl) = 0; virtual ~GenericHypothesisCreator_i() {} - // return the name of IDL module + // Return the name of IDL module virtual std::string GetModuleName() = 0; - virtual bool IsApplicable( const TopoDS_Shape &S, bool toCheckAll ) {return true;} + + // Check if an algorithm is applicable to a shape + virtual bool IsApplicable( const TopoDS_Shape &S, bool toCheckAll, int algoDim ) + { + return IsShapeOfDim( S, algoDim ); + } + + // Check if a shape includes sub-shapes of a given dimension + static bool IsShapeOfDim( const TopoDS_Shape &S, int dim ); }; //=============================================================================