Salome HOME
Update copyrights
[modules/smesh.git] / src / SMESH_SWIG / SMESH_Partition1_tetra.py
index 0b6b9824588969a18058a2c1afc77df161d8a919..d056f370ccdb3394d3691e5568cc17dbd962113e 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -29,11 +29,11 @@ import salome
 salome.salome_init()
 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()
 
 from math import sqrt
 
@@ -43,7 +43,7 @@ from math import sqrt
 barier_height = 7.0
 barier_radius = 5.6 / 2 # Rayon de la bariere
 colis_radius = 1.0 / 2  # Rayon du colis
-colis_step = 2.0        # Distance s\89parant deux colis
+colis_step = 2.0        # Distance sparant deux colis
 cc_width = 0.11         # Epaisseur du complement de colisage
 
 # --
@@ -172,8 +172,8 @@ ret = mesh.Compute()
 
 if ret != 0:
     log=mesh.GetLog(0) # no erase trace
-    for linelog in log:
-        print(linelog)
+    for linelog in log:
+        print(linelog)
     print("Information about the Mesh_mechanic:")
     print("Number of nodes       : ", mesh.NbNodes())
     print("Number of edges       : ", mesh.NbEdges())
@@ -184,4 +184,4 @@ if ret != 0:
 else:
     print("problem when computing the mesh")
 
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()