Salome HOME
Improve GeomAlgoAPI_ShapeTools::volume() method to return the volume of the shape...
[modules/shaper.git] / src / FeaturesPlugin / Test / TestRotation_MultiLevelCompound_v0_4.py
index b092bf01a429487c7db1d19e3e6458750b7da89d..a5f2561926db09c19b24ae6e161b62653c87edab 100644 (file)
@@ -90,6 +90,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 = Compound_1.result().subResult(0).resultSubShapePair()[0].shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_1.defaultResult().shape().middlePoint()
@@ -104,6 +105,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 = Compound_1.result().subResult(1).resultSubShapePair()[0].shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_2.defaultResult().shape().middlePoint()
@@ -118,6 +120,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 = Compound_1.result().subResult(2).resultSubShapePair()[0].shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_3.defaultResult().shape().middlePoint()
@@ -131,7 +134,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 = Compound_1.result().subResult(3).resultSubShapePair()[0].shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_4.defaultResult().shape().middlePoint()
@@ -145,7 +149,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 = Compound_1.result().subResult(4).resultSubShapePair()[0].shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_5.defaultResult().shape().middlePoint()