From 32cd360695d813840916f257d42b93a8565f9d73 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 1 Sep 2005 05:03:09 +0000 Subject: [PATCH] To introduce ID's mapping --- src/VISUGUI/VisuGUI_Selection.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Selection.cxx b/src/VISUGUI/VisuGUI_Selection.cxx index 433b6467..b8fa9890 100644 --- a/src/VISUGUI/VisuGUI_Selection.cxx +++ b/src/VISUGUI/VisuGUI_Selection.cxx @@ -432,15 +432,16 @@ void VisuGUI_SelectionDlg::onSelectionEvent() { case 1: { vtkCellData* aData = aDataSet->GetCellData(); - vtkCell* aCell = aDataSet->GetCell(aID); + vtkCell* aCell = anVISUActor->GetElemCell(aID); + int aVTKID = anVISUActor->GetNodeVTKID(aID); if (aCell != NULL) { int aNbOfPoints = aCell->GetNumberOfPoints(); - if (aNbOfPoints <=1 ) { // Cell is point + if ( aNbOfPoints <= 1 ) { // Cell is point clearFields(); } else { myCellIDValLbl->setText( QString::number(aID) ); - myCellScalarValLbl->setText(getValue(aData, aID)); - myCellVectorValLbl->setText(getVector(aData, aID)); + myCellScalarValLbl->setText(getValue(aData, aVTKID)); + myCellVectorValLbl->setText(getVector(aData, aVTKID)); float* aCoord; vtkIdList *aPointList = aCell->GetPointIds(); -- 2.39.2