]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on:
authorenk <enk@opencascade.com>
Wed, 27 Apr 2005 10:44:55 +0000 (10:44 +0000)
committerenk <enk@opencascade.com>
Wed, 27 Apr 2005 10:44:55 +0000 (10:44 +0000)
Bug PAL8698
  Scalar Map of a field with more than 3 components
Bug PAL8683
  Deformed shape of a field with more than 3 components
Bug PAL8684
  A med file imported twice is not updated

src/CONVERTOR/VISU_Convertor_impl.cxx

index 5fcb2f9e5983cc7236200e4369ca021d2115d0c3..a9ba9a5e5e9358e9c63ec3a75ef6e5f066543d5a 100644 (file)
@@ -390,11 +390,11 @@ namespace{
        break;
       case 4:
        for (int i = 0, ji = 0; i < iEnd; ++i, ji = i*4)
-         theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+2],0.0);
+         theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+1],0.0);
        break;
       case 6:
-       for (int i = 0, ji = 0; i < iEnd; ++i, ji = i*4)
-         theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+2],anArray[ji+5]);
+       for (int i = 0, ji = 0; i < iEnd; ++i, ji = i*6)
+         theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+1],anArray[ji+2]);
        break;
       default:
        EXCEPTION(runtime_error,"GetValsOnTimeStamp - There is no an algorithm for representation of the field !!!");