Salome HOME
Issue #2376: Wrong DoF when creating the sketch
[modules/shaper.git] / src / SketchPlugin / Test / TestMovementComplex.py
index 6b576fdccb68fd77e8652a8bb8ea92fda6231c65..59133d7f3d0341d92f6f14f00ccec73900b05da2 100644 (file)
@@ -1,3 +1,23 @@
+## Copyright (C) 2017  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>
+##
+
 """
     Test moving the entities in the complex sketch by the example of a clamp
 """
@@ -113,7 +133,7 @@ for i in range(1, 10):
 # =============================================================================
 # Test 3. Constrain center of circle and move it again
 # =============================================================================
-SketchConstraintDistanceHorizontal_3 = Sketch_1.setHorizontalDistance(SketchCircle_1.center(), SketchArc_1.startPoint(), -30)
+SketchConstraintDistanceHorizontal_3 = Sketch_1.setHorizontalDistance(SketchCircle_1.center(), SketchArc_1.startPoint(), 30)
 model.do()
 # move center
 delta = [1., 1.]