From: mpa Date: Tue, 19 Nov 2013 11:38:59 +0000 (+0000) Subject: - Modifing Geometry and Mesh Python scripts from SALOME 6 and before X-Git-Tag: V7_3_0a1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b580c0bd0a3c1b617777b38eb4ecdefd792b120;p=modules%2Fsmesh.git - Modifing Geometry and Mesh Python scripts from SALOME 6 and before --- diff --git a/doc/salome/examples/defining_hypotheses_ex12.py b/doc/salome/examples/defining_hypotheses_ex12.py index 5b6842fb3..827c4c5e2 100644 --- a/doc/salome/examples/defining_hypotheses_ex12.py +++ b/doc/salome/examples/defining_hypotheses_ex12.py @@ -9,7 +9,7 @@ geompy = geomBuilder.New(salome.myStudy) import SMESH, SALOMEDS from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) -import StdMeshers +from salome.StdMeshers import StdMeshersBuilder # Create face and explode it on edges face = geompy.MakeFaceHW(100, 100, 1) diff --git a/doc/salome/examples/defining_hypotheses_ex15.py b/doc/salome/examples/defining_hypotheses_ex15.py index 6e077d894..2e01e1b32 100644 --- a/doc/salome/examples/defining_hypotheses_ex15.py +++ b/doc/salome/examples/defining_hypotheses_ex15.py @@ -9,7 +9,7 @@ geompy = geomBuilder.New(salome.myStudy) import SMESH, SALOMEDS from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) -import StdMeshers +from salome.StdMeshers import StdMeshersBuilder # Make quadrangle face and explode it on edges. Vertex_1 = geompy.MakeVertex(0, 0, 0) @@ -31,7 +31,7 @@ Mesh_1 = smesh.Mesh(Quadrangle_Face_1) # Create Quadrangle parameters and # define the Type as Quadrangle Preference Quadrangle_Parameters_1 = smesh.CreateHypothesis('QuadrangleParams') -Quadrangle_Parameters_1.SetQuadType( StdMeshers.QUAD_QUADRANGLE_PREF ) +Quadrangle_Parameters_1.SetQuadType( StdMeshersBuilder.QUAD_QUADRANGLE_PREF ) # Define other hypotheses and algorithms Regular_1D = Mesh_1.Segment() @@ -50,5 +50,5 @@ SubMesh_1 = Regular_1D_1.GetSubMesh() isDone = Mesh_1.Compute() # Change type to Reduced and compute again -Quadrangle_Parameters_1.SetQuadType( StdMeshers.QUAD_REDUCED ) +Quadrangle_Parameters_1.SetQuadType( StdMeshersBuilder.QUAD_REDUCED ) isDone = Mesh_1.Compute()