Salome HOME
Improve GeomAlgoAPI_ShapeTools::volume() method to return the volume of the shape...
[modules/shaper.git] / src / FeaturesPlugin / Test / TestTranslation_MultiLevelCompound_v0_5.py
index 1b33ecb7a6dbc65f200460e452bde321526fad4a..7022117261b3a20086c0a3d1ea9ba9d54cba0c75 100644 (file)
@@ -96,6 +96,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])
 midPoint = Translation_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -109,6 +110,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])
 midPoint = Translation_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -122,6 +124,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])
 midPoint = Translation_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -134,7 +137,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])
 midPoint = Translation_6.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -147,7 +151,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])
 midPoint = Translation_7.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1