From: eap Date: Thu, 4 Oct 2012 10:52:46 +0000 (+0000) Subject: 0021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format) X-Git-Tag: V6_6_0a1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=052ef39f861197230bb44a80d0d6e650b1e370e3;p=modules%2Fsmesh.git 0021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format) Note 0014299. Fix writing groups (again) --- diff --git a/src/DriverGMF/DriverGMF_Write.cxx b/src/DriverGMF/DriverGMF_Write.cxx index 50acafe7f..cdddd629d 100644 --- a/src/DriverGMF/DriverGMF_Write.cxx +++ b/src/DriverGMF/DriverGMF_Write.cxx @@ -282,14 +282,11 @@ Driver_Mesh::Status DriverGMF_Write::Perform() // choose a TElem2IDMap TElem2IDMap* elem2IDMap = 0; - if ( smdsEntity == SMDSEntity_Quadrangle && - myMesh->GetMeshInfo().NbEntities( smdsEntity ) != myMesh->NbFaces() ) + if ( smdsEntity == SMDSEntity_Quadrangle && nbOkElems != myMesh->NbFaces() ) elem2IDMap = & quad2IDMap; - else if ( smdsEntity == SMDSEntity_Triangle && - myMesh->GetMeshInfo().NbEntities( smdsEntity ) != myMesh->NbFaces() ) + else if ( smdsEntity == SMDSEntity_Triangle && nbOkElems != myMesh->NbFaces() ) elem2IDMap = & tria2IDMap; - else if ( smdsEntity == SMDSEntity_Edge && - myMesh->GetMeshInfo().NbEntities( smdsEntity ) != myMesh->NbEdges() ) + else if ( smdsEntity == SMDSEntity_Edge && nbOkElems != myMesh->NbEdges() ) elem2IDMap = & edge2IDMap; // write the group