From: apo Date: Tue, 2 Aug 2005 10:25:27 +0000 (+0000) Subject: To support data reading for quadric mesh elements X-Git-Tag: BR-D5-38-2003_D2005-12-09~138 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24dfedf70ccf91d55d7a4acc835e4d6a16dbbf1e;p=modules%2Fvisu.git To support data reading for quadric mesh elements --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index cf46fa0c..fb771799 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -153,6 +153,7 @@ namespace PMEDSubProfile aSubProfile(new TMEDSubProfile()); aSubProfile->myGeom = aVGeom; + aSubProfile->myMGeom = theMGeom; aSubProfile->myStatus = eAddAll; MED::TGeom2Size::const_iterator aTimeStampIter = theGeom2Size.find(theMGeom); @@ -1319,7 +1320,7 @@ VISU_MedConvertor TMeshValue& aVMeshValue = theValForTime->GetMeshValue(aVGeom); aVMeshValue.Init(aNbElem,aNbGauss,aNbComp); - MED::EGeometrieElement aMGeom = VTKGeomToMED(aVGeom); + MED::EGeometrieElement aMGeom = aSubProfile->myMGeom; const MED::TMeshValue& aMMeshValue = aTimeVal.GetMeshValue(aMGeom); for(TInt iElem = 0; iElem < aNbElem; iElem++){ TValueSliceArr aVValueSliceArr = aVMeshValue.GetGaussValueSliceArr(iElem); diff --git a/src/CONVERTOR/VISU_MedConvertor.hxx b/src/CONVERTOR/VISU_MedConvertor.hxx index 87cf1c85..f97575f8 100644 --- a/src/CONVERTOR/VISU_MedConvertor.hxx +++ b/src/CONVERTOR/VISU_MedConvertor.hxx @@ -30,6 +30,7 @@ namespace VISU struct TMEDSubProfile: virtual TSubProfileImpl { MED::PProfileInfo myProfileInfo; + MED::EGeometrieElement myMGeom; }; typedef SharedPtr PMEDSubProfile;