GeomAPI_Shape.COMPSOLID]
CompSolid_1 = createCompSolidStepByStep(boundaries1, expectType1)
-model.checkBooleansResult(CompSolid_1, model, 1, [2], [2], [13], [54], [108])
+model.checkResult(CompSolid_1, model, 1, [2], [2], [13], [54], [108])
model.testHaveNamingSubshapes(CompSolid_1, model, Part_1_doc)
# =============================================================================
GeomAPI_Shape.COMPSOLID]
CompSolid_2 = createCompSolidStepByStep(boundaries2, expectType2)
-model.checkBooleansResult(CompSolid_2, model, 1, [3], [3], [21], [88], [176])
+model.checkResult(CompSolid_2, model, 1, [3], [3], [21], [88], [176])
model.testHaveNamingSubshapes(CompSolid_2, model, Part_1_doc)
model.end()
Compound_1 = model.addCompound(Part_1_doc, Compound_1_objects)
model.do()
-model.checkBooleansResult(Compound_1, model, 1, [11], [3], [22], [92], [186])
+model.checkResult(Compound_1, model, 1, [11], [3], [22], [92], [186])
model.end()
Interpolation_1 = model.addInterpolation(Part_1_doc, [p_1, p_2, p_3, p_4, p_5], False, False)
model.do()
-model.checkBooleansResult(Interpolation_1, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_1, model, 1, [0], [0], [0], [1], [2])
# # =============================================================================
# # Test 2. Create curve 1-2-3-4-5-1, closed on, reorder off, without tangents
Interpolation_2 = model.addInterpolation(Part_1_doc, [p_1, p_2, p_3, p_4, p_5], True, False)
model.do()
-model.checkBooleansResult(Interpolation_2, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_2, model, 1, [0], [0], [0], [1], [2])
# # =============================================================================
# # Test 3. Create curve 1-2-3-4, closed off, reorder on, without tangents
Interpolation_3 = model.addInterpolation(Part_1_doc, [p_1, p_2, p_3, p_4], False, True)
model.do()
-model.checkBooleansResult(Interpolation_3, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_3, model, 1, [0], [0], [0], [1], [2])
# =============================================================================
# Test 4. Create curve 1-2-3-5, closed on, reorder on, without tangents
Interpolation_4 = model.addInterpolation(Part_1_doc, [p_1, p_2, p_3, p_5], True, True)
model.do()
-model.checkBooleansResult(Interpolation_4, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_4, model, 1, [0], [0], [0], [1], [2])
# =============================================================================
# Test 5. Create curve 1-2-3-4-5, closed off, reorder off, with tangents
Tangent_1, Tangent_2, False, False)
model.do()
-model.checkBooleansResult(Interpolation_5, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_5, model, 1, [0], [0], [0], [1], [2])
# =============================================================================
# Test 6. Try to create closed curve 1-2-1, closed off, reorder off, without tangents
Interpolation_8 = model.addInterpolation(Part_2_doc, points, False, False)
model.do()
-model.checkBooleansResult(Interpolation_8, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_8, model, 1, [0], [0], [0], [1], [2])
# =============================================================================
# Test 9. Create curve on box vertices, closed off, reorder off, with tangents
Tangent_1, Tangent_2, False, False)
model.do()
-model.checkBooleansResult(Interpolation_9, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Interpolation_9, model, 1, [0], [0], [0], [1], [2])
# =============================================================================
# Test 10. Create curve using equal vertices
Polyline_1 = model.addPolyline3D(Part_1_doc, [p_1, p_2, p_3, p_4, p_5], False)
model.do()
-model.checkBooleansResult(Polyline_1, model, 1, [0], [0], [0], [4], [4*2])
+model.checkResult(Polyline_1, model, 1, [0], [0], [0], [4], [4*2])
# =============================================================================
# Test 2. Create closed polyline 1-2-3-4-5-1
Polyline_2 = model.addPolyline3D(Part_1_doc, [p_1, p_2, p_3, p_4, p_5], True)
model.do()
-model.checkBooleansResult(Polyline_2, model, 1, [0], [0], [0], [5], [5*2])
+model.checkResult(Polyline_2, model, 1, [0], [0], [0], [5], [5*2])
# =============================================================================
# Test 3. Try to create self-intersected unclosed polyline 2-5-4-1
Polyline_7 = model.addPolyline3D(Part_2_doc, points, False)
model.do()
-model.checkBooleansResult(Polyline_7, model, 1, [0], [0], [0], [7], [7*2])
+model.checkResult(Polyline_7, model, 1, [0], [0], [0], [7], [7*2])
# =============================================================================
# Test 8. Create closed polyline on box vertices
Polyline_8 = model.addPolyline3D(Part_3_doc, points, True)
model.do()
-model.checkBooleansResult(Polyline_8, model, 1, [0], [0], [0], [8], [8*2])
+model.checkResult(Polyline_8, model, 1, [0], [0], [0], [8], [8*2])
# =============================================================================
# Test 9. Create polyline using equal vertices
expectSolid2 = [False, False, False, False, False, False, False, False, True]
Solid_2 = createSolidStepByStep(boundaries2, expectSolid2)
-model.checkBooleansResult(Solid_2, model, 1, [0], [1], [10], [44], [88])
+model.checkResult(Solid_2, model, 1, [0], [1], [10], [44], [88])
model.testHaveNamingSubshapes(Solid_2, model, Part_1_doc)
model.end()
Boolean_2 = model.addFill(Part_1_doc, [model.selection("COMPOUND", "Fill_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
-model.checkBooleansResult(Boolean_2, model, 1, [6], [0], [6], [22], [44])
+model.checkResult(Boolean_2, model, 1, [6], [0], [6], [22], [44])
model.testHaveNamingSubshapes(Boolean_2, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("EDGE", "Edge_2_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[3],[0],[0],[3],[6])
+model.checkResult(Boolean_1,model,1,[3],[0],[0],[3],[6])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("EDGE", "Edge_2_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[2],[0],[0],[2],[4])
+model.checkResult(Boolean_1,model,1,[2],[0],[0],[2],[4])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("FACE", "Face_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
+model.checkResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("SHELL", "Shell_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
+model.checkResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [0], [1], [2])
+model.checkResult(Boolean_1, model, 1, [0], [0], [0], [1], [2])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("SOLID", "Cone_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
+model.checkResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("VERTEX", "Vertex_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[2],[0],[0],[2],[4])
+model.checkResult(Boolean_1,model,1,[2],[0],[0],[2],[4])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("EDGE", "Edge_1_1")], [model.selection("WIRE", "Wire_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
+model.checkResult(Boolean_1, model, 1, [3], [0], [0], [3], [6])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[2],[0],[2],[8],[16])
+model.checkResult(Boolean_1,model,1,[2],[0],[2],[8],[16])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[1],[5],[10])
+model.checkResult(Boolean_1,model,1,[0],[0],[1],[5],[10])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[1],[6],[13])
+model.checkResult(Boolean_1,model,1,[0],[0],[1],[6],[13])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("FACE", "Face_2_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [2], [0], [2], [6], [12])
+model.checkResult(Boolean_1, model, 1, [2], [0], [2], [6], [12])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_3_1")], [model.selection("SHELL", "Shell_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [3], [0], [3], [14], [28])
+model.checkResult(Boolean_1, model, 1, [3], [0], [3], [14], [28])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [4], [0], [4], [15], [30])
+model.checkResult(Boolean_1, model, 1, [4], [0], [4], [15], [30])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("VERTEX", "Vertex_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[1],[4],[9])
+model.checkResult(Boolean_1,model,1,[0],[0],[1],[4],[9])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("WIRE", "Wire_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [5], [0], [5], [21], [42])
+model.checkResult(Boolean_1, model, 1, [5], [0], [5], [21], [42])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("FACE", "PartSet/XOZ")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[3],[12],[24])
+model.checkResult(Boolean_1,model,1,[0],[0],[3],[12],[24])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[2],[8],[18])
+model.checkResult(Boolean_1,model,1,[0],[0],[2],[8],[18])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("FACE", "Face_3_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [4], [13], [26])
+model.checkResult(Boolean_1, model, 1, [0], [0], [4], [13], [26])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("SHELL", "Shell_2_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [4], [15], [30])
+model.checkResult(Boolean_1, model, 1, [0], [0], [4], [15], [30])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_2 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
-model.checkBooleansResult(Boolean_2, model, 1, [0], [0], [6], [22], [44])
+model.checkResult(Boolean_2, model, 1, [0], [0], [6], [22], [44])
model.testHaveNamingSubshapes(Boolean_2, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("VERTEX", "Vertex_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[2],[9],[18])
+model.checkResult(Boolean_1,model,1,[0],[0],[2],[9],[18])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SHELL", "Shell_1_1")], [model.selection("WIRE", "Wire_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [8], [30], [60])
+model.checkResult(Boolean_1, model, 1, [0], [0], [8], [30], [60])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SOLID", "Cone_1_1")], [model.selection("FACE", "PartSet/YOZ"), model.selection("FACE", "PartSet/XOZ")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[4],[4],[20],[72],[144])
+model.checkResult(Boolean_1,model,1,[4],[4],[20],[72],[144])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_2 = model.addFill(Part_1_doc, [model.selection("SOLID", "Box_1_1")], [model.selection("COMPOUND", "Fill_1_1")])
model.do()
-model.checkBooleansResult(Boolean_2, model, 1, [2], [2], [14], [60], [120])
+model.checkResult(Boolean_2, model, 1, [2], [2], [14], [60], [120])
model.testHaveNamingSubshapes(Boolean_2, model, Part_1_doc)
model.end()
Boolean_2 = model.addFill(Part_1_doc, [model.selection("SOLID", "Box_1_1")], [model.selection("COMPOUND", "LinearCopy_1_1")])
model.do()
-model.checkBooleansResult(Boolean_2, model, 1, [4], [4], [30], [132], [264])
+model.checkResult(Boolean_2, model, 1, [4], [4], [30], [132], [264])
model.testHaveNamingSubshapes(Boolean_2, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SOLID", "Box_1_1")], [model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [1], [7], [30], [60])
+model.checkResult(Boolean_1, model, 1, [0], [1], [7], [30], [60])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("SOLID", "Box_1_1")], [model.selection("FACE", "Face_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [2], [2], [12], [48], [96])
+model.checkResult(Boolean_1, model, 1, [2], [2], [12], [48], [96])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_2 = model.addFill(Part_1_doc, [model.selection("SOLID", "Box_1_1")], [model.selection("SHELL", "Shell_1_1")])
model.do()
-model.checkBooleansResult(Boolean_2, model, 1, [2], [2], [14], [60], [120])
+model.checkResult(Boolean_2, model, 1, [2], [2], [14], [60], [120])
model.testHaveNamingSubshapes(Boolean_2, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], [model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[0],[6],[12])
+model.checkResult(Boolean_1,model,1,[0],[0],[0],[6],[12])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], [model.selection("FACE", "Face_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [0], [6], [12])
+model.checkResult(Boolean_1, model, 1, [0], [0], [0], [6], [12])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], [model.selection("SHELL", "Shell_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [0], [10], [20])
+model.checkResult(Boolean_1, model, 1, [0], [0], [0], [10], [20])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], [model.selection("SOLID", "Box_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [0], [9], [18])
+model.checkResult(Boolean_1, model, 1, [0], [0], [0], [9], [18])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], [model.selection("VERTEX", "Vertex_1_1")])
model.do()
-model.checkBooleansResult(Boolean_1,model,1,[0],[0],[0],[4],[8])
+model.checkResult(Boolean_1,model,1,[0],[0],[0],[4],[8])
model.testHaveNamingSubshapes(Boolean_1,model,Part_1_doc)
model.end()
Boolean_1 = model.addFill(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], [model.selection("WIRE", "Wire_2_1")])
model.do()
-model.checkBooleansResult(Boolean_1, model, 1, [0], [0], [0], [4], [8])
+model.checkResult(Boolean_1, model, 1, [0], [0], [0], [4], [8])
model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("FACE", "Face_1_1"), model.selection("FACE", "Face_2_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[3],[0],[3],[12],[24])
+model.checkResult(Partition_1,model,1,[3],[0],[3],[12],[24])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_2_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[4],[4],[33],[150],[300])
+model.checkResult(Partition_1,model,1,[4],[4],[33],[150],[300])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("WIRE", "Wire_2_1"), model.selection("WIRE", "Wire_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[2],[0],[0],[22],[44])
+model.checkResult(Partition_1,model,1,[2],[0],[0],[22],[44])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("FACE", "Plane_1"), model.selection("FACE", "Plane_2"), model.selection("FACE", "Plane_3"), model.selection("FACE", "Plane_4"), model.selection("SOLID", "Box_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[8],[8],[48],[192],[384])
+model.checkResult(Partition_1,model,1,[8],[8],[48],[192],[384])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Cone_1_1"), model.selection("EDGE", "Edge_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[3],[1],[3],[9],[20])
+model.checkResult(Partition_1,model,1,[3],[1],[3],[9],[20])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("FACE", "Face_1_1"), model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "Extrusion_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[2],[4],[42],[198],[396])
+model.checkResult(Partition_1,model,1,[2],[4],[42],[198],[396])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Revolution_1_1"), model.selection("FACE", "Face_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[4],[1],[16],[82],[164])
+model.checkResult(Partition_1,model,1,[4],[1],[16],[82],[164])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("FACE", "Face_1_1"), model.selection("WIRE", "Wire_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[6],[0],[5],[39],[78])
+model.checkResult(Partition_1,model,1,[6],[0],[5],[39],[78])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1"), model.selection("FACE", "Face_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[3],[2],[10],[30],[60])
+model.checkResult(Partition_1,model,1,[3],[2],[10],[30],[60])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Partition_1 = model.addPartition(Part_1_doc, [model.selection("FACE", "Face_1_1"), model.selection("SOLID", "Torus_1_1"), model.selection("WIRE", "Wire_1_1")])
model.do()
-model.checkBooleansResult(Partition_1,model,1,[3],[1],[4],[22],[46])
+model.checkResult(Partition_1,model,1,[3],[1],[4],[22],[46])
model.testHaveNamingSubshapes(Partition_1,model,Part_1_doc)
model.end()
Union_1 = model.addUnion(Part_1_doc, [model.selection("FACE", "Partition_1_1_1"), model.selection("FACE", "Partition_1_1_2")])
model.do()
-model.checkBooleansResult(Union_1,model,1,[0],[0],[1],[4],[8])
+model.checkResult(Union_1,model,1,[0],[0],[1],[4],[8])
model.testHaveNamingSubshapes(Union_1,model,Part_1_doc)
model.end()
Union_1 = model.addUnion(Part_1_doc, [model.selection("FACE", "Partition_1_1_1"), model.selection("FACE", "Partition_1_1_3"), model.selection("FACE", "Partition_1_1_4")])
model.do()
-model.checkBooleansResult(Union_1,model,1,[2],[0],[2],[13],[26])
+model.checkResult(Union_1,model,1,[2],[0],[2],[13],[26])
#model.testHaveNamingSubshapes(Union_1,model,Part_1_doc)
model.end()
assert math.fabs(aDistCS - aDistCE) < TOLERANCE, "Wrong arc: center-start distance {}, center-end distance {}".format(aDistCS, aDistCE)
assert math.fabs(aRadius.value() -aDistCS) < TOLERANCE, "Wrong arc: radius is {0}, expected {1}".format(aRadius.value(), aDistCS)
-def checkBooleansResult(theFeature,theModel,NbRes,NbSubRes,NbSolid,NbFace,NbEdge,NbVertex):
- """ Tests numbers of sub-shapes in results (used in Boolean operations tests)
+def checkResult(theFeature,theModel,NbRes,NbSubRes,NbSolid,NbFace,NbEdge,NbVertex):
+ """ Tests numbers of sub-shapes in results
"""
theModel.testNbResults(theFeature, NbRes)
theModel.testNbSubResults(theFeature, NbSubRes)