]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To improve assigned value calculation (fix regression on fra.med and checked on heros...
authorapo <apo@opencascade.com>
Thu, 1 Sep 2005 10:42:37 +0000 (10:42 +0000)
committerapo <apo@opencascade.com>
Thu, 1 Sep 2005 10:42:37 +0000 (10:42 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index 0f008c8f7f0ff62548fc47045e196cb6dd5a7d57..ae616a380a4d209a94f4b22db9b1491ae9b49dd6 100644 (file)
@@ -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));