X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Finput%2Fsmesh_migration.doc;h=9c8af6c9d9ccb7937d89cb0a1415dee657a3cfea;hb=7a3ecab720cc517ace17c5c4677fd3c20c0051ee;hp=082baf530b4f392d4d72895c120ceb55bf17655e;hpb=1ed1d732091c9ad42ea8cda5b4971e12e8e859d0;p=modules%2Fsmesh.git
diff --git a/doc/salome/gui/SMESH/input/smesh_migration.doc b/doc/salome/gui/SMESH/input/smesh_migration.doc
index 082baf530..9c8af6c9d 100644
--- a/doc/salome/gui/SMESH/input/smesh_migration.doc
+++ b/doc/salome/gui/SMESH/input/smesh_migration.doc
@@ -1,18 +1,13 @@
/*!
-\page smesh_migration_page Modifing Mesh Python scripts from SALOME 6 and before
+\page smesh_migration_page Modifying Mesh Python scripts from SALOME 6 and before
-\n With SALOME 7.2, the Python interface for %Mesh has been slightly modified to offer new functionality:
+\n In SALOME 7.2, the Python interface for %Mesh has been slightly modified to offer new functionality:
-
- - \subpage tui_execution_distribution_page
- - \subpage tui_auto_completion_documentation_page
-
+\n Scripts generated for SALOME 6 and older versions must be adapted to work in SALOME 7.2 with full functionality.
+\n The compatibility mode allows old scripts to work in almost all cases, but with a warning.
-\n Scripts generated for SALOME 6 and older versions must be adapted to work in SALOME 7.2 with all functionality.
-\n A compatibility mode allows old scripts to work in almost all cases, but with a warning.
-
-See also \subpage geompy_migration_page
+See also \subpage geompy_migration_page
Salome initialisation must always be done as shown below
\n (salome_init() can be invoked safely several times):
@@ -22,23 +17,23 @@ salome.salome_init()
\endcode
smesh initialisation is modified.
-\n old mode (from dump):
+\n the old mode (from dump):
\code
import smesh, SMESH, SALOMEDS
-smesh.SetCurrentStudy(theStudy)
+smesh.UpdateStudy()
\endcode
-new mode:
+\n the new mode:
\code
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(salome.myStudy)
+smesh = smeshBuilder.New()
\endcode
Of course, from smesh import * is no more possible.
-\n You have to explicitely write smesh.some_method().
+\n You have to explicitly write smesh.some_method().
-algorithms are no longer in the namespace smesh but in smeshBuilder.
+All algorithms have been transferred from the namespace smesh to the namespace smeshBuilder.
\n For instance:
\code
MEFISTO_2D_1 = Mesh_1.Triangle(algo=smesh.MEFISTO,geom=Face_1)
@@ -47,18 +42,18 @@ is replaced by:
\code
MEFISTO_2D_1 = Mesh_1.Triangle(algo=smeshBuilder.MEFISTO,geom=Face_1)
\endcode
-\n StdMeshers algoritms concerned are REGULAR, PYTHON, COMPOSITE, MEFISTO, Hexa, QUADRANGLE, RADIAL_QUAD.
-\n SMESH Plugins provides algorithms such as: NETGEN, NETGEN_FULL, FULL_NETGEN, NETGEN_1D2D3D, NETGEN_1D2D, NETGEN_2D, NETGEN_3D.
+\n StdMeshers algorithms concerned are REGULAR, PYTHON, COMPOSITE, MEFISTO, Hexa, QUADRANGLE, RADIAL_QUAD.
+\n SMESH Plugins provide such algorithms as: NETGEN, NETGEN_FULL, FULL_NETGEN, NETGEN_1D2D3D, NETGEN_1D2D, NETGEN_2D, NETGEN_3D.
\n If you use DISTENE plugins, you also have BLSURF, GHS3D, GHS3DPRL, Hexotic.
-Some variables where at the same time in namespaces smesh and SMESH.
-They are now only in namespace SMESH..
-\n The dump function was already using the namespace SMESH,
-so, if your script was built with the help of dump function, it should be already OK for that part.
+Some variables were available in both namespaces smesh and SMESH.
+Now they are available only in namespace SMESH.
+\n The dump function used only the namespace SMESH,
+so, if your script was built with the help of the dump function, it should be already OK in this respect.
-The more used variables concerned are:
-\n NODE, EDGE, FACE, VOLUME, ALL.
-\n FT_xxx, geom_xxx, ADD_xxx...
+The most used variables concerned are:
+\n NODE, EDGE, FACE, VOLUME, ALL.
+\n FT_xxx, geom_xxx, ADD_xxx...
\n For instance:
\code
@@ -84,7 +79,7 @@ is replaced by:
Compound1 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 0, 1, 1e-05)
\endcode
-If you need to import explicitely an %SMESH Plugin, they are now in separate namespaces.
+If you need to import a %SMESH Plugin explicitly, keep in mind that they are now located in separate namespaces.
\n For instance:
\code
import StdMeshers
@@ -98,7 +93,7 @@ is replaced by:
from salome.StdMeshers import StdMeshersBuilder
from salome.NETGENPlugin import NETGENPluginBuilder
from salome.BLSURFPlugin import BLSURFPluginBuilder
-from salomeGHS3DPlugin .import GHS3DPluginBuilder
+from salome.GHS3DPlugin import GHS3DPluginBuilder
from salome.HexoticPLUGIN import HexoticPLUGINBuilder
\endcode