X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestUnion4Faces.py;h=68bce5248a513fa4bf3251b3fe55438357389edd;hb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;hp=3f18effcecc6c4fc160f0eb6bb94a9bd207fb566;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestUnion4Faces.py b/src/FeaturesPlugin/Test/TestUnion4Faces.py index 3f18effce..68bce5248 100644 --- a/src/FeaturesPlugin/Test/TestUnion4Faces.py +++ b/src/FeaturesPlugin/Test/TestUnion4Faces.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2020 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 @@ -17,8 +17,6 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# -*- coding: utf-8 -*- - from salome.shaper import model model.begin() @@ -59,11 +57,11 @@ Face_2 = model.addFace(Part_1_doc, Face_2_objects) Partition_1_objects = [model.selection("FACE", "Face_2_1"), model.selection("FACE", "Face_1_1"), model.selection("FACE", "PartSet/YOZ")] Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects) Union_1_objects = [model.selection("FACE", "Partition_1_1_1"), model.selection("FACE", "Partition_1_1_3"), model.selection("FACE", "Partition_1_1_4")] -Union_1 = model.addUnion(Part_1_doc, Union_1_objects) +Union_1 = model.addFuse(Part_1_doc, Union_1_objects, True, keepSubResults = True) model.do() model.checkResult(Union_1,model,1,[2],[0],[2],[13],[26]) -#model.testHaveNamingSubshapes(Union_1,model,Part_1_doc) +model.testHaveNamingSubshapes(Union_1,model,Part_1_doc) model.end()