]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug PAL13239
authorapo <apo@opencascade.com>
Thu, 7 Sep 2006 05:50:43 +0000 (05:50 +0000)
committerapo <apo@opencascade.com>
Thu, 7 Sep 2006 05:50:43 +0000 (05:50 +0000)
 - Numerations of elements(nodes) for the same mesh in Mesh and Post-Pro modules are different.

src/VISUGUI/VisuGUI_Selection.cxx

index 64d8b6340faccbbcaca8da7ff7aae3c21efec275..6ddd429f89265398c21e28e0acaa80bfddba71f6 100644 (file)
@@ -466,13 +466,12 @@ void VisuGUI_SelectionDlg::onSelectionEvent() {
                 myCellScalarValLbl->setText(getValue(aCellData, aVTKID));
                 myCellVectorValLbl->setText(getVector(aCellData, aVTKID));
 
-                vtkFloatingPointType* aCoord;
                 vtkIdList *aPointList = aCell->GetPointIds();
-
                 for (int i = 0; i < aNbOfPoints; i++) {
-                  int idCurrent = aPointList->GetId(i);
-                  aCoord = aDataSet->GetPoint(idCurrent);
-                  aPointsMap.insert(PointsMap::value_type(idCurrent,aCoord));
+                  int aNodeVTKId = aPointList->GetId(i);
+                  vtkFloatingPointType* aCoord = aDataSet->GetPoint(aNodeVTKId);
+                 vtkIdType aNodeObjId = anVISUActor->GetNodeObjId(aNodeVTKId);
+                  aPointsMap.insert(PointsMap::value_type(aNodeObjId,aCoord));
                 }
               }
             }