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
IPAL9153, IPAL9148, IPAL9150
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_Sphere.py
diff --git
a/src/SMESH_SWIG/SMESH_Sphere.py
b/src/SMESH_SWIG/SMESH_Sphere.py
index 9c6bc42a04d9047168623ad6dd79e715ce372e45..893e5441f31448f97b74d717a7d85901636b7f07 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_Sphere.py
+++ b/
src/SMESH_SWIG/SMESH_Sphere.py
@@
-29,7
+29,7
@@
from geompy import *
from math import *
from geompy import *
from math import *
-from meshpy import *
+import smesh
# It is an example of creating a hexahedrical mesh on a sphere.
#
# It is an example of creating a hexahedrical mesh on a sphere.
#
@@
-103,5
+103,9
@@
Id_Result = addToStudy(Result, "Result")
#-----------------------------------------------------------------------
#Meshing
#-----------------------------------------------------------------------
#Meshing
-my_hexa = MeshHexa(Result, NbSeg, "Sphere_Mesh")
+my_hexa = smesh.Mesh(Result, "Sphere_Mesh")
+algo = my_hexa.Segment()
+algo.NumberOfSegments(NbSeg)
+my_hexa.Quadrangle()
+my_hexa.Hexahedron()
my_hexa.Compute()
my_hexa.Compute()