X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_Sphere.py;h=45306bed5f44014805f1689eb4b577851cb910d9;hb=6b50a0a30a29cc3a8a0a60777f430ac266277ac6;hp=9c6bc42a04d9047168623ad6dd79e715ce372e45;hpb=ed456586bfb1411c5bff73b221658766689a6253;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_Sphere.py b/src/SMESH_SWIG/SMESH_Sphere.py index 9c6bc42a0..45306bed5 100644 --- a/src/SMESH_SWIG/SMESH_Sphere.py +++ b/src/SMESH_SWIG/SMESH_Sphere.py @@ -17,7 +17,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # # # @@ -29,7 +29,7 @@ from geompy import * from math import * -from meshpy import * +import smesh # It is an example of creating a hexahedrical mesh on a sphere. # @@ -103,5 +103,9 @@ Id_Result = addToStudy(Result, "Result") #----------------------------------------------------------------------- #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()