]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
provides ID mapping for entities
authorpkv <pkv@opencascade.com>
Thu, 1 Sep 2005 13:40:03 +0000 (13:40 +0000)
committerpkv <pkv@opencascade.com>
Thu, 1 Sep 2005 13:40:03 +0000 (13:40 +0000)
src/VISU_I/VISU_Mesh_i.cc

index 2a2f16849733a65e0858fb323ea43c232ee6c2a2..774b37114719bf3ca384a0a02a4af109ee2d1f16 100644 (file)
@@ -228,30 +228,40 @@ VISU::Storable* VISU::Mesh_i::Build (int theRestoring)
     VISU_Convertor::TOutput *anOutput;
     switch(myType){
     case VISU::TENTITY :
-      //jfa IPAL9284:anOutput = myResult->GetInput()->GetMeshOnEntity(myMeshName,myEntity);
       anOutput = myResult->GetInput()->GetMeshOnEntity(myMeshName,(VISU::TEntity)myEntity);//jfa IPAL9284
       aComment.sprintf("myComment=ENTITY;myType=%d;myMeshName=%s;myId=%d",
                       VISU::TENTITY,myMeshName.c_str(),myEntity);
+      //pkv f
+      myMeshPL->SetIDMapper(myResult->GetInput()-> // i.e. the VISU_Convertor
+                          GetMeshOnEntityIDMapper(myMeshName,(VISU::TEntity)myEntity));
+      //pkv t
       break;
     case VISU::TFAMILY :
-      //jfa IPAL9284:anOutput = myResult->GetInput()->GetMeshOnEntity(myMeshName,myEntity,mySubMeshName);
-      anOutput = myResult->GetInput()->GetFamilyOnEntity(myMeshName,(VISU::TEntity)myEntity,mySubMeshName);//jfa IPAL9284
+      anOutput = myResult->GetInput()->GetFamilyOnEntity(myMeshName,(VISU::TEntity)myEntity,mySubMeshName);
       aComment.sprintf("myComment=FAMILY;myType=%d;myMeshName=%s;myEntityId=%d;myName=%s",
                       VISU::TFAMILY,myMeshName.c_str(),myEntity,mySubMeshName.c_str());
+      //pkv f
+      myMeshPL->SetIDMapper(myResult->GetInput()-> // i.e. the VISU_Convertor
+                          GetFamilyOnEntityIDMapper(myMeshName,(VISU::TEntity)myEntity,mySubMeshName));
+      //pkv t  
+
       break;
     case VISU::TGROUP :
       anOutput = myResult->GetInput()->GetMeshOnGroup(myMeshName,mySubMeshName);
       aComment.sprintf("myComment=GROUP;myType=%d;myMeshName=%s;myName=%s",
                       VISU::TGROUP,myMeshName.c_str(),mySubMeshName.c_str());
+      
+      //pkv f
+      myMeshPL->SetIDMapper(myResult->GetInput()-> // i.e. the VISU_Convertor
+                           GetMeshOnGroupIDMapper(myMeshName,mySubMeshName));
+      //pkv t                      
       break;
     }
     if(anOutput == NULL) throw std::runtime_error("Mesh_i::Build - anOutput == NULL !!!");
+    //
     myMeshPL->SetInput(anOutput);
-    //pkv f
-    myMeshPL->SetIDMapper(myResult->GetInput()-> // i.e. the VISU_Convertor
-                          GetMeshOnEntityIDMapper(myMeshName,(VISU::TEntity)myEntity));
-    //pkv t
     myMeshPL->Build();
+    //
     if(!theRestoring) { //Setting IOR on the label
       myMeshPL->Init();
       string aResultEntry = myResult->GetEntry();