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 multi-study removal branch.
[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 4628ce987b82f3ded06d38adfd25a6584a304b82..57b7c1ff13c4a0fb5f90211b5433a02df5dc44e2 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-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-201
6
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)
@@
-130,3
+130,8
@@
hexa.Compute()
hexa.Group(group_a)
hexa.Group(group_b)
hexa.Group(group_1)
hexa.Group(group_a)
hexa.Group(group_b)
hexa.Group(group_1)
+
+# Update object browser
+# ---------------------
+
+salome.sg.updateObjBrowser()