]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To introduce caching for mapping ids initialization V3_2_6pre3
authorapo <apo@opencascade.com>
Wed, 28 Mar 2007 07:12:46 +0000 (07:12 +0000)
committerapo <apo@opencascade.com>
Wed, 28 Mar 2007 07:12:46 +0000 (07:12 +0000)
(In context of fix for Bug NPAL15278 - "EDF 347 : ScalarMaponDeformedShape")

src/CONVERTOR/VISU_Convertor_impl.cxx

index 242e03f3918af633ea02d601179b7a9e46c44903..aa1898898c45838c4ab8e734650dac60f8e776a5 100644 (file)
@@ -1338,38 +1338,6 @@ namespace
     int aNbTuples = theField->myDataSize/theField->myNbComp;
     std::string aFieldName = GenerateFieldName(theField,theValForTime);
 
-    {
-      PIDMapperFilter anIDMapperFilter = theValForTime->myIDMapperFilter;
-      VISU::TVTKOutput* anOutput = anIDMapperFilter->GetVTKOutput();
-      anOutput->Update();
-      {
-       int aNbTuples = anOutput->GetNumberOfCells();
-       vtkIntArray *aDataArray = vtkIntArray::New();
-       aDataArray->SetName("VISU_CELLS_MAPPER");
-       aDataArray->SetNumberOfComponents(1);
-       aDataArray->SetNumberOfTuples(aNbTuples);
-       for(int aTupleId = 0; aTupleId < aNbTuples; aTupleId++){
-         int anObjID = anIDMapperFilter->GetElemObjID(aTupleId);
-         aDataArray->SetValue(aTupleId, anObjID);
-       }
-       theSource->GetCellData()->AddArray(aDataArray);
-       aDataArray->Delete();
-      }
-      {
-       int aNbTuples = anOutput->GetNumberOfPoints();
-       vtkIntArray *aDataArray = vtkIntArray::New();
-       aDataArray->SetName("VISU_POINTS_MAPPER");
-       aDataArray->SetNumberOfComponents(1);
-       aDataArray->SetNumberOfTuples(aNbTuples);
-       for(int aTupleId = 0; aTupleId < aNbTuples; aTupleId++){
-         int anObjID = anIDMapperFilter->GetNodeObjID(aTupleId);
-         aDataArray->SetValue(aTupleId, anObjID);
-       }
-       theSource->GetPointData()->AddArray(aDataArray);
-       aDataArray->Delete();
-      }
-    }
-    
     vtkDataSetAttributes* aDataSetAttributes;
     switch(theEntity){
     case VISU::NODE_ENTITY :