- switch (elem->NbNodes()) {
- case 3:
- fprintf(aFileId, "%d %d ", elem->GetID(), 203);
- break;
- case 4:
- fprintf(aFileId, "%d %d ", elem->GetID(), 204);
- break;
- case 6:
- fprintf(aFileId, "%d %d ", elem->GetID(), 206);
- break;
- }
+ if ( elem->IsPoly() )
+ fprintf(aFileId, "%d %d ", elem->GetID(), 400+elem->NbNodes());
+ else
+ fprintf(aFileId, "%d %d ", elem->GetID(), 200+elem->NbNodes());