Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[tuleap26358] : non regression test
[modules/smesh.git]
/
doc
/
salome
/
examples
/
creating_meshes_ex07.py
diff --git
a/doc/salome/examples/creating_meshes_ex07.py
b/doc/salome/examples/creating_meshes_ex07.py
index db825507bef1abb08950b2c1c542778596744d81..f18109cda9e428b8a189eb461b5534e197abe3bf 100644
(file)
--- a/
doc/salome/examples/creating_meshes_ex07.py
+++ b/
doc/salome/examples/creating_meshes_ex07.py
@@
-1,12
+1,9
@@
# Building a compound of meshes
import salome
# Building a compound of meshes
import salome
-salome.salome_init()
-import GEOM
+salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
-
-import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
@@
-77,5
+74,12
@@
Compound1 = smesh.Concatenate([Mesh_inf, Mesh_sup], 0, 1, 1e-05,
Compound2 = smesh.Concatenate([Mesh_inf, Mesh_sup], 1, 0, 1e-05, True,
name='Compound with UniteGrps and GrpsOfAllElems')
Compound2 = smesh.Concatenate([Mesh_inf, Mesh_sup], 1, 0, 1e-05, True,
name='Compound with UniteGrps and GrpsOfAllElems')
+# copy Gsup1 into a separate mesh and translate it
+groupMesh = Mesh_inf.TranslateObjectMakeMesh( Gsup1, [300,0,0] )
+
+# add Ginf2 to groupMesh
+smesh.Concatenate([Ginf2], False, meshToAppendTo = groupMesh )
+
+
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()