From 72292d32648627b196e90bc8ed6920e00c6adb48 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 1 Sep 2005 10:42:37 +0000 Subject: [PATCH] To improve assigned value calculation (fix regression on fra.med and checked on heros file) --- src/CONVERTOR/VISU_Convertor_impl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 0f008c8f..ae616a38 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -568,7 +568,7 @@ namespace VISU ::GetCompValueSliceArr(vtkIdType theElemId) const { TCValueSliceArr aValueSliceArr(myNbComp); - vtkIdType anId = theElemId; + vtkIdType anId = theElemId*myStep; for(vtkIdType aCompId = 0; aCompId < myNbComp; aCompId++){ aValueSliceArr[aCompId] = TCValueSlice(myValue,std::slice(anId,myNbGauss,myNbComp)); @@ -582,7 +582,7 @@ namespace VISU ::GetCompValueSliceArr(vtkIdType theElemId) { TValueSliceArr aValueSliceArr(myNbComp); - vtkIdType anId = theElemId; + vtkIdType anId = theElemId*myStep; for(vtkIdType aCompId = 0; aCompId < myNbComp; aCompId++){ aValueSliceArr[aCompId] = TValueSlice(myValue,std::slice(anId,myNbGauss,myNbComp)); -- 2.39.2