Salome HOME
2D point selection in multi-rotation/multi-translation.
[modules/shaper.git] / src / SketchPlugin / Test / TestMultiTranslation.py
index 6333048465c6babc065303e804d84f6115cc3fe3..4dca56c495ccc26fd4b5712f59209024197192a5 100644 (file)
@@ -60,12 +60,12 @@ def checkTranslation(theObjects, theNbObjects, theDeltaX, theDeltaY):
             anAttributes.append('ArcStartPoint')
             anAttributes.append('ArcEndPoint')
             
-        #for attr in anAttributes:
-            #aPoint1 = geomDataAPI_Point2D(feat.attribute(attr))
-            #aPoint2 = geomDataAPI_Point2D(next.attribute(attr))
-            #aDiffX = aPoint2.x() - aPoint1.x() - theDeltaX
-            #aDiffY = aPoint2.y() - aPoint1.y() - theDeltaY
-            #assert(aDiffX**2 + aDiffY**2 < 1.e-15)
+        for attr in anAttributes:
+             aPoint1 = geomDataAPI_Point2D(feat.attribute(attr))
+             aPoint2 = geomDataAPI_Point2D(next.attribute(attr))
+             aDiffX = aPoint2.x() - aPoint1.x() - theDeltaX
+             aDiffY = aPoint2.y() - aPoint1.y() - theDeltaY
+             assert(aDiffX**2 + aDiffY**2 < 1.e-15)
     # Check the number of copies is as planed
     assert(anInd == theNbObjects-1)