Salome HOME
Update copyright notes (for 2010)
[modules/smesh.git] / src / SMESH_SWIG / SMESH_test.py
index 23f0654012765d1b0b2743ffe55da77a1fe07bbd..a80121aa4ea2f056b131c378b6bb1f4369ad35c8 100644 (file)
@@ -1,6 +1,7 @@
-#  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
+#  -*- coding: iso-8859-1 -*-
+#  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
 #
-#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+#  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 #
 #  This library is free software; you can redistribute it and/or
 #  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-#
+#  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+
+#  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
 #  File   : SMESH_test.py
 #  Module : SMESH
-
+#
 import salome
 import geompy
 import smesh
@@ -56,6 +57,7 @@ ide = geompy.addToStudyInFather(face, edge, name)
 
 # ---- SMESH
 
+smesh.SetCurrentStudy(salome.myStudy)
 box = salome.IDToObject(idb)
 mesh = smesh.Mesh(box, "Meshbox")
 
@@ -124,11 +126,17 @@ for a in log:
     elif comType == 2:
         for i in range(a.number):
             ind = a.indexes[ii]
+           print ind
             ii = ii+1
+           print ii
             i1 = a.indexes[ii]
             ii = ii+1
             i2 = a.indexes[ii]
+           print i2
             ii = ii+1
+           print "ii", ii
             i3 = a.indexes[ii]
+           print i3
+            #ii = ii+1
             ii = ii+1
             print "AddTriangle %i - %i %i %i" % (ind, i1, i2, i3)