X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_R_SMESHDS_Mesh.cxx;h=1652a55a7e0ffc9b09309172b203d3ca5fd98e50;hp=72739a95917229ffad88ad2446a696ef8029922e;hb=faa1c8f2bc27c5244a34fe03584826de59cb17b3;hpb=cf8c1dc99ee5029f8374a7ddff34854bfafe066b diff --git a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx index 72739a959..1652a55a7 100644 --- a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx @@ -478,6 +478,37 @@ void DriverMED_R_SMESHDS_Mesh::ReadMySelf() } break; } + case MED_TETRA4: + { + if (inuele) + { + for (j = 0; j < nmailles[i]; j++) + { + elem_id = *(numele + j); + ok = mySMESHDSMesh->AddVolumeWithID(*(connectivite + + j * (taille - nsup)), + *(connectivite + j * (taille - nsup) + 1), + *(connectivite + j * (taille - nsup) + 2), + *(connectivite + j * (taille - nsup) + 3), + elem_id); + //fprintf(Out,"%d %d %d %d\n",elem_id,*(connectivite+j*(taille-nsup)),*(connectivite+j*(taille-nsup)+1),*(connectivite+j*(taille-nsup)+2),*(connectivite+j*(taille-nsup)+3)); + } + } + else + { + for (j = 0; j < nmailles[i]; j++) + { + cmpt++; + ok = mySMESHDSMesh->AddVolumeWithID(*(connectivite + + j * (taille)), + *(connectivite + j * (taille) + 1), + *(connectivite + j * (taille) + 2), + *(connectivite + j * (taille) + 3), cmpt); + //fprintf(Out,"%d %d %d %d\n",j,*(connectivite+j*(taille)),*(connectivite+j*(taille)+1),*(connectivite+j*(taille)+2),*(connectivite+j*(taille)+3)); + } + } + break; + } case MED_HEXA8: { if (inuele)