Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / Test / TestTranslation_MultiLevelCompound_v0_4.py
index 61d29899d6767e1276fc12dafe2d2f00013883f4..6321f12b8378d71be3c601a32d37c19adb2d5fbe 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2020  CEA/DEN, EDF R&D
+# Copyright (C) 2020-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
@@ -86,6 +86,7 @@ model.testNbSubShapes(Translation_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Translation_3, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Translation_3, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Translation_3, [0])
+model.testResultsAreas(Translation_3, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE)
 midPoint = Translation_3.defaultResult().shape().middlePoint()
@@ -99,6 +100,7 @@ model.testNbSubShapes(Translation_4, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Translation_4, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Translation_4, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Translation_4, [0])
+model.testResultsAreas(Translation_4, [0])
 refPoint = Edge_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE)
 midPoint = Translation_4.defaultResult().shape().middlePoint()
@@ -112,6 +114,7 @@ model.testNbSubShapes(Translation_5, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Translation_5, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Translation_5, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Translation_5, [0])
+model.testResultsAreas(Translation_5, [0])
 refPoint = Wire_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE)
 midPoint = Translation_5.defaultResult().shape().middlePoint()
@@ -124,7 +127,8 @@ model.testNbSubShapes(Translation_6, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Translation_6, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Translation_6, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Translation_6, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Translation_6, [109.154152964914914])
+model.testResultsVolumes(Translation_6, [0])
+model.testResultsAreas(Translation_6, [109.154152964914914])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE)
 midPoint = Translation_6.defaultResult().shape().middlePoint()
@@ -137,7 +141,8 @@ model.testNbSubShapes(Translation_7, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Translation_7, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Translation_7, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Translation_7, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Translation_7, [182.822012116])
+model.testResultsVolumes(Translation_7, [0])
+model.testResultsAreas(Translation_7, [182.822012116])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE)
 midPoint = Translation_7.defaultResult().shape().middlePoint()