X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Finput%2Fsmesh_migration.rst;h=228622b774de7a50d2dd6ef52edfbd0f5baf2c4f;hp=5a2202486c227ca283c9222df3ff27723e4114b3;hb=7e7ad126e7cb751520a749163364e1fbe284a469;hpb=f513b3c72c0c9c1a0c68bae34813cb41ac6fdcd5 diff --git a/doc/salome/gui/SMESH/input/smesh_migration.rst b/doc/salome/gui/SMESH/input/smesh_migration.rst index 5a2202486..228622b77 100644 --- a/doc/salome/gui/SMESH/input/smesh_migration.rst +++ b/doc/salome/gui/SMESH/input/smesh_migration.rst @@ -1,8 +1,8 @@ .. _smesh_migration_page: -***************************************************** -Modifing Mesh Python scripts from SALOME 6 and before -***************************************************** +****************************************************** +Modifying Mesh Python scripts from SALOME 6 and before +****************************************************** In SALOME 7.2, the Python interface for Mesh has been slightly modified to offer new functionality: @@ -28,12 +28,12 @@ The compatibility mode allows old scripts to work in almost all cases, but with import SMESH, SALOMEDS from salome.smesh import smeshBuilder - smesh = smeshBuilder.New(salome.myStudy) + smesh = smeshBuilder.New() * Of course, **from smesh import** * is **no more possible.** - You have to explicitely write *smesh.some_method()*. + You have to explicitly write *smesh.some_method()*. * All **algorithms** have been transferred from the namespace *smesh* to the namespace *smeshBuilder*. @@ -84,7 +84,7 @@ The compatibility mode allows old scripts to work in almost all cases, but with Compound1 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 0, 1, 1e-05) -* If you need to **import a SMESH Plugin** explicitely, keep in mind that they are now located in separate namespaces. +* If you need to **import a SMESH Plugin** explicitly, keep in mind that they are now located in separate namespaces. For instance::