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 branch 'V9_9_BR'
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
ex24_cylinder.py
diff --git
a/src/SMESH_SWIG/ex24_cylinder.py
b/src/SMESH_SWIG/ex24_cylinder.py
index bcb1cd4991db7972d168ed0d70f99b7ef875bbe8..2946be21f918b4b226aa10e8da70de32d2187dab 100644
(file)
--- a/
src/SMESH_SWIG/ex24_cylinder.py
+++ b/
src/SMESH_SWIG/ex24_cylinder.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
22
CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-26,11
+26,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()
geo = geompy
geo = geompy
@@
-103,7
+103,7
@@
geompy.DifferenceList(group_1, [group_1_box])
# Mesh the blocks with hexahedral
# -------------------------------
# Mesh the blocks with hexahedral
# -------------------------------
-smesh.
SetCurrentStudy(salome.myStudy
)
+smesh.
UpdateStudy(
)
def discretize(x, y, z, n, s=blocks):
p = geompy.MakeVertex(x, y, z)
def discretize(x, y, z, n, s=blocks):
p = geompy.MakeVertex(x, y, z)
@@
-134,4
+134,4
@@
hexa.Group(group_1)
# Update object browser
# ---------------------
# Update object browser
# ---------------------
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser()