X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestExtrusion_ByFaces16.py;h=237878e12cedb32e93d1ab96fe073f6cf20922d6;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=4cba579cbb66bec38f2ecf3b0b339525cabb0dce;hpb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py index 4cba579cb..237878e12 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2020 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 @@ -101,7 +101,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8]) -model.testResultsVolumes(Extrusion_1, [1708.843326299, 1708.843325768, 1895.559443038]) +model.testResultsAreas(Extrusion_1, [1708.843326299, 1708.843325768, 1895.559443038]) # offset "From" face ParamFrom.setValue(20) @@ -112,7 +112,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8]) -model.testResultsVolumes(Extrusion_1, [2915.069101129, 2915.069100598, 4138.27332218]) +model.testResultsAreas(Extrusion_1, [2915.069101129, 2915.069100598, 4138.27332218]) # check failure ParamFrom.setValue(-20) @@ -128,7 +128,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8]) -model.testResultsVolumes(Extrusion_1, [1105.7304388842, 1105.730438353, 774.2025034671]) +model.testResultsAreas(Extrusion_1, [1105.7304388842, 1105.730438353, 774.2025034671]) model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)