From 0475468ab2871e29f7d9e0305f9d1ef4a7796e4b Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 10 May 2007 11:40:56 +0000 Subject: [PATCH] [Bug NPAL15278] EDF 347 : ScalarMaponDeformedShape - clarify the methods IsDataOnCells & IsDataOnPoints --- src/CONVERTOR/VISU_ConvertorUtils.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/CONVERTOR/VISU_ConvertorUtils.cxx b/src/CONVERTOR/VISU_ConvertorUtils.cxx index 573d1664..4edd3007 100644 --- a/src/CONVERTOR/VISU_ConvertorUtils.cxx +++ b/src/CONVERTOR/VISU_ConvertorUtils.cxx @@ -64,9 +64,7 @@ namespace VISU { theDataSet->Update(); vtkDataSetAttributes *aDataSetAttributes = theDataSet->GetPointData(); - if(aDataSetAttributes->GetArray("VISU_POINTS_MAPPER")) - return aDataSetAttributes->GetNumberOfArrays() > 1; - return aDataSetAttributes->GetNumberOfArrays() > 0; + return aDataSetAttributes->GetArray("VISU_FIELD") != NULL; } @@ -76,9 +74,7 @@ namespace VISU { theDataSet->Update(); vtkDataSetAttributes *aDataSetAttributes = theDataSet->GetCellData(); - if(aDataSetAttributes->GetArray("VISU_CELLS_MAPPER")) - return aDataSetAttributes->GetNumberOfArrays() > 1; - return aDataSetAttributes->GetNumberOfArrays() > 0; + return aDataSetAttributes->GetArray("VISU_FIELD") != NULL; } -- 2.39.2