]> SALOME platform Git repositories - modules/smesh.git/blobdiff - doc/salome/examples/transforming_meshes_ex13.py
Salome HOME
Modify test: raise exception instead of sys.exit()
[modules/smesh.git] / doc / salome / examples / transforming_meshes_ex13.py
index bbdac25623e578728ffe372491ed039dd6847c91..94b6f7f22d7bc2d7035151a26b925a83bc4f37f1 100644 (file)
@@ -2,7 +2,7 @@
 
 
 import salome
-salome.salome_init()
+salome.salome_init_without_session()
 import GEOM
 from salome.geom import geomBuilder
 geompy = geomBuilder.New()
@@ -63,9 +63,9 @@ group1 = mesh3D.Group( faces[1] )
 
 # pass group0 and ids of faces of group1 to inverse
 nbRev = mesh3D.Reorient2DBy3D([ group0, group1.GetIDs() ], mesh3D, theOutsideNormal=False)
-print "Nb reoriented faces:", nbRev
+print("Nb reoriented faces:", nbRev)
 
 # orient the reversed faces back
 nbRev = mesh3D.Reorient2DBy3D( mesh3D, mesh3D, theOutsideNormal=True)
-print "Nb re-reoriented faces:", nbRev
+print("Nb re-reoriented faces:", nbRev)