16.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 30c27805 authored by Benedikt Zoennchen's avatar Benedikt Zoennchen
Browse files

mesh test for roVer.

parent c5e9ad8e
# nVertices dimension nAttributes boundaryMarker
257 2 0 0
# vertexId x y
1 399.931318 336.624473
2 81.564492 95.180906
3 311.887577 293.347976
4 378.600148 105.458354
5 12.846880 253.343442
6 197.229626 125.620007
7 408.446692 234.349373
8 226.204937 205.547240
9 142.460034 94.370165
10 395.714020 103.898695
11 418.797761 85.995476
12 354.212459 395.855832
13 66.680019 197.108374
14 420.244709 195.037245
15 153.627629 264.421208
16 196.819505 124.093033
17 10.087338 257.267216
18 152.423785 264.803494
19 195.813087 223.402190
20 27.542558 233.142842
21 219.689455 187.481394
22 30.804859 203.645646
23 254.292334 309.165974
24 312.076362 66.278385
25 20.008299 233.623804
26 118.046206 164.890195
27 249.982782 294.345335
28 326.854869 93.835185
29 297.392652 99.785748
30 65.372949 198.788977
31 208.251090 140.299339
32 419.137963 196.513124
33 43.079973 198.762382
34 284.580936 300.083225
35 142.223198 56.499590
36 114.368673 21.082200
37 425.500000 0.500000
38 142.549082 45.929499
39 190.690659 83.253688
40 128.552600 397.960250
41 293.116280 82.429415
42 309.037013 41.809514
43 26.478311 184.440911
44 325.306262 196.834505
45 183.659424 73.426219
46 247.985625 287.780357
47 285.295443 205.478413
48 234.967125 79.926384
49 31.302181 112.271502
50 5.469751 345.665623
51 188.261243 294.048447
52 46.346187 378.516446
53 294.745626 332.891978
54 325.572950 61.392327
55 12.443576 236.117599
56 24.199431 78.665085
57 8.983799 241.163830
58 143.001433 398.591099
59 182.084388 221.302644
60 33.859270 65.894355
61 325.447952 227.325250
62 11.739023 322.811761
63 54.023095 199.842510
64 296.636304 32.056979
65 331.297378 58.959329
66 346.477347 113.711178
67 137.495639 14.706124
68 277.268544 40.417081
69 225.665479 50.863022
70 410.377188 274.035101
71 126.135279 56.770506
72 290.678816 77.885704
73 25.479157 235.843883
74 269.807469 204.522962
75 7.949400 79.553946
76 201.330822 124.745558
77 58.567637 189.325302
78 183.834871 71.752061
79 202.972592 124.622798
80 10.691729 251.468521
81 54.718349 95.290417
82 298.562052 90.701593
83 102.219670 62.697290
84 279.411652 384.402007
85 56.105933 200.769285
86 318.692560 64.331585
87 26.806595 228.244802
88 278.771382 110.963661
89 193.789522 216.865840
90 406.903986 227.777391
91 21.642094 265.611034
92 189.213217 218.997772
93 19.169676 300.174980
94 143.108829 139.464411
95 49.792671 79.069601
96 418.125149 112.141812
97 181.682452 295.622759
98 245.416582 278.303298
99 350.466969 333.366889
100 403.513882 353.568127
101 197.498599 122.936507
102 186.458352 83.378275
103 278.805631 341.612235
104 258.107468 114.495877
105 343.035691 104.727614
106 152.890422 264.429778
107 181.586493 220.912108
108 425.500000 403.500000
109 71.333392 201.281469
110 246.161802 117.320309
111 288.944012 78.339095
112 198.498366 126.185644
113 69.665213 19.611817
114 270.012695 84.132617
115 314.996705 283.249905
116 335.628003 196.915133
117 312.321075 280.255833
118 60.994967 195.059073
119 188.841269 219.606642
120 38.350158 201.952308
121 52.093294 60.020982
122 89.185295 181.309563
123 190.404106 224.127630
124 396.324530 80.476207
125 10.482152 238.221258
126 343.007390 21.146147
127 344.776680 160.884901
128 154.672076 270.987464
129 312.298337 230.097856
130 181.179013 296.257350
131 291.707189 82.715752
132 154.442001 265.216324
133 354.167212 200.543714
134 265.710652 85.222781
135 212.005890 213.553862
136 5.000000 69.418918
137 58.972433 191.675427
138 403.721153 214.652399
139 177.556755 25.389101
140 332.884644 168.306105
141 353.989944 84.268227
142 238.966143 92.922960
143 46.748830 195.247495
144 288.589581 305.269543
145 16.654858 71.034697
146 54.216708 222.635553
147 142.738586 86.313011
148 356.649252 114.487743
149 328.788184 279.097022
150 188.840038 84.715699
151 85.602799 186.017838
152 410.374872 96.493021
153 190.931270 9.973189
154 42.503453 196.206211
155 298.907571 280.037735
156 190.029782 224.726267
157 316.245378 23.827455
158 188.484637 70.061594
159 390.358857 269.466382
160 354.070946 124.292144
161 184.690922 70.645994
162 407.475744 264.268596
163 328.511358 27.634070
164 285.544322 65.674195
165 152.257877 265.309718
166 37.889904 199.922980
167 15.384620 66.085317
168 296.890234 20.316199
169 338.522137 89.555124
170 0.500000 403.500000
171 360.873663 393.888365
172 249.818375 36.789186
173 376.998862 264.565744
174 96.297520 51.538723
175 109.606916 60.397899
176 297.225507 343.245039
177 329.257821 212.778026
178 303.417837 263.477980
179 34.538106 13.390253
180 187.216404 70.586349
181 318.698156 82.289564
182 278.723095 361.525470
183 9.200592 249.326647
184 200.591168 125.710898
185 148.164449 318.822739
186 185.936429 70.354125
187 277.420988 106.412056
188 200.872395 123.105695
189 317.222710 210.748236
190 313.387844 225.817559
191 271.705028 111.248660
192 195.212895 223.026666
193 194.390559 217.250599
194 43.097674 213.950287
195 270.945498 288.330908
196 407.521765 90.811496
197 391.147970 94.265270
198 293.335028 11.384483
199 296.133346 100.266274
200 303.544215 70.741964
201 388.883181 16.104791
202 88.713835 98.403229
203 186.554024 40.723460
204 307.559152 295.004652
205 397.518546 323.180513
206 264.525644 345.025571
207 184.819174 54.227969
208 19.203284 305.594586
209 211.903197 213.064521
210 14.459507 234.827989
211 36.949725 108.355847
212 403.257043 118.850653
213 303.377617 102.435074
214 8.515620 244.018654
215 250.454217 203.626561
216 91.025594 30.343919
217 82.384774 172.146430
218 284.420149 320.772663
219 312.962701 340.325913
220 17.198822 233.940997
221 46.006987 192.073821
222 0.500000 0.500000
223 87.726281 174.451224
224 275.499186 106.892532
225 145.113915 159.514616
226 302.991124 299.134419
227 152.488328 271.069744
228 296.679056 105.502868
229 199.772095 122.401085
230 8.428919 246.597024
231 102.378992 28.088924
232 18.461438 142.603721
233 154.124621 264.693836
234 65.273445 5.000000
235 39.685887 241.250584
236 405.950975 255.839130
237 378.277856 327.349903
238 39.337021 63.708682
239 379.942914 202.368922
240 22.985266 234.302479
241 29.574454 227.837203
242 34.798539 48.146226
243 293.910181 48.242897
244 174.754962 14.635868
245 150.059233 302.553168
246 23.035746 165.510685
247 124.581363 94.769969
248 252.258281 89.020090
249 292.306601 75.526120
250 402.991258 63.332716
251 300.217950 309.866881
252 413.155097 73.188145
253 46.280593 105.587684
254 395.592708 201.394152
255 151.912053 398.345776
256 188.377608 294.534717
257 187.417297 84.523174
#
# nSegments boundaryMarker
257 0
# lineId vertexId1 vertexId2
1 37 108
2 108 170
3 170 222
4 222 37
5 119 156
6 156 19
7 19 193
8 193 135
9 135 209
10 209 89
11 89 192
12 192 123
13 123 92
14 92 107
15 107 130
16 130 256
17 256 51
18 51 97
19 97 59
20 59 119
21 67 38
22 38 174
23 174 216
24 216 231
25 231 36
26 36 67
27 227 128
28 128 132
29 132 233
30 233 15
31 15 106
32 106 18
33 18 165
34 165 227
35 167 136
36 136 75
37 75 56
38 56 211
39 211 253
40 253 60
41 60 145
42 145 167
43 6 16
44 16 101
45 101 229
46 229 188
47 188 76
48 76 184
49 184 112
50 112 6
51 212 10
52 10 197
53 197 124
54 124 252
55 252 11
56 11 196
57 196 152
58 152 96
59 96 212
60 17 5
61 5 80
62 80 183
63 183 230
64 230 214
65 214 57
66 57 125
67 125 55
68 55 210
69 210 220
70 220 25
71 25 240
72 240 73
73 73 20
74 20 87
75 87 241
76 241 194
77 194 63
78 63 85
79 85 118
80 118 30
81 30 13
82 13 109
83 109 146
84 146 235
85 235 91
86 91 17
87 143 154
88 154 33
89 33 166
90 166 120
91 120 22
92 22 43
93 43 217
94 217 223
95 223 122
96 122 151
97 151 137
98 137 77
99 77 221
100 221 143
101 105 31
102 31 21
103 21 44
104 44 140
105 140 66
106 66 105
107 4 148
108 148 160
109 160 127
110 127 116
111 116 133
112 133 239
113 239 254
114 254 32
115 32 14
116 14 4
117 177 61
118 61 117
119 117 115
120 115 149
121 149 173
122 173 236
123 236 7
124 7 90
125 90 138
126 138 177
127 162 159
128 159 3
129 3 204
130 204 226
131 226 251
132 251 53
133 53 176
134 176 219
135 219 99
136 99 237
137 237 205
138 205 70
139 70 162
140 1 182
141 182 84
142 84 12
143 12 171
144 171 100
145 100 1
146 201 126
147 126 163
148 163 141
149 141 250
150 250 201
151 215 8
152 8 98
153 98 46
154 46 27
155 27 195
156 195 155
157 155 178
158 178 129
159 129 190
160 190 189
161 189 47
162 47 74
163 74 215
164 34 23
165 23 206
166 206 103
167 103 218
168 218 144
169 144 34
170 185 62
171 62 50
172 50 52
173 52 40
174 40 58
175 58 255
176 255 185
177 225 26
178 26 93
179 93 208
180 208 245
181 245 225
182 35 71
183 71 175
184 175 83
185 83 95
186 95 81
187 81 2
188 2 147
189 147 35
190 9 247
191 247 202
192 202 49
193 49 232
194 232 246
195 246 94
196 94 9
197 153 244
198 244 139
199 139 203
200 203 172
201 172 168
202 168 198
203 198 153
204 234 179
205 179 242
206 242 238
207 238 121
208 121 113
209 113 234
210 104 248
211 248 142
212 142 110
213 110 79
214 79 39
215 39 150
216 150 257
217 257 102
218 102 45
219 45 78
220 78 161
221 161 186
222 186 180
223 180 158
224 158 207
225 207 69
226 69 48
227 48 164
228 164 111
229 111 72
230 72 131
231 131 41
232 41 29
233 29 199
234 199 228
235 228 88
236 88 187
237 187 224
238 224 114
239 114 134
240 134 191
241 191 104
242 28 213
243 213 82
244 82 181
245 181 24
246 24 86
247 86 42
248 42 243
249 243 200
250 200 249
251 249 68
252 68 64
253 64 157
254 157 65
255 65 54
256 54 169
257 169 28
#
# nHoles
24
# vertexId x y (of a vertex which lies inside the hole)
1 181.184013 295.334521
2 118.450867 35.050166
3 153.449386 267.821104
4 28.852136 83.083545
5 199.063659 124.319069
6 405.010098 95.553385
7 36.441297 231.370403
8 56.368976 185.587080
9 281.859063 154.897278
10 374.851120 163.752313
11 359.729358 243.167713
12 353.631622 306.152578
13 341.810271 367.758006
14 366.898316 46.690420
15 271.259250 242.561270
16 271.836494 321.027874
17 88.726482 353.777760
18 101.979499 249.242548
19 101.256281 77.868760
20 81.868485 127.597968
21 229.674688 23.320222
22 49.633304 31.868118
23 233.808925 87.853027
24 277.330744 40.434887
\ No newline at end of file
......@@ -23,7 +23,8 @@ public class BackgroundMeshExamples {
//localFeatureSize("/poly/room.poly");
//localFeatureSize("/poly/corner.poly");
//localFeatureSize("/poly/narrowCorridor.poly");
localFeatureSize("/poly/bridge.poly");
//localFeatureSize("/poly/bridge.poly");
localFeatureSize("/poly/mf_small_very_simple.poly");
}
public static void localFeatureSize(@NotNull final String fileName) throws IOException {
......
......@@ -23,7 +23,8 @@ public class EikMeshPoly {
public static void main(String... args) throws InterruptedException, IOException {
meshPoly("/poly/bridge.poly");
meshPoly("/poly/mf_small_very_simple.poly");
//meshPoly("/poly/bridge.poly");
//meshPoly("/poly/room.poly");
//meshPoly("/poly/corner.poly");
}
......@@ -31,7 +32,8 @@ public class EikMeshPoly {
public static void meshPoly(@NotNull final String fileName) throws IOException, InterruptedException {
final InputStream inputStream = MeshExamples.class.getResourceAsStream(fileName);
PSLG pslg = PSLGGenerator.toPSLGtoVShapes(inputStream);
EdgeLengthFunctionApprox edgeLengthFunctionApprox = new EdgeLengthFunctionApprox(pslg, p -> 2.0);
EdgeLengthFunctionApprox edgeLengthFunctionApprox = new EdgeLengthFunctionApprox(pslg);
edgeLengthFunctionApprox.smooth(0.3);
edgeLengthFunctionApprox.printPython();
......@@ -58,14 +60,15 @@ public class EikMeshPoly {
}
//meshImprover.generate();
write(toTexDocument(TexGraphGenerator.toTikz(meshImprover.getMesh(), f-> lightBlue, 1.0f)), fileName+ Double.toString(h0).replace('.', '_'));
write(toTexDocument(TexGraphGenerator.toTikz(meshImprover.getMesh(), f-> lightBlue, 1.0f)), "mesh.tex");
System.out.println(meshImprover.getMesh().getNumberOfVertices());
// display the mesh
meshPanel.display("Combined distance functions " + h0);
}
private static void write(final String string, final String filename) throws IOException {
File outputFile = new File("./eikmesh/"+filename+".tex");
File outputFile = new File("./"+filename+".tex");
try(FileWriter fileWriter = new FileWriter(outputFile)) {
fileWriter.write(string);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment