mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-31 03:40:34 +05:00
PAL10196. use renamed GetGroupNames()->GetGroupNamesAndTypes() of MED Driver
This commit is contained in:
parent
d7407cdcae
commit
f1077f395a
@ -210,16 +210,17 @@ int SMESH_Mesh::MEDToMesh(const char* theFileName, const char* theMeshName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reading groups (sub-meshes are out of scope of MED import functionality)
|
// Reading groups (sub-meshes are out of scope of MED import functionality)
|
||||||
list<string> aGroupNames = myReader.GetGroupNames();
|
list<TNameAndType> aGroupNames = myReader.GetGroupNamesAndTypes();
|
||||||
if(MYDEBUG) MESSAGE("MEDToMesh - Nb groups = "<<aGroupNames.size());
|
if(MYDEBUG) MESSAGE("MEDToMesh - Nb groups = "<<aGroupNames.size());
|
||||||
int anId;
|
int anId;
|
||||||
for ( list<string>::iterator it = aGroupNames.begin(); it != aGroupNames.end(); it++ ) {
|
list<TNameAndType>::iterator name_type = aGroupNames.begin();
|
||||||
SMESH_Group* aGroup = AddGroup( SMDSAbs_All, it->c_str(), anId );
|
for ( ; name_type != aGroupNames.end(); name_type++ ) {
|
||||||
|
SMESH_Group* aGroup = AddGroup( name_type->second, name_type->first.c_str(), anId );
|
||||||
if ( aGroup ) {
|
if ( aGroup ) {
|
||||||
if(MYDEBUG) MESSAGE("MEDToMesh - group added: "<<it->c_str());
|
if(MYDEBUG) MESSAGE("MEDToMesh - group added: "<<name_type->first.c_str());
|
||||||
SMESHDS_Group* aGroupDS = dynamic_cast<SMESHDS_Group*>( aGroup->GetGroupDS() );
|
SMESHDS_Group* aGroupDS = dynamic_cast<SMESHDS_Group*>( aGroup->GetGroupDS() );
|
||||||
if ( aGroupDS ) {
|
if ( aGroupDS ) {
|
||||||
aGroupDS->SetStoreName( it->c_str() );
|
aGroupDS->SetStoreName( name_type->first.c_str() );
|
||||||
myReader.GetGroup( aGroupDS );
|
myReader.GetGroup( aGroupDS );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user