]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/Test/TestMultiRotation_MultiLevelCompound_v0_4.py
Salome HOME
Improve GeomAlgoAPI_ShapeTools::volume() method to return the volume of the shape...
[modules/shaper.git] / src / FeaturesPlugin / Test / TestMultiRotation_MultiLevelCompound_v0_4.py
index fb3623c8fcf35dbe81168d7d60e7d3aac7c204bf..66b6b2cd77399428af25db07d3135cc0099c2df4 100644 (file)
@@ -90,6 +90,7 @@ model.testNbSubShapes(MultiRotation_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiRotation_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(MultiRotation_1, GeomAPI_Shape.VERTEX, [COPIES])
 model.testResultsVolumes(MultiRotation_1, [0])
+model.testResultsAreas(MultiRotation_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setY(0)
 refPoint.setZ(0)
@@ -105,6 +106,7 @@ model.testNbSubShapes(MultiRotation_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiRotation_2, GeomAPI_Shape.EDGE, [COPIES])
 model.testNbSubShapes(MultiRotation_2, GeomAPI_Shape.VERTEX, [2 * COPIES])
 model.testResultsVolumes(MultiRotation_2, [0])
+model.testResultsAreas(MultiRotation_2, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Edge_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setY(0)
@@ -121,6 +123,7 @@ model.testNbSubShapes(MultiRotation_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiRotation_3, GeomAPI_Shape.EDGE, [2 * COPIES])
 model.testNbSubShapes(MultiRotation_3, GeomAPI_Shape.VERTEX, [4 * COPIES])
 model.testResultsVolumes(MultiRotation_3, [0])
+model.testResultsAreas(MultiRotation_3, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Wire_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setY(0)
@@ -136,7 +139,8 @@ model.testNbSubShapes(MultiRotation_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiRotation_4, GeomAPI_Shape.FACE, [COPIES])
 model.testNbSubShapes(MultiRotation_4, GeomAPI_Shape.EDGE, [4 * COPIES])
 model.testNbSubShapes(MultiRotation_4, GeomAPI_Shape.VERTEX, [8 * COPIES])
-model.testResultsVolumes(MultiRotation_4, [109.154152964914914 * COPIES])
+model.testResultsVolumes(MultiRotation_4, [0])
+model.testResultsAreas(MultiRotation_4, [109.154152964914914 * COPIES])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setY(0)
 refPoint.setZ(0)
@@ -151,7 +155,8 @@ model.testNbSubShapes(MultiRotation_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiRotation_5, GeomAPI_Shape.FACE, [2 * COPIES])
 model.testNbSubShapes(MultiRotation_5, GeomAPI_Shape.EDGE, [8 * COPIES])
 model.testNbSubShapes(MultiRotation_5, GeomAPI_Shape.VERTEX, [16 * COPIES])
-model.testResultsVolumes(MultiRotation_5, [182.822012116 * COPIES])
+model.testResultsVolumes(MultiRotation_5, [0])
+model.testResultsAreas(MultiRotation_5, [182.822012116 * COPIES])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setY(0)
 refPoint.setZ(0)