X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fdefining_hypotheses_ex11.py;h=961a56d9cdbf3852e445af5d1f99a6e39fb17133;hb=54182913fbb9df65a3f4cc96f55db3618835ecd8;hp=be550477883fd1d0a6056f90f8fecb4c872d1b0a;hpb=1cd84a9d45de44f8fd0af83dbe52d83b47131e04;p=modules%2Fsmesh.git diff --git a/doc/salome/examples/defining_hypotheses_ex11.py b/doc/salome/examples/defining_hypotheses_ex11.py index be5504778..961a56d9c 100644 --- a/doc/salome/examples/defining_hypotheses_ex11.py +++ b/doc/salome/examples/defining_hypotheses_ex11.py @@ -2,7 +2,15 @@ # Project triangles from one meshed face to another mesh on the same box -from smesh import * +import salome +salome.salome_init() +import GEOM +from salome.geom import geomBuilder +geompy = geomBuilder.New(salome.myStudy) + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder +smesh = smeshBuilder.New(salome.myStudy) # Prepare geometry @@ -20,7 +28,7 @@ geompy.addToStudyInFather( box, Face_1, 'Face_1' ) geompy.addToStudyInFather( box, Face_2, 'Face_2' ) # Make the source mesh with Netgem2D -src_mesh = Mesh(Face_1, "Source mesh") +src_mesh = smesh.Mesh(Face_1, "Source mesh") src_mesh.Segment().NumberOfSegments(15) src_mesh.Triangle() src_mesh.Compute()