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())
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])
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])
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())
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()
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()
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())
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())
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())
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())
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())
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])
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
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)
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())
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)
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)
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)
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()
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)
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)
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)
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)
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()
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)
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)
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()
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)
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)
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)
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()
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)
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)
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)
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)
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)
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)
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)
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)
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()
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)
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)
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)
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()
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)
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)
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)
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)
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()
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)
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)
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()
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);
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)
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()
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)
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()
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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()
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))
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))
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()
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()
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()
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))
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))
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()
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()
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()
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))
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))
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()
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()
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])
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])
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])
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()
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()
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()
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()
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()
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
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
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
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
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
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()
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()
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()
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()
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()
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)
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
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
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
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
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
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)
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)
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)
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)
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)
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()
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()
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()
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()
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()
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
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
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
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
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
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()
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()
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()
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()
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()
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())
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())
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):
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())