From: apo Date: Thu, 1 Sep 2005 10:42:37 +0000 (+0000) Subject: To improve assigned value calculation (fix regression on fra.med and checked on heros... X-Git-Tag: BR-D5-38-2003_D2005-12-09~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72292d32648627b196e90bc8ed6920e00c6adb48;p=modules%2Fvisu.git To improve assigned value calculation (fix regression on fra.med and checked on heros file) --- 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));