X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Pattern_i.cxx;h=40d68e5b9b9e620b86daaa7b9c7cfe1bdc39cfe1;hp=675b99f8a677c7110457a360c95bb2b6c521f33d;hb=20248b6e76a67595f7f449a71ebbf18c13429389;hpb=251f8c052dd12dd29922210dc901b295fe999a0e diff --git a/src/SMESH_I/SMESH_Pattern_i.cxx b/src/SMESH_I/SMESH_Pattern_i.cxx index 675b99f8a..40d68e5b9 100644 --- a/src/SMESH_I/SMESH_Pattern_i.cxx +++ b/src/SMESH_I/SMESH_Pattern_i.cxx @@ -45,6 +45,8 @@ #include #include +using namespace std; + using SMESH::TPythonDump; using SMESH::TVar; @@ -83,28 +85,31 @@ SMESH::SMESH_Pattern_ptr SMESH_Gen_i::GetPattern() //======================================================================= SMESH_Pattern_i::SMESH_Pattern_i( SMESH_Gen_i* theGen_i ): - myGen( theGen_i ) + myGen( theGen_i ) { } //======================================================================= //function : getMesh -//purpose : +//purpose : //======================================================================= ::SMESH_Mesh* SMESH_Pattern_i::getMesh( SMESH::SMESH_Mesh_ptr & theMesh ) { - SMESH_Mesh_i* anImplPtr = + SMESH_Mesh_i* anImplPtr = dynamic_cast( SMESH_Gen_i::GetServant( theMesh ).in() ); if ( anImplPtr ) + { + anImplPtr->Load(); return & anImplPtr->GetImpl(); + } return 0; } //======================================================================= //function : LoadFromFile -//purpose : +//purpose : //======================================================================= CORBA::Boolean SMESH_Pattern_i::LoadFromFile(const char* theFileContents) @@ -281,7 +286,7 @@ SMESH::point_array* list xyzList; set fset; - for (int i = 0; i < theFacesIDs.length(); i++) + for ( CORBA::ULong i = 0; i < theFacesIDs.length(); i++) { CORBA::Long index = theFacesIDs[i]; const SMDS_MeshElement * elem = aMesh->GetMeshDS()->FindElement(index); @@ -342,7 +347,7 @@ SMESH::point_array* list xyzList; set vset; - for (int i = 0; i < theVolumesIDs.length(); i++) + for ( CORBA::ULong i = 0; i < theVolumesIDs.length(); i++) { CORBA::Long index = theVolumesIDs[i]; const SMDS_MeshElement * elem = aMesh->GetMeshDS()->FindElement(index);