]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To apply the Gauss Points data to VTK points, not to cells to use them in direclt... WP1_2_3_29-12-2006_MED_to_VTK_data_passing
authorapo <apo@opencascade.com>
Fri, 29 Dec 2006 14:59:00 +0000 (14:59 +0000)
committerapo <apo@opencascade.com>
Fri, 29 Dec 2006 14:59:00 +0000 (14:59 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index 730d4d63c06cb5ecf757dbfb6e7111c37c4b4c5e..9f5ef8763df560a493e902b8fab7ab03b5371c94 100644 (file)
@@ -1759,14 +1759,7 @@ namespace VISU
     vtkIdType aNbTuples = theSource->GetNumberOfPoints();
     std::string aFieldName = VISU::GenerateFieldName(theField, theValForTime);
 
-    vtkDataSetAttributes* aDataSetAttributes;
-    switch(theField->myEntity){
-    case VISU::NODE_ENTITY : 
-      aDataSetAttributes = theSource->GetPointData();
-      break;
-    default: 
-      aDataSetAttributes = theSource->GetCellData();
-    }
+    vtkDataSetAttributes* aDataSetAttributes = theSource->GetPointData();
 
     typedef typename TL::TEnum2VTKArrayType<EDataType>::TResult TVTKDataArray;
     TVTKDataArray *aSelectedDataArray = TVTKDataArray::New();