]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
[Bug NPAL15278] EDF 347 : ScalarMaponDeformedShape
authorapo <apo@opencascade.com>
Thu, 10 May 2007 11:40:56 +0000 (11:40 +0000)
committerapo <apo@opencascade.com>
Thu, 10 May 2007 11:40:56 +0000 (11:40 +0000)
 - clarify the methods IsDataOnCells & IsDataOnPoints

src/CONVERTOR/VISU_ConvertorUtils.cxx

index 573d1664dfd637b8d0c18c68daa7027fe5d1e9a7..4edd30078efa40e198adcdadbd4d2e9ec3e2881b 100644 (file)
@@ -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;
   }