Salome HOME
Copyright update 2022
[modules/shaper.git] / src / FeaturesPlugin / Test / TestRotation_MultiLevelCompound_v95_3.py
index 45750ed6a6fea406f557da5cf80fc4a8ad93cdc9..6783e235fd3e6354d2b4733f340fef292aaac266 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2020  CEA/DEN, EDF R&D
+# Copyright (C) 2020-2022  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
@@ -88,6 +88,7 @@ model.testNbSubShapes(Rotation_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Rotation_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Rotation_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Rotation_1, [0])
+model.testResultsAreas(Rotation_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_1.defaultResult().shape().middlePoint()
@@ -101,6 +102,7 @@ model.testNbSubShapes(Rotation_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Rotation_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Rotation_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Rotation_2, [0])
+model.testResultsAreas(Rotation_2, [0])
 refPoint = Edge_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_2.defaultResult().shape().middlePoint()
@@ -114,6 +116,7 @@ model.testNbSubShapes(Rotation_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Rotation_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Rotation_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Rotation_3, [0])
+model.testResultsAreas(Rotation_3, [0])
 refPoint = Wire_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_3.defaultResult().shape().middlePoint()
@@ -126,7 +129,8 @@ model.testNbSubShapes(Rotation_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Rotation_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Rotation_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Rotation_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Rotation_4, [109.154152964914914])
+model.testResultsVolumes(Rotation_4, [0])
+model.testResultsAreas(Rotation_4, [109.154152964914914])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_4.defaultResult().shape().middlePoint()
@@ -139,7 +143,8 @@ model.testNbSubShapes(Rotation_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Rotation_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Rotation_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Rotation_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Rotation_5, [182.822012116])
+model.testResultsVolumes(Rotation_5, [0])
+model.testResultsAreas(Rotation_5, [182.822012116])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_5.defaultResult().shape().middlePoint()