]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PR: examples adaptation to geomBuilder and smeshBuilder
authorprascle <prascle>
Thu, 21 Mar 2013 23:57:23 +0000 (23:57 +0000)
committerprascle <prascle>
Thu, 21 Mar 2013 23:57:23 +0000 (23:57 +0000)
doc/salome/examples/modifying_meshes_ex22.py
doc/salome/examples/modifying_meshes_ex23.py
doc/salome/examples/notebook_smesh.py
doc/salome/examples/transforming_meshes_ex01.py
doc/salome/examples/transforming_meshes_ex06.py

index e867a35c1623a82db7aced3a21452d66fde987dd..e6d5fd6edb9e93d2a9adef48f6856d485aee188e 100644 (file)
@@ -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)
index cd1be22520332f2b426db6ae96a36baa34c4c573..bad439d997717a62bb4a29851d28ea6fb381e4de 100644 (file)
@@ -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
 
index 084a436654e8366e15a93010b6e1d1a9700dc1e3..e52ef1b540def8dbac9bf39224465d343ac69837 100644 (file)
@@ -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)
index 0ea75cc8523ddebe1fac3da725d058cc8c3950d5..dc61324eccecfb125f7e104030a14a51048ad257 100644 (file)
@@ -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
index 209ce2a68ff18596e8ba9614c1e1628db4e46f68..c9c8353d8a62676593bceafc67eeb15bb3b007b1 100644 (file)
@@ -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:",