-# 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
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 = Compound_1.result().subResult(0).resultSubShapePair()[0].shape().middlePoint()
refPoint.rotate(AXIS, ANGLE)
midPoint = Rotation_1.defaultResult().shape().middlePoint()
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 = Compound_1.result().subResult(1).resultSubShapePair()[0].shape().middlePoint()
refPoint.rotate(AXIS, ANGLE)
midPoint = Rotation_2.defaultResult().shape().middlePoint()
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 = Compound_1.result().subResult(2).resultSubShapePair()[0].shape().middlePoint()
refPoint.rotate(AXIS, ANGLE)
midPoint = Rotation_3.defaultResult().shape().middlePoint()
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 = Compound_1.result().subResult(3).resultSubShapePair()[0].shape().middlePoint()
refPoint.rotate(AXIS, ANGLE)
midPoint = Rotation_4.defaultResult().shape().middlePoint()
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 = Compound_1.result().subResult(4).resultSubShapePair()[0].shape().middlePoint()
refPoint.rotate(AXIS, ANGLE)
midPoint = Rotation_5.defaultResult().shape().middlePoint()