From: prascle Date: Thu, 21 Mar 2013 23:57:23 +0000 (+0000) Subject: PR: examples adaptation to geomBuilder and smeshBuilder X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a253cdd1ea59df12f02423613434b0f4a91c29d;p=modules%2Fsmesh.git PR: examples adaptation to geomBuilder and smeshBuilder --- diff --git a/doc/salome/examples/modifying_meshes_ex22.py b/doc/salome/examples/modifying_meshes_ex22.py index e867a35c1..e6d5fd6ed 100644 --- a/doc/salome/examples/modifying_meshes_ex22.py +++ b/doc/salome/examples/modifying_meshes_ex22.py @@ -22,8 +22,8 @@ face = faces[7] geompy.addToStudyInFather(SMESH_mechanic.shape_mesh, face, "face circular top") # create a vector for extrusion -point = smesh.PointStruct(0., 0., 5.) -vector = smesh.DirStruct(point) +point = SMESH.PointStruct(0., 0., 5.) +vector = SMESH.DirStruct(point) # create a group to be extruded GroupTri = mesh.GroupOnGeom(face, "Group of faces (extrusion)", SMESH.FACE) diff --git a/doc/salome/examples/modifying_meshes_ex23.py b/doc/salome/examples/modifying_meshes_ex23.py index cd1be2252..bad439d99 100644 --- a/doc/salome/examples/modifying_meshes_ex23.py +++ b/doc/salome/examples/modifying_meshes_ex23.py @@ -96,7 +96,7 @@ Edge_Circle_mesh = Mesh1D(Edge_Circle , 8, "Edge_Circle") # ExtrusionAlongPath # IDsOfElements, PathMesh, PathShape, NodeStart, # HasAngles, Angles, HasRefPoint, RefPoint -refPoint = smesh.PointStruct(0, 0, 0) +refPoint = SMESH.PointStruct(0, 0, 0) a10 = 10.0*math.pi/180.0 a45 = 45.0*math.pi/180.0 diff --git a/doc/salome/examples/notebook_smesh.py b/doc/salome/examples/notebook_smesh.py index 084a43665..e52ef1b54 100644 --- a/doc/salome/examples/notebook_smesh.py +++ b/doc/salome/examples/notebook_smesh.py @@ -42,6 +42,6 @@ algo3D.MaxElementVolume("MaxElementVolume") ret = tetra.Compute() # translate the mesh -point = smesh.PointStruct("Offset", 0., 0.) -vector = smesh.DirStruct(point) +point = SMESH.PointStruct("Offset", 0., 0.) +vector = SMESH.DirStruct(point) tetra.TranslateObject(tetra, vector, 0) diff --git a/doc/salome/examples/transforming_meshes_ex01.py b/doc/salome/examples/transforming_meshes_ex01.py index 0ea75cc85..dc61324ec 100644 --- a/doc/salome/examples/transforming_meshes_ex01.py +++ b/doc/salome/examples/transforming_meshes_ex01.py @@ -1,13 +1,14 @@ # Translation import SMESH_mechanic +import SMESH smesh = SMESH_mechanic.smesh mesh = SMESH_mechanic.mesh # define translation vector -point = smesh.PointStruct(-150., -150., 0.) -vector =smesh.DirStruct(point) +point = SMESH.PointStruct(-150., -150., 0.) +vector =SMESH.DirStruct(point) # translate a mesh doCopy = 1 diff --git a/doc/salome/examples/transforming_meshes_ex06.py b/doc/salome/examples/transforming_meshes_ex06.py index 209ce2a68..c9c8353d8 100644 --- a/doc/salome/examples/transforming_meshes_ex06.py +++ b/doc/salome/examples/transforming_meshes_ex06.py @@ -51,7 +51,7 @@ circlemesh.Compute() # extrusion of the mesh trias.ExtrusionAlongPath([], circlemesh, circle, - 1, 0, [], 0, smesh.PointStruct(0, 0, 0)) + 1, 0, [], 0, SMESH.PointStruct(0, 0, 0)) # merge nodes print "Number of nodes before MergeNodes:",