}
TGeom2SubMesh& aGeom2SubMesh = aMeshOnEntity->myGeom2SubMesh;
- PSubMeshImpl aSubMesh = aGeom2SubMesh[VTK_VERTEX];
+ PMEDSubMesh aSubMesh = aGeom2SubMesh[VTK_VERTEX](new TMEDSubMesh());
+
+ aSubMesh->myIsElemNum = aNodeInfo->IsElemNum();
+ aSubMesh->myElemNum = aNodeInfo->myElemNum;
+
TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
aCell2Connect.resize(aNbElem);
for (int iElem = 0; iElem < aNbElem; iElem++)
MED::PPolygoneInfo aPolygoneInfo = theMed->GetPPolygoneInfo(aMeshInfo,aMEntity,aMGeom);
TInt aNbElem = aPolygoneInfo->GetNbElem();
if(aNbElem > 0){
- PSubMeshImpl aSubMesh = aGeom2SubMesh[aVGeom];
+ PMEDSubMesh aSubMesh = aGeom2SubMesh[aVGeom](new TMEDSubMesh());
+
+ aSubMesh->myIsElemNum = aPolygoneInfo->IsElemNum();
+ aSubMesh->myElemNum = aPolygoneInfo->myElemNum;
+
TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
aCell2Connect.resize(aNbElem);
TInt aNbElem = aPolyedreInfo->GetNbElem();
if(aNbElem > 0){
- PSubMeshImpl aSubMesh = aGeom2SubMesh[aVGeom];
+ PMEDSubMesh aSubMesh = aGeom2SubMesh[aVGeom](new TMEDSubMesh());
+
+ aSubMesh->myIsElemNum = aPolyedreInfo->IsElemNum();
+ aSubMesh->myElemNum = aPolyedreInfo->myElemNum;
+
TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
aCell2Connect.resize(aNbElem);
TInt aNbElem = aCellInfo->GetNbElem();
if(aNbElem > 0){
- PSubMeshImpl aSubMesh = aGeom2SubMesh[aVGeom];
+ PMEDSubMesh aSubMesh = aGeom2SubMesh[aVGeom](new TMEDSubMesh());
+
+ aSubMesh->myIsElemNum = aCellInfo->IsElemNum();
+ aSubMesh->myElemNum = aCellInfo->myElemNum;
+
TCell2Connect& aCell2Connect = aSubMesh->myCell2Connect;
aCell2Connect.resize(aNbElem);
aMGeom);
aSubProfile->myIsElemNum = anElemInfo->IsElemNum();
- if(aSubProfile->myIsElemNum)
- aSubProfile->myElemNum = anElemInfo->myElemNum;
+ aSubProfile->myElemNum = anElemInfo->myElemNum;
}
}
aProfile->myNamedPointCoords = theMesh->myNamedPointCoords;
aMGeom);
aGaussSubMesh->myIsElemNum = aCellInfo->IsElemNum();
- if(aGaussSubMesh->myIsElemNum)
- aGaussSubMesh->myElemNum = aCellInfo->myElemNum;
+ aGaussSubMesh->myElemNum = aCellInfo->myElemNum;
std::string aName;
MED::TGaussCoord aGaussCoord;
typedef SharedPtr<TMEDGaussMesh> PMEDGaussMesh;
+ //---------------------------------------------------------------
+ struct TMEDSubMesh: virtual TSubMeshImpl
+ {
+ MED::EBooleen myIsElemNum;
+ MED::TElemNum myElemNum;
+ };
+ typedef SharedPtr<TMEDSubMesh> PMEDSubMesh;
+
+
//---------------------------------------------------------------
struct TMEDMeshOnEntity: virtual TMeshOnEntityImpl
{