From: apo Date: Fri, 29 Dec 2006 14:59:00 +0000 (+0000) Subject: To apply the Gauss Points data to VTK points, not to cells to use them in direclt... X-Git-Tag: WP1_2_3_29-12-2006_MED_to_VTK_data_passing X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c480bfdced1095fbe6595a432478cc00113e3cdd;p=modules%2Fvisu.git To apply the Gauss Points data to VTK points, not to cells to use them in direclt vtkWarpVector filter for applying deformation --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 730d4d63..9f5ef876 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -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::TResult TVTKDataArray; TVTKDataArray *aSelectedDataArray = TVTKDataArray::New();