From: apo Date: Thu, 7 Sep 2006 05:50:43 +0000 (+0000) Subject: Fix for Bug PAL13239 X-Git-Tag: V3_2_2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2bc02bc071da5bf0b0e22ed8ceb97e2388fec628;p=modules%2Fvisu.git Fix for Bug PAL13239 - Numerations of elements(nodes) for the same mesh in Mesh and Post-Pro modules are different. --- diff --git a/src/VISUGUI/VisuGUI_Selection.cxx b/src/VISUGUI/VisuGUI_Selection.cxx index 64d8b634..6ddd429f 100644 --- a/src/VISUGUI/VisuGUI_Selection.cxx +++ b/src/VISUGUI/VisuGUI_Selection.cxx @@ -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)); } } }