From: apo Date: Thu, 10 May 2007 11:40:56 +0000 (+0000) Subject: [Bug NPAL15278] EDF 347 : ScalarMaponDeformedShape X-Git-Tag: T_EDF_15278~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0475468ab2871e29f7d9e0305f9d1ef4a7796e4b;p=modules%2Fvisu.git [Bug NPAL15278] EDF 347 : ScalarMaponDeformedShape - clarify the methods IsDataOnCells & IsDataOnPoints --- 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; }