]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL12328:
authorenk <enk@opencascade.com>
Wed, 3 May 2006 13:41:24 +0000 (13:41 +0000)
committerenk <enk@opencascade.com>
Wed, 3 May 2006 13:41:24 +0000 (13:41 +0000)
TC: Incorrect visualization of data table

src/PIPELINE/VISU_CutLinesPL.cxx
src/PIPELINE/VISU_CutLinesPL.hxx
src/VISUGUI/VisuGUI_CutLinesDlg.cxx

index 620677f9437134ff5173a6ad67f09548c2db3360..f3849887c2ce7bc568598582582a101eb7ac2ced 100644 (file)
@@ -139,15 +139,13 @@ VISU_CutLinesPL
   anAppendPolyData->Delete();
   //Calculate values for building of table
   vtkMath::Cross(aDir[0],aDir[1],myDirLn);
-  vtkFloatingPointType aTmpDir[3];
-  for (int i=0; i<3 ; i++) 
-    if(myDirLn[i]<0)
-      aTmpDir[i] = (-1)*myDirLn[i];
-    else
-      aTmpDir[i] = myDirLn[i];
+  for (int i=0; i<3 ; i++) {
+    myRealDirLn[i] = myDirLn[i];
+    if(myDirLn[i]<0) myDirLn[i] = (-1)*myDirLn[i];//enk:: correction of bug Bug PAL10401
+  }
+  GetBoundProject(myBoundPrjLn, aBaseBounds, myDirLn);
+  VISU::Mul(myDirLn,myBoundPrjLn[0],myBasePnt);
   
-  GetBoundProject(myBoundPrjLn, aBaseBounds, aTmpDir);
-  VISU::Mul(aTmpDir,myBoundPrjLn[0],myBasePnt);
   CorrectPnt(myBasePnt,aBaseBounds);
 
   VISU_ScalarMapPL::Update();
index e41cdc650239ce20a8087a736c7079d6726759df..05fb29a0ba9392d46cee447445ca51330013fadf 100644 (file)
@@ -88,6 +88,12 @@ public:
     return myDirLn;
   }
 
+  const vtkFloatingPointType* 
+  GetRealDirLn()
+  {
+    return myRealDirLn;
+  }
+
   const vtkFloatingPointType* 
   GetBoundPrjLn()
   {
@@ -102,6 +108,7 @@ public:
 
 protected:
   vtkFloatingPointType myDirLn[3];
+  vtkFloatingPointType myRealDirLn[3];
   vtkFloatingPointType myBoundPrjLn[3];
   vtkFloatingPointType myBasePnt[3];
   vtkFloatingPointType myPosition;
index 1cf8434016286150938050db93b8b6b540512d85..7b6c49a718c106bfb7b4cfa99c5bc4aa9d3353af 100644 (file)
@@ -546,7 +546,7 @@ void VisuGUI_CutLinesDlg::DrawTable()
 
 void VisuGUI_CutLinesDlg::updateGlyphs(bool update){
   if (myPreviewActorGlyphs == 0 ) return;
-  const vtkFloatingPointType *aDirLn = myCutLines->GetCutLinesPL()->GetDirLn();
+  const vtkFloatingPointType *aDirLn = myCutLines->GetCutLinesPL()->GetRealDirLn();
   const vtkFloatingPointType *aBasePnt = myCutLines->GetCutLinesPL()->GetBasePnt();
   vtkFloatingPointType aSecondPnt[3];
   vtkFloatingPointType aBoundCenter[3];