0021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)

Note 0014299. Fix writing groups
This commit is contained in:
eap 2012-10-04 10:41:10 +00:00
parent aafd432548
commit abc9568eca

View File

@ -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