]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Mon, 29 Aug 2005 08:10:29 +0000 (08:10 +0000)
committerapo <apo@opencascade.com>
Mon, 29 Aug 2005 08:10:29 +0000 (08:10 +0000)
src/PIPELINE/VISUPipeLine.cxx

index 46ff4c61d4b24a9c73f49b255f9d5e08d59fcd34..dd40816dd3c2a40f1b11daaea70525b4ba7b3beb 100644 (file)
@@ -101,13 +101,20 @@ int main(int argc, char** argv){
        VISU::TFieldMap::const_iterator aFieldMapIter = aFieldMap.begin();
        for(; aFieldMapIter != aFieldMap.end(); aFieldMapIter++){
          const VISU::PField aField = aFieldMapIter->second;
-         if(aField->myNbComp == 1) continue;
+         /*
+         if(aField->myNbComp == 1) 
+           continue;
+         */
          const string& aFieldName = aFieldMapIter->first;
          const VISU::TValField& aValField = aField->myValField;
          VISU::TValField::const_iterator aValFieldIter = aValField.begin();
          if(aValFieldIter == aValField.end()) return 0;
          int aTimeStamp = aValFieldIter->first;
-         vtkUnstructuredGrid* aDataSet = aConvertor->GetTimeStampOnMesh(aMeshName,anEntity,aFieldName,aTimeStamp);
+         vtkUnstructuredGrid* aDataSet;
+         if(anEntity != VISU::NODE_ENTITY)
+           aDataSet = aConvertor->GetTimeStampOnGaussPts(aMeshName,anEntity,aFieldName,aTimeStamp);
+         else
+           aDataSet = aConvertor->GetTimeStampOnMesh(aMeshName,anEntity,aFieldName,aTimeStamp);
 
          TPresent* aPresent = TPresent::New();
          aPresent->SetInput(aDataSet);