]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModelAPI/Test/Test19019_2.py
Salome HOME
Added a unit-test for #21537 : Dumped file not loadable
[modules/shaper.git] / src / ModelAPI / Test / Test19019_2.py
1 # Copyright (C) 2020  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
22 from salome.shaper import model
23
24 model.begin()
25 partSet = model.moduleDocument()
26 model.addParameter(partSet, "r", "0.5")
27 model.addParameter(partSet, "R", "50")
28 model.addParameter(partSet, "alpha_d4", "8")
29 model.addParameter(partSet, "alpha_d3", "8")
30 model.addParameter(partSet, "alpha_d2", "8")
31 model.addParameter(partSet, "alpha_d1", "6")
32 model.addParameter(partSet, "alpha", "10")
33 model.addParameter(partSet, "alpha_g1", "8")
34 model.addParameter(partSet, "alpha_g2", "8")
35 model.addParameter(partSet, "H", "80")
36 model.addParameter(partSet, "h_left_b", "15")
37 model.addParameter(partSet, "h", "10")
38 model.addParameter(partSet, "h_right_b", "10")
39 model.addParameter(partSet, "h_right_t", "25")
40 model.addParameter(partSet, "R_rotor", "25")
41 Sketch_1 = model.addSketch(partSet, model.defaultPlane("XOY"))
42 SketchProjection_1 = Sketch_1.addProjection(model.selection("VERTEX", "Origin"), False)
43 SketchProjection_1.setName("SketchProjection_2")
44 SketchProjection_1.result().setName("SketchProjection_2")
45 SketchPoint_1 = SketchProjection_1.createdFeature()
46 SketchCircle_1 = Sketch_1.addCircle(0, 0, 50)
47 SketchCircle_1.setName("SketchCircle_3")
48 SketchCircle_1.result().setName("SketchCircle_3")
49 SketchCircle_1.results()[1].setName("SketchCircle_3_2")
50 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchPoint_1.result(), SketchCircle_1.center())
51 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchCircle_1.results()[1], "R")
52 SketchLine_1 = Sketch_1.addLine(0, 50, 0, 50.5)
53 SketchLine_1.setName("SketchLine_12")
54 SketchLine_1.result().setName("SketchLine_12")
55 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchCircle_1.results()[1])
56 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result())
57 SketchLine_2 = Sketch_1.addLine(0, 50.5, 0, 51)
58 SketchLine_2.setName("SketchLine_13")
59 SketchLine_2.result().setName("SketchLine_13")
60 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint())
61 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_2.result())
62 SketchCircle_2 = Sketch_1.addCircle(0, 0, 51)
63 SketchCircle_2.setName("SketchCircle_4")
64 SketchCircle_2.result().setName("SketchCircle_4")
65 SketchCircle_2.results()[1].setName("SketchCircle_4_2")
66 SketchConstraintRadius_2 = Sketch_1.setRadius(SketchCircle_2.results()[1], "R+2*r")
67 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchCircle_2.results()[1])
68 SketchProjection_2 = Sketch_1.addProjection(model.selection("EDGE", "OY"), False)
69 SketchProjection_2.setName("SketchProjection_3")
70 SketchProjection_2.result().setName("SketchProjection_3")
71 SketchLine_3 = SketchProjection_2.createdFeature()
72 SketchLine_3.setName("SketchLine_14")
73 SketchLine_3.result().setName("SketchLine_14")
74 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_3.result())
75 SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_2.result(), SketchLine_1.result())
76 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchAPI_Line(SketchLine_3).startPoint())
77 SketchCircle_3 = Sketch_1.addCircle(0, 0, 50.5)
78 SketchCircle_3.setName("SketchCircle_5")
79 SketchCircle_3.result().setName("SketchCircle_5")
80 SketchCircle_3.results()[1].setName("SketchCircle_5_2")
81 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchCircle_3.results()[1])
82 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchCircle_3.center(), SketchAPI_Line(SketchLine_3).startPoint())
83 SketchMultiRotation_1 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchCircle_1.center(), "alpha", 2, True)
84 [SketchLine_4, SketchLine_5] = SketchMultiRotation_1.rotated()
85 SketchLine_5.setName("SketchLine_18")
86 SketchLine_5.result().setName("SketchLine_18")
87 SketchLine_4.setName("SketchLine_15")
88 SketchLine_4.result().setName("SketchLine_15")
89 SketchMultiRotation_2 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchCircle_2.center(), "alpha+alpha_g1", 2, True)
90 [SketchLine_6, SketchLine_7] = SketchMultiRotation_2.rotated()
91 SketchLine_7.setName("SketchLine_17")
92 SketchLine_7.result().setName("SketchLine_17")
93 SketchLine_6.setName("SketchLine_16")
94 SketchLine_6.result().setName("SketchLine_16")
95 SketchMultiRotation_3 = Sketch_1.addRotation([SketchLine_1.result(), SketchLine_2.result()], SketchCircle_3.center(), "alpha+alpha_g1+alpha_g2", 2, True)
96 [SketchLine_8, SketchLine_9] = SketchMultiRotation_3.rotated()
97 SketchLine_9.setName("SketchLine_30")
98 SketchLine_9.result().setName("SketchLine_30")
99 SketchLine_8.setName("SketchLine_20")
100 SketchLine_8.result().setName("SketchLine_20")
101 SketchMultiRotation_4 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchCircle_2.center(), "alpha", 2, True, True)
102 [SketchLine_10, SketchLine_11] = SketchMultiRotation_4.rotated()
103 SketchLine_11.setName("SketchLine_32")
104 SketchLine_11.result().setName("SketchLine_32")
105 SketchLine_10.setName("SketchLine_21")
106 SketchLine_10.result().setName("SketchLine_21")
107 SketchMultiRotation_5 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchCircle_1.center(), "alpha+alpha_d1", 2, True, True)
108 [SketchLine_12, SketchLine_13] = SketchMultiRotation_5.rotated()
109 SketchLine_13.setName("SketchLine_34")
110 SketchLine_13.result().setName("SketchLine_34")
111 SketchLine_12.setName("SketchLine_24")
112 SketchLine_12.result().setName("SketchLine_24")
113 SketchMultiRotation_6 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchAPI_Line(SketchLine_3).startPoint(), "alpha+alpha_d1+alpha_d2", 2, True, True)
114 [SketchLine_14, SketchLine_15] = SketchMultiRotation_6.rotated()
115 SketchLine_15.setName("SketchLine_36")
116 SketchLine_15.result().setName("SketchLine_36")
117 SketchLine_14.setName("SketchLine_31")
118 SketchLine_14.result().setName("SketchLine_31")
119 SketchMultiRotation_7 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchCircle_3.center(), "alpha+alpha_d1+alpha_d2+alpha_d3", 2, True, True)
120 [SketchLine_16, SketchLine_17] = SketchMultiRotation_7.rotated()
121 SketchLine_17.setName("SketchLine_38")
122 SketchLine_17.result().setName("SketchLine_38")
123 SketchLine_16.setName("SketchLine_33")
124 SketchLine_16.result().setName("SketchLine_33")
125 SketchMultiRotation_8 = Sketch_1.addRotation([SketchLine_2.result(), SketchLine_1.result()], SketchAPI_Line(SketchLine_3).startPoint(), "alpha+alpha_d1+alpha_d2+alpha_d3+alpha_d4", 2, True, True)
126 [SketchLine_18, SketchLine_19] = SketchMultiRotation_8.rotated()
127 SketchLine_19.setName("SketchLine_40")
128 SketchLine_19.result().setName("SketchLine_40")
129 SketchLine_18.setName("SketchLine_35")
130 SketchLine_18.result().setName("SketchLine_35")
131 SketchLine_20 = Sketch_1.addLine(32.13938048432696, 38.3022221559489, 32.13938048432696, 39.5987401577836)
132 SketchLine_20.setName("SketchLine_47")
133 SketchLine_20.result().setName("SketchLine_47")
134 SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_19).startPoint(), SketchLine_20.startPoint())
135 SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_20.endPoint(), SketchCircle_2.results()[1])
136 SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_20.result())
137 SketchLine_21 = Sketch_1.addLine(-8.856057061013447, 50.22519540362261, -8.682408883346517, 49.2403876506104)
138 SketchLine_21.setName("SketchLine_51")
139 SketchLine_21.result().setName("SketchLine_51")
140 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_4).endPoint(), SketchLine_21.startPoint())
141 SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_5).startPoint(), SketchLine_21.endPoint())
142 SketchArc_1 = Sketch_1.addArc(-8.769232972179982, 49.7327915271165, -8.856057061013447, 50.22519540362261, -8.682408883328591, 49.24038765058431, False)
143 SketchArc_1.setName("SketchArc_9")
144 SketchArc_1.result().setName("SketchArc_9")
145 SketchArc_1.results()[1].setName("SketchArc_9_2")
146 SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_4).startPoint(), SketchArc_1.center())
147 SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchAPI_Line(SketchLine_4).endPoint(), SketchArc_1.startPoint())
148 SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_21.result(), SketchArc_1.endPoint())
149 model.do()
150 Sketch_1.setName("Base")
151 Sketch_1.result().setName("Base")
152 Sketch_1.changeFacesOrder([[SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1], SketchCircle_1.results()[1]],
153                            [SketchLine_11.result(), SketchCircle_3.results()[1], SketchLine_1.result(), SketchCircle_1.results()[1]],
154                            [SketchCircle_1.results()[1], SketchLine_8.result(), SketchCircle_3.results()[1], SketchCircle_3.results()[1], SketchLine_19.result(), SketchCircle_1.results()[1]],
155                            [SketchLine_2.result(), SketchCircle_2.results()[1], SketchLine_4.result(), SketchCircle_3.results()[1]],
156                            [SketchLine_1.result(), SketchCircle_3.results()[1], SketchLine_5.result(), SketchCircle_1.results()[1]],
157                            [SketchCircle_2.results()[1], SketchCircle_2.results()[1], SketchLine_18.result(), SketchCircle_3.results()[1], SketchCircle_3.results()[1], SketchLine_9.result()],
158                            [SketchCircle_3.results()[1], SketchArc_1.results()[1], SketchLine_5.result()],
159                            [SketchLine_7.result(), SketchCircle_3.results()[1], SketchLine_8.result(), SketchCircle_1.results()[1]],
160                            [SketchArc_1.results()[1], SketchCircle_3.results()[1], SketchLine_7.result(), SketchCircle_1.results()[1]],
161                            [SketchLine_15.result(), SketchCircle_3.results()[1], SketchLine_13.result(), SketchCircle_1.results()[1]],
162                            [SketchLine_13.result(), SketchCircle_3.results()[1], SketchLine_11.result(), SketchCircle_1.results()[1]],
163                            [SketchLine_17.result(), SketchCircle_3.results()[1], SketchLine_15.result(), SketchCircle_1.results()[1]],
164                            [SketchLine_4.result(), SketchArc_1.results()[1], SketchCircle_3.results()[1]],
165                            [SketchCircle_3.results()[1], SketchLine_10.result(), SketchCircle_2.results()[1], SketchLine_2.result()],
166                            [SketchCircle_3.results()[1], SketchLine_20.result(), SketchLine_19.result()],
167                            [SketchCircle_2.results()[1], SketchLine_6.result(), SketchCircle_3.results()[1], SketchArc_1.results()[1]],
168                            [SketchCircle_2.results()[1], SketchLine_9.result(), SketchCircle_3.results()[1], SketchLine_6.result()],
169                            [SketchCircle_2.results()[1], SketchLine_10.result(), SketchCircle_3.results()[1], SketchLine_12.result()],
170                            [SketchLine_20.result(), SketchCircle_3.results()[1], SketchLine_17.result(), SketchCircle_1.results()[1]],
171                            [SketchCircle_2.results()[1], SketchLine_16.result(), SketchCircle_3.results()[1], SketchLine_20.result()],
172                            [SketchCircle_2.results()[1], SketchLine_12.result(), SketchCircle_3.results()[1], SketchLine_14.result()],
173                            [SketchCircle_2.results()[1], SketchLine_14.result(), SketchCircle_3.results()[1], SketchLine_16.result()],
174                            [SketchCircle_2.results()[1], SketchLine_20.result(), SketchCircle_3.results()[1], SketchLine_18.result()]
175                           ])
176 model.do()
177 Sketch_2 = model.addSketch(partSet, model.defaultPlane("XOZ"))
178 SketchPoint_2 = Sketch_2.addPoint(-8.769232972179982, 0)
179 SketchProjection_3 = Sketch_2.addProjection(model.selection("VERTEX", "Origin"), False)
180 SketchProjection_3.setName("SketchProjection_4")
181 SketchProjection_3.result().setName("SketchProjection_4")
182 SketchPoint_3 = SketchProjection_3.createdFeature()
183 SketchConstraintDistanceHorizontal_1 = Sketch_2.setHorizontalDistance(SketchPoint_2.coordinates(), SketchAPI_Point(SketchPoint_3).coordinates(), "(R+r)*sin(pi/180*alpha)")
184 SketchProjection_4 = Sketch_2.addProjection(model.selection("EDGE", "OX"), False)
185 SketchProjection_4.setName("SketchProjection_5")
186 SketchProjection_4.result().setName("SketchProjection_5")
187 SketchLine_22 = SketchProjection_4.createdFeature()
188 SketchLine_22.setName("SketchLine_11")
189 SketchLine_22.result().setName("SketchLine_11")
190 SketchConstraintCoincidence_16 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchLine_22.result())
191 SketchPoint_4 = Sketch_2.addPoint(-15.60535821593484, 0)
192 SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchLine_22.result(), SketchPoint_4.coordinates())
193 SketchConstraintDistanceHorizontal_2 = Sketch_2.setHorizontalDistance(SketchPoint_4.coordinates(), SketchAPI_Line(SketchLine_22).startPoint(), "(R+r)*sin(pi/180*(alpha+alpha_g1))")
194 SketchPoint_5 = Sketch_2.addPoint(-22.13774291284841, 0)
195 SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchPoint_5.coordinates(), SketchLine_22.result())
196 SketchConstraintDistanceHorizontal_3 = Sketch_2.setHorizontalDistance(SketchPoint_5.coordinates(), SketchAPI_Line(SketchLine_22).startPoint(), "(R+r)*sin(pi/180*(alpha+alpha_g1+alpha_g2))")
197 SketchArc_2 = Sketch_2.addArc(9.891954789997728, 17.56243472757491, -8.769232972179982, 0, -15.60535821593484, 15, True)
198 SketchArc_2.setName("SketchArc_1")
199 SketchArc_2.result().setName("SketchArc_1")
200 SketchArc_2.results()[1].setName("SketchArc_1_2")
201 SketchProjection_5 = Sketch_2.addProjection(model.selection("EDGE", "OZ"), False)
202 SketchProjection_5.setName("SketchProjection_6")
203 SketchProjection_5.result().setName("SketchProjection_6")
204 SketchLine_23 = SketchProjection_5.createdFeature()
205 SketchLine_23.setName("SketchLine_19")
206 SketchLine_23.result().setName("SketchLine_19")
207 SketchLine_24 = Sketch_2.addLine(-15.60535821593484, 0, -15.60535821593484, 15)
208 SketchLine_24.setName("SketchLine_22")
209 SketchLine_24.result().setName("SketchLine_22")
210 SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchPoint_4.coordinates(), SketchLine_24.startPoint())
211 SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchArc_2.endPoint(), SketchLine_24.endPoint())
212 SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_24.result())
213 SketchLine_25 = Sketch_2.addLine(-15.60535821593484, 15, -22.13774291284841, 80)
214 SketchLine_25.setName("SketchLine_23")
215 SketchLine_25.result().setName("SketchLine_23")
216 SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchArc_2.endPoint(), SketchLine_25.startPoint())
217 SketchLine_26 = Sketch_2.addLine(-22.13774291284841, 80, -22.13774291284841, 0)
218 SketchLine_26.setName("SketchLine_25")
219 SketchLine_26.result().setName("SketchLine_25")
220 SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_25.endPoint(), SketchLine_26.startPoint())
221 SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchPoint_5.coordinates(), SketchLine_26.endPoint())
222 SketchConstraintTangent_1 = Sketch_2.setTangent(SketchLine_25.result(), SketchArc_2.results()[1])
223 SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchArc_2.startPoint(), SketchPoint_2.coordinates())
224 SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_26.result())
225 SketchConstraintLength_1 = Sketch_2.setLength(SketchLine_26.result(), "H")
226 SketchLine_27 = Sketch_2.addLine(-22.13774291284841, 80, 0, 80)
227 SketchLine_27.setName("SketchLine_26")
228 SketchLine_27.result().setName("SketchLine_26")
229 SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchLine_27.endPoint(), SketchLine_23.result())
230 SketchConstraintHorizontal_1 = Sketch_2.setHorizontal(SketchLine_27.result())
231 SketchConstraintLength_2 = Sketch_2.setLength(SketchLine_24.result(), "h_left_b")
232 SketchLine_28 = Sketch_2.addLine(0, 90, 0, 80)
233 SketchLine_28.setName("SketchLine_27")
234 SketchLine_28.result().setName("SketchLine_27")
235 SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_27.endPoint(), SketchLine_28.endPoint())
236 SketchLine_29 = Sketch_2.addLine(0, 80, 0, 0)
237 SketchLine_29.setName("SketchLine_28")
238 SketchLine_29.result().setName("SketchLine_28")
239 SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchLine_27.endPoint(), SketchLine_29.startPoint())
240 SketchConstraintCoincidence_28 = Sketch_2.setCoincident(SketchAPI_Point(SketchPoint_3).coordinates(), SketchLine_29.endPoint())
241 SketchLine_30 = Sketch_2.addLine(0, 0, -8.769232972179982, 0)
242 SketchLine_30.setName("SketchLine_29")
243 SketchLine_30.result().setName("SketchLine_29")
244 SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchAPI_Point(SketchPoint_3).coordinates(), SketchLine_30.startPoint())
245 SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchPoint_2.coordinates(), SketchLine_30.endPoint())
246 SketchArc_3 = Sketch_2.addArc(-21.14275492577, 80.09999452769853, -22.13774291284841, 80, -21.85792509603332, 80.79894490330864, True)
247 SketchArc_3.setName("SketchArc_2")
248 SketchArc_3.result().setName("SketchArc_2")
249 SketchArc_3.results()[1].setName("SketchArc_2_2")
250 SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchLine_25.endPoint(), SketchArc_3.startPoint())
251 SketchArc_4 = Sketch_2.addArc(0, 59.43674945504897, -21.85792509603332, 80.79894490330864, 0, 90, True)
252 SketchArc_4.setName("SketchArc_3")
253 SketchArc_4.result().setName("SketchArc_3")
254 SketchArc_4.results()[1].setName("SketchArc_3_2")
255 SketchConstraintCoincidence_32 = Sketch_2.setCoincident(SketchArc_3.endPoint(), SketchArc_4.startPoint())
256 SketchConstraintCoincidence_33 = Sketch_2.setCoincident(SketchArc_4.endPoint(), SketchLine_28.startPoint())
257 SketchConstraintVertical_6 = Sketch_2.setVertical(SketchLine_28.result())
258 SketchConstraintLength_3 = Sketch_2.setLength(SketchLine_28.result(), "h")
259 SketchConstraintCoincidence_34 = Sketch_2.setCoincident(SketchLine_27.startPoint(), SketchLine_26.startPoint())
260 SketchConstraintTangent_2 = Sketch_2.setTangent(SketchArc_3.results()[1], SketchArc_4.results()[1])
261 SketchConstraintTangent_3 = Sketch_2.setTangent(SketchArc_3.results()[1], SketchLine_25.result())
262 SketchConstraintRadius_3 = Sketch_2.setRadius(SketchArc_3.results()[1], "2*r")
263 SketchPoint_6 = Sketch_2.addPoint(8.769232972179982, 0)
264 SketchConstraintCoincidence_35 = Sketch_2.setCoincident(SketchPoint_6.coordinates(), SketchLine_22.result())
265 SketchConstraintDistanceHorizontal_4 = Sketch_2.setHorizontalDistance(SketchPoint_6.coordinates(), SketchLine_30.startPoint(), "(R+r)*sin(pi/180*alpha)")
266 SketchPoint_7 = Sketch_2.addPoint(13.91968646875846, 0)
267 SketchConstraintCoincidence_36 = Sketch_2.setCoincident(SketchPoint_7.coordinates(), SketchLine_22.result())
268 SketchConstraintDistanceHorizontal_5 = Sketch_2.setHorizontalDistance(SketchLine_30.startPoint(), SketchPoint_7.coordinates(), "(R+r)*sin(pi/180*(alpha+alpha_d1))")
269 SketchPoint_8 = Sketch_2.addPoint(20.54020047532791, 0)
270 SketchConstraintCoincidence_37 = Sketch_2.setCoincident(SketchPoint_8.coordinates(), SketchLine_22.result())
271 SketchConstraintDistanceHorizontal_6 = Sketch_2.setHorizontalDistance(SketchPoint_8.coordinates(), SketchLine_30.startPoint(), "(R+r)*sin(pi/180*(alpha+alpha_d1+alpha_d2))")
272 SketchPoint_9 = Sketch_2.addPoint(26.76092284377685, 0)
273 SketchConstraintCoincidence_38 = Sketch_2.setCoincident(SketchPoint_9.coordinates(), SketchLine_22.result())
274 SketchConstraintDistanceHorizontal_7 = Sketch_2.setHorizontalDistance(SketchPoint_9.coordinates(), SketchLine_30.startPoint(), "(R+r)*sin(pi/180*(alpha+alpha_d1+alpha_d2+alpha_d3))")
275 SketchPoint_10 = Sketch_2.addPoint(32.46077428917023, 0)
276 SketchConstraintCoincidence_39 = Sketch_2.setCoincident(SketchPoint_10.coordinates(), SketchLine_22.result())
277 SketchConstraintDistanceHorizontal_8 = Sketch_2.setHorizontalDistance(SketchPoint_10.coordinates(), SketchLine_30.startPoint(), "(R+r)*sin(pi/180*(alpha+alpha_d1+alpha_d2+alpha_d3+alpha_d4))")
278 SketchLine_31 = Sketch_2.addLine(0, 0, 8.769232972179982, 0)
279 SketchLine_31.setName("SketchLine_37")
280 SketchLine_31.result().setName("SketchLine_37")
281 SketchConstraintCoincidence_40 = Sketch_2.setCoincident(SketchAPI_Point(SketchPoint_3).coordinates(), SketchLine_31.startPoint())
282 SketchConstraintCoincidence_41 = Sketch_2.setCoincident(SketchPoint_6.coordinates(), SketchLine_31.endPoint())
283 SketchLine_32 = Sketch_2.addLine(13.91968646875846, 10, 13.91968646875846, 0)
284 SketchLine_32.setName("SketchLine_39")
285 SketchLine_32.result().setName("SketchLine_39")
286 SketchConstraintCoincidence_42 = Sketch_2.setCoincident(SketchPoint_7.coordinates(), SketchLine_32.endPoint())
287 SketchLine_33 = Sketch_2.addLine(13.91968646875846, 10, 20.54020047532791, 55)
288 SketchLine_33.setName("SketchLine_41")
289 SketchLine_33.result().setName("SketchLine_41")
290 SketchLine_34 = Sketch_2.addLine(20.54020047532791, 55, 20.54020047532791, 0)
291 SketchLine_34.setName("SketchLine_42")
292 SketchLine_34.result().setName("SketchLine_42")
293 SketchConstraintCoincidence_43 = Sketch_2.setCoincident(SketchLine_33.endPoint(), SketchLine_34.startPoint())
294 SketchConstraintCoincidence_44 = Sketch_2.setCoincident(SketchPoint_8.coordinates(), SketchLine_34.endPoint())
295 SketchConstraintVertical_7 = Sketch_2.setVertical(SketchLine_34.result())
296 SketchArc_5 = Sketch_2.addArc(60.54593105342065, 49.11425556365985, 20.54020047532791, 55, 26.76092284377685, 71.33302436238394, True)
297 SketchArc_5.setName("SketchArc_5")
298 SketchArc_5.result().setName("SketchArc_5")
299 SketchArc_5.results()[1].setName("SketchArc_5_2")
300 SketchConstraintCoincidence_45 = Sketch_2.setCoincident(SketchLine_33.endPoint(), SketchArc_5.startPoint())
301 SketchLine_35 = Sketch_2.addLine(26.76092284377685, 0, 26.76092284377685, 71.33302436238394)
302 SketchLine_35.setName("SketchLine_43")
303 SketchLine_35.result().setName("SketchLine_43")
304 SketchConstraintCoincidence_46 = Sketch_2.setCoincident(SketchPoint_9.coordinates(), SketchLine_35.startPoint())
305 SketchConstraintCoincidence_47 = Sketch_2.setCoincident(SketchArc_5.endPoint(), SketchLine_35.endPoint())
306 SketchLine_36 = Sketch_2.addLine(26.76092284377685, 71.33302436238394, 32.46077428917023, 80)
307 SketchLine_36.setName("SketchLine_44")
308 SketchLine_36.result().setName("SketchLine_44")
309 SketchConstraintCoincidence_48 = Sketch_2.setCoincident(SketchArc_5.endPoint(), SketchLine_36.startPoint())
310 SketchLine_37 = Sketch_2.addLine(32.46077428917023, 80, 32.46077428917023, 0)
311 SketchLine_37.setName("SketchLine_45")
312 SketchLine_37.result().setName("SketchLine_45")
313 SketchConstraintCoincidence_49 = Sketch_2.setCoincident(SketchLine_36.endPoint(), SketchLine_37.startPoint())
314 SketchConstraintCoincidence_50 = Sketch_2.setCoincident(SketchPoint_10.coordinates(), SketchLine_37.endPoint())
315 SketchConstraintVertical_8 = Sketch_2.setVertical(SketchLine_37.result())
316 SketchConstraintVertical_9 = Sketch_2.setVertical(SketchLine_35.result())
317 SketchConstraintVertical_10 = Sketch_2.setVertical(SketchLine_32.result())
318 SketchConstraintTangent_4 = Sketch_2.setTangent(SketchArc_5.results()[1], SketchLine_33.result())
319 SketchConstraintTangent_5 = Sketch_2.setTangent(SketchLine_36.result(), SketchArc_5.results()[1])
320 SketchConstraintLength_4 = Sketch_2.setLength(SketchLine_37.result(), "H")
321 SketchArc_6 = Sketch_2.addArc(0, 25.59750892852344, 0, 90, 32.1240655903332, 81.41619098175349, True)
322 SketchArc_6.setName("SketchArc_6")
323 SketchArc_6.result().setName("SketchArc_6")
324 SketchArc_6.results()[1].setName("SketchArc_6_2")
325 SketchConstraintCoincidence_51 = Sketch_2.setCoincident(SketchLine_23.result(), SketchArc_6.center())
326 SketchConstraintCoincidence_52 = Sketch_2.setCoincident(SketchArc_6.startPoint(), SketchArc_4.endPoint())
327 SketchConstraintCoincidence_53 = Sketch_2.setCoincident(SketchArc_4.center(), SketchLine_23.result())
328 SketchArc_7 = Sketch_2.addArc(31.62526399033484, 80.54947478608211, 32.46077428917023, 80, 32.1240655903332, 81.41619098175349, False)
329 SketchArc_7.setName("SketchArc_7")
330 SketchArc_7.result().setName("SketchArc_7")
331 SketchArc_7.results()[1].setName("SketchArc_7_2")
332 SketchConstraintCoincidence_54 = Sketch_2.setCoincident(SketchLine_36.endPoint(), SketchArc_7.startPoint())
333 SketchConstraintCoincidence_55 = Sketch_2.setCoincident(SketchArc_7.endPoint(), SketchArc_6.endPoint())
334 SketchConstraintTangent_6 = Sketch_2.setTangent(SketchLine_36.result(), SketchArc_7.results()[1])
335 SketchConstraintTangent_7 = Sketch_2.setTangent(SketchArc_6.results()[1], SketchArc_7.results()[1])
336 SketchConstraintRadius_4 = Sketch_2.setRadius(SketchArc_7.results()[1], "2*r")
337 SketchConstraintCoincidence_56 = Sketch_2.setCoincident(SketchLine_32.startPoint(), SketchLine_33.startPoint())
338 SketchArc_8 = Sketch_2.addArc(-3.275111686817561, 12.52974226731389, 13.91968646875846, 10, 8.769232972179982, 0, True)
339 SketchArc_8.setName("SketchArc_8")
340 SketchArc_8.result().setName("SketchArc_8")
341 SketchArc_8.results()[1].setName("SketchArc_8_2")
342 SketchConstraintCoincidence_57 = Sketch_2.setCoincident(SketchArc_8.startPoint(), SketchLine_32.startPoint())
343 SketchConstraintCoincidence_58 = Sketch_2.setCoincident(SketchArc_8.endPoint(), SketchLine_31.endPoint())
344 SketchConstraintTangent_8 = Sketch_2.setTangent(SketchArc_8.results()[1], SketchLine_33.result())
345 SketchConstraintLength_5 = Sketch_2.setLength(SketchLine_32.result(), "h_right_b")
346 SketchConstraintDistanceVertical_1 = Sketch_2.setVerticalDistance(SketchLine_37.startPoint(), SketchLine_34.startPoint(), "h_right_t")
347 SketchCircle_4 = Sketch_2.addCircle(0, -23.41154743026679, 25)
348 SketchCircle_4.setName("SketchCircle_6")
349 SketchCircle_4.result().setName("SketchCircle_6")
350 SketchCircle_4.results()[1].setName("SketchCircle_6_2")
351 SketchConstraintCoincidence_59 = Sketch_2.setCoincident(SketchLine_23.result(), SketchCircle_4.center())
352 SketchConstraintRadius_5 = Sketch_2.setRadius(SketchCircle_4.results()[1], "R_rotor")
353 SketchConstraintCoincidence_60 = Sketch_2.setCoincident(SketchCircle_4.results()[1], SketchArc_2.startPoint())
354 model.do()
355 Sketch_2.setName("Shape")
356 Sketch_2.result().setName("Shape")
357 Sketch_2.changeFacesOrder([[SketchLine_27.result(), SketchLine_28.result(), SketchArc_4.results()[1], SketchArc_3.results()[1]],
358                            [SketchArc_2.results()[1], SketchCircle_4.results()[1], SketchLine_29.result(), SketchLine_27.result(), SketchLine_25.result()],
359                            [SketchCircle_4.results()[1], SketchLine_30.result(), SketchLine_29.result()],
360                            [SketchLine_30.result(), SketchCircle_4.results()[1], SketchCircle_4.results()[1], SketchLine_31.result()],
361                            [SketchLine_28.result(), SketchLine_29.result(), SketchCircle_4.results()[1], SketchArc_8.results()[1], SketchLine_33.result(), SketchArc_5.results()[1], SketchLine_36.result(), SketchArc_7.results()[1], SketchArc_6.results()[1]],
362                            [SketchLine_29.result(), SketchLine_31.result(), SketchCircle_4.results()[1]]
363                           ])
364 model.do()
365 Part_1 = model.addPart(partSet)
366 Part_1.setName("Blade")
367 Part_1.result().setName("Blade")
368 Part_1_doc = Part_1.document()
369 Wire_1 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_1_2")], False)
370 Wire_2 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_23")], False)
371 Wire_3 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_2_2")], False)
372 Wire_4 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_3_2")], False)
373 Wire_5 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_6_2")], False)
374 Wire_6 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_7_2")], False)
375 Wire_7 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_44")], False)
376 Wire_8 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_5_2")], False)
377 Wire_9 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_41")], False)
378 Wire_10 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_8_2")], False)
379 Wire_11 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_29")], False)
380 Wire_12 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_37")], False)
381 Face_1_objects = [model.selection("WIRE", "Wire_1_1"), model.selection("WIRE", "Wire_2_1"), model.selection("WIRE", "Wire_3_1"), model.selection("WIRE", "Wire_4_1"), model.selection("WIRE", "Wire_5_1"), model.selection("WIRE", "Wire_6_1"), model.selection("WIRE", "Wire_7_1"), model.selection("WIRE", "Wire_8_1"), model.selection("WIRE", "Wire_9_1"), model.selection("WIRE", "Wire_10_1"), model.selection("WIRE", "Wire_11_1"), model.selection("WIRE", "Wire_12_1")]
382 Face_1 = model.addFace(Part_1_doc, Face_1_objects)
383 Wire_13 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Base/SketchCircle_5_2")], False)
384 Pipe_1 = model.addPipe(Part_1_doc, [model.selection("WIRE", "Wire_13_1")], model.selection("EDGE", "PartSet/OZ"))
385 Pipe_2 = model.addPipe(Part_1_doc, [model.selection("FACE", "Face_1_1")], model.selection("EDGE", "PartSet/OY"))
386 Common_1 = model.addCommon(Part_1_doc, [model.selection("FACE", "Pipe_1_1"), model.selection("SOLID", "Pipe_2_1")])
387 Scale_1 = model.addScale(Part_1_doc, [model.selection("FACE", "Common_1_1")] , model.selection("VERTEX", "PartSet/Origin"), "(R+2*r)/(R+r)" , "(R+2*r)/(R+r)", 1)
388 Wire_14 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_1_2")], False)
389 Wire_15 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_23")], False)
390 Wire_16 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_2_2")], False)
391 Wire_17 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_3_2")], False)
392 Wire_18 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_6_2")], False)
393 Wire_19 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_7_2")], False)
394 Wire_20 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_44")], False)
395 Wire_21 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_5_2")], False)
396 Wire_22 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_41")], False)
397 Wire_23 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_8_2")], False)
398 Wire_24 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_37")], False)
399 Wire_25 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_29")], False)
400 Face_2_objects = [model.selection("WIRE", "Wire_25_1"), model.selection("WIRE", "Wire_24_1"), model.selection("WIRE", "Wire_23_1"), model.selection("WIRE", "Wire_21_1"), model.selection("WIRE", "Wire_22_1"), model.selection("WIRE", "Wire_20_1"), model.selection("WIRE", "Wire_18_1"), model.selection("WIRE", "Wire_19_1"), model.selection("WIRE", "Wire_17_1"), model.selection("WIRE", "Wire_16_1"), model.selection("WIRE", "Wire_15_1"), model.selection("WIRE", "Wire_14_1")]
401 Face_2 = model.addFace(Part_1_doc, Face_2_objects)
402 Wire_26 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Base/SketchCircle_5_2")], False)
403 Pipe_3 = model.addPipe(Part_1_doc, [model.selection("WIRE", "Wire_26_1")], model.selection("EDGE", "PartSet/OZ"))
404 Pipe_4 = model.addPipe(Part_1_doc, [model.selection("FACE", "Face_2_1")], model.selection("EDGE", "PartSet/OY"))
405 Common_2 = model.addCommon(Part_1_doc, [model.selection("FACE", "Pipe_3_1"), model.selection("SOLID", "Pipe_4_1")])
406 Scale_2 = model.addScale(Part_1_doc, [model.selection("FACE", "Common_2_1")] , model.selection("VERTEX", "PartSet/Origin"), "R/(R+r)" , "R/(R+r)", 1)
407 Wire_27 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_1_2")], False)
408 Wire_28 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_23")], False)
409 Wire_29 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_2_2")], False)
410 Wire_30 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_3_2")], False)
411 Wire_31 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_6_2")], False)
412 Wire_32 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_7_2")], False)
413 Wire_33 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_44")], False)
414 Wire_34 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_5_2")], False)
415 Wire_35 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_41")], False)
416 Wire_36 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchArc_8_2")], False)
417 Wire_37 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_37")], False)
418 Wire_38 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Shape/SketchLine_29")], False)
419 Face_3_objects = [model.selection("WIRE", "Wire_27_1"), model.selection("WIRE", "Wire_28_1"), model.selection("WIRE", "Wire_29_1"), model.selection("WIRE", "Wire_30_1"), model.selection("WIRE", "Wire_31_1"), model.selection("WIRE", "Wire_32_1"), model.selection("WIRE", "Wire_33_1"), model.selection("WIRE", "Wire_34_1"), model.selection("WIRE", "Wire_35_1"), model.selection("WIRE", "Wire_36_1"), model.selection("WIRE", "Wire_37_1"), model.selection("WIRE", "Wire_38_1")]
420 Face_3 = model.addFace(Part_1_doc, Face_3_objects)
421 Wire_39 = model.addWire(Part_1_doc, [model.selection("EDGE", "PartSet/Base/SketchCircle_5_2")], False)
422 Pipe_5 = model.addPipe(Part_1_doc, [model.selection("WIRE", "Wire_39_1")], model.selection("EDGE", "PartSet/OZ"))
423 Pipe_6 = model.addPipe(Part_1_doc, [model.selection("FACE", "Face_3_1")], model.selection("EDGE", "PartSet/OY"))
424 Common_3 = model.addCommon(Part_1_doc, [model.selection("FACE", "Pipe_5_1"), model.selection("SOLID", "Pipe_6_1")])
425 Filling_1 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_41&Wire_26_1/Wire_26_1"), model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_41&Wire_13_1/Wire_13_1")])
426 Filling_2 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_7_2&Wire_26_1/Wire_26_1"), model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_7_2&Wire_13_1/Wire_13_1")])
427 Filling_3 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_8_2&Wire_26_1/Wire_26_1"), model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_8_2&Wire_13_1/Wire_13_1")])
428 Filling_4 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_5_2&Wire_26_1/Wire_26_1"), model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_5_2&Wire_13_1/Wire_13_1")])
429 Filling_5 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_44&Wire_13_1/Wire_13_1"), model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_44&Wire_26_1/Wire_26_1")])
430 Filling_6 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_6_2&Wire_13_1/Wire_13_1"), model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_6_2&Wire_26_1/Wire_26_1")])
431 Filling_7 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_3_2&Wire_13_1/Wire_13_1"), model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_3_2&Wire_26_1/Wire_26_1")])
432 Filling_8 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_2_2&Wire_13_1/Wire_13_1"), model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_2_2&Wire_26_1/Wire_26_1")])
433 Filling_9 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_23&Wire_13_1/Wire_13_1"), model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_23&Wire_26_1/Wire_26_1")])
434 Filling_10 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_1_2&Wire_13_1/Wire_13_1"), model.selection("EDGE", "Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_1_2&Wire_26_1/Wire_26_1")])
435 Filling_11 = model.addFilling(Part_1_doc, [model.selection("EDGE", "(Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_8_2&Wire_26_1/Wire_26_1)(Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_41&Wire_26_1/Wire_26_1)2(Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_1_2&Wire_26_1/Wire_26_1)2"), model.selection("EDGE", "(Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_8_2&Wire_13_1/Wire_13_1)(Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_41&Wire_13_1/Wire_13_1)2(Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_1_2&Wire_13_1/Wire_13_1)2")])
436 Filling_12 = model.addFilling(Part_1_doc, [model.selection("EDGE", "(Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_1_2&Wire_26_1/Wire_26_1)(Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_8_2&Wire_26_1/Wire_26_1)2(Scale_2_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_23&Wire_26_1/Wire_26_1)2"), model.selection("EDGE", "(Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_1_2&Wire_13_1/Wire_13_1)(Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchArc_8_2&Wire_13_1/Wire_13_1)2(Scale_1_1/ME:Scaled&PartSet/OY/OY&PartSet/Shape/SketchLine_23&Wire_13_1/Wire_13_1)2")])
437 Shell_1_objects = [model.selection("FACE", "Scale_1_1"), model.selection("FACE", "Scale_2_1"), model.selection("FACE", "Filling_1_1"), model.selection("FACE", "Filling_2_1"), model.selection("FACE", "Filling_3_1"), model.selection("FACE", "Filling_4_1"), model.selection("FACE", "Filling_5_1"), model.selection("FACE", "Filling_6_1"), model.selection("FACE", "Filling_7_1"), model.selection("FACE", "Filling_8_1"), model.selection("FACE", "Filling_9_1"), model.selection("FACE", "Filling_10_1"), model.selection("FACE", "Filling_11_1"), model.selection("FACE", "Filling_12_1")]
438 Shell_1 = model.addShell(Part_1_doc, Shell_1_objects)
439 Solid_1 = model.addSolid(Part_1_doc, [model.selection("SHELL", "Shell_1_1")])
440 Fillet_1 = model.addFillet(Part_1_doc, [model.selection("FACE", "Shell_1_1/Modified_Face&Wire_26_1/Wire_26_1")], "r/2")
441 Fillet_1.result().setDeflection(1e-05)
442 Fillet_2 = model.addFillet(Part_1_doc, [model.selection("FACE", "Shell_1_1/Modified_Face&Wire_13_1/Wire_13_1")], "r/2")
443 Fillet_2.result().setDeflection(1e-05)
444 Folder_1 = model.addFolder(Part_1_doc, Wire_1, Scale_1)
445 Folder_1.setName("EXT")
446 Folder_2 = model.addFolder(Part_1_doc, Wire_14, Scale_2)
447 Folder_2.setName("Int")
448 Folder_3 = model.addFolder(Part_1_doc, Wire_27, Fillet_2)
449 Folder_3.setName("INT")
450 model.do()
451
452 model.end()
453
454 from GeomAPI import *
455
456 model.testNbResults(Part_1, 1)
457 model.testNbSubResults(Part_1, [0])
458 model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [1])
459 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [39])
460 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [180])
461 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [360])
462 model.testResultsVolumes(Part_1, [3435.010412])
463
464 assert(model.checkPythonDump())