]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Update test scripts
authorvsr <vsr@opencascade.com>
Wed, 20 Feb 2013 08:19:22 +0000 (08:19 +0000)
committervsr <vsr@opencascade.com>
Wed, 20 Feb 2013 08:19:22 +0000 (08:19 +0000)
doc/salome/examples/3dsketcher.py
doc/salome/examples/Makefile.am
src/GEOM_SWIG/gsketcher.py

index 84dc281125a92e6a0b4327d46ea6cd87674b11e1..69b779898d241ec76fb68e7d9efeda063a6d86a8 100644 (file)
@@ -5,7 +5,7 @@ import salome
 gg = salome.ImportComponentGUI("GEOM")
 
 # Create a 3D sketcher (wire) on the given points coordinates
-sketcher1 = geompy.Make3DSketcher([ 0,0,0, 50,50,50, 0,50,0, 50,0,50, 10,20,100, 0,0,0 ])
+sketcher1 = geompy.Make3DSketcher([ 0,0,0, 50,50,50, 0,50,0, 50,0,25, 10,20,100, 0,0,0 ])
 
 # add object in the study
 id_sketcher1 = geompy.addToStudy(sketcher1, "Sketcher1")
@@ -24,7 +24,7 @@ sk = geompy.Sketcher3D()
 sk.addPointsAbsolute(1,2,3, 7,0,0, 10,-3.5,-11)
 
 # add one segment, defined by two angles in "OXY" coordinate system and length
-sk.addPointAnglesLength("OXY", 45, 0, 100)
+sk.addPointRadiusAnglesRelative(45, 0, 100, "OXY")
 
 # add three points with relative coordinates
 # three segments will be added by this command
index bf5110fb1d6b9d2edfa84e82fb97253dd61296d3..f6d1df44ac51254a84c4634e6df09f4804cecb02 100644 (file)
@@ -27,12 +27,12 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 pyexamplesdir = $(docdir)/examples/GEOM
 
 BAD_TESTS = \
-       3dsketcher.py \
        angle.py \
        complex_objs_ex06.py \
        repairing_operations_ex09.py 
 
 GOOD_TESTS = \
+       3dsketcher.py \
        advanced_geom_objs_ex01.py \
        advanced_geom_objs_ex02.py \
        advanced_geom_objs_ex03.py \
index a3810ae06ec7e49cce3619272aa19c491e47b7d3..f0354e8c3478b518cc9eeae2474e8c26d20e92a2 100644 (file)
@@ -45,8 +45,8 @@ class Sketcher3D:
         sk = geompy.Sketcher3D()
         sk.addPointsAbsolute(0,0,0, 70,0,0)
         sk.addPointsRelative(0, 0, 130)
-        sk.addPointAnglesLength("OXY", 50, 0, 100)
-        sk.addPointAnglesLength("OXZ", 30, 80, 130)
+        sk.addPointRadiusAnglesRelative(50, 0, 100, 'OXY')
+        sk.addPointRadiusAnglesRelative(30, 80, 130, 'OXZ')
         sk.close()
         a3D_Sketcher_1 = sk.wire()
     """