Salome HOME
e2e5667d4a707f887edc3e790be791bc957ccc7d
[modules/geom.git] / src / GEOM_SWIG / PAL_MESH_019_020_geometry.py
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #####################################################################################
23 #Created                :17/02/2005
24 #Auhtor                 :KOVALTCHUK Alexey 
25 #GUI test scenario      :PAL-MESH-019 (geometry part), PAL-MESH-020 (geometry part)
26 #####################################################################################
27 #
28 import geompy
29 import salome
30
31 #Points creation (2.2)
32 Vertex_1 = geompy.MakeVertex(0, 0, 0)
33 geompy.addToStudy(Vertex_1, "Vertex_1")
34
35 Vertex_2 = geompy.MakeVertex(20, 0, 0)
36 geompy.addToStudy(Vertex_2, "Vertex_2")
37
38 Vertex_3 = geompy.MakeVertex(10, 10, 0)
39 geompy.addToStudy(Vertex_3, "Vertex_3")
40
41 Vertex_4 = geompy.MakeVertex(0, 100, 0)
42 geompy.addToStudy(Vertex_4, "Vertex_4")
43
44 Vertex_5 = geompy.MakeVertex(0, 80, 20)
45 geompy.addToStudy(Vertex_5, "Vertex_5")
46
47 #Curve creation (2.21)
48 Curve_1 = geompy.MakeInterpol([Vertex_1, Vertex_3, Vertex_2])
49 geompy.addToStudy(Curve_1, "Curve_1")
50
51 #Line creation (2.29)
52 Line_1 = geompy.MakeLineTwoPnt(Vertex_4, Vertex_5)
53 geompy.addToStudy(Line_1, "Line_1")
54
55 salome.sg.updateObjBrowser(1)