Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / GEOM_SWIG / GEOM_Sketcher.py
index 1f87ae97681ca473cec65f8f0c67f991fcff3b84..dc8bf692d1ae7988523dc73866fb89b7d8f6d61e 100644 (file)
@@ -1,58 +1,58 @@
-#  GEOM GEOM_SWIG : binding of C++ omplementaion with Python\r
-#\r
-#  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
-#  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS \r
-# \r
-#  This library is free software; you can redistribute it and/or \r
-#  modify it under the terms of the GNU Lesser General Public \r
-#  License as published by the Free Software Foundation; either \r
-#  version 2.1 of the License. \r
-# \r
-#  This library is distributed in the hope that it will be useful, \r
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of \r
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU \r
-#  Lesser General Public License for more details. \r
-# \r
-#  You should have received a copy of the GNU Lesser General Public \r
-#  License along with this library; if not, write to the Free Software \r
-#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA \r
-# \r
+#  GEOM GEOM_SWIG : binding of C++ omplementaion with Python
+#
+#  Copyright (C) 2003  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 
+#  modify it under the terms of the GNU Lesser General Public 
+#  License as published by the Free Software Foundation; either 
+#  version 2.1 of the License. 
+# 
+#  This library is distributed in the hope that it will be useful, 
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+#  Lesser General Public License for more details. 
+# 
+#  You should have received a copy of the GNU Lesser General Public 
+#  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
-#\r
-#\r
-#\r
-#  File   : GEOM_Sketcher.py\r
-#  Author : Damien COQUERET, Open CASCADE\r
-#  Module : GEOM\r
-#  $Header$\r
-\r
-import geompy\r
-\r
-#SKETCHER INFOS\r
-#Init Sketcher\r
-#Create a string beginning by :"Sketcher:"\r
-#Each command must be separated by ":"\r
-#"F x y" : Create first point at X & Y\r
-\r
-#To Make Segment\r
-#"R angle" : Set the direction by angle\r
-#"D dx dy" : Set the direction by DX & DY\r
-\r
-#"TT x y" : Create by point at X & Y\r
-#"T dx dy" : Create by point with DX & DY\r
-#"L length" : Create by direction & Length\r
-#"IX x" : Create by direction & Intersect. X\r
-#"IY y" : Create by direction & Intersect. Y\r
-\r
-#To Make Arc\r
-#"C radius length" : Create by direction, radius and length(in degree)\r
-\r
-#To finish\r
-#"WW" : Close Wire\r
-\r
-#Create Sketcher\r
-Cmd = "Sketch:F 0 0:TT 0 100:C 100 180:WW"\r
-Sketcher = geompy.MakeSketcher(Cmd) #(string)->GEOM_Shape_ptr\r
-\r
-#Add In Study\r
-id_Sketcher = geompy.addToStudy(Sketcher, "Sketcher")\r
+#
+#
+#
+#  File   : GEOM_Sketcher.py
+#  Author : Damien COQUERET, Open CASCADE
+#  Module : GEOM
+#  $Header$
+
+import geompy
+
+#SKETCHER INFOS
+#Init Sketcher
+#Create a string beginning by :"Sketcher:"
+#Each command must be separated by ":"
+#"F x y" : Create first point at X & Y
+
+#To Make Segment
+#"R angle" : Set the direction by angle
+#"D dx dy" : Set the direction by DX & DY
+
+#"TT x y" : Create by point at X & Y
+#"T dx dy" : Create by point with DX & DY
+#"L length" : Create by direction & Length
+#"IX x" : Create by direction & Intersect. X
+#"IY y" : Create by direction & Intersect. Y
+
+#To Make Arc
+#"C radius length" : Create by direction, radius and length(in degree)
+
+#To finish
+#"WW" : Close Wire
+
+#Create Sketcher
+Cmd = "Sketch:F 0 0:TT 0 100:C 100 180:WW"
+Sketcher = geompy.MakeSketcher(Cmd) #(string)->GEOM_Shape_ptr
+
+#Add In Study
+id_Sketcher = geompy.addToStudy(Sketcher, "Sketcher")