X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestMultiTranslation_MultiLevelCompound_v0_3.py;h=a26b92378b0c4ff599809f487482dba1fc3e361b;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=199af9d667b0352c848b4386c6ab133cbe09ee01;hpb=6a23207a9154dac27c710190281aa5bfcf2bd498;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v0_3.py b/src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v0_3.py index 199af9d66..a26b92378 100644 --- a/src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v0_3.py +++ b/src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v0_3.py @@ -1,4 +1,4 @@ -# Copyright (C) 2020 CEA/DEN, EDF R&D +# Copyright (C) 2020-2023 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 @@ -89,6 +89,7 @@ model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.FACE, [0]) model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.EDGE, [0]) model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.VERTEX, [COPIES]) model.testResultsVolumes(MultiTranslation_1, [0]) +model.testResultsAreas(MultiTranslation_1, [0]) refPoint = Vertex_1.defaultResult().shape().middlePoint() refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1)) midPoint = MultiTranslation_1.defaultResult().shape().middlePoint() @@ -102,6 +103,7 @@ model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.FACE, [0]) model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.EDGE, [COPIES]) model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.VERTEX, [2 * COPIES]) model.testResultsVolumes(MultiTranslation_2, [0]) +model.testResultsAreas(MultiTranslation_2, [0]) comp = GeomAlgoAPI_CompoundBuilder.compound([Edge_1.defaultResult().shape()]) refPoint = comp.middlePoint() refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1)) @@ -116,6 +118,7 @@ model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.FACE, [0]) model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.EDGE, [2 * COPIES]) model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.VERTEX, [4 * COPIES]) model.testResultsVolumes(MultiTranslation_3, [0]) +model.testResultsAreas(MultiTranslation_3, [0]) comp = GeomAlgoAPI_CompoundBuilder.compound([Wire_1.defaultResult().shape()]) refPoint = comp.middlePoint() refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1)) @@ -129,7 +132,8 @@ model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.SOLID, [0]) model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.FACE, [COPIES]) model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.EDGE, [4 * COPIES]) model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.VERTEX, [8 * COPIES]) -model.testResultsVolumes(MultiTranslation_4, [109.154152964914914 * COPIES]) +model.testResultsVolumes(MultiTranslation_4, [0]) +model.testResultsAreas(MultiTranslation_4, [109.154152964914914 * COPIES]) refPoint = Face_1.defaultResult().shape().middlePoint() refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1)) midPoint = MultiTranslation_4.defaultResult().shape().middlePoint() @@ -142,7 +146,8 @@ model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.SOLID, [0]) model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.FACE, [2 * COPIES]) model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.EDGE, [8 * COPIES]) model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.VERTEX, [16 * COPIES]) -model.testResultsVolumes(MultiTranslation_5, [182.822012116 * COPIES]) +model.testResultsVolumes(MultiTranslation_5, [0]) +model.testResultsAreas(MultiTranslation_5, [182.822012116 * COPIES]) refPoint = Shell_1.defaultResult().shape().middlePoint() refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1)) midPoint = MultiTranslation_5.defaultResult().shape().middlePoint()