X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FMG_ADAPT_i.cxx;h=9ec13d658726c6a277d164cde23928eee549da0b;hb=a60c339d7740e777b7b7bfeaaad86e32dc423693;hp=02415c69e4c405759eb56d6d91467d2d0d68ee3f;hpb=bdd574724272e16b782e6b8347ed21ba477df585;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/MG_ADAPT_i.cxx b/src/SMESH_I/MG_ADAPT_i.cxx index 02415c69e..9ec13d658 100644 --- a/src/SMESH_I/MG_ADAPT_i.cxx +++ b/src/SMESH_I/MG_ADAPT_i.cxx @@ -18,6 +18,7 @@ // #include "MG_ADAPT_i.hxx" +#include "SMESH_Homard_i.hxx" #include "MG_ADAPT.hxx" #include "SMESH_File.hxx" @@ -114,7 +115,8 @@ SMESH::MG_ADAPT_ptr SMESH_Gen_i::CreateAdaptationHypothesis() return SMESH::MG_ADAPT_ptr(); #endif } -SMESH::MG_ADAPT_OBJECT_ptr SMESH_Gen_i::Adaptation( const char* adaptationType) +//SMESH::MG_ADAPT_OBJECT_ptr SMESH_Gen_i::Adaptation( const char* adaptationType) +SALOME::GenericObj_ptr SMESH_Gen_i::Adaptation( const char* adaptationType) { #ifndef DISABLE_MG_ADAPT if (!strcmp(adaptationType, "MG_Adapt")) @@ -124,6 +126,12 @@ SMESH::MG_ADAPT_OBJECT_ptr SMESH_Gen_i::Adaptation( const char* adaptationType) return anObj._retn(); } #endif + if (!strcmp(adaptationType, "Uniform")) + { + SMESHHOMARD_I::HOMARD_Gen_i* homard_adapt = new SMESHHOMARD_I::HOMARD_Gen_i(); + SMESHHOMARD::HOMARD_Gen_var anObj = homard_adapt->_this(); + return anObj._retn(); + } return SMESH::MG_ADAPT_OBJECT_ptr(); } //=============================================================================