Salome HOME
correct previous integration (Porting to Python 2.6)
authordmv <dmv@opencascade.com>
Mon, 12 Oct 2009 13:47:48 +0000 (13:47 +0000)
committerdmv <dmv@opencascade.com>
Mon, 12 Oct 2009 13:47:48 +0000 (13:47 +0000)
35 files changed:
src/GEOM_SWIG/GEOM_Nut.py
src/GEOM_SWIG/GEOM_ObjectInfo.py
src/GEOM_SWIG/GEOM_Partition1.py
src/GEOM_SWIG/GEOM_Partition2.py
src/GEOM_SWIG/GEOM_Partition3.py
src/GEOM_SWIG/GEOM_Partition4.py
src/GEOM_SWIG/GEOM_Partition5.py
src/GEOM_SWIG/GEOM_Sketcher.py
src/GEOM_SWIG/GEOM_Spanner.py
src/GEOM_SWIG/GEOM_TestAll.py
src/GEOM_SWIG/GEOM_TestHealing.py
src/GEOM_SWIG/GEOM_TestMeasures.py
src/GEOM_SWIG/GEOM_TestOthers.py
src/GEOM_SWIG/GEOM_blocks.py
src/GEOM_SWIG/GEOM_cyl2complementary.py
src/GEOM_SWIG/GEOM_example.py
src/GEOM_SWIG/GEOM_example2.py
src/GEOM_SWIG/GEOM_example3.py
src/GEOM_SWIG/GEOM_example4.py
src/GEOM_SWIG/GEOM_example5.py
src/GEOM_SWIG/GEOM_example6.py
src/GEOM_SWIG/GEOM_moteur.py
src/GEOM_SWIG/GEOM_shared_modules.py
src/GEOM_SWIG/GEOM_shellSolid.py
src/GEOM_SWIG/GEOM_tube_geom.py
src/GEOM_SWIG/GEOM_tube_geom_gg2.py
src/GEOM_SWIG/GEOM_usinggeom.py
src/GEOM_SWIG/PAL_MESH_019_020_geometry.py
src/GEOM_SWIG/PAL_MESH_028_geometry.py
src/GEOM_SWIG/PAL_MESH_030_geometry.py
src/GEOM_SWIG/PAL_MESH_033_geometry.py
src/GEOM_SWIG/PAL_MESH_035_geometry.py
src/GEOM_SWIG/batchmode_geompy.py
src/GEOM_SWIG/geompy.py
src/GEOM_SWIG/geompyDC.py

index 7805fd2e51990da2bc6cf392f8528ff8b5e9e5b3..cf0d353b45244b9f63802f26b3a7775579088ef8 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index c6b10ab482a50b0ce87955d451b040a5aa763b9d..dab3549c274e0e72762d68b049e319aeb4eeb471 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  GEOM GEOM_SWIG : binding of C++ omplementaion with Python
 #
index b2a7ea8bcccc74670a93fe615dcf8dc5a50aa4da..35b8ec0ac019b2ed803d904d95f1acb6afbd8ea5 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 94c5bb41bbb29195ab54a25709f82a70a0d6833a..2f1d4730496d8c6593bf2a4a924bf5543e3f1c7d 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index c72bc3aa326855ae032fbedc8bfdb01e313dd4f0..688e6c70257d88c073e4654c5015f5fd121297f9 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 5c9b72a1ff20e81feb22f3897fc4e67692dc7a57..edcb8c7fea47ef7a043432f7c5dfe89cd4d661c7 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 515e911a220378ee53363a547e9cf2b69bdac415..d052ea29defdaa5b3ef110ba9dc087bd48a39e55 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 1d726fe621aa3d42f0939295027d5be41a0f3aff..6b9ba597cc8c22090d4b782e78bdff429e42cc3d 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 1c21e9f3575f8c54fbb2d1f108617fc7441493ec..567386ebff5845789262b23d7b9bb5fbeb5abc9c 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index c7bc7e71e9cb3c043cf175fcc936b3895a572805..fb759878036c8aea63acd04284bb5ed35eaff347 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 8de481fcb5424caed97286527fd7c57a4baacd27..cb8e46c458baa2f1615e4f196b5171a3a2a65056 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 0365b178c4a5a00958934018ee224e319045c906..e8f7c332e9d363750617e9dec4613e427f88e928 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 5fa81b36dadbcc6e4d3fa72d2eb61045dfcb95fb..e78b2aec4795f4242c78fb7f52a25a2a4acbf432 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 43daa1160eee6c9d9f0f8d884a61ab71d7f2b86b..4e212ae8592f6401bb67b0a161b6a2c00f8057ea 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index d180ef31dfe1591738df6e1fb403c70bf1a39699..6edb26270a2e7420fe407400885410eddf910d90 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index be4a9e55e5246f85b7c3d4b1b61bb18f86d540a3..3d34e93644429e51f76a01456c9a59eacba28abd 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 914265cd3747cc474939680353c2189b7da27ad7..08eb90c235fa7bcd37f7f6be7f499fb26a3eddcb 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 945189242db5d00217472ce8db94e034076a8b40..751d083d555b2eb8918ed6c0afb7885a88fb0453 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 13feeb51d8cd7da5676a647f032f0d651e807169..8eaa9091ef19e48c1d2cadddfb2ba7648d20f114 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 9f5b2dd3e0c32624bcf4534dba68154a9ea473c4..763ad63cbda18738c8f4b3d6145940e1c7329f7d 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 4c17726b8e244553daed6012573c4110624ec5da..ca591d95282421079caeddc0a6bf91f8e1782b9b 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 #
 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-#  GEOM GEOM_SWIG : binding of C++ omplementaion with Python\r
-#  File   : GEOM_example6.py\r
-#  Author : Dmitry MATVEITCHEV\r
-#  Module : GEOM\r
-#  $Header$\r
+#  GEOM GEOM_SWIG : binding of C++ omplementaion with Python
+#  File   : GEOM_example6.py
+#  Author : Dmitry MATVEITChEV
+#  Module : GEOM
+#  $Header$
 #
-import salome\r
-import geompy\r
-\r
-ind = 1\r
-circlelist = []\r
-while ind < 6:\r
-    x1 = 0. + (10. * ind)\r
-    y1 = 0.\r
-    z1 = 0.\r
-    x2 = 10. + (10. * ind)\r
-    y2 = 20. * (ind+1)\r
-    z2 = 30. * (ind+1)\r
-    x3 = 50. + (10. * ind)\r
-    y3 = 0. * (ind+1)\r
-    z3 = -10. * (ind+1)\r
-\r
-    print x1, y1, z1, x2, y2, z2, x3, y3, z3\r
-\r
-    point1 = geompy.MakeVertex(x1, y1, z1)\r
-    name1 = "point1_%d"%(ind)\r
-    id_pt1 = geompy.addToStudy(point1, name1)\r
-    point2 = geompy.MakeVertex(x2, y2, z2)\r
-    name2 = "point2_%d"%(ind)\r
-    id_pt2 = geompy.addToStudy(point2, name2)\r
-    point3 = geompy.MakeVertex(x3, y3, z3)\r
-    name3 = "point3_%d"%(ind)\r
-    id_pt3 = geompy.addToStudy(point3, name3)\r
-\r
-    name = "circle%d"%(ind)\r
-    circle = geompy.MakeCircleCenter2Pnt(point1, point2, point3)\r
-    id_circle = geompy.addToStudy(circle, name)\r
-    circlelist.append(circle)\r
-    ind = ind + 1\r
+import salome
+import geompy
+
+ind = 1
+circlelist = []
+while ind < 6:
+    x1 = 0. + (10. * ind)
+    y1 = 0.
+    z1 = 0.
+    x2 = 10. + (10. * ind)
+    y2 = 20. * (ind+1)
+    z2 = 30. * (ind+1)
+    x3 = 50. + (10. * ind)
+    y3 = 0. * (ind+1)
+    z3 = -10. * (ind+1)
+
+    print x1, y1, z1, x2, y2, z2, x3, y3, z3
+
+    point1 = geompy.MakeVertex(x1, y1, z1)
+    name1 = "point1_%d"%(ind)
+    id_pt1 = geompy.addToStudy(point1, name1)
+    point2 = geompy.MakeVertex(x2, y2, z2)
+    name2 = "point2_%d"%(ind)
+    id_pt2 = geompy.addToStudy(point2, name2)
+    point3 = geompy.MakeVertex(x3, y3, z3)
+    name3 = "point3_%d"%(ind)
+    id_pt3 = geompy.addToStudy(point3, name3)
+
+    name = "circle%d"%(ind)
+    circle = geompy.MakeCircleCenter2Pnt(point1, point2, point3)
+    id_circle = geompy.addToStudy(circle, name)
+    circlelist.append(circle)
+    ind = ind + 1
index 847fbb124e67378bd03d345b90f4cf3e01b48b94..303e9f1f5179b31d91029fff8bc244bd9c5bdc1e 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 859af1913273372447979b6a6c2213af4536de1c..a42e111b9077efb722dcb13bc9d8a36e0193d858 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 422e94f9cb58e10222ea08f608f9223bc88ce898..9decfd45e5aa137806e4a5c4a4a46e0b0310f643 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 0f35fdebb8707e949d0c3185402bc850ae4fd069..b69f98b84023e8b33209921ca3f610011308a6c3 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 3f54f652e9ea1a481309ddbd1831e4d86f5ab17f..beb6eff953c7881b2111c9ebc91e5e113fa617ed 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index ed9ae30073503b53e4e7c2be7fd9599397cbd302..0800993b91e57a7f256abd292acd4877f78af4b2 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index d055ac8ca25bbd23bab2ca7c62a36f3d983cb361..86571c7a26f64a9027f47683a390ed9dac167745 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index c0b9fae14a3242868e647136736a262b92d9ee57..7b83e09f56ada37e195fd9374b41fdbd6511607f 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index b534a680bf42839fd2ecaeff54c815d0300a45b6..c7df14d14e9b37d19aa646341e648948dfae6eaa 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index a1d100b1bff1bd74532ea2ffe6adc7848c60036b..21abb73665fb2e4a61c24d5314c01edf16f00e5a 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 01d31c6bb0c67951b3a24ef050050828afe18913..f9c23addbd9ce7921672ba30a3a02246fb4becdd 100755 (executable)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index b25e8bdc82f1c0bbcc5c57d86210ad73faea7314..54a149b73964127ae62a1e511cdfce8f331088af 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 29637ba3528ee7ec9a3cd6906d8ae1db52ac241a..081435b2a381c053c390ee528123d9d4ece564d8 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
index 45b71f67432f97b4bd6304551a27c1550b485c4e..309c667e8c16b29427fbcd982badf9af343436e9 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 #  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #