mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
0021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)
Note 0014299. Fix writing groups
This commit is contained in:
parent
aafd432548
commit
abc9568eca
@ -294,19 +294,20 @@ Driver_Mesh::Status DriverGMF_Write::Perform()
|
||||
|
||||
// write the group
|
||||
GmfSetKwd( meshID, gmfKwd, nbOkElems );
|
||||
elemIt = group->GetElements();
|
||||
if ( elem2IDMap )
|
||||
for ( elemIt = group->GetElements(); elemIt->more(); )
|
||||
for ( ; elemIt->more(); )
|
||||
{
|
||||
const SMDS_MeshElement* elem = elemIt->next();
|
||||
if ( elem->GetEntityType() == smdsEntity )
|
||||
GmfSetLin( meshID, gmfKwd, (*elem2IDMap)[ elem ] );
|
||||
}
|
||||
else
|
||||
for ( elemIt = group->GetElements(); elemIt->more(); )
|
||||
for ( int gmfID = 1; elemIt->more(); ++gmfID)
|
||||
{
|
||||
const SMDS_MeshElement* elem = elemIt->next();
|
||||
if ( elem->GetEntityType() == smdsEntity )
|
||||
GmfSetLin( meshID, gmfKwd, elem->GetID() );
|
||||
GmfSetLin( meshID, gmfKwd, gmfID );
|
||||
}
|
||||
|
||||
} // loop on groups
|
||||
|
Loading…
Reference in New Issue
Block a user