From a93eca51689fae229ccccb8aad90efea9163b5e2 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 5 Mar 2020 07:30:32 +0300 Subject: [PATCH] Update reference data according to behavior of OCCT 7.4.0. --- src/FeaturesPlugin/Test/Test2918.py | 16 ++++++++-------- .../Test/TestExtrusion_ByFaces03.py | 8 ++++---- .../Test/TestExtrusion_ByFaces04.py | 4 ++-- .../Test/TestExtrusion_ByFaces05.py | 12 ++++++------ .../Test/TestExtrusion_ByFaces09.py | 8 ++++---- .../Test/TestExtrusion_ByFaces10.py | 4 ++-- .../Test/TestExtrusion_ByFaces11.py | 12 ++++++------ .../Test/TestExtrusion_ByFaces15.py | 12 ++++++------ .../Test/TestExtrusion_ByFaces16.py | 12 ++++++------ .../Test/TestExtrusion_ByFaces17.py | 12 ++++++------ 10 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/FeaturesPlugin/Test/Test2918.py b/src/FeaturesPlugin/Test/Test2918.py index 530acf280..9c42f1bc2 100644 --- a/src/FeaturesPlugin/Test/Test2918.py +++ b/src/FeaturesPlugin/Test/Test2918.py @@ -236,9 +236,9 @@ SketchConstraintParallel_1 = Sketch_2.setParallel(SketchLine_41.result(), Sketch model.do() Revolution_2 = model.addRevolution(Part_1_doc, [model.selection("WIRE", (3.862008317343538, 0, 11.38077471561056))], model.selection("EDGE", (3.241000000000025, 0, 11.62374600149389)), 360, 0) Revolution_3 = model.addRevolution(Part_1_doc, [model.selection("WIRE", (4.212769702413368, 0, 11.10430922268928))], model.selection("EDGE", (3.241000000000025, 0, 11.62374600149389)), 360, 0) -Symmetry_1 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", (3.237001631529592, 7.752869270149964e-17, 11.61239765963003)), model.selection("SOLID", (3.223059230627338, 1.806177914907969e-16, 11.57282573597984))], model.selection("FACE", "PartSet/YOZ"), True) -Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", (9.171993615882458e-05, 1.467829010982793e-16, 1.298864381774082))], [model.selection("COMPOUND", (0, 0, 11.60508262087049))]) -Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", (9.190387067667382e-05, -2.335384201710612e-09, 1.278348504308934)), model.selection("COMPOUND", (0, 0, 11.54608275997197))], removeEdges = True) +Symmetry_1 = model.addSymmetry(Part_1_doc, [model.selection("SOLID", (3.237566604725065, 0, 11.61400119092393)), model.selection("SOLID", (3.223802337712571, 0, 11.57493485456337))], model.selection("FACE", "PartSet/YOZ"), True) +Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", (-0.02393444277354109, 0, -2.580701826672493))], [model.selection("COMPOUND", (0, 0, 11.60508262087049))]) +Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", (-0.0201067396659898, 0, -2.591493279115657)), model.selection("COMPOUND", (0, 0, 11.54608275997197))], removeEdges = True) Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), 3.6, False) Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", (0, 0, 3.6))) SketchProjection_9 = Sketch_3.addProjection(model.selection("EDGE", (-6.188, 7.578114393123822e-16, -3.45)), True) @@ -308,12 +308,12 @@ SketchConstraintCoincidence_95 = Sketch_4.setCoincident(SketchPoint_5.coordinate SketchConstraintDistance_27 = Sketch_4.setDistance(SketchPoint_5.coordinates(), SketchLine_51.endPoint(), 0.75, True) model.do() Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", (0, 0, 1.2))], model.selection(), 10, 0) -Rotation_1_objects = [model.selection("SOLID", (5, 1.166200656118862e-18, 1.2)), model.selection("SOLID", (6.038396788450424, -2.054057850558325e-15, 1.5)), model.selection("SOLID", (6.316150725419533, -7.758519898162708e-14, 1.5))] +Rotation_1_objects = [model.selection("SOLID", (5, 1.166200656118862e-18, 1.2)), model.selection("SOLID", (6.049686362669476, 0, 1.5)), model.selection("SOLID", (6.320976310013338, 0, 1.5))] Rotation_1 = model.addRotation(Part_1_doc, Rotation_1_objects, model.selection("EDGE", "PartSet/OZ"), -90) -Fuse_2_objects_1 = [model.selection("SOLID", (9.187239971515918e-05, -6.832080613557312e-09, 1.282177819724956)), model.selection("SOLID", (-1.349638054860434e-15, -6.038396788450424, 1.5)), model.selection("SOLID", (-7.680624658573511e-14, -6.316150725419533, 1.5))] +Fuse_2_objects_1 = [model.selection("SOLID", (-0.01517504751345233, 0, -2.581926283264175)), model.selection("SOLID", (0, -6.049686362669479, 1.5)), model.selection("SOLID", (0, -6.320976310013339, 1.5))] Fuse_2 = model.addFuse(Part_1_doc, Fuse_2_objects_1) -Cut_2 = model.addCut(Part_1_doc, [model.selection("SOLID", (9.177890659903279e-05, -0.006341145656800184, 1.28239948002437))], [model.selection("SOLID", (6.393306363619619e-16, -4.999999999999998, 1.2))]) -FusionFaces_1 = model.addFusionFaces(Part_1_doc, model.selection("SOLID", (9.190526314899106e-05, 0.002297421001363739, 1.282512923455053))) +Cut_2 = model.addCut(Part_1_doc, [model.selection("SOLID", (-0.01017608298903453, -0.03890028204629473, -2.562040714294322))], [model.selection("SOLID", (0, -5, 1.2))]) +FusionFaces_1 = model.addFusionFaces(Part_1_doc, model.selection("SOLID", (-0.008741742572144908, -0.03112823644757425, -2.568357186681257))) model.end() @@ -325,4 +325,4 @@ model.testNbSubShapes(FusionFaces_1, GeomAPI_Shape.EDGE, [202]) model.testNbSubShapes(FusionFaces_1, GeomAPI_Shape.VERTEX, [404]) model.testResultsVolumes(FusionFaces_1, [612.7268292882]) -assert(model.checkPythonDump()) \ No newline at end of file +assert(model.checkPythonDump()) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces03.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces03.py index af9a6c6a3..2dc3a65ed 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces03.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces03.py @@ -124,8 +124,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [1]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [5]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [22]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [44]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [18]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [36]) model.testResultsVolumes(Extrusion_1, [119535.04]) # offset "From" face @@ -143,8 +143,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [1]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [5]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [22]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [44]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [18]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [36]) model.testResultsVolumes(Extrusion_1, [154943.7]) model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces04.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces04.py index ef7c71136..893372b15 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces04.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces04.py @@ -96,8 +96,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [1]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [5]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [22]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [44]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [18]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [36]) model.testResultsVolumes(Extrusion_1, [105008.93]) # offset "From" face diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces05.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces05.py index 8715c1ecb..d65359ce8 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces05.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces05.py @@ -129,8 +129,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [16]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [32]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [12]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [24]) model.testResultsVolumes(Extrusion_1, [7626.2279286]) # offset "From" face @@ -140,8 +140,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [20]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [40]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [12]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [24]) model.testResultsVolumes(Extrusion_1, [21514.8965]) ParamFrom.setValue(-20) @@ -150,8 +150,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [20]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [40]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [12]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [24]) model.testResultsVolumes(Extrusion_1, [5427.194275658]) model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces09.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces09.py index ada092a9f..3cb53105e 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces09.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces09.py @@ -127,8 +127,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [9]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [34]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [68]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [30]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [60]) model.testResultsVolumes(Extrusion_1, [119535.04]) # offset "From" face @@ -146,8 +146,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [9]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [34]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [68]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [30]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [60]) model.testResultsVolumes(Extrusion_1, [154943.7]) model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces10.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces10.py index 024dd08aa..902a5654f 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces10.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces10.py @@ -100,8 +100,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [10]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [40]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [80]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [36]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [72]) model.testResultsVolumes(Extrusion_1, [105008.93]) # offset "From" face diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces11.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces11.py index 8156d5230..d832de0d8 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces11.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces11.py @@ -134,8 +134,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [4]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [18]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [64]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [128]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [60]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [120]) model.testResultsVolumes(Extrusion_1, [7626.2279286]) # offset "From" face @@ -145,8 +145,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [4]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [18]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [68]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [136]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [60]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [120]) model.testResultsVolumes(Extrusion_1, [21514.8965]) ParamFrom.setValue(-20) @@ -155,8 +155,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [4]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [18]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [68]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [136]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [60]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [120]) model.testResultsVolumes(Extrusion_1, [5427.194275658]) model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces15.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces15.py index edb34500c..e4e56a303 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces15.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces15.py @@ -133,8 +133,8 @@ 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.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 12]) +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]) # offset "From" face @@ -144,8 +144,8 @@ 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.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 12]) +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]) ParamFrom.setValue(-20) @@ -154,8 +154,8 @@ 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.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 12]) +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.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py index 8436dbc9d..c1e737d54 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces16.py @@ -99,8 +99,8 @@ 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.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 12]) +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]) # offset "From" face @@ -110,8 +110,8 @@ 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.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 12]) +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]) # check failure @@ -126,8 +126,8 @@ 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.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [4, 4, 6]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [8, 8, 12]) +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.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) diff --git a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces17.py b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces17.py index 3ec3accb8..8f2c380fc 100644 --- a/src/FeaturesPlugin/Test/TestExtrusion_ByFaces17.py +++ b/src/FeaturesPlugin/Test/TestExtrusion_ByFaces17.py @@ -130,8 +130,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [10]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [20]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16]) model.testResultsVolumes(Extrusion_1, [1504.36096473]) # offset "From" face @@ -141,8 +141,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [12]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [24]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16]) model.testResultsVolumes(Extrusion_1, [4336.142699]) ParamFrom.setValue(-20) @@ -151,8 +151,8 @@ model.testNbResults(Extrusion_1, 1) model.testNbSubResults(Extrusion_1, [2]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.SOLID, [0]) model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.FACE, [2]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [12]) -model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [24]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.EDGE, [8]) +model.testNbSubShapes(Extrusion_1, GeomAPI_Shape.VERTEX, [16]) model.testResultsVolumes(Extrusion_1, [1118.8887326]) model.testHaveNamingSubshapes(Extrusion_1, model, Part_1_doc) -- 2.39.2