From c093563b96c9ba9005c0f85a0f9f15a551799b30 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 28 Mar 2007 07:12:46 +0000 Subject: [PATCH] To introduce caching for mapping ids initialization (In context of fix for Bug NPAL15278 - "EDF 347 : ScalarMaponDeformedShape") --- src/CONVERTOR/VISU_Convertor_impl.cxx | 32 --------------------------- 1 file changed, 32 deletions(-) diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 242e03f3..aa189889 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -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 : -- 2.39.2