Salome HOME
suite
[modules/shaper.git] / test.models / sprocket.py
index 54c2d8442aa06328dbd4fce317e782b6aabea9f1..47b4c0f16570bc1843bd179bc3e759cb6e3bcf85 100644 (file)
@@ -1,22 +1,21 @@
-## Copyright (C) 2018-20xx  CEA/DEN, EDF R&D
-##
-## 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, or (at your option) any later version.
-##
-## 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<mailto:webmaster.salome@opencascade.com>
-##
+# Copyright (C) 2018-2022  CEA/DEN, EDF R&D
+#
+# 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, or (at your option) any later version.
+#
+# 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
+#
 
 from SketchAPI import *
 from GeomAPI import GeomAPI_Shape
@@ -114,7 +113,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [1080])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [2160])
 model.testResultsVolumes(Extrusion_1, [10398.453966298400700907222926617])
 
-Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face_1"))
+Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face"))
 SketchCircle_3 = Sketch_2.addCircle(0, 0, 4.5)
 SketchLine_125 = Sketch_2.addLine(0, 0, -24.375, 0)
 SketchLine_125.setAuxiliary(True)
@@ -210,7 +209,7 @@ Z_REF_DATA = [(20, 171, 1014, 2028,  1667.562983801989503263030201197),
               (22, 183, 1086, 2172,  2160.297076967755856458097696304),
               (25, 201, 1194, 2388,  3068.115476944114561774767935276),
               (40, 291, 1734, 3468, 11471.942563079033789108507335186),
-              (34, 255, 1518, 3036,  7238.123725381414260482415556908),
+              (34, 255, 1518, 3036,  7238.122819170104776276275515556),
               (30, 231, 1374, 2748,  5092.377854112805835029575973749)]
 for z in Z_REF_DATA:
     Param_Z.setValue(z[0])
@@ -233,7 +232,6 @@ M_REF_DATA = [(1.5, 14094.989002197671652538701891899),
 for m in M_REF_DATA:
     Param_m.setValue(m[0])
     model.do()
-    model.generateTests(Boolean_1, "Boolean_1")
 
     model.testNbResults(Boolean_1, 1)
     model.testNbSubResults(Boolean_1, [0])