X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHClient%2FSMESH_Client.cxx;h=73ad16111c6d62fc1f33011195dc58f3ffa54dc4;hb=f5882cb24088610fb4f7d1cbcd41cb19a71bed2c;hp=5fa6bc833185c7fb4648c6600eca64a823254178;hpb=8d3d2084b73d927b857e77ae17ca62e0d74e090a;p=modules%2Fsmesh.git diff --git a/src/SMESHClient/SMESH_Client.cxx b/src/SMESHClient/SMESH_Client.cxx index 5fa6bc833..73ad16111 100644 --- a/src/SMESHClient/SMESH_Client.cxx +++ b/src/SMESHClient/SMESH_Client.cxx @@ -24,8 +24,10 @@ // Module : SMESH #include "SMESH_Client.hxx" -#include "SMESH_Mesh.hxx" + +#include "SMESHDS_Mesh.hxx" #include "SMESHDS_Script.hxx" +#include "SMESH_Mesh.hxx" #include "SALOME_NamingService.hxx" #include "SALOME_LifeCycleCORBA.hxx" @@ -747,30 +749,30 @@ namespace SMESH::log_array_var& theSeq, CORBA::Long theId) { - const SMESH::long_array& anIndexes = theSeq[theId].indexes; - CORBA::Long iind = 0, aNbElems = theSeq[theId].number; - - for (CORBA::Long anElemId = 0; anElemId < aNbElems; anElemId++) - { - // find element - const SMDS_MeshElement* elem = FindElement(theMesh, anIndexes[iind++]); - // nb nodes - int nbNodes = anIndexes[iind++]; - // nodes - std::vector aNodes (nbNodes); - for (int iNode = 0; iNode < nbNodes; iNode++) { - aNodes[iNode] = FindNode(theMesh, anIndexes[iind++]); - } - // nb faces - int nbFaces = anIndexes[iind++]; - // quantities - std::vector quantities (nbFaces); - for (int iFace = 0; iFace < nbFaces; iFace++) { - quantities[iFace] = anIndexes[iind++]; - } - // change - theMesh->ChangePolyhedronNodes(elem, aNodes, quantities); - } + // const SMESH::long_array& anIndexes = theSeq[theId].indexes; + // CORBA::Long iind = 0, aNbElems = theSeq[theId].number; + + // for (CORBA::Long anElemId = 0; anElemId < aNbElems; anElemId++) + // { + // // find element + // const SMDS_MeshElement* elem = FindElement(theMesh, anIndexes[iind++]); + // // nb nodes + // int nbNodes = anIndexes[iind++]; + // // nodes + // std::vector aNodes (nbNodes); + // for (int iNode = 0; iNode < nbNodes; iNode++) { + // aNodes[iNode] = FindNode(theMesh, anIndexes[iind++]); + // } + // // nb faces + // int nbFaces = anIndexes[iind++]; + // // quantities + // std::vector quantities (nbFaces); + // for (int iFace = 0; iFace < nbFaces; iFace++) { + // quantities[iFace] = anIndexes[iind++]; + // } + // // change + // theMesh->ChangePolyhedronNodes(elem, aNodes, quantities); + // } } } @@ -984,10 +986,10 @@ SMESH_Client::Update(bool theIsClear) ChangePolyhedronNodes(mySMDSMesh, aSeq, anId); break; case SMESH::RENUMBER: - for(CORBA::Long i=0; anElemId < aNbElems; anElemId++, i+=3) - { - mySMDSMesh->Renumber( anIndexes[i], anIndexes[i+1], anIndexes[i+2] ); - } + // for(CORBA::Long i=0; anElemId < aNbElems; anElemId++, i+=3) + // { + // mySMDSMesh->Renumber( anIndexes[i], anIndexes[i+1], anIndexes[i+2] ); + // } break; default:;