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
Merge Python 3 porting.
[modules/smesh.git]
/
doc
/
salome
/
examples
/
quality_controls_ex05.py
diff --git
a/doc/salome/examples/quality_controls_ex05.py
b/doc/salome/examples/quality_controls_ex05.py
index cbd2178391639e24954293f4a1508252f8938321..1ec552f752896f40d3c7bccc26f7ab1a2742cc2d 100644
(file)
--- a/
doc/salome/examples/quality_controls_ex05.py
+++ b/
doc/salome/examples/quality_controls_ex05.py
@@
-5,11
+5,11
@@
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
-geompy = geomBuilder.New(
salome.myStudy
)
+geompy = geomBuilder.New()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
salome.myStudy
)
+smesh = smeshBuilder.New()
# create box
box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
# create box
box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
@@
-42,13
+42,13
@@
aGroup = mesh.CreateEmptyGroup(SMESH.NODE, "Free_nodes")
aGroup.Add(anNodeIds)
# print the result
aGroup.Add(anNodeIds)
# print the result
-print
"Criterion: Free nodes Nb = ", len(anNodeIds
)
+print
("Criterion: Free nodes Nb = ", len(anNodeIds)
)
j = 1
for i in range(len(anNodeIds)):
j = 1
for i in range(len(anNodeIds)):
- if j > 20: j = 1; print
""
- print
anNodeIds[i],
+ if j > 20: j = 1; print
("")
+ print
(anNodeIds[i], end=' ')
j = j + 1
pass
j = j + 1
pass
-print
""
+print
("")
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()