X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestExtrusionFuse_BySize.py;h=7f259fb45143bb8ce76ae507dbe012148706b929;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=705971438ed0d74aba38f12d38fa6de3db860e27;hpb=a82d355c2258c589b3f22473962f69e69e645f7b;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestExtrusionFuse_BySize.py b/src/FeaturesPlugin/Test/TestExtrusionFuse_BySize.py index 705971438..7f259fb45 100644 --- a/src/FeaturesPlugin/Test/TestExtrusionFuse_BySize.py +++ b/src/FeaturesPlugin/Test/TestExtrusionFuse_BySize.py @@ -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 -## +# Copyright (C) 2018-2023 CEA, EDF +# +# 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 salome.shaper import model from GeomAPI import * @@ -46,12 +45,12 @@ SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.result(), Sk ExtrusionFuse_1.setNestedSketch(Sketch_1) model.do() Shape = ExtrusionFuse_1.results()[0].resultSubShapePair()[0].shape() -checkMiddlePoint(Shape, 5, 4.903914353, 5.273370165) +checkMiddlePoint(Shape, 5, 4.92385244, 5.178148828) ExtrusionFuse_1.setDirection(model.selection("EDGE", "Axis_1")) model.do() Shape = ExtrusionFuse_1.results()[0].resultSubShapePair()[0].shape() -checkMiddlePoint(Shape, 5, 4.299736969, 5.70604613) +checkMiddlePoint(Shape, 5, 4.71213222, 5.287400476) ExtrusionFuse_2 = model.addExtrusionFuse(Part_1_doc, [], 3, [model.selection("SOLID", "ExtrusionFuse_1_1")]) Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Front")) @@ -65,7 +64,7 @@ SketchCircle_3 = Sketch_3.addCircle(5, -6, 3) ExtrusionFuse_3.setNestedSketch(Sketch_3) model.do() Shape = ExtrusionFuse_3.results()[0].resultSubShapePair()[0].shape() -checkMiddlePoint(Shape, 5.31705479, 6.86583379, 5.82287969) +checkMiddlePoint(Shape, 5.17873875, 6.823505388, 5.484616493) model.end()