From 24dfedf70ccf91d55d7a4acc835e4d6a16dbbf1e Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 2 Aug 2005 10:25:27 +0000 Subject: [PATCH] To support data reading for quadric mesh elements --- src/CONVERTOR/VISU_MedConvertor.cxx | 3 ++- src/CONVERTOR/VISU_MedConvertor.hxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2