From 2d17e1361091299ae48529881e6a6063c4e1060b Mon Sep 17 00:00:00 2001 From: prascle Date: Fri, 22 Mar 2013 08:30:21 +0000 Subject: [PATCH] PR: examples adaptation --- doc/salome/examples/transforming_meshes_ex02.py | 3 ++- doc/salome/examples/transforming_meshes_ex04.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/salome/examples/transforming_meshes_ex02.py b/doc/salome/examples/transforming_meshes_ex02.py index f96a6bb41..5b3ff287e 100644 --- a/doc/salome/examples/transforming_meshes_ex02.py +++ b/doc/salome/examples/transforming_meshes_ex02.py @@ -3,12 +3,13 @@ import math import SMESH_mechanic +import SMESH smesh = SMESH_mechanic.smesh mesh = SMESH_mechanic.mesh # define rotation axis and angle -axisXYZ = smesh.AxisStruct(0., 0., 0., 5., 5., 20.) +axisXYZ = SMESH.AxisStruct(0., 0., 0., 5., 5., 20.) angle270 = 1.5 * math.pi # rotate a mesh diff --git a/doc/salome/examples/transforming_meshes_ex04.py b/doc/salome/examples/transforming_meshes_ex04.py index 0bfea6188..910035521 100644 --- a/doc/salome/examples/transforming_meshes_ex04.py +++ b/doc/salome/examples/transforming_meshes_ex04.py @@ -3,11 +3,12 @@ import math import SMESH_mechanic +import SMESH smesh = SMESH_mechanic.smesh mesh = SMESH_mechanic.mesh # create a symmetrical copy of the mesh mirrored through a point -axis = smesh.AxisStruct(0, 0, 0, 0, 0, 0) +axis = SMESH.AxisStruct(0, 0, 0, 0, 0, 0) mesh.Mirror([], axis, smesh.POINT, 1) -- 2.39.2