Salome HOME
support fuzzy parameter in all boolean operations
[modules/shaper.git] / src / FeaturesPlugin / Test / TestPipe.py
index e0718b88893a348c31adf9b6f2faf1bf5a3c7eeb..84dfa268b3b81cb3c4fd1f9335f47e307797b522 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2022  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
@@ -127,15 +127,16 @@ aBaseObject = aRecover.reference("base_feature")
 aBaseObject.setValue(aPipeFeature)
 aRecoveredObjects = aRecover.reflist("recovered")
 aRecoveredObjects.append(aFaceResult1)
+aRecoveredObjects.append(aWireResult)
 aSession.finishOperation()
 
 # Create pipe with bi-normal
 aSession.startOperation()
 aPipeFeature = aPart.addFeature("Pipe")
 aBaseObjectsList = aPipeFeature.selectionList("base_objects")
-aBaseObjectsList.append(aRecover.firstResult(), None)
+aBaseObjectsList.append(aRecover.lastResult(), None)
 aPathObjectSelection = aPipeFeature.selection("path_object")
-aPathObjectSelection.setValue(aWireResult, None)
+aPathObjectSelection.setValue(aRecover.firstResult(), None)
 aPipeFeature.string("creation_method").setValue("binormal")
 aBinormalObjectSelection = aPipeFeature.selection("binormal")
 aShapeExplorer = GeomAPI_ShapeExplorer(aSketchShape, GeomAPI_Shape.EDGE)
@@ -153,6 +154,7 @@ aBaseObject = aRecover2.reference("base_feature")
 aBaseObject.setValue(aPipeFeature)
 aRecoveredObjects = aRecover2.reflist("recovered")
 aRecoveredObjects.append(aRecover.firstResult())
+aRecoveredObjects.append(aRecover.lastResult())
 aSession.finishOperation()
 
 # Create pipe with locations
@@ -193,7 +195,7 @@ aBaseObjectsList = aPipeFeature.selectionList("base_objects")
 aBaseObjectsList.append(aRecover2.firstResult(), None)
 aBaseObjectsList.append(aFaceResult2, None)
 aPathObjectSelection = aPipeFeature.selection("path_object")
-aPathObjectSelection.setValue(aWireResult, None)
+aPathObjectSelection.setValue(aRecover2.lastResult(), None)
 aPipeFeature.string("creation_method").setValue("locations")
 aSession.finishOperation()