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
Add .py extension to tests filenames
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex17.py
diff --git
a/doc/salome/examples/modifying_meshes_ex17.py
b/doc/salome/examples/modifying_meshes_ex17.py
index 732953ab259bd006bcc64cfc8b375a030da6cc02..939278143b58656679604579a6eca6712e4f7395 100644
(file)
--- a/
doc/salome/examples/modifying_meshes_ex17.py
+++ b/
doc/salome/examples/modifying_meshes_ex17.py
@@
-1,7
+1,17
@@
# Uniting two Triangles
# Uniting two Triangles
+
import salome
import salome
-import smesh
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New()
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New()
+import salome_notebook
+
# create an empty mesh structure
mesh = smesh.Mesh()
# create an empty mesh structure
mesh = smesh.Mesh()
@@
-41,4
+51,4
@@
res = mesh.DeleteDiag(bb[1], tt[2])
if not res: print "failed!"
else: print "done."
if not res: print "failed!"
else: print "done."
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser()