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();