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
Copyright update 2021
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_demo_hexa2_upd.py
diff --git
a/src/SMESH_SWIG/SMESH_demo_hexa2_upd.py
b/src/SMESH_SWIG/SMESH_demo_hexa2_upd.py
old mode 100755
(executable)
new mode 100644
(file)
index
604f217
..
d6c3c43
--- a/
src/SMESH_SWIG/SMESH_demo_hexa2_upd.py
+++ b/
src/SMESH_SWIG/SMESH_demo_hexa2_upd.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-20
21
CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-36,11
+36,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()
import math
import math
@@
-131,7
+131,7
@@
for i in range(8):
idEdgeZ.append(geompy.addToStudyInFather(vol,edgeZ[i],"EdgeZ"+str(i+1)))
### ---------------------------- SMESH --------------------------------------
idEdgeZ.append(geompy.addToStudyInFather(vol,edgeZ[i],"EdgeZ"+str(i+1)))
### ---------------------------- SMESH --------------------------------------
-smesh.
SetCurrentStudy(salome.myStudy
)
+smesh.
UpdateStudy(
)
# ---- init a Mesh with the volume
# ---- init a Mesh with the volume
@@
-176,7
+176,7
@@
for i in range(8):
smesh.SetName(algo.GetSubMesh(), "SubMeshEdgeZ_"+str(i+1))
smesh.SetName(algo.GetSubMesh(), "SubMeshEdgeZ_"+str(i+1))
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()
print("-------------------------- compute the mesh of the volume")
print("-------------------------- compute the mesh of the volume")
@@
-197,4
+197,4
@@
if ret != 0:
else:
print("problem when Computing the mesh")
else:
print("problem when Computing the mesh")
-salome.sg.updateObjBrowser(
True
)
+salome.sg.updateObjBrowser()