]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update test cases according to the new behavior of shape properties calculation. occ/20619
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 9 Feb 2021 20:27:45 +0000 (23:27 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 9 Feb 2021 20:27:45 +0000 (23:27 +0300)
46 files changed:
src/BuildPlugin/Test/Test20513_1.py
src/BuildPlugin/Test/Test20513_2.py
src/BuildPlugin/Test/Test2398.py
src/BuildPlugin/Test/Test2409.py
src/CollectionPlugin/Test/Test2977.py
src/CollectionPlugin/Test/TestGroupAddition.py
src/CollectionPlugin/Test/TestGroupIntersection.py
src/FeaturesPlugin/Test/Test17261.py
src/FeaturesPlugin/Test/Test17281.py
src/FeaturesPlugin/Test/Test18836.py
src/FeaturesPlugin/Test/Test19065.py
src/FeaturesPlugin/Test/Test19066.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces13.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces14.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces15.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces17.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces18.py
src/FeaturesPlugin/Test/TestExtrusion_ByFaces19.py
src/FeaturesPlugin/Test/TestMultiRotation_MultiLevelCompound_v0_3.py
src/FeaturesPlugin/Test/TestMultiRotation_MultiLevelCompound_v0_4.py
src/FeaturesPlugin/Test/TestMultiRotation_MultiLevelCompound_v95_3.py
src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v0_3.py
src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v0_4.py
src/FeaturesPlugin/Test/TestMultiTranslation_MultiLevelCompound_v95_3.py
src/FeaturesPlugin/Test/TestPipe_Edge.py
src/FeaturesPlugin/Test/TestPipe_Wire.py
src/FeaturesPlugin/Test/TestPlacement_MultiLevelCompound_v0_5.py
src/FeaturesPlugin/Test/TestPlacement_MultiLevelCompound_v0_6.py
src/FeaturesPlugin/Test/TestPlacement_MultiLevelCompound_v95_5.py
src/FeaturesPlugin/Test/TestRevolutionOfEdge.py
src/FeaturesPlugin/Test/TestRotation_MultiLevelCompound_v0_3.py
src/FeaturesPlugin/Test/TestRotation_MultiLevelCompound_v0_4.py
src/FeaturesPlugin/Test/TestRotation_MultiLevelCompound_v95_3.py
src/FeaturesPlugin/Test/TestScale_MultiLevelCompound_v0_3.py
src/FeaturesPlugin/Test/TestScale_MultiLevelCompound_v0_4.py
src/FeaturesPlugin/Test/TestScale_MultiLevelCompound_v95_3.py
src/FeaturesPlugin/Test/TestSymmetry_MultiLevelCompound_v0_4.py
src/FeaturesPlugin/Test/TestSymmetry_MultiLevelCompound_v0_5.py
src/FeaturesPlugin/Test/TestSymmetry_MultiLevelCompound_v95_4.py
src/FeaturesPlugin/Test/TestTranslation_MultiLevelCompound_v0_4.py
src/FeaturesPlugin/Test/TestTranslation_MultiLevelCompound_v0_5.py
src/FeaturesPlugin/Test/TestTranslation_MultiLevelCompound_v95_4.py
src/Locale/Test/TestUTF8.py
src/ModelAPI/Test/Test19019_1.py
src/PythonAPI/model/tests/tests.py

index 11192d91db49ed3ec212e675121144d4930ead30..bc367a8ec72f7c962f85b2b24bad6dd1de730df5 100644 (file)
@@ -92,6 +92,6 @@ model.testNbSubShapes(Filling_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Filling_1, [1872.0403629667237])
+model.testResultsAreas(Filling_1, [1872.0403629667237])
 
 assert(model.checkPythonDump())
index 0809e739e990f77b9b1fe72ecb5792ca006e5ba3..45196abc9144634b79712544bcb59156a69c34b1 100644 (file)
@@ -1121,7 +1121,7 @@ model.testNbSubShapes(Filling_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Filling_1, [28.94082894])
+model.testResultsAreas(Filling_1, [28.94082894])
 
 model.testNbResults(Filling_2, 1)
 model.testNbSubResults(Filling_2, [0])
@@ -1129,7 +1129,7 @@ model.testNbSubShapes(Filling_2, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Filling_2, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Filling_2, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Filling_2, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Filling_2, [29.198793093])
+model.testResultsAreas(Filling_2, [29.198793093])
 
 model.testNbResults(Filling_3, 1)
 model.testNbSubResults(Filling_3, [0])
@@ -1137,6 +1137,6 @@ model.testNbSubShapes(Filling_3, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Filling_3, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Filling_3, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Filling_3, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Filling_3, [30.74501422428])
+model.testResultsAreas(Filling_3, [30.74501422428])
 
 assert(model.checkPythonDump())
index f5a5b5e364a6f97c23465adfa7bc2d421cab2258..5b53791f8ca7c8aed6e8e9c377b4316b1ff7a51d 100644 (file)
@@ -102,7 +102,7 @@ for ref in REF_DATA:
     model.testNbSubShapes(ref[0], GeomAPI_Shape.FACE, [1])
     model.testNbSubShapes(ref[0], GeomAPI_Shape.EDGE, [4])
     model.testNbSubShapes(ref[0], GeomAPI_Shape.VERTEX, [8])
-    model.testResultsVolumes(ref[0], [ref[1]])
+    model.testResultsAreas(ref[0], [ref[1]])
 
 model.end()
 
index 52679f4347015f22f11cde9ce8a051bcf218ad19..15c7d1e22f830afd834461c3e9f633d194fc2c1e 100644 (file)
@@ -56,7 +56,7 @@ assert(Filling_1.feature().error() == "")
 from GeomAPI import GeomAPI_Shape
 model.testNbResults(Filling_1, 1)
 model.testNbSubShapes(Filling_1, GeomAPI_Shape.FACE, [1])
-model.testResultsVolumes(Filling_1, [3500])
+model.testResultsAreas(Filling_1, [3500])
 
 model.end()
 
index 4cd7c5d85e3364838b7bf3c51840318eb4863eec..6ab82788af729e963d6a22af887c3021d31a4858 100644 (file)
@@ -39,6 +39,6 @@ model.testNbSubShapes(GroupSubstraction_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(GroupSubstraction_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(GroupSubstraction_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(GroupSubstraction_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(GroupSubstraction_1, [200])
+model.testResultsAreas(GroupSubstraction_1, [200])
 
 assert(model.checkPythonDump())
index 2b710ae9467f2d3cc23edf4cda89fc3553d11cff..f648419461ca944d17a58c66ba9bc8236ef47dce 100644 (file)
@@ -37,6 +37,6 @@ model.testNbSubShapes(GroupAddition_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(GroupAddition_1, GeomAPI_Shape.FACE, [3])
 model.testNbSubShapes(GroupAddition_1, GeomAPI_Shape.EDGE, [12])
 model.testNbSubShapes(GroupAddition_1, GeomAPI_Shape.VERTEX, [24])
-model.testResultsVolumes(GroupAddition_1, [300])
+model.testResultsAreas(GroupAddition_1, [300])
 
 assert(model.checkPythonDump())
index 5aa68cea6dc54caf612cfd370b3bfa17b7229a94..3b3add5a6ecb3b5367c4e7ea53fd3ba021fd9258 100644 (file)
@@ -40,6 +40,6 @@ model.testNbSubShapes(GroupIntersection_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(GroupIntersection_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(GroupIntersection_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(GroupIntersection_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(GroupIntersection_1, [100])
+model.testResultsAreas(GroupIntersection_1, [100])
 
 assert(model.checkPythonDump())
index 6d86ad4370eb94b49e9bb14bcfb5229ffa27f59c..45fd53b5757933147fc61a9f66f031c0a6c06574 100644 (file)
@@ -142,6 +142,6 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [15])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [102])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [204])
-model.testResultsVolumes(Extrusion_1, [466.947878])
+model.testResultsAreas(Extrusion_1, [466.947878])
 
 assert(model.checkPythonDump())
index c81ad2d64d2ddc246dd63189f2528984c586300d..a823b45c5a9bf263f2cf3ccb02d30476584f7c9b 100644 (file)
@@ -81,6 +81,6 @@ model.testNbSubShapes(Pipe_2, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Pipe_2, [280.91366299542733])
+model.testResultsAreas(Pipe_2, [280.91366299542733])
 
 assert(model.checkPythonDump())
index a00106807e69c04455616c1d05cc5646f13efb0a..7786351b722a16398a4c494fbd44d16dd08eaf00 100644 (file)
@@ -78,7 +78,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [16])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [64])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [128])
-model.testResultsVolumes(Extrusion_1, [10242.31054])
+model.testResultsAreas(Extrusion_1, [10242.31054])
 
 model.testNbResults(Extrusion_2, 1)
 model.testNbSubResults(Extrusion_2, [16])
@@ -86,6 +86,6 @@ model.testNbSubShapes(Extrusion_2, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_2, GeomAPI_Shape.FACE, [16])
 model.testNbSubShapes(Extrusion_2, GeomAPI_Shape.EDGE, [64])
 model.testNbSubShapes(Extrusion_2, GeomAPI_Shape.VERTEX, [128])
-model.testResultsVolumes(Extrusion_2, [10242.31054])
+model.testResultsAreas(Extrusion_2, [10242.31054])
 
 assert(model.checkPythonDump())
\ No newline at end of file
index 92b68beaff0e92ddc3fd6476f71877e97293e4e9..69d10692d777033d08616e507be6c76b91196f5f 100644 (file)
@@ -85,7 +85,7 @@ model.testNbSubShapes(Pipe_2, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.FACE, [5])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.EDGE, [20])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.VERTEX, [40])
-model.testResultsVolumes(Pipe_2, [26549.49767585])
+model.testResultsAreas(Pipe_2, [26549.49767585])
 
 # Cut should have no results
 model.testNbResults(Cut_1, 0)
index 41e4615f4964adac599a7c057d40adaf0d189a52..da092afd0df5ebc58ec69801bb0683e41c00e0d3 100644 (file)
@@ -109,6 +109,6 @@ model.testNbSubShapes(Pipe_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Pipe_1, GeomAPI_Shape.FACE, [12])
 model.testNbSubShapes(Pipe_1, GeomAPI_Shape.EDGE, [48])
 model.testNbSubShapes(Pipe_1, GeomAPI_Shape.VERTEX, [96])
-model.testResultsVolumes(Pipe_1, [27370.29819])
+model.testResultsAreas(Pipe_1, [27370.29819])
 
 assert(model.checkPythonDump())
index dbae3cea1aced53b7cbfd032248e6e2e310f1894..0d89fc335cb8276e64f9e614e9bd1c2b3b3bd0a0 100644 (file)
@@ -62,7 +62,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [2377.030013, 800, 2377.030013, 916.515139])
+model.testResultsAreas(Extrusion_1, [2377.030013, 800, 2377.030013, 916.515139])
 
 # change radius of cylinder
 ParamR.setValue(10)
@@ -82,7 +82,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1840.601542, 529.150262, 1840.601542, 692.820323])
+model.testResultsAreas(Extrusion_1, [1840.601542, 529.150262, 1840.601542, 692.820323])
 
 # change offsetting "To" face
 ParamTo.setValue(-20)
@@ -98,7 +98,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [2899.292521, 1039.2304845, 2899.292521, 1131.3708499])
+model.testResultsAreas(Extrusion_1, [2899.292521, 1039.2304845, 2899.292521, 1131.3708499])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -109,7 +109,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [3899.292521, 1439.2304845, 3899.292521, 1531.3708499])
+model.testResultsAreas(Extrusion_1, [3899.292521, 1439.2304845, 3899.292521, 1531.3708499])
 
 ParamFrom.setValue(-20)
 model.do()
@@ -119,7 +119,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1899.292521, 639.2304845, 1899.292521, 731.3708499])
+model.testResultsAreas(Extrusion_1, [1899.292521, 639.2304845, 1899.292521, 731.3708499])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index ebac64a8b7583c5bdb08f6d2f7ca1f4d7370e448..b519388d6163b4b1e71aac4a75266445fbd27b53 100644 (file)
@@ -63,7 +63,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [4877.030013, 1800, 4877.030013, 1916.515139])
+model.testResultsAreas(Extrusion_1, [4877.030013, 1800, 4877.030013, 1916.515139])
 
 # change radius of cylinder and check failure
 ParamR.setValue(10)
@@ -83,7 +83,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [4340.6015418, 1529.1502622, 4340.6015418, 1692.820323])
+model.testResultsAreas(Extrusion_1, [4340.6015418, 1529.1502622, 4340.6015418, 1692.820323])
 
 # change offsetting "To" face and check failure
 ParamTo.setValue(-20)
@@ -99,7 +99,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [5399.2925211, 2039.2304845, 5399.2925212, 2131.37085])
+model.testResultsAreas(Extrusion_1, [5399.2925211, 2039.2304845, 5399.2925212, 2131.37085])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -110,7 +110,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [6399.2925211, 2439.2304845, 6399.2925212, 2531.37085])
+model.testResultsAreas(Extrusion_1, [6399.2925211, 2439.2304845, 6399.2925212, 2531.37085])
 
 ParamFrom.setValue(-20)
 model.do()
@@ -120,7 +120,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [4399.2925211, 1639.2304845, 4399.2925212, 1731.37085])
+model.testResultsAreas(Extrusion_1, [4399.2925211, 1639.2304845, 4399.2925212, 1731.37085])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index 5383c9ac53f7d859410429d075a415dbf1d29199..610674bab29edf979ee826096608fa0ceaa4c229 100644 (file)
@@ -82,7 +82,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1911.43203298, 1911.43203298, 4564.43663366])
+model.testResultsAreas(Extrusion_1, [1911.43203298, 1911.43203298, 4564.43663366])
 
 # change radius of sphere and check failure
 ParamR.setValue(10)
@@ -98,7 +98,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1034.989222291, 1034.989222291, 2276.43702246])
+model.testResultsAreas(Extrusion_1, [1034.989222291, 1034.989222291, 2276.43702246])
 
 ParamR.setValue(40);
 model.do()
@@ -108,7 +108,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1505.0174, 1505.0174, 3530.28837537636])
+model.testResultsAreas(Extrusion_1, [1505.0174, 1505.0174, 3530.28837537636])
 
 # change size of the face
 ParamSize.setValue(10)
@@ -119,7 +119,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1505.0174, 1505.0174, 3530.28837537636])
+model.testResultsAreas(Extrusion_1, [1505.0174, 1505.0174, 3530.28837537636])
 
 # change offsetting "To" face and check failure
 ParamTo.setValue(-20)
@@ -135,7 +135,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [2295.81450653, 2295.81450653, 5527.16645028])
+model.testResultsAreas(Extrusion_1, [2295.81450653, 2295.81450653, 5527.16645028])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -146,7 +146,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1595.81450653, 1595.81450653, 3814.47306888])
+model.testResultsAreas(Extrusion_1, [1595.81450653, 1595.81450653, 3814.47306888])
 
 ParamFrom.setValue(-20)
 model.do()
@@ -156,7 +156,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [2995.81450653, 2995.81450653, 7239.85983168])
+model.testResultsAreas(Extrusion_1, [2995.81450653, 2995.81450653, 7239.85983168])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index 4cba579cbb66bec38f2ecf3b0b339525cabb0dce..d1da71150299084760addac0b29eade2604c2d46 100644 (file)
@@ -101,7 +101,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1708.843326299, 1708.843325768, 1895.559443038])
+model.testResultsAreas(Extrusion_1, [1708.843326299, 1708.843325768, 1895.559443038])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -112,7 +112,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [2915.069101129, 2915.069100598, 4138.27332218])
+model.testResultsAreas(Extrusion_1, [2915.069101129, 2915.069100598, 4138.27332218])
 
 # check failure
 ParamFrom.setValue(-20)
@@ -128,7 +128,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 8])
-model.testResultsVolumes(Extrusion_1, [1105.7304388842, 1105.730438353, 774.2025034671])
+model.testResultsAreas(Extrusion_1, [1105.7304388842, 1105.730438353, 774.2025034671])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index 1782b69efe8604dcc9dac8f5891ba8dc1ad69a33..f09d1b56080f8d307feca373f967e864812f9ed7 100644 (file)
@@ -51,7 +51,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Extrusion_1, [2178.8497332])
+model.testResultsAreas(Extrusion_1, [2178.8497332])
 
 # change radius of sketch circle
 ParamRCir.setValue(17)
@@ -62,7 +62,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [10])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [20])
-model.testResultsVolumes(Extrusion_1, [3960.00723])
+model.testResultsAreas(Extrusion_1, [3960.00723])
 
 # change radius of sphere
 ParamRSph.setValue(10)
@@ -73,7 +73,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [5])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [10])
-model.testResultsVolumes(Extrusion_1, [3658.7714])
+model.testResultsAreas(Extrusion_1, [3658.7714])
 
 # change radius of sketch circle and check failure
 ParamRCir.setValue(10)
@@ -89,7 +89,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Extrusion_1, [1398.72992867])
+model.testResultsAreas(Extrusion_1, [1398.72992867])
 
 # change radius of cylinder
 ParamRCyl.setValue(10)
@@ -100,7 +100,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [6])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [12])
-model.testResultsVolumes(Extrusion_1, [4194.25709])
+model.testResultsAreas(Extrusion_1, [4194.25709])
 
 ParamRCyl.setValue(50)
 model.do()
@@ -110,7 +110,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Extrusion_1, [1433.0518])
+model.testResultsAreas(Extrusion_1, [1433.0518])
 
 # change offsetting "To" face
 ParamTo.setValue(-20)
@@ -121,7 +121,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [10])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [20])
-model.testResultsVolumes(Extrusion_1, [5078.347278])
+model.testResultsAreas(Extrusion_1, [5078.347278])
 
 # revert failure
 ParamTo.setValue(20)
@@ -132,7 +132,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Extrusion_1, [1504.36096473])
+model.testResultsAreas(Extrusion_1, [1504.36096473])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -143,7 +143,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Extrusion_1, [4336.142699])
+model.testResultsAreas(Extrusion_1, [4336.142699])
 
 ParamFrom.setValue(-20)
 model.do()
@@ -153,7 +153,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Extrusion_1, [1118.8887326])
+model.testResultsAreas(Extrusion_1, [1118.8887326])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index e25dd0dc7a2b2ef5ab2fb8aab0a1f3ccdb0531e6..9904f5f5a7cb4bcf7173c94a54f290b4bb4a632b 100644 (file)
@@ -62,7 +62,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 5])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 10])
-model.testResultsVolumes(Extrusion_1, [1309.42058662, 1016.82520496, 2589.5946928])
+model.testResultsAreas(Extrusion_1, [1309.42058662, 1016.82520496, 2589.5946928])
 
 # change radius of sphere and check failure
 ParamR.setValue(10)
@@ -78,7 +78,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 5])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 10])
-model.testResultsVolumes(Extrusion_1, [1081.93830116, 793.80218227, 2095.8021933])
+model.testResultsAreas(Extrusion_1, [1081.93830116, 793.80218227, 2095.8021933])
 
 # change offsetting "To" face and check failure
 ParamTo.setValue(-20)
@@ -94,7 +94,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 5])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 10])
-model.testResultsVolumes(Extrusion_1, [1314.8586588, 1022.169915122, 2601.32913399])
+model.testResultsAreas(Extrusion_1, [1314.8586588, 1022.169915122, 2601.32913399])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -103,7 +103,7 @@ model.testNbResults(Extrusion_1, 3)
 model.testNbSubResults(Extrusion_1, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
-model.testResultsVolumes(Extrusion_1, [825.71966141, 533.030917699, 1551.6191757579])
+model.testResultsAreas(Extrusion_1, [825.71966141, 533.030917699, 1551.6191757579])
 
 ParamFrom.setValue(-20)
 model.do()
@@ -111,7 +111,7 @@ model.testNbResults(Extrusion_1, 3)
 model.testNbSubResults(Extrusion_1, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0, 0, 0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [1, 1, 1])
-model.testResultsVolumes(Extrusion_1, [1803.997656259, 1511.308912545, 3651.0390970659])
+model.testResultsAreas(Extrusion_1, [1803.997656259, 1511.308912545, 3651.0390970659])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index ee57d7af9c416d4c2102f06694671f0ebf7d68ae..5c12d9cc6f06869b9ae509cf4a8b198e327b528b 100644 (file)
@@ -61,7 +61,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [16])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [32])
-model.testResultsVolumes(Extrusion_1, [6470.575165134267])
+model.testResultsAreas(Extrusion_1, [6470.575165134267])
 
 # change radius of cylinder
 ParamR.setValue(10)
@@ -72,7 +72,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Extrusion_1, [314.159265359])
+model.testResultsAreas(Extrusion_1, [314.159265359])
 
 ParamR.setValue(30)
 model.do()
@@ -82,7 +82,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [3])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [10])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [20])
-model.testResultsVolumes(Extrusion_1, [2964.89877572])
+model.testResultsAreas(Extrusion_1, [2964.89877572])
 
 # check the intersected boundaries are processed well
 ParamR.setValue(40);
@@ -93,7 +93,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [16])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [32])
-model.testResultsVolumes(Extrusion_1, [4903.173668915])
+model.testResultsAreas(Extrusion_1, [4903.173668915])
 
 # change offsetting "To" face
 ParamTo.setValue(-20)
@@ -104,7 +104,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Extrusion_1, [1256.637061267])
+model.testResultsAreas(Extrusion_1, [1256.637061267])
 
 ParamTo.setValue(20)
 model.do()
@@ -114,7 +114,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [16])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [32])
-model.testResultsVolumes(Extrusion_1, [7969.186376787])
+model.testResultsAreas(Extrusion_1, [7969.186376787])
 
 # offset "From" face
 ParamFrom.setValue(20)
@@ -125,7 +125,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [16])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [32])
-model.testResultsVolumes(Extrusion_1, [5169.186376787])
+model.testResultsAreas(Extrusion_1, [5169.186376787])
 
 ParamFrom.setValue(-20)
 model.do()
@@ -135,7 +135,7 @@ model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [4])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [16])
 model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [32])
-model.testResultsVolumes(Extrusion_1, [10769.186376787])
+model.testResultsAreas(Extrusion_1, [10769.186376787])
 
 model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc)
 
index 7442e963fca9e820521edfa12cd49872ea576c9c..a18ca37365193307333d6a6677c618b20c3b42cc 100644 (file)
@@ -88,6 +88,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)
@@ -102,6 +103,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)
@@ -117,6 +119,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)
@@ -131,7 +134,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)
@@ -145,7 +149,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)
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)
index f416272c75611e4c742a99d18dceb9c9e0793dbb..14de933f40c4b1c241aaeaec8611dbdb670c3b12 100644 (file)
@@ -88,6 +88,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)
@@ -102,6 +103,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)
@@ -117,6 +119,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)
@@ -131,7 +134,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)
@@ -145,7 +149,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)
index 199af9d667b0352c848b4386c6ab133cbe09ee01..cdef8ba1617668b17bb462231eacf24e3cc4b7ab 100644 (file)
@@ -89,6 +89,7 @@ model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.VERTEX, [COPIES])
 model.testResultsVolumes(MultiTranslation_1, [0])
+model.testResultsAreas(MultiTranslation_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_1.defaultResult().shape().middlePoint()
@@ -102,6 +103,7 @@ model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.EDGE, [COPIES])
 model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.VERTEX, [2 * COPIES])
 model.testResultsVolumes(MultiTranslation_2, [0])
+model.testResultsAreas(MultiTranslation_2, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Edge_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
@@ -116,6 +118,7 @@ model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.EDGE, [2 * COPIES])
 model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.VERTEX, [4 * COPIES])
 model.testResultsVolumes(MultiTranslation_3, [0])
+model.testResultsAreas(MultiTranslation_3, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Wire_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
@@ -129,7 +132,8 @@ model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.FACE, [COPIES])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.EDGE, [4 * COPIES])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.VERTEX, [8 * COPIES])
-model.testResultsVolumes(MultiTranslation_4, [109.154152964914914 * COPIES])
+model.testResultsVolumes(MultiTranslation_4, [0])
+model.testResultsAreas(MultiTranslation_4, [109.154152964914914 * COPIES])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_4.defaultResult().shape().middlePoint()
@@ -142,7 +146,8 @@ model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.FACE, [2 * COPIES])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.EDGE, [8 * COPIES])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.VERTEX, [16 * COPIES])
-model.testResultsVolumes(MultiTranslation_5, [182.822012116 * COPIES])
+model.testResultsVolumes(MultiTranslation_5, [0])
+model.testResultsAreas(MultiTranslation_5, [182.822012116 * COPIES])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_5.defaultResult().shape().middlePoint()
index 2c627b9643e992cc863d30f8c4604b3f92bc2772..2f7a1eaa0a22d62f9c20119ecf922a2daba67638 100644 (file)
@@ -91,6 +91,7 @@ model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.VERTEX, [COPIES])
 model.testResultsVolumes(MultiTranslation_1, [0])
+model.testResultsAreas(MultiTranslation_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_1.defaultResult().shape().middlePoint()
@@ -105,6 +106,7 @@ model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.EDGE, [COPIES])
 model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.VERTEX, [2 * COPIES])
 model.testResultsVolumes(MultiTranslation_2, [0])
+model.testResultsAreas(MultiTranslation_2, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Edge_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
@@ -120,6 +122,7 @@ model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.EDGE, [2 * COPIES])
 model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.VERTEX, [4 * COPIES])
 model.testResultsVolumes(MultiTranslation_3, [0])
+model.testResultsAreas(MultiTranslation_3, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Wire_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
@@ -134,7 +137,8 @@ model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.FACE, [COPIES])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.EDGE, [4 * COPIES])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.VERTEX, [8 * COPIES])
-model.testResultsVolumes(MultiTranslation_4, [109.154152964914914 * COPIES])
+model.testResultsVolumes(MultiTranslation_4, [0])
+model.testResultsAreas(MultiTranslation_4, [109.154152964914914 * COPIES])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_4.defaultResult().shape().middlePoint()
@@ -148,7 +152,8 @@ model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.FACE, [2 * COPIES])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.EDGE, [8 * COPIES])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.VERTEX, [16 * COPIES])
-model.testResultsVolumes(MultiTranslation_5, [182.822012116 * COPIES])
+model.testResultsVolumes(MultiTranslation_5, [0])
+model.testResultsAreas(MultiTranslation_5, [182.822012116 * COPIES])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_5.defaultResult().shape().middlePoint()
index 4b851506b9b6dc20659173f3e340445fee9543c6..58bfab26338c88e8673165a4c9d93f04fda2dde2 100644 (file)
@@ -89,6 +89,7 @@ model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(MultiTranslation_1, GeomAPI_Shape.VERTEX, [COPIES])
 model.testResultsVolumes(MultiTranslation_1, [0])
+model.testResultsAreas(MultiTranslation_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_1.defaultResult().shape().middlePoint()
@@ -102,6 +103,7 @@ model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.EDGE, [COPIES])
 model.testNbSubShapes(MultiTranslation_2, GeomAPI_Shape.VERTEX, [2 * COPIES])
 model.testResultsVolumes(MultiTranslation_2, [0])
+model.testResultsAreas(MultiTranslation_2, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Edge_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
@@ -116,6 +118,7 @@ model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.EDGE, [2 * COPIES])
 model.testNbSubShapes(MultiTranslation_3, GeomAPI_Shape.VERTEX, [4 * COPIES])
 model.testResultsVolumes(MultiTranslation_3, [0])
+model.testResultsAreas(MultiTranslation_3, [0])
 comp = GeomAlgoAPI_CompoundBuilder.compound([Wire_1.defaultResult().shape()])
 refPoint = comp.middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
@@ -129,7 +132,8 @@ model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.FACE, [COPIES])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.EDGE, [4 * COPIES])
 model.testNbSubShapes(MultiTranslation_4, GeomAPI_Shape.VERTEX, [8 * COPIES])
-model.testResultsVolumes(MultiTranslation_4, [109.154152964914914 * COPIES])
+model.testResultsVolumes(MultiTranslation_4, [0])
+model.testResultsAreas(MultiTranslation_4, [109.154152964914914 * COPIES])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_4.defaultResult().shape().middlePoint()
@@ -142,7 +146,8 @@ model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.FACE, [2 * COPIES])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.EDGE, [8 * COPIES])
 model.testNbSubShapes(MultiTranslation_5, GeomAPI_Shape.VERTEX, [16 * COPIES])
-model.testResultsVolumes(MultiTranslation_5, [182.822012116 * COPIES])
+model.testResultsVolumes(MultiTranslation_5, [0])
+model.testResultsAreas(MultiTranslation_5, [182.822012116 * COPIES])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + DISTANCE / 2 * (COPIES - 1))
 midPoint = MultiTranslation_5.defaultResult().shape().middlePoint()
index d0f1abaab2e4275774c65161f5395cfea3026db7..8701f00065adac7a95dd3c0563cb86d601e5a329 100644 (file)
@@ -42,7 +42,7 @@ model.testNbSubShapes(Pipe_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Pipe_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Pipe_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Pipe_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Pipe_1, [3693.366575752712378744035959244])
+model.testResultsAreas(Pipe_1, [3693.366575752712378744035959244])
 
 model.testNbResults(Pipe_2, 1)
 model.testNbSubResults(Pipe_2, [0])
@@ -50,4 +50,4 @@ model.testNbSubShapes(Pipe_2, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Pipe_2, [3543.018638942841789685189723969])
+model.testResultsAreas(Pipe_2, [3543.018638942841789685189723969])
index 8bc4bbd987e163bcf5bb275f8ba0c8daa94d8c3f..6e3c20a08d2521c581940ee825ebe366c3d804cd 100644 (file)
@@ -65,4 +65,4 @@ model.testNbSubShapes(Pipe_2, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.FACE, [3])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.EDGE, [12])
 model.testNbSubShapes(Pipe_2, GeomAPI_Shape.VERTEX, [24])
-model.testResultsVolumes(Pipe_2, [6000])
+model.testResultsAreas(Pipe_2, [6000])
index c66e0407e4efd68f6073a9456ebcb326c4c078c5..fc757724fbc4034203cf43bf29d2f1289303f9ee 100644 (file)
@@ -86,6 +86,7 @@ model.testNbSubShapes(Placement_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Placement_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Placement_1, [0])
+model.testResultsAreas(Placement_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_1.defaultResult().shape().middlePoint()
@@ -99,6 +100,7 @@ model.testNbSubShapes(Placement_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Placement_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Placement_2, [0])
+model.testResultsAreas(Placement_2, [0])
 refPoint = Edge_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_2.defaultResult().shape().middlePoint()
@@ -112,6 +114,7 @@ model.testNbSubShapes(Placement_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Placement_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Placement_3, [0])
+model.testResultsAreas(Placement_3, [0])
 refPoint = Wire_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_3.defaultResult().shape().middlePoint()
@@ -124,7 +127,8 @@ model.testNbSubShapes(Placement_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Placement_4, [109.154152964914914])
+model.testResultsVolumes(Placement_4, [0])
+model.testResultsAreas(Placement_4, [109.154152964914914])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_4.defaultResult().shape().middlePoint()
@@ -137,7 +141,8 @@ model.testNbSubShapes(Placement_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Placement_5, [182.822012116])
+model.testResultsVolumes(Placement_5, [0])
+model.testResultsAreas(Placement_5, [182.822012116])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_5.defaultResult().shape().middlePoint()
index eae3e70dda9ec8235dc11d94a63c358c0b5f90f3..d6cabdb1d0cae8363cd733c3c6f88229fb045787 100644 (file)
@@ -96,6 +96,7 @@ model.testNbSubShapes(Placement_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Placement_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Placement_1, [0])
+model.testResultsAreas(Placement_1, [0])
 midPoint = Placement_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -109,6 +110,7 @@ model.testNbSubShapes(Placement_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Placement_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Placement_2, [0])
+model.testResultsAreas(Placement_2, [0])
 midPoint = Placement_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -122,6 +124,7 @@ model.testNbSubShapes(Placement_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Placement_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Placement_3, [0])
+model.testResultsAreas(Placement_3, [0])
 midPoint = Placement_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -134,7 +137,8 @@ model.testNbSubShapes(Placement_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Placement_4, [109.154152964914914])
+model.testResultsVolumes(Placement_4, [0])
+model.testResultsAreas(Placement_4, [109.154152964914914])
 midPoint = Placement_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -147,7 +151,8 @@ model.testNbSubShapes(Placement_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Placement_5, [182.822012116])
+model.testResultsVolumes(Placement_5, [0])
+model.testResultsAreas(Placement_5, [182.822012116])
 midPoint = Placement_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
index 86ec4d26af977cb64d470a88523491e755a7c1c7..1b25df154bde6eb063c75e0964f962c00285a8c9 100644 (file)
@@ -86,6 +86,7 @@ model.testNbSubShapes(Placement_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Placement_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Placement_1, [0])
+model.testResultsAreas(Placement_1, [0])
 refPoint = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_1.defaultResult().shape().middlePoint()
@@ -99,6 +100,7 @@ model.testNbSubShapes(Placement_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Placement_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Placement_2, [0])
+model.testResultsAreas(Placement_2, [0])
 refPoint = Edge_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_2.defaultResult().shape().middlePoint()
@@ -112,6 +114,7 @@ model.testNbSubShapes(Placement_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Placement_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Placement_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Placement_3, [0])
+model.testResultsAreas(Placement_3, [0])
 refPoint = Wire_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_3.defaultResult().shape().middlePoint()
@@ -124,7 +127,8 @@ model.testNbSubShapes(Placement_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Placement_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Placement_4, [109.154152964914914])
+model.testResultsVolumes(Placement_4, [0])
+model.testResultsAreas(Placement_4, [109.154152964914914])
 refPoint = Face_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_4.defaultResult().shape().middlePoint()
@@ -137,7 +141,8 @@ model.testNbSubShapes(Placement_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Placement_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Placement_5, [182.822012116])
+model.testResultsVolumes(Placement_5, [0])
+model.testResultsAreas(Placement_5, [182.822012116])
 refPoint = Shell_1.defaultResult().shape().middlePoint()
 refPoint.setZ(refPoint.z() + Z_SHIFT)
 midPoint = Placement_5.defaultResult().shape().middlePoint()
index 2e33b79ef37d7312e2ca08e36460420ad314184e..36cdbe00e490b7f007c00021aabbfd6f7cb64050 100644 (file)
@@ -36,7 +36,7 @@ model.testNbSubShapes(Revolution_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Revolution_1, [666.43244])
+model.testResultsAreas(Revolution_1, [666.43244])
 
 Revolution_1.setPlanesAndOffsets(model.selection("FACE", "PartSet/YOZ"), 0, model.selection("FACE", "PartSet/XOZ"), 0)
 
@@ -46,7 +46,7 @@ model.testNbSubShapes(Revolution_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Revolution_1, [333.21622])
+model.testResultsAreas(Revolution_1, [333.21622])
 
 model.end()
 
index 663d6058445b5de197e7428eac1c44697ecf60c5..9f06f283a529c2dff1f9cd78e73483e498db6767 100644 (file)
@@ -88,6 +88,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 = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_1.defaultResult().shape().middlePoint()
@@ -101,6 +102,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 = Edge_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_2.defaultResult().shape().middlePoint()
@@ -114,6 +116,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 = Wire_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_3.defaultResult().shape().middlePoint()
@@ -126,7 +129,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 = Face_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_4.defaultResult().shape().middlePoint()
@@ -139,7 +143,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 = Shell_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_5.defaultResult().shape().middlePoint()
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()
index 45750ed6a6fea406f557da5cf80fc4a8ad93cdc9..18a8137c1a13323e974933c62485691753624072 100644 (file)
@@ -88,6 +88,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 = Vertex_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_1.defaultResult().shape().middlePoint()
@@ -101,6 +102,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 = Edge_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_2.defaultResult().shape().middlePoint()
@@ -114,6 +116,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 = Wire_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_3.defaultResult().shape().middlePoint()
@@ -126,7 +129,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 = Face_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_4.defaultResult().shape().middlePoint()
@@ -139,7 +143,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 = Shell_1.defaultResult().shape().middlePoint()
 refPoint.rotate(AXIS, ANGLE)
 midPoint = Rotation_5.defaultResult().shape().middlePoint()
index 4ac842d053feddb9b80cbb5a8e0fdd399cb485ce..46ea3a16f385d94c0e1a7512ea2bbd6de94f0937 100644 (file)
@@ -87,6 +87,7 @@ model.testNbSubShapes(Scale_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Scale_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Scale_1, [0])
+model.testResultsAreas(Scale_1, [0])
 refPoint = GeomAPI_Pnt(Vertex_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -99,6 +100,7 @@ model.testNbSubShapes(Scale_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Scale_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Scale_2, [0])
+model.testResultsAreas(Scale_2, [0])
 refPoint = GeomAPI_Pnt(Edge_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -111,6 +113,7 @@ model.testNbSubShapes(Scale_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Scale_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Scale_3, [0])
+model.testResultsAreas(Scale_3, [0])
 refPoint = GeomAPI_Pnt(Wire_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -122,7 +125,8 @@ model.testNbSubShapes(Scale_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Scale_4, [109.154152964914914 * (SCALE**2)])
+model.testResultsVolumes(Scale_4, [0])
+model.testResultsAreas(Scale_4, [109.154152964914914 * (SCALE**2)])
 refPoint = GeomAPI_Pnt(Face_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -134,7 +138,8 @@ model.testNbSubShapes(Scale_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Scale_5, [182.822012116 * (SCALE**2)])
+model.testResultsVolumes(Scale_5, [0])
+model.testResultsAreas(Scale_5, [182.822012116 * (SCALE**2)])
 refPoint = GeomAPI_Pnt(Shell_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
index 23cf7c5c4831e34c499733d8f982dea7112894ef..4b9d7442042f4230a5829998d727abda48d64056 100644 (file)
@@ -89,6 +89,7 @@ model.testNbSubShapes(Scale_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Scale_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Scale_1, [0])
+model.testResultsAreas(Scale_1, [0])
 refPoint = GeomAPI_Pnt(Compound_1.result().subResult(0).resultSubShapePair()[0].shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -102,6 +103,7 @@ model.testNbSubShapes(Scale_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Scale_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Scale_2, [0])
+model.testResultsAreas(Scale_2, [0])
 refPoint = GeomAPI_Pnt(Compound_1.result().subResult(1).resultSubShapePair()[0].shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -115,6 +117,7 @@ model.testNbSubShapes(Scale_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Scale_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Scale_3, [0])
+model.testResultsAreas(Scale_3, [0])
 refPoint = GeomAPI_Pnt(Compound_1.result().subResult(2).resultSubShapePair()[0].shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -127,7 +130,8 @@ model.testNbSubShapes(Scale_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Scale_4, [109.154152964914914 * (SCALE**2)])
+model.testResultsVolumes(Scale_4, [0])
+model.testResultsAreas(Scale_4, [109.154152964914914 * (SCALE**2)])
 refPoint = GeomAPI_Pnt(Compound_1.result().subResult(3).resultSubShapePair()[0].shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -140,7 +144,8 @@ model.testNbSubShapes(Scale_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Scale_5, [182.822012116 * (SCALE**2)])
+model.testResultsVolumes(Scale_5, [0])
+model.testResultsAreas(Scale_5, [182.822012116 * (SCALE**2)])
 refPoint = GeomAPI_Pnt(Compound_1.result().subResult(4).resultSubShapePair()[0].shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
index f87072313956718facdc3f361d5434b0adfe13b8..43dd85f51aba356cb5da1883df0406170a65d4d9 100644 (file)
@@ -87,6 +87,7 @@ model.testNbSubShapes(Scale_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Scale_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Scale_1, [0])
+model.testResultsAreas(Scale_1, [0])
 refPoint = GeomAPI_Pnt(Vertex_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -99,6 +100,7 @@ model.testNbSubShapes(Scale_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Scale_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Scale_2, [0])
+model.testResultsAreas(Scale_2, [0])
 refPoint = GeomAPI_Pnt(Edge_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -111,6 +113,7 @@ model.testNbSubShapes(Scale_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Scale_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Scale_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Scale_3, [0])
+model.testResultsAreas(Scale_3, [0])
 refPoint = GeomAPI_Pnt(Wire_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -122,7 +125,8 @@ model.testNbSubShapes(Scale_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Scale_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Scale_4, [109.154152964914914 * (SCALE**2)])
+model.testResultsVolumes(Scale_4, [0])
+model.testResultsAreas(Scale_4, [109.154152964914914 * (SCALE**2)])
 refPoint = GeomAPI_Pnt(Face_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -134,7 +138,8 @@ model.testNbSubShapes(Scale_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Scale_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Scale_5, [182.822012116 * (SCALE**2)])
+model.testResultsVolumes(Scale_5, [0])
+model.testResultsAreas(Scale_5, [182.822012116 * (SCALE**2)])
 refPoint = GeomAPI_Pnt(Shell_1.defaultResult().shape().middlePoint().xyz().multiplied(SCALE))
 midPoint = Scale_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
index a9027c2cef6930925d268a56afbcddfacef23051..001fffc04c2344da2bb07a352a560b13ea813c56 100644 (file)
@@ -89,6 +89,7 @@ model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Symmetry_1, [0])
+model.testResultsAreas(Symmetry_1, [0])
 refPoint = symmetryOZ(Vertex_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -101,6 +102,7 @@ model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Symmetry_2, [0])
+model.testResultsAreas(Symmetry_2, [0])
 refPoint = symmetryOZ(Edge_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -113,6 +115,7 @@ model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Symmetry_3, [0])
+model.testResultsAreas(Symmetry_3, [0])
 refPoint = symmetryOZ(Wire_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -124,7 +127,8 @@ model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Symmetry_4, [109.154152964914914])
+model.testResultsVolumes(Symmetry_4, [0])
+model.testResultsAreas(Symmetry_4, [109.154152964914914])
 refPoint = symmetryOZ(Face_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -136,7 +140,8 @@ model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Symmetry_5, [182.822012116])
+model.testResultsVolumes(Symmetry_5, [0])
+model.testResultsAreas(Symmetry_5, [182.822012116])
 refPoint = symmetryOZ(Shell_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
index ff02dc40a13a2aede049a861ba3acbc19b36d98a..3a34d05010ea4564c20e8fe013356ffa054f4b48 100644 (file)
@@ -96,6 +96,7 @@ model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Symmetry_1, [0])
+model.testResultsAreas(Symmetry_1, [0])
 midPoint = Symmetry_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -109,6 +110,7 @@ model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Symmetry_2, [0])
+model.testResultsAreas(Symmetry_2, [0])
 midPoint = Symmetry_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -122,6 +124,7 @@ model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Symmetry_3, [0])
+model.testResultsAreas(Symmetry_3, [0])
 midPoint = Symmetry_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -134,7 +137,8 @@ model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Symmetry_4, [109.154152964914914])
+model.testResultsVolumes(Symmetry_4, [0])
+model.testResultsAreas(Symmetry_4, [109.154152964914914])
 midPoint = Symmetry_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
@@ -147,7 +151,8 @@ model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Symmetry_5, [182.822012116])
+model.testResultsVolumes(Symmetry_5, [0])
+model.testResultsAreas(Symmetry_5, [182.822012116])
 midPoint = Symmetry_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(REFERENCE[index]) < TOLERANCE)
 index += 1
index 68383bd041cdbba4b4d623f4d6ce151ed6010e53..77d5edfc1ecba1a864120c79d3cac6131216a31b 100644 (file)
@@ -89,6 +89,7 @@ model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.EDGE, [0])
 model.testNbSubShapes(Symmetry_1, GeomAPI_Shape.VERTEX, [1])
 model.testResultsVolumes(Symmetry_1, [0])
+model.testResultsAreas(Symmetry_1, [0])
 refPoint = symmetryOZ(Vertex_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_1.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -101,6 +102,7 @@ model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.EDGE, [1])
 model.testNbSubShapes(Symmetry_2, GeomAPI_Shape.VERTEX, [2])
 model.testResultsVolumes(Symmetry_2, [0])
+model.testResultsAreas(Symmetry_2, [0])
 refPoint = symmetryOZ(Edge_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_2.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -113,6 +115,7 @@ model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.FACE, [0])
 model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.EDGE, [2])
 model.testNbSubShapes(Symmetry_3, GeomAPI_Shape.VERTEX, [4])
 model.testResultsVolumes(Symmetry_3, [0])
+model.testResultsAreas(Symmetry_3, [0])
 refPoint = symmetryOZ(Wire_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_3.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -124,7 +127,8 @@ model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.EDGE, [4])
 model.testNbSubShapes(Symmetry_4, GeomAPI_Shape.VERTEX, [8])
-model.testResultsVolumes(Symmetry_4, [109.154152964914914])
+model.testResultsVolumes(Symmetry_4, [0])
+model.testResultsAreas(Symmetry_4, [109.154152964914914])
 refPoint = symmetryOZ(Face_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_4.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
@@ -136,7 +140,8 @@ model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.FACE, [2])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.EDGE, [8])
 model.testNbSubShapes(Symmetry_5, GeomAPI_Shape.VERTEX, [16])
-model.testResultsVolumes(Symmetry_5, [182.822012116])
+model.testResultsVolumes(Symmetry_5, [0])
+model.testResultsAreas(Symmetry_5, [182.822012116])
 refPoint = symmetryOZ(Shell_1.defaultResult().shape().middlePoint())
 midPoint = Symmetry_5.defaultResult().shape().middlePoint()
 assert(midPoint.distance(refPoint) < TOLERANCE)
index 61d29899d6767e1276fc12dafe2d2f00013883f4..f42b6f70bb8e2fcc16e4a954e3c29815e4e7a527 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()
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
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()
index 488bcd0017862ac89ce35f48c2383ffc7cce62d2..5afea6047d5c0e1bcf99b9a2bda299cce8071b90 100644 (file)
@@ -58,6 +58,7 @@ model.testNbSubShapes(Cut_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Cut_1, GeomAPI_Shape.FACE, [3])
 model.testNbSubShapes(Cut_1, GeomAPI_Shape.EDGE, [9])
 model.testNbSubShapes(Cut_1, GeomAPI_Shape.VERTEX, [18])
-model.testResultsVolumes(Cut_1, [64.38055098])
+model.testResultsVolumes(Cut_1, [0.0])
+model.testResultsAreas(Cut_1, [64.38055098])
 
 assert(model.checkPythonDump())
index a04a4cb263b103d898f07d8455c49dfebf934639..f9da723e241d71460ddb467a52bc3df409cfaa99 100644 (file)
@@ -48,6 +48,6 @@ model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [0])
 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [1])
 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [3])
 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [6])
-model.testResultsVolumes(Part_1, [3416.5596])
+model.testResultsAreas(Part_1, [3416.5596])
 
 assert(model.checkPythonDump())
index a2ea86bcade75df046829b90666ae1fcd16f6b63..ac4d6af955844761fc6c7b7becd0af7f396fac4d 100644 (file)
@@ -74,10 +74,10 @@ def generateTests(theFeature, theFeatureName, theTestsList = []):
 
   if "testResultsAreas" in theTestsList or len(theTestsList) == 0:
     aNbResults = len(theFeature.results())
-    aResultsVolumes = []
+    aResultsAreas = []
     for anIndex in range(0, aNbResults):
       aResultsAreas.append(GeomAlgoAPI_ShapeTools_area(theFeature.results()[anIndex].resultSubShapePair()[0].shape()))
-    print("model.testResultsAreas({}, [{}])".format(theFeatureName, ", ".join("{:0.27f}".format(i) for i in aResultsVolumes)))
+    print("model.testResultsAreas({}, [{}])".format(theFeatureName, ", ".join("{:0.27f}".format(i) for i in aResultsAreas)))
 
 
 def testNbResults(theFeature, theExpectedNbResults):
@@ -140,10 +140,10 @@ def testResultsVolumes(theFeature, theExpectedResultsVolumes, theNbSignificantDi
     assert math.fabs(aResultVolume - anExpectedResultVolume) <= aTolerance * math.fabs(anExpectedResultVolume), "Volume of result[{}]: {:0.27f}. Expected: {:0.27f}. The first {} significant digits not equal.".format(anIndex, aResultVolume, anExpectedResultVolume, theNbSignificantDigits)
 
 
-def testResultsAreas(theFeature, theExpectedResultsAreas, theNbSignificantDigits = 7):
+def testResultsAreas(theFeature, theExpectedResultsVolumes, theNbSignificantDigits = 7):
   """ Tests results areas.
   :param theFeature: feature to test.
-  :param theExpectedResultsAreas: list of results volumes. Size of list should be equal to len(theFeature.results()).
+  :param theExpectedResultsAreas: list of results areas. Size of list should be equal to len(theFeature.results()).
   """
   aTolerance = 10**(-theNbSignificantDigits)
   aNbResults = len(theFeature.results())