Salome HOME
Improve GeomAlgoAPI_ShapeTools::volume() method to return the volume of the shape...
[modules/shaper.git] / src / FeaturesPlugin / Test / TestTranslation_MultiLevelCompound_v95_4.py
index 37a86e7a693c0e9b761375f417b02b473aaed965..dd1586ea40db152923ccab54107b377040cd2e06 100644 (file)
@@ -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()