From 9b580c0bd0a3c1b617777b38eb4ecdefd792b120 Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 19 Nov 2013 11:38:59 +0000 Subject: [PATCH] - Modifing Geometry and Mesh Python scripts from SALOME 6 and before --- doc/salome/examples/defining_hypotheses_ex12.py | 2 +- doc/salome/examples/defining_hypotheses_ex15.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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()