]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Tests fix V_1.2.0
authordbv <dbv@opencascade.com>
Fri, 29 May 2015 16:07:58 +0000 (19:07 +0300)
committerdbv <dbv@opencascade.com>
Fri, 29 May 2015 16:08:45 +0000 (19:08 +0300)
src/FeaturesPlugin/Test/TestBoolean.py
src/FeaturesPlugin/Test/TestMultiBoolean.py

index 657a504d242938211ad83b347b4f81ff95689e08..9393bee87f2948ae48ebf3cb56b00c22be88b392 100644 (file)
@@ -102,8 +102,8 @@ aSession.finishOperation()
 #=========================================================================
 aSession.startOperation()
 aBooleanFt = aPart.addFeature("Boolean")
-aBooleanFt.reference("main_object").setValue(extrudedObjects[0])
-aBooleanFt.reference("tool_object").setValue(extrudedObjects[1])
+aBooleanFt.selectionList("main_objects").append(extrudedObjects[0], extrudedObjects[0].shape())
+aBooleanFt.selectionList("tool_objects").append(extrudedObjects[1], extrudedObjects[1].shape())
 kBooleanTypeCut = 0
 aBooleanFt.integer("bool_type").setValue(kBooleanTypeCut)
 aBooleanFt.execute()
index eb15549c14591f97e273d4e5b9a7875c2f5e2fdb..bb185acb6558952d6838bdf952693526f5a3193d 100644 (file)
@@ -166,16 +166,17 @@ aSession.finishOperation()
 # Create a boolean cut of cylinders from the box:
 # result of Boolean is the first argument of the next Boolean
 #=========================================================================
-aCurrentResult = aBox.firstResult()
+aCurrentResult = modelAPI_ResultBody(aBox.firstResult())
 aSession.startOperation()
 for i in xrange(0, N * N):
+    anExtrusionResult = modelAPI_ResultBody(anExtrusions[i].firstResult())
     aBooleanFt = aPart.addFeature("Boolean")
-    aBooleanFt.reference("main_object").setValue(modelAPI_ResultBody(aCurrentResult))
-    aBooleanFt.reference("tool_object").setValue(modelAPI_ResultBody(anExtrusions[i].firstResult()))
+    aBooleanFt.selectionList("main_objects").append(aCurrentResult, aCurrentResult.shape())
+    aBooleanFt.selectionList("tool_objects").append(anExtrusionResult, anExtrusionResult.shape())
     kBooleanTypeCut = 0
     aBooleanFt.integer("bool_type").setValue(kBooleanTypeCut)
     aBooleanFt.execute()
-    aCurrentResult = aBooleanFt.firstResult()
+    aCurrentResult = modelAPI_ResultBody(aBooleanFt.firstResult())
 aSession.finishOperation()
 
 #=========================================================================