mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-10 22:23:06 +05:00
0021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)
Note 0014299. Fix writing groups (again)
This commit is contained in:
parent
abc9568eca
commit
052ef39f86
@ -282,14 +282,11 @@ Driver_Mesh::Status DriverGMF_Write::Perform()
|
|||||||
|
|
||||||
// choose a TElem2IDMap
|
// choose a TElem2IDMap
|
||||||
TElem2IDMap* elem2IDMap = 0;
|
TElem2IDMap* elem2IDMap = 0;
|
||||||
if ( smdsEntity == SMDSEntity_Quadrangle &&
|
if ( smdsEntity == SMDSEntity_Quadrangle && nbOkElems != myMesh->NbFaces() )
|
||||||
myMesh->GetMeshInfo().NbEntities( smdsEntity ) != myMesh->NbFaces() )
|
|
||||||
elem2IDMap = & quad2IDMap;
|
elem2IDMap = & quad2IDMap;
|
||||||
else if ( smdsEntity == SMDSEntity_Triangle &&
|
else if ( smdsEntity == SMDSEntity_Triangle && nbOkElems != myMesh->NbFaces() )
|
||||||
myMesh->GetMeshInfo().NbEntities( smdsEntity ) != myMesh->NbFaces() )
|
|
||||||
elem2IDMap = & tria2IDMap;
|
elem2IDMap = & tria2IDMap;
|
||||||
else if ( smdsEntity == SMDSEntity_Edge &&
|
else if ( smdsEntity == SMDSEntity_Edge && nbOkElems != myMesh->NbEdges() )
|
||||||
myMesh->GetMeshInfo().NbEntities( smdsEntity ) != myMesh->NbEdges() )
|
|
||||||
elem2IDMap = & edge2IDMap;
|
elem2IDMap = & edge2IDMap;
|
||||||
|
|
||||||
// write the group
|
// write the group
|
||||||
|
Loading…
Reference in New Issue
Block a user