Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$MeshFormat
2.1 0 8
$EndMeshFormat
$Nodes
181
1 1.38516741 0.00504613028 2.13825853
2 0.824273759 0.000223564319 1.54913614
3 1.87175547 -0.000829251357 1.11214156
4 1.74692792 0.00155555342 1.98931511
5 3.22389258 -0.000920639253 0.699638017
6 0.938412431 -0.00428679437 0.835792779
7 1.83380027 -0.00146446983 0.201895882
8 1.19876769 -0.00188016611 -1.19271708
9 1.70123373 0.0061753844 -1.05077813
10 1.60590801 -0.000256799327 -1.99117805
11 1.46712354 0.199284085 -2.09097965
12 2.14790919 -9.37309578e-05 -2.54263512
13 2.58644274 0.0372194979 -0.914899625
14 2.74705118 0.0244031805 -0.434568897
15 3.84937669 -0.00023741199 -0.935938947
16 3.86938046 0.00048325388 -1.73458931
17 3.59861266 0.0016486113 -2.35759466
18 2.97164005 -0.00042700849 -2.74563727
19 1.30618112 0.291716006 -2.07328639
20 1.01915071 -0.00251863867 -1.18345247
21 -0.127981695 -0.00049572476 -1.47553147
22 0.853823091 -0.00462548007 -0.333810244
23 0.0410627001 -0.00142969234 -0.574493288
24 0.354661859 0.711781808 -2.03420613
25 -0.465219435 -0.00245467152 -1.78760289
26 -0.564349652 -0.00241565386 -0.613725364
27 -1.5026441 -0.000853458352 -0.106977457
28 -1.15837176 0.0103939444 0.0221409433
29 -1.46306471 0.013502387 1.02551341
30 -1.82795188 -0.000876288826 0.988067757
31 -1.82470288 -0.000365469032 -0.237630781
32 -2.18036834 -0.00146893509 0.910739909
33 -1.85914847 -0.000114618203 1.24974566
34 -2.20881686 -0.00129178202 1.188421
35 -1.45668846 -0.00022402666 1.34065439
36 -1.84017252 -0.00299876322 2.28420072
37 -1.44480058 -0.000330983035 2.28153987
38 -2.45322264 -0.000223390808 2.31797381
39 -1.94923411 0.0522658404 3.04204103
40 -2.52877029 0.0597714937 2.87510195
41 -1.19506826 -0.000240915887 3.11034935
42 -0.340072706 -0.00190153759 2.0611804
43 -0.186269489 0.000763745057 2.83496539
44 -0.556693714 0.0188532358 1.43292489
45 -0.764037552 0.0699656793 1.06430481
46 0.967477853 -0.00011766325 2.31366581
47 0.546931846 -0.000198286019 1.67325004
48 0.440609193 0.0401688644 1.06633257
49 0.29837501 0.0544422092 1.13507729
50 0.058102422 0.096235164 0.58194797
51 0.205289086 0.0725534419 0.465967341
52 -0.13308654 0.0203056802 -0.0455638235
53 -0.940782285 0.0461482352 0.521965456
54 -3.40282948 0.0642873676 2.32163423
55 -3.1399182 -0.000755739674 1.18650552
56 -3.08572254 -0.00313914494 0.75973936
57 -2.8147087 0.00144256657 -0.430891558
58 -2.87344905 -0.00354508575 -1.25741421
59 -1.37042778 -0.00302685775 -1.31244306
60 -1.13681989 0.0353431837 -1.78262787
61 -3.65553954 -0.000461429317 -0.628589338
62 -4.12578661 0.00200084 0.797865985
63 -4.03652826 0.0379839896 1.36015656
64 -1.43956692 0.0947978117 -2.12821006
65 -2.92046743 0.0217652848 -1.47795904
66 -3.15487042 0.434790889 -1.26857213
67 -2.03463977 0.796955882 -1.96684748
68 0.0057652549 1.28267576 -1.8415318
69 -0.0547898184 1.21422216 -1.98097879
70 -0.641825223 1.79169629 -1.46178588
71 -2.18245622 1.40381636 -1.4365449
72 -3.15928419 0.929775861 -0.745272798
73 -3.62159774 0.589366125 -0.24356903
74 -4.01780615 0.284916938 1.18564128
75 -3.43695357 0.828439836 0.560226087
76 -2.87386108 1.34892958 -0.117956883
77 -2.0858951 1.92517863 -0.866219766
78 2.0899552 0.371042779 -2.38165577
79 3.11546009 0.340797399 -2.57231071
80 1.6276847 0.388014915 -2.23724993
81 3.41763956 0.409467203 -2.29160932
82 3.27172822 0.515565769 -2.23348039
83 3.31564393 0.719836298 -1.48128572
84 3.63163312 0.489787953 -1.6234508
85 3.633341 0.513086888 -0.989911293
86 3.07947672 0.915099134 -0.265648545
87 3.12210432 0.403359923 0.646342744
88 2.40701932 1.09095833 0.0085771004
89 2.35721344 0.72952546 1.0832254
90 1.73744741 0.860678277 1.20261251
91 1.86266314 1.23931782 0.150281317
92 1.70827735 1.29244874 0.199994804
93 1.5507848 0.870403946 1.24783828
94 1.44681844 0.636265206 1.58036704
95 0.773707074 0.545643292 2.0534136
96 0.418195133 0.0346663096 2.58667265
97 0.988375798 0.960874411 1.29096098
98 1.16756809 1.4888376 0.265398991
99 0.574909838 1.90369255 -0.143102153
100 0.622512062 1.75331546 0.449265394
101 0.189357493 1.07830788 1.33538379
102 0.0204017899 0.65604539 2.03139559
103 -0.127124478 0.16465402 2.77993624
104 -1.00431301 0.246181639 3.0118824
105 -0.656915503 0.808931359 2.05494868
106 -0.355040733 1.27012231 1.38468781
107 0.169140773 1.88438157 0.490843552
108 0.285186002 2.0122999 -0.403779525
109 -1.96578724 0.271360927 3.0039506
110 -1.45624593 1.12651908 2.09678615
111 -1.0659399 1.64637638 1.36580717
112 -0.648360626 2.14551324 0.371894327
113 -0.225957193 2.04452171 -0.831537291
114 -2.45069834 0.249787046 2.88045426
115 -1.96678883 1.2219516 1.92112162
116 -1.59781067 1.7160654 1.15333366
117 -0.999329565 2.16966869 0.176082159
118 -0.395057997 2.01580582 -0.964324858
119 -3.4054039 0.294853535 2.21625147
120 -2.72534299 1.01364757 1.27460444
121 -2.30843565 1.6081378 0.511671092
122 -1.7323866 2.13258161 -0.410414779
123 2.53683517 0.862292308 -1.71672585
124 2.72976601 0.864177151 -1.5727002
125 0.0725753979 0.832205219 -2.17139809
126 -0.917909386 -5.96173625e-05 -1.99201555
127 0.297420702 1.12261444 -1.59349098
128 0.827256038 1.72228281 -0.891785756
129 1.4788909 1.06481684 -1.4044043
130 0.466648241 0.899278204 -1.73836993
131 1.74302515 0.981834863 -1.59485758
132 2.07429537 0.84295541 -1.69925731
133 2.6344943 1.13197467 -0.844504904
134 2.3451662 1.15836217 -0.715004663
135 1.85139257 1.28173974 -0.583687363
136 1.74043773 1.33718174 -0.552366742
137 1.41853376 1.45943775 -0.529739342
138 1.0583092 1.69392399 -0.705128414
139 1.86953089 1.15624307 -1.12209999
140 1.39330821 0.40156868 0.98449754
141 0.628774076 0.932766038 -0.628319384
142 0.347779213 1.3693085 -0.237116057
143 1.22300101 0.574679071 0.427133058
144 0.794661255 0.478821289 -0.856631146
145 0.361565049 0.367980663 -0.489039759
146 0.672313663 0.658271777 -0.247873784
147 -0.280590847 0.492329262 -0.412102523
148 0.487146332 0.858158322 -1.02314797
149 0.248326068 0.390883677 -0.889314372
150 1.47111996 0.891519365 -0.684088771
151 0.211759641 0.393566137 1.31175006
152 -0.193708087 0.426548974 0.523325682
153 -0.478365222 0.49646835 1.10482841
154 0.666878602 0.30877374 1.01495163
155 0.209381501 0.388650473 0.170444207
156 1.4658866 0.872623543 -0.335950288
157 -0.833750295 1.4168323 -0.532286375
158 -1.57189199 1.09351367 -0.297246513
159 -0.789604698 0.797786765 -1.30985138
160 -0.319409839 1.31264748 -0.590423571
161 -0.927770946 0.57730497 0.140479174
162 -1.48553921 0.596238329 -0.954549374
163 -0.783084804 1.07673329 0.363127676
164 -2.19113921 0.664398816 -0.523121205
165 -1.9457728 0.52693721 -1.00612033
166 -2.52774189 0.429996591 0.900645416
167 -1.73287024 0.628274213 0.52987131
168 0.239321681 0.238609647 2.2395265
169 1.65734199 0.402589734 -1.49253203
170 1.01402081 0.535202229 -1.26519067
171 0.00317124526 1.18918397 -0.584887343
172 0.208867416 0.764142826 -1.51385354
173 2.34595713 0.277051372 -1.80767052
174 2.16547946 0.509290519 -0.939423099
175 3.20459436 0.309479264 -2.11431465
176 -1.44355199 0.705033415 1.35889462
177 -0.152570079 0.97236153 0.355697525
178 -1.11650823 0.424404047 1.73010479
179 0.272472636 0.912555893 0.188323452
180 -1.90356496 0.248336427 1.17602629
181 -1.91205401 0.448074957 2.15994308
$EndNodes
$Elements
596
1 4 0 128 141 138 142
2 4 0 91 143 7 140
3 4 0 140 88 91 90
4 4 0 140 90 89 88
5 4 0 140 6 143 7
6 4 0 140 90 3 89
7 4 0 144 145 146 141
8 4 0 146 22 145 144
9 4 0 141 147 148 145
10 4 0 148 145 149 144
11 4 0 22 144 149 145
12 4 0 144 141 150 148
13 4 0 151 101 152 153
14 4 0 50 151 44 49
15 4 0 151 153 44 102
16 4 0 151 44 42 102
17 4 0 151 154 101 97
18 4 0 143 155 6 154
19 4 0 93 154 97 143
20 4 0 156 91 143 7
21 4 0 143 91 156 92
22 4 0 157 158 77 71
23 4 0 157 159 160 161
24 4 0 157 162 70 159
25 4 0 157 163 160 112
26 4 0 157 163 158 161
27 4 0 157 112 160 113
28 4 0 157 158 122 77
29 4 0 157 160 118 113
30 4 0 157 158 117 122
31 4 0 164 165 71 162
32 4 0 164 71 165 72
33 4 0 99 98 142 137
34 4 0 71 158 76 164
35 4 0 8 146 9 150
36 4 0 160 112 107 108
37 4 0 166 164 76 167
38 4 0 167 164 76 158
39 4 0 147 155 152 52
40 4 0 95 168 47 46
41 4 0 147 161 28 52
42 4 0 53 152 52 161
43 4 0 153 151 50 152
44 4 0 53 153 50 152
45 4 0 169 19 80 11
46 4 0 102 168 47 95
47 4 0 144 141 146 150
48 4 0 22 8 144 146
49 4 0 147 145 149 148
50 4 0 148 149 170 144
51 4 0 147 141 155 145
52 4 0 168 42 103 102
53 4 0 52 155 22 145
54 4 0 43 42 103 168
55 4 0 145 52 155 147
56 4 0 165 162 31 59
57 4 0 165 162 67 71
58 4 0 58 64 66 165
59 4 0 65 58 64 66
60 4 0 103 42 104 102
61 4 0 165 162 64 67
62 4 0 46 168 47 43
63 4 0 171 148 147 172
64 4 0 141 145 148 144
65 4 0 141 146 150 137
66 4 0 150 138 141 137
67 4 0 157 113 118 117
68 4 0 172 148 149 170
69 4 0 173 174 13 124
70 4 0 173 80 78 11
71 4 0 173 169 174 132
72 4 0 82 83 124 173
73 4 0 173 18 175 13
74 4 0 78 173 79 123
75 4 0 161 176 53 153
76 4 0 160 171 142 147
77 4 0 152 153 177 161
78 4 0 153 44 178 45
79 4 0 153 105 176 178
80 4 0 153 161 163 177
81 4 0 179 152 101 177
82 4 0 111 106 176 163
83 4 0 144 148 150 170
84 4 0 172 170 149 21
85 4 0 172 147 159 149
86 4 0 141 171 148 147
87 4 0 145 141 155 146
88 4 0 171 172 127 148
89 4 0 162 159 26 59
90 4 0 162 64 159 60
91 4 0 164 165 31 57
92 4 0 164 165 162 31
93 4 0 162 164 31 158
94 4 0 162 159 67 70
95 4 0 162 157 161 159
96 4 0 165 60 162 59
97 4 0 24 170 172 21
98 4 0 170 169 19 129
99 4 0 170 169 8 19
100 4 0 130 24 129 170
101 4 0 154 140 93 94
102 4 0 155 51 154 50
103 4 0 151 102 97 101
104 4 0 154 47 48 2
105 4 0 94 154 97 93
106 4 0 97 2 47 154
107 4 0 154 97 2 94
108 4 0 151 47 102 42
109 4 0 155 6 154 51
110 4 0 143 155 154 179
111 4 0 144 170 8 20
112 4 0 150 146 144 8
113 4 0 150 136 156 135
114 4 0 85 86 13 14
115 4 0 160 159 171 147
116 4 0 148 141 150 128
117 4 0 150 156 9 174
118 4 0 129 169 174 150
119 4 0 8 143 9 146
120 4 0 13 169 9 174
121 4 0 75 57 72 166
122 4 0 167 158 27 31
123 4 0 164 166 31 167
124 4 0 76 167 121 166
125 4 0 166 72 75 76
126 4 0 166 167 121 120
127 4 0 167 166 32 180
128 4 0 27 167 31 30
129 4 0 31 166 32 167
130 4 0 166 57 32 56
131 4 0 156 150 135 134
132 4 0 156 174 134 88
133 4 0 143 9 146 156
134 4 0 172 127 148 130
135 4 0 92 98 136 156
136 4 0 93 91 140 143
137 4 0 170 20 149 21
138 4 0 146 9 150 156
139 4 0 156 7 174 88
140 4 0 180 176 35 29
141 4 0 178 181 105 176
142 4 0 176 120 116 167
143 4 0 180 38 181 120
144 4 0 77 71 158 76
145 4 0 176 181 110 115
146 4 0 115 120 116 176
147 4 0 106 176 163 153
148 4 0 2 94 1 140
149 4 0 160 161 177 163
150 4 0 157 163 161 160
151 4 0 163 107 177 160
152 4 0 1 140 3 2
153 4 0 95 47 2 46
154 4 0 155 146 142 179
155 4 0 143 146 179 98
156 4 0 177 179 152 147
157 4 0 155 179 142 147
158 4 0 85 13 86 83
159 4 0 100 177 142 179
160 4 0 143 98 179 97
161 4 0 155 179 152 154
162 4 0 154 155 50 152
163 4 0 174 129 139 131
164 4 0 150 129 139 174
165 4 0 169 174 132 131
166 4 0 150 170 8 144
167 4 0 92 98 156 143
168 4 0 52 161 28 53
169 4 0 90 93 91 140
170 4 0 142 147 141 155
171 4 0 154 179 152 101
172 4 0 143 155 146 6
173 4 0 155 22 146 6
174 4 0 143 154 97 179
175 4 0 167 161 176 53
176 4 0 154 101 152 151
177 4 0 147 26 23 52
178 4 0 153 106 176 105
179 4 0 176 167 53 29
180 4 0 55 166 75 120
181 4 0 166 76 75 121
182 4 0 167 161 53 28
183 4 0 167 161 28 158
184 4 0 153 177 163 106
185 4 0 163 167 158 161
186 4 0 28 158 27 167
187 4 0 154 48 6 2
188 4 0 20 21 22 149
189 4 0 159 21 149 26
190 4 0 172 159 127 24
191 4 0 159 171 147 172
192 4 0 159 149 147 26
193 4 0 172 159 24 21
194 4 0 23 147 145 149
195 4 0 141 138 142 137
196 4 0 145 23 22 52
197 4 0 150 170 148 129
198 4 0 162 67 159 64
199 4 0 131 169 174 129
200 4 0 150 174 134 156
201 4 0 139 174 134 150
202 4 0 8 7 9 143
203 4 0 165 162 60 64
204 4 0 174 132 131 139
205 4 0 171 160 113 118
206 4 0 174 14 9 13
207 4 0 179 147 155 152
208 4 0 158 121 116 117
209 4 0 147 160 177 142
210 4 0 159 171 70 160
211 4 0 28 147 159 161
212 4 0 89 1 3 4
213 4 0 159 68 64 67
214 4 0 161 152 52 147
215 4 0 169 150 170 8
216 4 0 78 173 11 12
217 4 0 79 175 82 173
218 4 0 173 18 12 78
219 4 0 173 132 123 78
220 4 0 175 79 17 18
221 4 0 15 84 16 13
222 4 0 124 173 123 82
223 4 0 84 16 13 175
224 4 0 175 81 16 17
225 4 0 87 7 14 5
226 4 0 84 13 85 83
227 4 0 13 175 173 83
228 4 0 128 150 138 141
229 4 0 144 149 170 20
230 4 0 90 89 1 3
231 4 0 155 6 51 22
232 4 0 140 143 6 154
233 4 0 55 56 62 74
234 4 0 98 142 137 146
235 4 0 145 149 22 23
236 4 0 153 105 44 102
237 4 0 152 153 161 53
238 4 0 177 153 152 101
239 4 0 108 142 107 160
240 4 0 142 107 160 177
241 4 0 152 155 50 52
242 4 0 180 167 176 29
243 4 0 112 163 107 111
244 4 0 179 100 177 101
245 4 0 106 163 107 177
246 4 0 107 100 177 142
247 4 0 158 161 28 162
248 4 0 179 147 177 142
249 4 0 163 117 158 116
250 4 0 147 160 161 177
251 4 0 157 163 117 158
252 4 0 146 142 179 98
253 4 0 143 92 98 93
254 4 0 68 127 70 159
255 4 0 141 155 146 142
256 4 0 165 57 66 58
257 4 0 99 142 138 137
258 4 0 169 19 11 8
259 4 0 127 171 159 172
260 4 0 141 137 142 146
261 4 0 171 127 70 128
262 4 0 165 59 31 58
263 4 0 171 160 108 113
264 4 0 153 176 45 178
265 4 0 35 45 176 178
266 4 0 176 110 105 106
267 4 0 115 180 176 181
268 4 0 153 105 178 44
269 4 0 179 101 98 100
270 4 0 42 44 37 105
271 4 0 86 13 174 133
272 4 0 159 147 160 161
273 4 0 163 116 176 111
274 4 0 36 181 37 35
275 4 0 157 159 70 160
276 4 0 157 71 162 158
277 4 0 157 163 112 117
278 4 0 109 105 37 181
279 4 0 180 120 181 115
280 4 0 181 120 119 115
281 4 0 181 105 110 109
282 4 0 181 119 114 115
283 4 0 180 181 38 36
284 4 0 35 181 37 178
285 4 0 181 109 110 114
286 4 0 130 24 170 172
287 4 0 152 177 147 161
288 4 0 162 70 67 71
289 4 0 172 149 159 21
290 4 0 165 67 64 66
291 4 0 31 158 27 162
292 4 0 25 159 21 24
293 4 0 89 87 4 3
294 4 0 162 159 161 28
295 4 0 26 28 147 159
296 4 0 142 99 107 100
297 4 0 157 70 162 71
298 4 0 20 22 144 149
299 4 0 163 176 167 161
300 4 0 157 70 71 77
301 4 0 157 118 160 70
302 4 0 29 35 45 176
303 4 0 167 29 30 27
304 4 0 158 122 76 121
305 4 0 147 28 26 52
306 4 0 162 59 26 27
307 4 0 135 134 91 156
308 4 0 137 146 156 98
309 4 0 134 150 135 139
310 4 0 150 8 169 9
311 4 0 124 139 174 133
312 4 0 173 83 124 13
313 4 0 170 20 19 8
314 4 0 173 18 78 79
315 4 0 83 175 173 82
316 4 0 150 156 136 137
317 4 0 173 11 12 10
318 4 0 174 88 14 86
319 4 0 174 133 139 134
320 4 0 86 88 133 174
321 4 0 69 60 125 24
322 4 0 173 169 80 11
323 4 0 24 129 170 19
324 4 0 171 142 147 141
325 4 0 170 24 19 20
326 4 0 156 174 7 9
327 4 0 128 150 129 139
328 4 0 139 138 150 137
329 4 0 148 130 127 128
330 4 0 8 7 143 6
331 4 0 141 171 128 148
332 4 0 145 146 155 22
333 4 0 133 13 124 86
334 4 0 173 174 124 123
335 4 0 87 89 7 3
336 4 0 59 126 60 25
337 4 0 6 8 146 143
338 4 0 159 68 24 60
339 4 0 143 93 98 97
340 4 0 159 24 68 127
341 4 0 68 24 60 69
342 4 0 87 5 3 7
343 4 0 172 24 127 130
344 4 0 39 109 37 36
345 4 0 143 92 93 91
346 4 0 158 167 121 76
347 4 0 180 181 35 176
348 4 0 167 121 120 116
349 4 0 43 96 168 103
350 4 0 158 121 117 122
351 4 0 157 122 117 70
352 4 0 24 60 25 159
353 4 0 160 108 113 112
354 4 0 146 150 137 156
355 4 0 157 113 117 112
356 4 0 156 136 92 135
357 4 0 119 55 120 38
358 4 0 119 74 55 63
359 4 0 181 38 119 120
360 4 0 39 104 41 37
361 4 0 119 120 55 74
362 4 0 181 180 35 36
363 4 0 87 14 85 5
364 4 0 181 114 119 38
365 4 0 166 120 55 34
366 4 0 142 108 99 138
367 4 0 158 122 77 76
368 4 0 153 176 53 45
369 4 0 166 180 120 34
370 4 0 116 112 163 117
371 4 0 180 120 34 38
372 4 0 120 180 176 115
373 4 0 159 64 68 60
374 4 0 176 45 29 53
375 4 0 166 180 34 32
376 4 0 149 23 147 26
377 4 0 180 167 30 32
378 4 0 109 40 38 39
379 4 0 39 109 36 38
380 4 0 40 114 38 54
381 4 0 114 109 40 38
382 4 0 170 148 129 130
383 4 0 119 54 38 114
384 4 0 105 181 178 37
385 4 0 32 167 30 31
386 4 0 152 151 50 154
387 4 0 177 106 100 107
388 4 0 111 106 163 107
389 4 0 180 36 38 34
390 4 0 167 158 121 116
391 4 0 177 101 100 106
392 4 0 52 23 147 145
393 4 0 171 128 148 127
394 4 0 174 88 7 14
395 4 0 164 72 165 57
396 4 0 181 38 36 109
397 4 0 153 101 106 105
398 4 0 153 101 105 102
399 4 0 142 138 128 108
400 4 0 140 2 6 3
401 4 0 37 109 39 104
402 4 0 181 37 109 36
403 4 0 42 104 102 105
404 4 0 104 37 105 42
405 4 0 128 139 138 150
406 4 0 148 150 129 128
407 4 0 95 96 168 46
408 4 0 102 96 168 95
409 4 0 95 2 47 97
410 4 0 49 47 48 154
411 4 0 139 132 123 174
412 4 0 105 44 102 42
413 4 0 151 95 102 47
414 4 0 102 47 168 42
415 4 0 151 153 102 101
416 4 0 176 111 110 106
417 4 0 174 132 123 173
418 4 0 127 159 171 70
419 4 0 171 160 142 108
420 4 0 142 99 100 98
421 4 0 143 155 179 146
422 4 0 171 113 108 128
423 4 0 171 108 142 128
424 4 0 163 160 112 107
425 4 0 181 105 176 110
426 4 0 178 44 35 45
427 4 0 173 169 11 10
428 4 0 169 131 132 80
429 4 0 153 177 106 101
430 4 0 154 49 51 48
431 4 0 140 7 91 88
432 4 0 173 169 132 80
433 4 0 7 9 143 156
434 4 0 95 94 46 2
435 4 0 134 91 156 88
436 4 0 140 154 2 94
437 4 0 140 94 1 90
438 4 0 181 109 114 38
439 4 0 41 42 104 103
440 4 0 163 167 116 158
441 4 0 151 42 49 47
442 4 0 178 35 44 37
443 4 0 90 140 3 1
444 4 0 42 47 168 43
445 4 0 46 96 168 43
446 4 0 150 170 129 169
447 4 0 156 135 92 91
448 4 0 47 97 151 95
449 4 0 87 85 14 86
450 4 0 87 88 14 7
451 4 0 140 88 89 7
452 4 0 151 42 44 49
453 4 0 87 14 88 86
454 4 0 174 173 13 169
455 4 0 154 49 50 51
456 4 0 140 89 3 7
457 4 0 172 148 170 130
458 4 0 154 97 179 101
459 4 0 15 13 85 84
460 4 0 175 13 18 17
461 4 0 175 79 81 17
462 4 0 175 13 17 16
463 4 0 175 79 82 81
464 4 0 83 175 84 13
465 4 0 175 83 84 82
466 4 0 175 84 16 81
467 4 0 85 15 5 14
468 4 0 149 148 172 147
469 4 0 175 81 82 84
470 4 0 85 13 15 14
471 4 0 173 13 12 18
472 4 0 82 173 123 79
473 4 0 169 173 13 10
474 4 0 169 19 129 131
475 4 0 123 174 124 139
476 4 0 10 169 9 13
477 4 0 153 176 163 161
478 4 0 173 79 175 18
479 4 0 88 133 174 134
480 4 0 174 9 14 7
481 4 0 111 116 112 163
482 4 0 164 72 76 71
483 4 0 180 32 33 34
484 4 0 164 166 76 72
485 4 0 104 109 105 37
486 4 0 56 75 74 55
487 4 0 73 56 61 57
488 4 0 73 61 56 62
489 4 0 73 75 57 72
490 4 0 165 71 66 72
491 4 0 162 60 159 59
492 4 0 72 66 57 61
493 4 0 14 86 13 174
494 4 0 164 166 57 31
495 4 0 169 11 10 8
496 4 0 149 23 26 21
497 4 0 171 118 113 128
498 4 0 51 50 155 52
499 4 0 174 124 133 13
500 4 0 159 68 67 70
501 4 0 157 70 117 118
502 4 0 163 167 176 116
503 4 0 169 19 131 80
504 4 0 158 162 157 161
505 4 0 98 156 143 146
506 4 0 171 70 160 118
507 4 0 150 135 139 136
508 4 0 173 12 13 10
509 4 0 165 71 67 66
510 4 0 165 57 72 66
511 4 0 162 159 28 26
512 4 0 162 26 28 27
513 4 0 26 25 59 159
514 4 0 66 65 58 61
515 4 0 164 57 166 72
516 4 0 66 57 61 58
517 4 0 120 55 74 75
518 4 0 150 139 137 136
519 4 0 74 62 55 63
520 4 0 73 75 74 56
521 4 0 165 60 58 64
522 4 0 119 63 55 54
523 4 0 74 56 62 73
524 4 0 73 61 72 57
525 4 0 162 31 59 27
526 4 0 165 60 59 58
527 4 0 126 60 25 24
528 4 0 26 159 21 25
529 4 0 24 60 125 126
530 4 0 73 57 75 56
531 4 0 166 57 56 75
532 4 0 56 55 166 75
533 4 0 166 120 121 75
534 4 0 157 77 122 70
535 4 0 119 38 54 55
536 4 0 167 28 53 29
537 4 0 158 164 31 167
538 4 0 164 162 71 158
539 4 0 20 8 144 22
540 4 0 181 35 176 178
541 4 0 152 52 50 53
542 4 0 169 8 10 9
543 4 0 170 24 20 21
544 4 0 176 111 115 110
545 4 0 171 118 128 70
546 4 0 179 142 100 98
547 4 0 150 169 174 9
548 4 0 151 50 154 49
549 4 0 51 52 155 22
550 4 0 156 98 136 137
551 4 0 140 2 154 6
552 4 0 156 88 91 7
553 4 0 154 97 151 47
554 4 0 140 7 3 6
555 4 0 148 130 128 129
556 4 0 151 95 97 102
557 4 0 142 107 99 108
558 4 0 94 1 46 2
559 4 0 143 140 93 154
560 4 0 37 41 42 104
561 4 0 165 58 31 57
562 4 0 97 95 2 94
563 4 0 176 116 115 111
564 4 0 103 96 168 102
565 4 0 44 37 105 178
566 4 0 153 50 151 44
567 4 0 180 33 35 36
568 4 0 45 53 153 50
569 4 0 103 43 41 42
570 4 0 39 36 37 41
571 4 0 153 44 45 50
572 4 0 181 114 110 115
573 4 0 87 7 89 88
574 4 0 167 29 27 28
575 4 0 180 30 167 29
576 4 0 180 34 33 36
577 4 0 179 97 98 101
578 4 0 166 32 34 56
579 4 0 124 86 13 83
580 4 0 180 33 32 30
581 4 0 166 32 57 31
582 4 0 47 151 154 49
583 4 0 35 30 180 29
584 4 0 166 180 167 120
585 4 0 25 59 159 60
586 4 0 166 56 34 55
587 4 0 167 180 176 120
588 4 0 120 38 55 34
589 4 0 162 158 27 28
590 4 0 21 22 149 23
591 4 0 173 132 78 80
592 4 0 141 128 171 142
593 4 0 33 35 30 180
594 4 0 154 48 51 6
595 4 0 87 4 3 5
596 4 0 146 22 8 6
$EndElements
"""
liverVolumeSurfacePython
is based on the scene
/home/zahra/sofa/Work/test/liverVolumeSurface.scn
but it uses the SofaPython plugin.
Further informations on the usage of the plugin can be found in
sofa/applications/plugins/SofaPython/doc/SofaPython.pdf
To lance the scene, type
runSofa /home/zahra/sofa/Work/test/liverVolumeSurfacePython.scn
The current file has been written by the python script
/home/zahra/sofa/Sofa17.06/src/applications/plugins/SofaPython/scn2python.py
Author of scn2python.py: Christoph PAULUS, christoph.paulus@inria.fr
"""
""" errors you may encounter:
[FATAL] [SofaPython] SP_CALL_MODULEFUNC
Traceback (most recent call last):
File "/home/zahra/sofa/Work/test/liverSurface_controller.py", line 121, in onBeginAnimationStep
current_S_Fine = open('/home/zahra/sofa/Work/Exported/Fine_surface/LiverSurfaceFine_'+str(j[self.ind2])+'_0_'+str(i[self.ind1])+'_0.gmsh')
IOError: [Errno 2] No such file or directory: '/home/zahra/sofa/Work/Exported/Fine_surface/LiverSurfaceFine_111_0_-200_0.gmsh'
while you know that the path and the file name is true, follow the below format for mewsh exporter:
Liver.createObject('MeshExporter', exportEveryNumberOfSteps='1', quads='0', name='meshExporter3', format='gmsh', exportAtEnd='0', filename='/home/zahra/sofa/Work/Exported/Fine_volume/LiverVolumeFine_111_0_-120_0', exportAtBegin='0', tetras='1', hexas='0', edges='0', triangles='0', listening='0')
"""
import Sofa
#### deleting the contents of the saved mesh folders from previous run
#
#import os, shutil
#folder1 = '/home/zahra/sofa/Work/Exported/Fine_volume'
#for the_file in os.listdir(folder1):
# file_path = os.path.join(folder1, the_file)
# try:
# if os.path.isfile(file_path):
# os.unlink(file_path)
# #elif os.path.isdir(file_path): shutil.rmtree(file_path)
# except Exception as e:
# print(e)
#
#folder2 = '/home/zahra/sofa/Work/Exported/Fine_surface'
#for the_file in os.listdir(folder2):
# file_path = os.path.join(folder2, the_file)
# try:
# if os.path.isfile(file_path):
# os.unlink(file_path)
# #elif os.path.isdir(file_path): shutil.rmtree(file_path)
# except Exception as e:
# print(e)
#
#folder3 = '/home/zahra/sofa/Work/Exported/Coarse_volume'
#for the_file in os.listdir(folder3):
# file_path = os.path.join(folder3, the_file)
# try:
# if os.path.isfile(file_path):
# os.unlink(file_path)
# #elif os.path.isdir(file_path): shutil.rmtree(file_path)
# except Exception as e:
# print(e)
#folder4 = '/home/zahra/sofa/Work/Exported/Coarse_surface'
#for the_file in os.listdir(folder4):
# file_path = os.path.join(folder4, the_file)
# try:
# if os.path.isfile(file_path):
# os.unlink(file_path)
# #elif os.path.isdir(file_path): shutil.rmtree(file_path)
# except Exception as e:
# print(e)
def createScene(rootNode):
rootNode.createObject('RequiredPlugin', name='SofaPython')
mySimulation = liverVolumeSurface(rootNode,[])
return 0;
class liverVolumeSurface (Sofa.PythonScriptController):
def initGraph(self,rootNode):
# rootNode
rootNode.createObject('DefaultPipeline', name='CollisionPipeline', verbose='0')
rootNode.createObject('BruteForceDetection', name='N2')
rootNode.createObject('DefaultContactManager', name='collision response', response='default')
rootNode.createObject('DiscreteIntersection', name='discreteIntersection1')
# rootNode.createObject('PythonScriptController', classname="controller", filename='liverSurface_controller.py')
# rootNode.createObject('PythonScriptController', classname="controller", filename='liverVolumeSurface_restStateController.py')
# rootNode.createObject('PythonScriptController', classname="controller", filename='liverVolumeSurface_controller.py')
# rootNode/Liver
Liver = rootNode.createChild('Liver')
Liver.depend = 'topo dofs'
Liver.createObject('EulerImplicitSolver', name='cg_odesolver', printLog='0')
Liver.createObject('CGLinearSolver', threshold='1e-09', tolerance='1e-09', name='linear solver', iterations='25', template='GraphScattered')
Liver.createObject('MeshGmshLoader', tetrahedraGroups=' -1 0 38144', name='loader', filename='/home/zahra/SOFAFORUM/InputLiverVolumeCoarse.gmsh',flipNormals='1')
Liver.createObject('TetrahedronSetTopologyContainer', triangles='@loader.triangles', position='@loader.position', edges='@loader.edges', name='topo', tetrahedra='@loader.tetras')
Liver.createObject('MechanicalObject', force='0 0 0', name='dofs', template='Vec3d', position='@loader.position', velocity='0 0 0', externalForce='0 0 0', restScale='1')
Liver.createObject('TetrahedronSetGeometryAlgorithms', drawColorEdges='0.4 1 0.298039 1', showIndicesScale='0.01', name='GeomAlgo', showPointIndices='0', template='Vec3d',flipNormals='1')
Liver.createObject('DiagonalMass', massDensity='1', name='computed using mass density', template='Vec3d')
Liver.createObject('TetrahedralCorotationalFEMForceField', poissonRatio='0.3', name='FEM', computeGlobalMatrix='0', method='large', template='Vec3d', youngModulus='120')
Liver.createObject('PlaneForceField', name='planeFF0', template='Vec3d', normal='0 1 0', draw='1', drawSize='8')
# Liver.createObject('ConstantForceField', indices='109', name='constantFF0', template='Vec3d', forces='0 50 0')
Liver.createObject('ConstantForceField', indices='', name='constantFF0', template='Vec3d', forces='')
Liver.createObject('FixedConstraint', indices='0 11 17 16 15 14 4 3 45 95 42 40 38 39 53 62 61 60 4 63 59 125 24 20 19 9', showObject='0', drawSize='0', name='fixedConstraint0', template='Vec3d')
# Liver.createObject('MeshExporter', exportEveryNumberOfSteps='1', quads='0', name='meshExporter0', format='gmsh', exportAtEnd='1', filename='/home/zahra/sofa/Work/Exported/Fine_volume/LiverVolumeFine_'+str(Liver.getObject('constantFF0').findData('forces').value[0])+'_'+str(Liver.getObject('constantFF0').findData('indices').value[0]), exportAtBegin='0', tetras='1', hexas='0', edges='0', triangles='0', listening='0')
# Liver.createObject('MeshExporter', exportEveryNumberOfSteps='1', quads='0', name='meshExporter0', format='gmsh', exportAtEnd='1', filename='/home/zahra/LiverFor2ndPaperTest/LiverMeshes/LiverUndeformedVolumeCoarse', exportAtBegin='0', tetras='1', hexas='0', edges='0', triangles='0', listening='0')
Liver.createObject('TetrahedronSetTopologyModifier', name='tetrahedronSetTopologyModifier9')
Liver.createObject('TetrahedronSetTopologyAlgorithms', name='tetrahedronSetTopologyAlgorithms10', template='Vec3d')
# Liver.createObject('OglModel', sfactor='GL_SRC_ALPHA', blendEquation='GL_FUNC_ADD', name='oglModelFineVisu', template='ExtVec3f', dfactor='GL_ONE_MINUS_SRC_ALPHA', material='Default Diffuse 1 0.7 0.2 0.2 1 Ambient 1 0.2 0.2 0.2 1 Specular 0 1 1 1 1 Emissive 0 0 0 0 0 Shininess 0 45 ', primitiveType='DEFAULT')
# Liver.createObject('BarycentricMapping', input='@dofs', name='BarycentricMapfineVisu', template='Vec3d,ExtVec3f', output='@oglModelFineVisu/')
#
#
# rootNode/Liver/surface_fine
surface_fine = Liver.createChild('surface_fine')
surface_fine.createObject('TriangleSetTopologyContainer', name='triangleSetTopologyContainer0')
surface_fine.createObject('TriangleSetTopologyModifier', name='triangleSetTopologyModifier1')
surface_fine.createObject('TriangleSetTopologyAlgorithms', name='triangleSetTopologyAlgorithms2', template='Vec3d')
surface_fine.createObject('TriangleSetGeometryAlgorithms', name='triangleSetGeometryAlgorithms3', template='Vec3d',flipNormals='1')
surface_fine.createObject('Tetra2TriangleTopologicalMapping', input='@../', name='tetra2TriangleTopologicalMapping4', output='@./')
# surface_fine.createObject('TriangularFEMForceField', name='triangularFEMFF5', template='Vec3d', poissonRatio='0.3', youngModulus='60')
surface_fine.createObject('TriangularBendingSprings', name='triangularBendingSprings6', template='Vec3d', stiffness="30", damping="1")
surface_fine.createObject('TTriangleModel', name='tTriangleModel15', template='Vec3d')
# surface_fine.createObject('TrianglePressureForceField', name='trianglePressureFF22', template='Vec3d')
# surface_fine.createObject('MeshExporter', exportEveryNumberOfSteps='1', quads='0', name='meshExporter1', format='gmsh', exportAtEnd='1', filename='/home/zahra/LiverFor2ndPaperTest/LiverMeshes/LiverUndeformedSurfaceCoarsefinal', exportAtBegin='0', tetras='0', hexas='0', edges='0', triangles='1', listening='0')
surface_fine.createObject('OglModel', sfactor='GL_SRC_ALPHA', blendEquation='GL_FUNC_ADD', name='oglModelSurfacefine', template='ExtVec3f', dfactor='GL_ONE_MINUS_SRC_ALPHA', material='Default Diffuse 1 0.7 0.2 0.2 1 Ambient 1 0.2 0.2 0.2 1 Specular 0 1 1 1 1 Emissive 0 0 0 0 0 Shininess 0 45 ', primitiveType='DEFAULT',)
surface_fine.createObject('BarycentricMapping', input='@../', name='BarycentricMapSurfaceCoarse', template='Vec3d,ExtVec3f', output='@oglModelSurfacefine/')
# surface_fine.createObject('MeshExporter', exportEveryNumberOfSteps='1', quads='0', name='meshExporter1', format='gmsh', exportAtEnd='1', filename='', exportAtBegin='0', tetras='0', hexas='0', edges='0', triangles='1', listening='0')
# # rootNode/Liver/surface_fine/visu_surface_fine
# visu_surface_fine = surface_fine.createChild('visu_surface_fine')
# visu_surface_fine.createObject('OglModel', filename='/home/zahra/LiverFor2ndPaperTest/LiverMeshes/LiverSurfaceCoarseUnconnectedNodesCleansed140_fromSOFA.gmsh', sfactor='GL_SRC_ALPHA', blendEquation='GL_FUNC_ADD', name='oglModel18', template='ExtVec3f', dfactor='GL_ONE_MINUS_SRC_ALPHA', material='Default Diffuse 1 0.1 0.0 0.9 1 Ambient 1 0.2 0.2 0.2 1 Specular 0 1 1 1 1 Emissive 0 0 0 0 0 Shininess 0 45 ', primitiveType='DEFAULT')
# visu_surface_fine.createObject('BarycentricMapping', input='@../../dofs', name='BarycentricMap1', template='Vec3d,ExtVec3f', output='@oglModel18/')
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment