]> SALOME platform Git repositories - modules/shaper.git/blob - test.models/plug.py
Salome HOME
Fix compilation of CAD Builder with SALOME 9.7.0
[modules/shaper.git] / test.models / plug.py
1 # Copyright (C) 2017-2021  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 from SketchAPI import *
21 from GeomAPI import GeomAPI_Shape
22
23 from salome.shaper import model
24
25 model.begin()
26 partSet = model.moduleDocument()
27 Part_1 = model.addPart(partSet)
28 Part_1_doc = Part_1.document()
29
30 Param_Width = model.addParameter(Part_1_doc, "Width", "64")
31 Param_Depth = model.addParameter(Part_1_doc, "Depth", "33")
32 Param_D1out = model.addParameter(Part_1_doc, "D1_out", "38")
33 Param_D2out = model.addParameter(Part_1_doc, "D2_out", "33")
34 Param_D3out = model.addParameter(Part_1_doc, "D3_out", "30")
35 Param_D4out = model.addParameter(Part_1_doc, "D4_out", "20")
36 Param_D1in = model.addParameter(Part_1_doc, "D1_in", "21")
37 Param_D2in = model.addParameter(Part_1_doc, "D2_in", "5")
38 Param_ChannelDepth = model.addParameter(Part_1_doc, "Channel_Depth", "1.3")
39 Param_ChannelWidth = model.addParameter(Part_1_doc, "Channel_Width", "1.5")
40 Param_Drill1Loc = model.addParameter(Part_1_doc, "Drill1_Loc", "7.5")
41 Param_Drill1Radius = model.addParameter(Part_1_doc, "Drill1_Radius", "2.25")
42 Param_Drill1Holder = model.addParameter(Part_1_doc, "Drill1Holder_Width", "8")
43 Param_Drill2Loc = model.addParameter(Part_1_doc, "Drill2_Loc", "6.5")
44 Param_Drill2Radius = model.addParameter(Part_1_doc, "Drill2_Radius", "1.4")
45 Param_Drill2InnerRadius = model.addParameter(Part_1_doc, "Drill2_InnerRadius", "0.5")
46 Param_Drill2DepthMin = model.addParameter(Part_1_doc, "Drill2_DepthMin", "6.5")
47 Param_Drill2DepthMax = model.addParameter(Part_1_doc, "Drill2_DepthMax", "7.5")
48 Param_Chamfer = model.addParameter(Part_1_doc, "Chamfer", "0.5")
49 Param_Fillet1 = model.addParameter(Part_1_doc, "Fillet1", "5")
50 Param_Fillet2 = model.addParameter(Part_1_doc, "Fillet2", "0.3")
51 Param_Fillet3 = model.addParameter(Part_1_doc, "Fillet3", "0.5")
52 Param_SlotWidth = model.addParameter(Part_1_doc, "Slot_Width", "8")
53
54 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
55 SketchLine_1 = Sketch_1.addLine(0, 3, 0.5, 2.5)
56 SketchLine_2 = Sketch_1.addLine(0.5, 2.5, 9.5, 2.5)
57 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint())
58 SketchLine_3 = Sketch_1.addLine(9.5, 2.5, 9.5, 3.1)
59 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint())
60 SketchLine_4 = Sketch_1.addLine(9.5, 3.1, 24.86574363608673, 3.1)
61 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint())
62 SketchLine_5 = Sketch_1.addLine(24.86574363608673, 3.1, 26, 3.3)
63 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint())
64 SketchLine_6 = Sketch_1.addLine(26, 3.3, 26, 5.5)
65 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint())
66 SketchLine_7 = Sketch_1.addLine(31, 10.5, 64, 10.5)
67 SketchLine_8 = Sketch_1.addLine(64, 10.5, 64, 15)
68 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint())
69 SketchLine_9 = Sketch_1.addLine(64, 15, 61, 15)
70 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint())
71 SketchLine_10 = Sketch_1.addLine(61, 15, 61, 12.75)
72 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_9.endPoint(), SketchLine_10.startPoint())
73 SketchLine_11 = Sketch_1.addLine(61, 12.75, 58, 12.75)
74 SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint())
75 SketchLine_12 = Sketch_1.addLine(58, 12.75, 58, 14)
76 SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint())
77 SketchLine_13 = Sketch_1.addLine(58, 14, 57, 15)
78 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint())
79 SketchLine_14 = Sketch_1.addLine(57, 15, 54, 15)
80 SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint())
81 SketchLine_15 = Sketch_1.addLine(54, 15, 52.5, 16.5)
82 SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint())
83 SketchLine_16 = Sketch_1.addLine(52.5, 16.5, 35, 16.5)
84 SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint())
85 SketchLine_17 = Sketch_1.addLine(35, 16.5, 34, 15.5)
86 SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchLine_17.startPoint())
87 SketchLine_18 = Sketch_1.addLine(34, 15.5, 32, 15.5)
88 SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_17.endPoint(), SketchLine_18.startPoint())
89 SketchLine_19 = Sketch_1.addLine(32, 15.5, 32, 19)
90 SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint())
91 SketchLine_20 = Sketch_1.addLine(32, 19, 22.5, 19)
92 SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint())
93 SketchLine_21 = Sketch_1.addLine(22.5, 19, 22.5, 13)
94 SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_20.endPoint(), SketchLine_21.startPoint())
95 SketchLine_22 = Sketch_1.addLine(22.5, 13, 22, 12.5)
96 SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_21.endPoint(), SketchLine_22.startPoint())
97 SketchLine_23 = Sketch_1.addLine(22, 12.5, 22, 10)
98 SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint())
99 SketchLine_24 = Sketch_1.addLine(22, 10, 20, 10)
100 SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchLine_23.endPoint(), SketchLine_24.startPoint())
101 SketchLine_25 = Sketch_1.addLine(20, 10, 20, 8.7)
102 SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_24.endPoint(), SketchLine_25.startPoint())
103 SketchLine_26 = Sketch_1.addLine(20, 8.7, 18.5, 8.7)
104 SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchLine_25.endPoint(), SketchLine_26.startPoint())
105 SketchLine_27 = Sketch_1.addLine(18.5, 8.7, 18.5, 10)
106 SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchLine_26.endPoint(), SketchLine_27.startPoint())
107 SketchLine_28 = Sketch_1.addLine(18.5, 10, 10.5, 10)
108 SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchLine_27.endPoint(), SketchLine_28.startPoint())
109 SketchLine_29 = Sketch_1.addLine(10.5, 10, 10.5, 8.7)
110 SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint())
111 SketchLine_30 = Sketch_1.addLine(10.5, 8.7, 9, 8.7)
112 SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchLine_29.endPoint(), SketchLine_30.startPoint())
113 SketchLine_31 = Sketch_1.addLine(9, 8.7, 9, 10)
114 SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint())
115 SketchLine_32 = Sketch_1.addLine(9, 10, 0.5, 10)
116 SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint())
117 SketchLine_33 = Sketch_1.addLine(0.5, 10, 0, 9.5)
118 SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint())
119 SketchLine_34 = Sketch_1.addLine(0, 9.5, 0, 3)
120 SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_33.endPoint(), SketchLine_34.startPoint())
121 SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_34.endPoint())
122 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_2.result())
123 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result())
124 SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_4.result())
125 SketchConstraintAngle_1 = Sketch_1.setAngleComplementary(SketchLine_4.result(), SketchLine_5.result(), 10)
126 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_6.result())
127 SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_7.result())
128 SketchProjection_1 = Sketch_1.addProjection(model.selection("VERTEX", "PartSet/Origin"), False)
129 SketchPoint_1 = SketchProjection_1.createdFeature()
130 SketchConstraintDistanceVertical_1 = Sketch_1.setVerticalDistance(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_1.endPoint(), "D2_in/2")
131 SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_8.result())
132 SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_9.result())
133 SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_16.result(), SketchLine_7.result())
134 SketchConstraintAngle_2 = Sketch_1.setAngleComplementary(SketchLine_15.result(), SketchLine_16.result(), 45)
135 SketchConstraintAngle_3 = Sketch_1.setAngleComplementary(SketchLine_13.result(), SketchLine_14.result(), 45)
136 SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_12.result())
137 SketchConstraintVertical_5 = Sketch_1.setVertical(SketchLine_10.result())
138 SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_11.result())
139 SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_17.result(), SketchLine_15.result())
140 SketchConstraintVertical_6 = Sketch_1.setVertical(SketchLine_19.result())
141 SketchConstraintHorizontal_6 = Sketch_1.setHorizontal(SketchLine_18.result())
142 SketchConstraintParallel_2 = Sketch_1.setParallel(SketchLine_20.result(), SketchLine_7.result())
143 SketchConstraintVertical_7 = Sketch_1.setVertical(SketchLine_21.result())
144 SketchConstraintVertical_8 = Sketch_1.setVertical(SketchLine_23.result())
145 SketchConstraintHorizontal_7 = Sketch_1.setHorizontal(SketchLine_24.result())
146 SketchConstraintCollinear_1 = Sketch_1.setCollinear(SketchLine_28.result(), SketchLine_24.result())
147 SketchConstraintCollinear_2 = Sketch_1.setCollinear(SketchLine_32.result(), SketchLine_28.result())
148 SketchConstraintVertical_9 = Sketch_1.setVertical(SketchLine_34.result())
149 SketchConstraintHorizontal_8 = Sketch_1.setHorizontal(SketchLine_30.result())
150 SketchConstraintCollinear_3 = Sketch_1.setCollinear(SketchLine_26.result(), SketchLine_30.result())
151 SketchConstraintVertical_10 = Sketch_1.setVertical(SketchLine_31.result())
152 SketchConstraintVertical_11 = Sketch_1.setVertical(SketchLine_29.result())
153 SketchConstraintVertical_12 = Sketch_1.setVertical(SketchLine_27.result())
154 SketchConstraintVertical_13 = Sketch_1.setVertical(SketchLine_25.result())
155 SketchConstraintDistance_1 = Sketch_1.setDistance(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_24.result(), "D4_out/2", True)
156 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchAPI_Point(SketchPoint_1).coordinates(), SketchLine_30.result(), "D4_out/2-Channel_Depth", True)
157 SketchConstraintDistanceHorizontal_1 = Sketch_1.setHorizontalDistance(SketchLine_34.endPoint(), SketchLine_1.endPoint(), "Chamfer")
158 SketchConstraintDistanceVertical_2 = Sketch_1.setVerticalDistance(SketchLine_1.endPoint(), SketchLine_1.startPoint(), "Chamfer")
159 SketchConstraintDistanceHorizontal_2 = Sketch_1.setHorizontalDistance(SketchLine_34.startPoint(), SketchLine_33.startPoint(), "Chamfer")
160 SketchConstraintDistanceVertical_3 = Sketch_1.setVerticalDistance(SketchLine_34.startPoint(), SketchLine_33.startPoint(), "Chamfer")
161 SketchProjection_2 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OX"), False)
162 SketchLine_35 = SketchProjection_2.createdFeature()
163 SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_35.result(), "D2_in/2+0.6", True)
164 SketchConstraintDistanceHorizontal_3 = Sketch_1.setHorizontalDistance(SketchLine_3.endPoint(), SketchLine_5.endPoint(), "Depth/2")
165 SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_5.endPoint(), SketchLine_35.result(), "D2_in/2+0.8", True)
166 SketchArc_1 = Sketch_1.addArc(31, 5.5, 31, 10.5, 26, 5.5, False)
167 SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_7.startPoint())
168 SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_6.endPoint())
169 SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_7.result())
170 SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_6.result())
171 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], "Fillet1")
172 SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_7.endPoint(), SketchLine_35.result(), "D1_in/2", True)
173 SketchConstraintCollinear_4 = Sketch_1.setCollinear(SketchLine_14.result(), SketchLine_9.result())
174 SketchConstraintDistanceHorizontal_4 = Sketch_1.setHorizontalDistance(SketchLine_34.startPoint(), SketchLine_23.startPoint(), "Width/32*11")
175 SketchConstraintDistanceHorizontal_5 = Sketch_1.setHorizontalDistance(SketchLine_23.startPoint(), SketchLine_22.startPoint(), "Chamfer")
176 SketchConstraintDistanceVertical_4 = Sketch_1.setVerticalDistance(SketchLine_23.startPoint(), SketchLine_22.startPoint(), "Chamfer")
177 SketchConstraintDistanceHorizontal_6 = Sketch_1.setHorizontalDistance(SketchLine_15.startPoint(), SketchLine_8.endPoint(), 10)
178 SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_8.endPoint(), SketchLine_35.result(), "D3_out/2", True)
179 SketchConstraintDistance_7 = Sketch_1.setDistance(SketchLine_11.startPoint(), SketchLine_35.result(), "(D3_out+D1_in)/4", True)
180 SketchConstraintDistanceHorizontal_7 = Sketch_1.setHorizontalDistance(SketchLine_10.startPoint(), SketchLine_8.endPoint(), 3)
181 SketchConstraintDistanceHorizontal_8 = Sketch_1.setHorizontalDistance(SketchLine_12.endPoint(), SketchLine_10.startPoint(), 3)
182 SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_30.result(), SketchLine_26.result())
183 SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_26.result(), "Channel_Width")
184 SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_28.result(), "Drill1Holder_Width")
185 SketchConstraintDistanceHorizontal_9 = Sketch_1.setHorizontalDistance(SketchArc_1.center(), SketchLine_7.endPoint(), "Depth")
186 SketchConstraintDistance_8 = Sketch_1.setDistance(SketchLine_16.startPoint(), SketchLine_35.result(), "D2_out/2", True)
187 SketchConstraintDistanceHorizontal_10 = Sketch_1.setHorizontalDistance(SketchLine_20.startPoint(), SketchLine_8.endPoint(), "Width/2")
188 SketchConstraintDistance_9 = Sketch_1.setDistance(SketchLine_17.endPoint(), SketchLine_35.result(), "D2_out/2-1", True)
189 SketchConstraintDistanceHorizontal_11 = Sketch_1.setHorizontalDistance(SketchLine_20.startPoint(), SketchLine_17.endPoint(), 2)
190 SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_35).startPoint(), SketchLine_34.result())
191 SketchConstraintDistance_10 = Sketch_1.setDistance(SketchAPI_Line(SketchLine_35).startPoint(), SketchLine_20.result(), "D1_out/2", True)
192 SketchPoint_2 = Sketch_1.addPoint(14.5, 10)
193 SketchConstraintCoincidence_37 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchLine_28.result())
194 SketchConstraintMiddle_1 = Sketch_1.setMiddlePoint(SketchPoint_2.coordinates(), SketchLine_28.result())
195 SketchConstraintDistanceHorizontal_12 = Sketch_1.setHorizontalDistance(SketchPoint_2.coordinates(), SketchLine_24.startPoint(), "Drill1_Loc")
196 SketchConstraintDistanceHorizontal_13 = Sketch_1.setHorizontalDistance(SketchLine_34.startPoint(), SketchLine_9.startPoint(), "Width")
197 SketchConstraintDistanceHorizontal_14 = Sketch_1.setHorizontalDistance(SketchLine_14.startPoint(), SketchLine_12.endPoint(), 1)
198 SketchConstraintDistance_11 = Sketch_1.setDistance(SketchLine_23.startPoint(), SketchLine_35.result(), "(D4_out+D2_in)/2", True)
199 model.do()
200 # check Sketch_1
201 model.checkSketch(Sketch_1, 0)
202
203 Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection("EDGE", "PartSet/OX"), 360, 0)
204 # check Revolution_1
205 model.testNbResults(Revolution_1, 1)
206 model.testNbSubResults(Revolution_1, [0])
207 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.SOLID, [1])
208 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.FACE, [35])
209 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.EDGE, [114])
210 model.testNbSubShapes(Revolution_1, GeomAPI_Shape.VERTEX, [228])
211 model.testResultsVolumes(Revolution_1, [29055.346994571114919381216168404])
212
213 Plane_4 = model.addPlane(Part_1_doc, model.selection("EDGE", "PartSet/OY"), model.selection("VERTEX", "Sketch_1/SketchPoint_2"), True)
214
215 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
216 SketchProjection_3 = Sketch_2.addProjection(model.selection("VERTEX", "Sketch_1/SketchPoint_2"), False)
217 SketchPoint_3 = SketchProjection_3.createdFeature()
218 SketchProjection_4 = Sketch_2.addProjection(model.selection("EDGE", "([Revolution_1_1/Generated_Face&Sketch_1/SketchArc_1_2][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_7])([Revolution_1_1/Generated_Face&Sketch_1/SketchLine_7][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_8])"), False)
219 SketchLine_36 = SketchProjection_4.createdFeature()
220 SketchCircle_1 = Sketch_2.addCircle(14.5, 0, 2.25)
221 SketchConstraintCoincidence_38 = Sketch_2.setCoincident(SketchPoint_3.result(), SketchCircle_1.center())
222 SketchConstraintRadius_2 = Sketch_2.setRadius(SketchCircle_1.results()[1], "Drill1_Radius")
223 model.do()
224 # check Sketch_2
225 model.checkSketch(Sketch_2, 0)
226
227 ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_1_2f")], model.selection(), model.selection("FACE", "PartSet/XOZ"), 0, model.selection(), 0, [model.selection("SOLID", "Revolution_1_1")])
228 # check ExtrusionCut_1
229 model.testNbResults(ExtrusionCut_1, 1)
230 model.testNbSubResults(ExtrusionCut_1, [0])
231 model.testNbSubShapes(ExtrusionCut_1, GeomAPI_Shape.SOLID, [1])
232 model.testNbSubShapes(ExtrusionCut_1, GeomAPI_Shape.FACE, [36])
233 model.testNbSubShapes(ExtrusionCut_1, GeomAPI_Shape.EDGE, [132])
234 model.testNbSubShapes(ExtrusionCut_1, GeomAPI_Shape.VERTEX, [264])
235 model.testResultsVolumes(ExtrusionCut_1, [28943.115000463178148493170738220])
236
237 Fillet_1 = model.addFillet(Part_1_doc, [model.selection("EDGE", "[Revolution_1_1/Generated_Face&Sketch_1/SketchLine_21][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_20]")], "Fillet1")
238 # check Fillet_1
239 model.testNbResults(Fillet_1, 1)
240 model.testNbSubResults(Fillet_1, [0])
241 model.testNbSubShapes(Fillet_1, GeomAPI_Shape.SOLID, [1])
242 model.testNbSubShapes(Fillet_1, GeomAPI_Shape.FACE, [37])
243 model.testNbSubShapes(Fillet_1, GeomAPI_Shape.EDGE, [136])
244 model.testNbSubShapes(Fillet_1, GeomAPI_Shape.VERTEX, [272])
245 model.testResultsVolumes(Fillet_1, [28340.280766451105591841042041779])
246
247 Fillet_2 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_31"), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_29"), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_27"), model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_25")], "Fillet2")
248 # check Fillet_2
249 model.testNbResults(Fillet_2, 1)
250 model.testNbSubResults(Fillet_2, [0])
251 model.testNbSubShapes(Fillet_2, GeomAPI_Shape.SOLID, [1])
252 model.testNbSubShapes(Fillet_2, GeomAPI_Shape.FACE, [45])
253 model.testNbSubShapes(Fillet_2, GeomAPI_Shape.EDGE, [168])
254 model.testNbSubShapes(Fillet_2, GeomAPI_Shape.VERTEX, [336])
255 model.testResultsVolumes(Fillet_2, [28339.715350479829794494435191154])
256
257 Fillet_3 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_19")], "Fillet3")
258 # check Fillet_3
259 model.testNbResults(Fillet_3, 1)
260 model.testNbSubResults(Fillet_3, [0])
261 model.testNbSubShapes(Fillet_3, GeomAPI_Shape.SOLID, [1])
262 model.testNbSubShapes(Fillet_3, GeomAPI_Shape.FACE, [47])
263 model.testNbSubShapes(Fillet_3, GeomAPI_Shape.EDGE, [176])
264 model.testNbSubShapes(Fillet_3, GeomAPI_Shape.VERTEX, [352])
265 model.testResultsVolumes(Fillet_3, [28338.609830057110229972749948502])
266
267 Fillet_4 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_11")], "Fillet3")
268 # check Fillet_4
269 model.testNbResults(Fillet_4, 1)
270 model.testNbSubResults(Fillet_4, [0])
271 model.testNbSubShapes(Fillet_4, GeomAPI_Shape.SOLID, [1])
272 model.testNbSubShapes(Fillet_4, GeomAPI_Shape.FACE, [49])
273 model.testNbSubShapes(Fillet_4, GeomAPI_Shape.EDGE, [184])
274 model.testNbSubShapes(Fillet_4, GeomAPI_Shape.VERTEX, [368])
275 model.testResultsVolumes(Fillet_4, [28347.280717884430487174540758133])
276
277 Fillet_5 = model.addFillet(Part_1_doc, [model.selection("FACE", "Revolution_1_1/Generated_Face&Sketch_1/SketchLine_9")], "Fillet2")
278 # check Fillet_5
279 model.testNbResults(Fillet_5, 1)
280 model.testNbSubResults(Fillet_5, [0])
281 model.testNbSubShapes(Fillet_5, GeomAPI_Shape.SOLID, [1])
282 model.testNbSubShapes(Fillet_5, GeomAPI_Shape.FACE, [51])
283 model.testNbSubShapes(Fillet_5, GeomAPI_Shape.EDGE, [192])
284 model.testNbSubShapes(Fillet_5, GeomAPI_Shape.VERTEX, [384])
285 model.testResultsVolumes(Fillet_5, [28343.655816829603281803429126740])
286
287 ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [], model.selection(), "D4_out/2", "D4_out/2", [model.selection("SOLID", "Fillet_5_1")])
288 Sketch_3 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
289 SketchLine_37 = Sketch_3.addLine(9, -9.914857089637437, 9, -18)
290 SketchLine_38 = Sketch_3.addLine(9, -18, 0.5, -18)
291 SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_37.endPoint(), SketchLine_38.startPoint())
292 SketchLine_39 = Sketch_3.addLine(0.5, -18, 0.5, -10)
293 SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchLine_38.endPoint(), SketchLine_39.startPoint())
294 SketchLine_40 = Sketch_3.addLine(0.5, -10, 7.788407623149843, -8.714857089637437)
295 SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchLine_39.endPoint(), SketchLine_40.startPoint())
296 SketchLine_41 = Sketch_3.addLine(7.788407623149843, -8.714857089637437, 8, -9.914857089637437)
297 SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchLine_40.endPoint(), SketchLine_41.startPoint())
298 SketchLine_42 = Sketch_3.addLine(8, -9.914857089637437, 9, -9.914857089637437)
299 SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint())
300 SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchLine_42.endPoint(), SketchLine_37.startPoint())
301 SketchProjection_5 = Sketch_3.addProjection(model.selection("EDGE", "PartSet/OX"), False)
302 SketchLine_43 = SketchProjection_5.createdFeature()
303 SketchProjection_6 = Sketch_3.addProjection(model.selection("EDGE", "([Revolution_1_1/Generated_Face&Sketch_1/SketchLine_34][Revolution_1_1/Generated_Face&Sketch_1/SketchLine_33])([Revolution_1_1/Generated_Face&Sketch_1/SketchLine_33][Fillet_2_1/MF:Fillet&Sketch_1/SketchLine_32])_Fillet_5_1"), False)
304 SketchLine_44 = SketchProjection_6.createdFeature()
305 SketchProjection_9 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_32"), False)
306 SketchLine_47 = SketchProjection_9.createdFeature()
307 SketchConstraintVertical_14 = Sketch_3.setVertical(SketchLine_37.result())
308 SketchConstraintVertical_15 = Sketch_3.setVertical(SketchLine_39.result())
309 SketchConstraintHorizontal_9 = Sketch_3.setHorizontal(SketchLine_38.result())
310 SketchConstraintHorizontal_10 = Sketch_3.setHorizontal(SketchLine_42.result())
311 SketchConstraintPerpendicular_2 = Sketch_3.setPerpendicular(SketchLine_40.result(), SketchLine_41.result())
312 SketchConstraintDistanceVertical_5 = Sketch_3.setVerticalDistance(SketchLine_42.startPoint(), SketchLine_40.endPoint(), 1.2)
313 SketchConstraintMirror_1 = Sketch_3.addMirror(SketchLine_43.result(), [SketchLine_44.result(), SketchLine_47.result()])
314 [SketchLine_50, SketchLine_51] = SketchConstraintMirror_1.mirrored()
315 SketchLine_50.setAuxiliary(True)
316 SketchLine_51.setAuxiliary(True)
317 SketchConstraintCoincidence_45 = Sketch_3.setCoincident(SketchAPI_Line(SketchLine_51).startPoint(), SketchLine_37.result())
318 SketchConstraintCoincidence_46 = Sketch_3.setCoincident(SketchAPI_Line(SketchLine_50).startPoint(), SketchLine_39.endPoint())
319 SketchConstraintAngle_4 = Sketch_3.setAngle(SketchLine_51.result(), SketchLine_40.result(), 10)
320 SketchConstraintDistanceHorizontal_15 = Sketch_3.setHorizontalDistance(SketchAPI_Line(SketchLine_50).endPoint(), SketchLine_42.startPoint(), "Slot_Width")
321 SketchConstraintDistanceVertical_6 = Sketch_3.setVerticalDistance(SketchLine_39.startPoint(), SketchLine_39.endPoint(), 8)
322 ExtrusionCut_2.setNestedSketch(Sketch_3)
323 model.do()
324 # check Sketch_3
325 model.checkSketch(Sketch_3, 0)
326 # check ExtrusionCut_2
327 model.testNbResults(ExtrusionCut_2, 1)
328 model.testNbSubResults(ExtrusionCut_2, [0])
329 model.testNbSubShapes(ExtrusionCut_2, GeomAPI_Shape.SOLID, [1])
330 model.testNbSubShapes(ExtrusionCut_2, GeomAPI_Shape.FACE, [55])
331 model.testNbSubShapes(ExtrusionCut_2, GeomAPI_Shape.EDGE, [214])
332 model.testNbSubShapes(ExtrusionCut_2, GeomAPI_Shape.VERTEX, [428])
333 model.testResultsVolumes(ExtrusionCut_2, [28317.789547563083033310249447823])
334
335 Folder_1 = model.addFolder(Part_1_doc, Fillet_1, Fillet_5)
336
337 Sketch_4 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
338 SketchLine_52 = Sketch_4.addLine(28.5, -19.5, 28.5, 0)
339 SketchProjection_12 = Sketch_4.addProjection(model.selection("EDGE", "PartSet/OX"), False)
340 SketchLine_53 = SketchProjection_12.createdFeature()
341 SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_52.endPoint(), SketchLine_53.result())
342 SketchLine_54 = Sketch_4.addLine(28.5, 0, 29, 0)
343 SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_52.endPoint(), SketchLine_54.startPoint())
344 SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_54.endPoint(), SketchLine_53.result())
345 SketchLine_55 = Sketch_4.addLine(29, 0, 29, -11.5)
346 SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchLine_54.endPoint(), SketchLine_55.startPoint())
347 SketchLine_56 = Sketch_4.addLine(28.5, -19.5, 30.4, -19.5)
348 SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_52.startPoint(), SketchLine_56.startPoint())
349 SketchLine_57 = Sketch_4.addLine(30.4, -19.5, 29.4, -18.5)
350 SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_56.endPoint(), SketchLine_57.startPoint())
351 SketchLine_58 = Sketch_4.addLine(29.4, -18.5, 29.4, -12.5)
352 SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_57.endPoint(), SketchLine_58.startPoint())
353 SketchArc_2 = Sketch_4.addArc(27.95, -12.5, 29.4, -12.5, 29, -11.5, False)
354 SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchLine_58.endPoint(), SketchArc_2.startPoint())
355 SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchLine_55.endPoint(), SketchArc_2.endPoint())
356 SketchConstraintVertical_16 = Sketch_4.setVertical(SketchLine_52.result())
357 SketchConstraintVertical_17 = Sketch_4.setVertical(SketchLine_55.result())
358 SketchConstraintVertical_18 = Sketch_4.setVertical(SketchLine_58.result())
359 SketchConstraintHorizontal_11 = Sketch_4.setHorizontal(SketchLine_56.result())
360 SketchProjection_13 = Sketch_4.addProjection(model.selection("VERTEX", "Sketch_1/SketchLine_23_EndVertex"), False)
361 SketchPoint_4 = SketchProjection_13.createdFeature()
362 SketchConstraintDistanceHorizontal_17 = Sketch_4.setHorizontalDistance(SketchAPI_Point(SketchPoint_4).coordinates(), SketchLine_52.endPoint(), "Drill2_Loc")
363 SketchConstraintDistanceHorizontal_18 = Sketch_4.setHorizontalDistance(SketchLine_54.startPoint(), SketchLine_54.endPoint(), "Drill2_InnerRadius")
364 SketchProjection_14 = Sketch_4.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_20"), False)
365 SketchLine_59 = SketchProjection_14.createdFeature()
366 SketchConstraintAngle_5 = Sketch_4.setAngle(SketchLine_57.result(), SketchLine_56.result(), 45)
367 SketchConstraintMirror_2 = Sketch_4.addMirror(SketchLine_53.result(), [SketchLine_59.result()])
368 [SketchLine_60] = SketchConstraintMirror_2.mirrored()
369 SketchLine_60.setAuxiliary(True)
370 SketchConstraintDistance_12 = Sketch_4.setDistance(SketchArc_2.endPoint(), SketchLine_60.result(), "Drill2_DepthMax", True)
371 SketchConstraintDistance_13 = Sketch_4.setDistance(SketchLine_58.endPoint(), SketchLine_60.result(), "Drill2_DepthMin", True)
372 SketchConstraintDistance_14 = Sketch_4.setDistance(SketchLine_57.endPoint(), SketchLine_60.result(), 0.5, True)
373 SketchConstraintTangent_3 = Sketch_4.setTangent(SketchLine_58.result(), SketchArc_2.results()[1])
374 SketchPoint_5 = Sketch_4.addPoint(29.9, -19)
375 SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchPoint_5.coordinates(), SketchLine_60.result())
376 SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchPoint_5.coordinates(), SketchLine_57.result())
377 SketchConstraintDistance_15 = Sketch_4.setDistance(SketchPoint_5.coordinates(), SketchLine_52.result(), "Drill2_Radius", True)
378 SketchConstraintDistanceVertical_7 = Sketch_4.setVerticalDistance(SketchLine_56.endPoint(), SketchPoint_5.coordinates(), 0.5)
379 model.do()
380 # check Sketch_4
381 model.checkSketch(Sketch_4, 0)
382
383 RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection("EDGE", "Sketch_4/SketchLine_48"), 360, 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
384 # check RevolutionCut_1
385 model.testNbResults(RevolutionCut_1, 1)
386 model.testNbSubResults(RevolutionCut_1, [0])
387 model.testNbSubShapes(RevolutionCut_1, GeomAPI_Shape.SOLID, [1])
388 model.testNbSubShapes(RevolutionCut_1, GeomAPI_Shape.FACE, [59])
389 model.testNbSubShapes(RevolutionCut_1, GeomAPI_Shape.EDGE, [242])
390 model.testNbSubShapes(RevolutionCut_1, GeomAPI_Shape.VERTEX, [484])
391 model.testResultsVolumes(RevolutionCut_1, [28297.246041844206047244369983673])
392
393 RevolutionCut_2 = model.addRevolutionCut(Part_1_doc, [], model.selection("EDGE", "PartSet/OX"), 360, 0, [model.selection("SOLID", "RevolutionCut_1_1")])
394 Sketch_5 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
395 SketchLine_61 = Sketch_5.addLine(63.5, 10.5, 64, 10.5)
396 SketchLine_61.setAuxiliary(True)
397 SketchProjection_15 = Sketch_5.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_7"), False)
398 SketchLine_62 = SketchProjection_15.createdFeature()
399 SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_61.startPoint(), SketchLine_62.result())
400 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchAPI_Line(SketchLine_62).endPoint(), SketchLine_61.endPoint())
401 SketchLine_63 = Sketch_5.addLine(64.25, 10.25, 64.25, 11.25)
402 SketchLine_64 = Sketch_5.addLine(64.25, 11.25, 63.25, 10.25)
403 SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint())
404 SketchConstraintLength_3 = Sketch_5.setLength(SketchLine_61.result(), "Chamfer")
405 SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_61.startPoint(), SketchLine_64.result())
406 SketchLine_65 = Sketch_5.addLine(63.25, 10.25, 64.25, 10.25)
407 SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_64.endPoint(), SketchLine_65.startPoint())
408 SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_63.startPoint(), SketchLine_65.endPoint())
409 SketchConstraintEqual_2 = Sketch_5.setEqual(SketchLine_65.result(), SketchLine_63.result())
410 SketchConstraintVertical_19 = Sketch_5.setVertical(SketchLine_63.result())
411 SketchConstraintHorizontal_12 = Sketch_5.setHorizontal(SketchLine_65.result())
412 SketchConstraintDistanceVertical_8 = Sketch_5.setVerticalDistance(SketchLine_65.startPoint(), SketchLine_61.startPoint(), "Chamfer/2")
413 SketchConstraintDistanceVertical_9 = Sketch_5.setVerticalDistance(SketchLine_61.startPoint(), SketchLine_63.endPoint(), "Chamfer*1.5")
414 RevolutionCut_2.setNestedSketch(Sketch_5)
415 model.do()
416 # check Sketch_5
417 model.checkSketch(Sketch_5, 0)
418 # check RevolutionCut_2
419 model.testNbResults(RevolutionCut_2, 1)
420 model.testNbSubResults(RevolutionCut_2, [0])
421 model.testNbSubShapes(RevolutionCut_2, GeomAPI_Shape.SOLID, [1])
422 model.testNbSubShapes(RevolutionCut_2, GeomAPI_Shape.FACE, [60])
423 model.testNbSubShapes(RevolutionCut_2, GeomAPI_Shape.EDGE, [246])
424 model.testNbSubShapes(RevolutionCut_2, GeomAPI_Shape.VERTEX, [492])
425 model.testResultsVolumes(RevolutionCut_2, [28288.868184623894194373860955238])
426
427 Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), 0, False)
428 Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "RevolutionCut_2_1"), model.selection("FACE", "Plane_2")])
429 # check Partition_1
430 model.testNbResults(Partition_1, 1)
431 model.testNbSubResults(Partition_1, [2])
432 model.testNbSubShapes(Partition_1, GeomAPI_Shape.SOLID, [2])
433 model.testNbSubShapes(Partition_1, GeomAPI_Shape.FACE, [127])
434 model.testNbSubShapes(Partition_1, GeomAPI_Shape.EDGE, [738])
435 model.testNbSubShapes(Partition_1, GeomAPI_Shape.VERTEX, [1476])
436 model.testResultsVolumes(Partition_1, [28288.886256640704232268035411835])
437
438 Result = model.addRemoveSubShapes(Part_1_doc, model.selection("COMPSOLID", "Partition_1_1"))
439 Result.setSubShapesToRemove([model.selection("SOLID", "Partition_1_1_2")])
440 Result.result().setName("Plug")
441 # check Remove_SubShapes_1
442 model.testNbResults(Result, 1)
443 model.testNbSubResults(Result, [0])
444 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
445 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
446 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [366])
447 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [732])
448 model.testResultsVolumes(Result, [14144.443128843522572424262762070])
449
450 model.do()
451
452 # change parameters of the model
453 Param_Width.setValue(100)
454 model.do()
455 model.testNbResults(Result, 1)
456 model.testNbSubResults(Result, [0])
457 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
458 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
459 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
460 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
461 model.testResultsVolumes(Result, [26613.145838412528974004089832306])
462
463 # do small steps in parameter here to avoid "conflicting constraints" message coming from PlaneGCS
464 Param_Depth.setValue(40)
465 model.do()
466 Param_Depth.setValue(50)
467 model.do()
468 Param_Depth.setValue(55)
469 model.do()
470 model.testNbResults(Result, 1)
471 model.testNbSubResults(Result, [0])
472 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
473 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
474 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
475 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
476 model.testResultsVolumes(Result, [22968.704503291784931207075715065])
477
478 Param_Drill1Loc.setValue(15)
479 model.do()
480 model.testNbResults(Result, 1)
481 model.testNbSubResults(Result, [0])
482 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
483 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
484 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
485 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
486 model.testResultsVolumes(Result, [22969.259323538735770853236317635])
487
488 Param_Drill1Holder.setValue(16)
489 model.do()
490 model.testNbSubResults(Result, [0])
491 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
492 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
493 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
494 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
495 model.testResultsVolumes(Result, [22969.553506208951148437336087227])
496
497 Param_Drill2Loc.setValue(7.5)
498 model.do()
499 model.testNbResults(Result, 1)
500 model.testNbSubResults(Result, [0])
501 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
502 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
503 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
504 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
505 model.testResultsVolumes(Result, [22969.986144881491782143712043762])
506
507 Param_Drill2Radius.setValue(1.9)
508 model.do()
509 model.testNbResults(Result, 1)
510 model.testNbSubResults(Result, [0])
511 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
512 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
513 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
514 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
515 model.testResultsVolumes(Result, [22956.808010807682876475155353546])
516
517 Param_Fillet1.setValue(3)
518 model.do()
519 model.testNbResults(Result, 1)
520 model.testNbSubResults(Result, [0])
521 model.testNbSubShapes(Result, GeomAPI_Shape.SOLID, [1])
522 model.testNbSubShapes(Result, GeomAPI_Shape.FACE, [63])
523 model.testNbSubShapes(Result, GeomAPI_Shape.EDGE, [364])
524 model.testNbSubShapes(Result, GeomAPI_Shape.VERTEX, [728])
525 model.testResultsVolumes(Result, [23373.503259112552768783643841743])
526
527 model.end()
528
529 assert(model.checkPythonDump())