X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTest2419_1.py;h=efe916bf42a81da34daea5da2118c5da4ffdda1d;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=f6583457706da54786875d5eb92e2ef648ea219d;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/Test2419_1.py b/src/FeaturesPlugin/Test/Test2419_1.py index f65834577..efe916bf4 100644 --- a/src/FeaturesPlugin/Test/Test2419_1.py +++ b/src/FeaturesPlugin/Test/Test2419_1.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2023 CEA, EDF # # 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() @@ -110,17 +108,17 @@ Face_2.setName("Face_5") Face_2.result().setName("Face_5_1") LinearCopy_1 = model.addMultiTranslation(Part_1_doc, [model.selection("FACE", "Face_5_1")], model.selection("EDGE", "Sketch_1/SketchLine_9"), 10, 2) LinearCopy_1.result().setName("LinearCopy") -Fill_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("COMPOUND", "LinearCopy")]) +Split_1 = model.addSplit(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("COMPOUND", "LinearCopy")]) model.do() model.end() from GeomAPI import GeomAPI_Shape -model.testNbResults(Fill_1, 1) -model.testNbSubResults(Fill_1, [3]) -model.testNbSubShapes(Fill_1, GeomAPI_Shape.SOLID, [0]) -model.testNbSubShapes(Fill_1, GeomAPI_Shape.FACE, [3]) -model.testNbSubShapes(Fill_1, GeomAPI_Shape.EDGE, [20]) -model.testNbSubShapes(Fill_1, GeomAPI_Shape.VERTEX, [40]) +model.testNbResults(Split_1, 1) +model.testNbSubResults(Split_1, [3]) +model.testNbSubShapes(Split_1, GeomAPI_Shape.SOLID, [0]) +model.testNbSubShapes(Split_1, GeomAPI_Shape.FACE, [3]) +model.testNbSubShapes(Split_1, GeomAPI_Shape.EDGE, [20]) +model.testNbSubShapes(Split_1, GeomAPI_Shape.VERTEX, [40]) assert(model.checkPythonDump())