From bb3b73ab7f638a6a543d3318805b0e3a2cfe8890 Mon Sep 17 00:00:00 2001 From: pkv Date: Thu, 1 Sep 2005 13:40:03 +0000 Subject: [PATCH] provides ID mapping for entities --- src/VISU_I/VISU_Mesh_i.cc | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/VISU_I/VISU_Mesh_i.cc b/src/VISU_I/VISU_Mesh_i.cc index 2a2f1684..774b3711 100644 --- a/src/VISU_I/VISU_Mesh_i.cc +++ b/src/VISU_I/VISU_Mesh_i.cc @@ -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(); -- 2.39.2