Salome HOME
Switch to SSL mode for tests : naive approach
[modules/smesh.git] / doc / salome / examples / defining_hypotheses_ex11.py
index dc6c3c5aece618b5f092aa6fb98e30fa73aaecd4..5e85222adda76f3d245eaa83f6b837e9a350cd4d 100644 (file)
@@ -3,14 +3,14 @@
 # Project triangles from one meshed face to another mesh on the same box
 
 import salome
-salome.salome_init()
+salome.salome_init_without_session()
 import GEOM
 from salome.geom import geomBuilder
-geompy = geomBuilder.New(salome.myStudy)
+geompy = geomBuilder.New()
 
 import SMESH, SALOMEDS
 from salome.smesh import smeshBuilder
-smesh =  smeshBuilder.New(salome.myStudy)
+smesh =  smeshBuilder.New()
 
 # Prepare geometry
 
@@ -34,7 +34,7 @@ src_mesh.Segment().NumberOfSegments(15)
 src_mesh.Triangle()
 src_mesh.Compute()
 
-# Mesh the target mesh using the algoritm Projection1D2D
+# Mesh the target mesh using the algorithm Projection1D2D
 tgt_mesh = smesh.Mesh(Face_2, "Target mesh")
 tgt_mesh.Projection1D2D().SourceFace(Face_1,src_mesh)
 tgt_mesh.Compute()