]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Test add_contour action in Wire feature
authordbv <dbv@opencascade.com>
Tue, 17 May 2016 07:26:20 +0000 (10:26 +0300)
committerdbv <dbv@opencascade.com>
Tue, 17 May 2016 07:26:41 +0000 (10:26 +0300)
src/BuildPlugin/Test/TestWire.py

index de75b080c9e0724e31c28b25e4941cfd235eb281..9b50b70ee5ce15866371dc6826bd7aefafcf2bdd 100644 (file)
@@ -55,9 +55,9 @@ aSession.startOperation()
 aWireFeature = aPart.addFeature("Wire")
 aBaseObjectsList = aWireFeature.selectionList("base_objects")
 aShapeExplorer = GeomAPI_ShapeExplorer(aSketchShape, GeomAPI_Shape.EDGE)
-while aShapeExplorer.more():
+if aShapeExplorer.more():
     aBaseObjectsList.append(aSketchResult, aShapeExplorer.current())
-    aShapeExplorer.next()
+aWireFeature.customAction("add_contour")
 aSession.finishOperation()
 
 # Test results