${PROJECT_SOURCE_DIR}/src/SMESHClient
${PROJECT_SOURCE_DIR}/src/MEDWrapper
${PROJECT_SOURCE_DIR}/src/SMESH_I
+ ${PROJECT_SOURCE_DIR}/src/SMESH
${PROJECT_BINARY_DIR}
${PROJECT_BINARY_DIR}/idl
)
#include "SMESH_NumberFilter.hxx"
#include "SMESH_TypeDefs.hxx"
#include "SMESH_TypeFilter.hxx"
+#include "SMESH_Gen_i.hxx"
#include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
elemType = SMESH::NODE;
CORBA::String_var name = geomGroups[ iG ]->GetName();
- meshGroup = aMesh->CreateGroupFromGEOM( elemType, name, geomGroups[ iG ]);
+
+ SALOMEDS::SObject_wrap groupSO = SMESH_Gen_i::GetSMESHGen()->ObjectToSObject( geomGroups[iG] );
+ if (!groupSO->_is_nil())
+ meshGroup = aMesh->CreateGroupFromGEOM( elemType, name, geomGroups[ iG ]);
// if ( elemType != SMESH::NODE )
// meshGroup = aMesh->CreateGroupFromGEOM( SMESH::NODE, name, geomGroups[ iG ]);
}