ow-eengine-power 2.4.4 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OW_EEngine_Power.js +1424 -1313
- package/dist/OW_EEngine_Power.umd.cjs +9 -9
- package/package.json +2 -2
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var w = (a,
|
|
1
|
+
var Ss = Object.defineProperty;
|
|
2
|
+
var ks = (a, e, t) => e in a ? Ss(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var w = (a, e, t) => ks(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as n from "cesium";
|
|
5
|
-
import { Color as
|
|
6
|
-
function
|
|
5
|
+
import { Color as J, HeightReference as Rs, LabelStyle as Zs } from "cesium";
|
|
6
|
+
function Es(a, e, t = {}) {
|
|
7
7
|
const {
|
|
8
|
-
color: r =
|
|
8
|
+
color: r = J.WHITE,
|
|
9
9
|
width: s = 3,
|
|
10
|
-
clampToGround:
|
|
10
|
+
clampToGround: T = !1,
|
|
11
11
|
zIndex: W = 0,
|
|
12
12
|
dashed: L = !1,
|
|
13
|
-
dashLength:
|
|
14
|
-
} =
|
|
13
|
+
dashLength: A = 10
|
|
14
|
+
} = t, d = L ? new n.PolylineDashMaterialProperty({
|
|
15
15
|
color: r,
|
|
16
|
-
dashLength:
|
|
16
|
+
dashLength: A
|
|
17
17
|
}) : new n.ColorMaterialProperty(r);
|
|
18
18
|
return a.entities.add({
|
|
19
19
|
polyline: {
|
|
20
|
-
positions:
|
|
20
|
+
positions: e,
|
|
21
21
|
width: s,
|
|
22
22
|
material: d,
|
|
23
|
-
clampToGround:
|
|
23
|
+
clampToGround: T,
|
|
24
24
|
zIndex: W
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function h(a,
|
|
28
|
+
function h(a, e, t = 10, r = "#ba1919", s, T = !1) {
|
|
29
29
|
const W = {
|
|
30
30
|
show: !0,
|
|
31
31
|
positions: a,
|
|
32
|
-
clampToGround:
|
|
33
|
-
width:
|
|
32
|
+
clampToGround: T,
|
|
33
|
+
width: t,
|
|
34
34
|
material: n.Color.fromCssColorString(r),
|
|
35
35
|
arcType: n.ArcType.NONE,
|
|
36
36
|
shadows: n.ShadowMode.DISABLED,
|
|
37
37
|
// 关键优化:减少动态采样,提升静态线性能
|
|
38
|
-
granularity:
|
|
38
|
+
granularity: T ? void 0 : 0
|
|
39
39
|
// 贴地线需要采样,空间线则无需
|
|
40
40
|
};
|
|
41
41
|
let L;
|
|
@@ -43,10 +43,10 @@ function h(a, o, i = 10, r = "#ba1919", s, C = !1) {
|
|
|
43
43
|
L[0],
|
|
44
44
|
L[1]
|
|
45
45
|
), {
|
|
46
|
-
name:
|
|
46
|
+
name: e,
|
|
47
47
|
// 2. 按需加载标签:默认不显示,或同样受距离控制
|
|
48
48
|
label: {
|
|
49
|
-
text:
|
|
49
|
+
text: e,
|
|
50
50
|
font: "18px sans-serif",
|
|
51
51
|
distanceDisplayCondition: new n.DistanceDisplayCondition(
|
|
52
52
|
L[0],
|
|
@@ -57,11 +57,11 @@ function h(a, o, i = 10, r = "#ba1919", s, C = !1) {
|
|
|
57
57
|
polyline: W
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Cs(a, e, t, r, s = new n.HeadingPitchRoll(0, 0, 0), T = 1, W) {
|
|
61
61
|
const L = {
|
|
62
62
|
show: !0,
|
|
63
63
|
uri: r,
|
|
64
|
-
scale:
|
|
64
|
+
scale: T,
|
|
65
65
|
// // 添加渐变过渡
|
|
66
66
|
// minimumPixelSize: 64, // 最小像素尺寸
|
|
67
67
|
// maximumScale: 20000, // 最大缩放比例
|
|
@@ -76,146 +76,146 @@ function Zs(a, o, i, r, s = new n.HeadingPitchRoll(0, 0, 0), C = 1, W) {
|
|
|
76
76
|
W[1]
|
|
77
77
|
) : L.distanceDisplayCondition = W), {
|
|
78
78
|
id: a,
|
|
79
|
-
name:
|
|
80
|
-
position:
|
|
79
|
+
name: t,
|
|
80
|
+
position: e,
|
|
81
81
|
orientation: n.Transforms.headingPitchRollQuaternion(
|
|
82
|
-
|
|
82
|
+
e,
|
|
83
83
|
s
|
|
84
84
|
),
|
|
85
85
|
model: L
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function os(a, e, t, r = {}) {
|
|
89
89
|
const {
|
|
90
|
-
pointColor: s =
|
|
91
|
-
pointSize:
|
|
92
|
-
labelColor: W =
|
|
90
|
+
pointColor: s = J.YELLOW,
|
|
91
|
+
pointSize: T = 12,
|
|
92
|
+
labelColor: W = J.WHITE,
|
|
93
93
|
fontSize: L = 16,
|
|
94
|
-
pixelOffset:
|
|
95
|
-
heightReference: d =
|
|
94
|
+
pixelOffset: A = [0, -20],
|
|
95
|
+
heightReference: d = Rs.NONE
|
|
96
96
|
} = r;
|
|
97
97
|
return a.entities.add({
|
|
98
|
-
position:
|
|
98
|
+
position: e,
|
|
99
99
|
point: {
|
|
100
100
|
color: s,
|
|
101
|
-
pixelSize:
|
|
101
|
+
pixelSize: T,
|
|
102
102
|
heightReference: d,
|
|
103
103
|
distanceDisplayCondition: new n.DistanceDisplayCondition(0, 100)
|
|
104
104
|
// 显示距离范围
|
|
105
105
|
},
|
|
106
106
|
label: {
|
|
107
|
-
text:
|
|
107
|
+
text: t,
|
|
108
108
|
font: `${L}px sans-serif`,
|
|
109
109
|
fillColor: W,
|
|
110
|
-
pixelOffset: new n.Cartesian2(...
|
|
111
|
-
style:
|
|
110
|
+
pixelOffset: new n.Cartesian2(...A),
|
|
111
|
+
style: Zs.FILL_AND_OUTLINE,
|
|
112
112
|
outlineWidth: 2,
|
|
113
|
-
outlineColor:
|
|
113
|
+
outlineColor: J.BLACK,
|
|
114
114
|
heightReference: d,
|
|
115
115
|
distanceDisplayCondition: new n.DistanceDisplayCondition(0, 100)
|
|
116
116
|
// 显示距离范围
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
centimeters:
|
|
122
|
-
centimetres:
|
|
123
|
-
degrees:
|
|
124
|
-
feet:
|
|
125
|
-
inches:
|
|
126
|
-
kilometers:
|
|
127
|
-
kilometres:
|
|
128
|
-
meters:
|
|
129
|
-
metres:
|
|
130
|
-
miles:
|
|
131
|
-
millimeters:
|
|
132
|
-
millimetres:
|
|
133
|
-
nauticalmiles:
|
|
120
|
+
var N = 63710088e-1, Bs = {
|
|
121
|
+
centimeters: N * 100,
|
|
122
|
+
centimetres: N * 100,
|
|
123
|
+
degrees: N / 111325,
|
|
124
|
+
feet: N * 3.28084,
|
|
125
|
+
inches: N * 39.37,
|
|
126
|
+
kilometers: N / 1e3,
|
|
127
|
+
kilometres: N / 1e3,
|
|
128
|
+
meters: N,
|
|
129
|
+
metres: N,
|
|
130
|
+
miles: N / 1609.344,
|
|
131
|
+
millimeters: N * 1e3,
|
|
132
|
+
millimetres: N * 1e3,
|
|
133
|
+
nauticalmiles: N / 1852,
|
|
134
134
|
radians: 1,
|
|
135
|
-
yards:
|
|
135
|
+
yards: N * 1.0936
|
|
136
136
|
};
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function ts(a, e, t) {
|
|
138
|
+
t === void 0 && (t = {});
|
|
139
139
|
var r = { type: "Feature" };
|
|
140
|
-
return (
|
|
140
|
+
return (t.id === 0 || t.id) && (r.id = t.id), t.bbox && (r.bbox = t.bbox), r.properties = e || {}, r.geometry = a, r;
|
|
141
141
|
}
|
|
142
|
-
function U(a,
|
|
143
|
-
if (
|
|
142
|
+
function U(a, e, t) {
|
|
143
|
+
if (t === void 0 && (t = {}), !a)
|
|
144
144
|
throw new Error("coordinates is required");
|
|
145
145
|
if (!Array.isArray(a))
|
|
146
146
|
throw new Error("coordinates must be an Array");
|
|
147
147
|
if (a.length < 2)
|
|
148
148
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
149
|
-
if (!
|
|
149
|
+
if (!As(a[0]) || !As(a[1]))
|
|
150
150
|
throw new Error("coordinates must contain numbers");
|
|
151
151
|
var r = {
|
|
152
152
|
type: "Point",
|
|
153
153
|
coordinates: a
|
|
154
154
|
};
|
|
155
|
-
return
|
|
155
|
+
return ts(r, e, t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
if (
|
|
157
|
+
function K(a, e, t) {
|
|
158
|
+
if (t === void 0 && (t = {}), a.length < 2)
|
|
159
159
|
throw new Error("coordinates must be an array of two or more positions");
|
|
160
160
|
var r = {
|
|
161
161
|
type: "LineString",
|
|
162
162
|
coordinates: a
|
|
163
163
|
};
|
|
164
|
-
return
|
|
165
|
-
}
|
|
166
|
-
function
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
return
|
|
170
|
-
}
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
-
var
|
|
174
|
-
if (!
|
|
175
|
-
throw new Error(
|
|
176
|
-
return a *
|
|
177
|
-
}
|
|
178
|
-
function
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
if (!
|
|
182
|
-
throw new Error(
|
|
183
|
-
return a /
|
|
184
|
-
}
|
|
185
|
-
function
|
|
186
|
-
var
|
|
187
|
-
return
|
|
188
|
-
}
|
|
189
|
-
function
|
|
190
|
-
var
|
|
191
|
-
return
|
|
192
|
-
}
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
164
|
+
return ts(r, e, t);
|
|
165
|
+
}
|
|
166
|
+
function Xs(a, e) {
|
|
167
|
+
e === void 0 && (e = {});
|
|
168
|
+
var t = { type: "FeatureCollection" };
|
|
169
|
+
return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = a, t;
|
|
170
|
+
}
|
|
171
|
+
function Ps(a, e) {
|
|
172
|
+
e === void 0 && (e = "kilometers");
|
|
173
|
+
var t = Bs[e];
|
|
174
|
+
if (!t)
|
|
175
|
+
throw new Error(e + " units is invalid");
|
|
176
|
+
return a * t;
|
|
177
|
+
}
|
|
178
|
+
function ys(a, e) {
|
|
179
|
+
e === void 0 && (e = "kilometers");
|
|
180
|
+
var t = Bs[e];
|
|
181
|
+
if (!t)
|
|
182
|
+
throw new Error(e + " units is invalid");
|
|
183
|
+
return a / t;
|
|
184
|
+
}
|
|
185
|
+
function ls(a) {
|
|
186
|
+
var e = a % (2 * Math.PI);
|
|
187
|
+
return e * 180 / Math.PI;
|
|
188
|
+
}
|
|
189
|
+
function q(a) {
|
|
190
|
+
var e = a % 360;
|
|
191
|
+
return e * Math.PI / 180;
|
|
192
|
+
}
|
|
193
|
+
function gs(a, e, t) {
|
|
194
|
+
if (e === void 0 && (e = "kilometers"), t === void 0 && (t = "kilometers"), !(a >= 0))
|
|
195
195
|
throw new Error("length must be a positive number");
|
|
196
|
-
return
|
|
196
|
+
return Ps(ys(a, e), t);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function As(a) {
|
|
199
199
|
return !isNaN(a) && a !== null && !Array.isArray(a);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Ys(a) {
|
|
202
202
|
return !!a && a.constructor === Object;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function ms(a, e, t) {
|
|
205
205
|
if (a !== null)
|
|
206
|
-
for (var r, s,
|
|
207
|
-
d =
|
|
206
|
+
for (var r, s, T, W, L, A, d, i = 0, l = 0, u, C = a.type, o = C === "FeatureCollection", c = C === "Feature", m = o ? a.features.length : 1, b = 0; b < m; b++) {
|
|
207
|
+
d = o ? a.features[b].geometry : c ? a.geometry : a, u = d ? d.type === "GeometryCollection" : !1, L = u ? d.geometries.length : 1;
|
|
208
208
|
for (var I = 0; I < L; I++) {
|
|
209
209
|
var P = 0, g = 0;
|
|
210
210
|
if (W = u ? d.geometries[I] : d, W !== null) {
|
|
211
|
-
|
|
211
|
+
A = W.coordinates;
|
|
212
212
|
var y = W.type;
|
|
213
|
-
switch (
|
|
213
|
+
switch (i = 0, y) {
|
|
214
214
|
case null:
|
|
215
215
|
break;
|
|
216
216
|
case "Point":
|
|
217
|
-
if (
|
|
218
|
-
|
|
217
|
+
if (e(
|
|
218
|
+
A,
|
|
219
219
|
l,
|
|
220
220
|
b,
|
|
221
221
|
P,
|
|
@@ -226,9 +226,9 @@ function Ps(a, o, i) {
|
|
|
226
226
|
break;
|
|
227
227
|
case "LineString":
|
|
228
228
|
case "MultiPoint":
|
|
229
|
-
for (r = 0; r <
|
|
230
|
-
if (
|
|
231
|
-
|
|
229
|
+
for (r = 0; r < A.length; r++) {
|
|
230
|
+
if (e(
|
|
231
|
+
A[r],
|
|
232
232
|
l,
|
|
233
233
|
b,
|
|
234
234
|
P,
|
|
@@ -241,10 +241,10 @@ function Ps(a, o, i) {
|
|
|
241
241
|
break;
|
|
242
242
|
case "Polygon":
|
|
243
243
|
case "MultiLineString":
|
|
244
|
-
for (r = 0; r <
|
|
245
|
-
for (s = 0; s <
|
|
246
|
-
if (
|
|
247
|
-
|
|
244
|
+
for (r = 0; r < A.length; r++) {
|
|
245
|
+
for (s = 0; s < A[r].length - i; s++) {
|
|
246
|
+
if (e(
|
|
247
|
+
A[r][s],
|
|
248
248
|
l,
|
|
249
249
|
b,
|
|
250
250
|
P,
|
|
@@ -258,11 +258,11 @@ function Ps(a, o, i) {
|
|
|
258
258
|
y === "Polygon" && P++;
|
|
259
259
|
break;
|
|
260
260
|
case "MultiPolygon":
|
|
261
|
-
for (r = 0; r <
|
|
262
|
-
for (g = 0, s = 0; s <
|
|
263
|
-
for (
|
|
264
|
-
if (
|
|
265
|
-
|
|
261
|
+
for (r = 0; r < A.length; r++) {
|
|
262
|
+
for (g = 0, s = 0; s < A[r].length; s++) {
|
|
263
|
+
for (T = 0; T < A[r][s].length - i; T++) {
|
|
264
|
+
if (e(
|
|
265
|
+
A[r][s][T],
|
|
266
266
|
l,
|
|
267
267
|
b,
|
|
268
268
|
P,
|
|
@@ -278,7 +278,7 @@ function Ps(a, o, i) {
|
|
|
278
278
|
break;
|
|
279
279
|
case "GeometryCollection":
|
|
280
280
|
for (r = 0; r < W.geometries.length; r++)
|
|
281
|
-
if (
|
|
281
|
+
if (ms(W.geometries[r], e) === !1)
|
|
282
282
|
return !1;
|
|
283
283
|
break;
|
|
284
284
|
default:
|
|
@@ -288,52 +288,52 @@ function Ps(a, o, i) {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Fs(a, e) {
|
|
292
292
|
if (a.type === "Feature")
|
|
293
|
-
|
|
293
|
+
e(a, 0);
|
|
294
294
|
else if (a.type === "FeatureCollection")
|
|
295
|
-
for (var
|
|
295
|
+
for (var t = 0; t < a.features.length && e(a.features[t], t) !== !1; t++)
|
|
296
296
|
;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
var
|
|
300
|
-
for (
|
|
301
|
-
for (L =
|
|
302
|
-
if (
|
|
303
|
-
if (
|
|
298
|
+
function Ds(a, e) {
|
|
299
|
+
var t, r, s, T, W, L, A, d, i, l, u = 0, C = a.type === "FeatureCollection", o = a.type === "Feature", c = C ? a.features.length : 1;
|
|
300
|
+
for (t = 0; t < c; t++) {
|
|
301
|
+
for (L = C ? a.features[t].geometry : o ? a.geometry : a, d = C ? a.features[t].properties : o ? a.properties : {}, i = C ? a.features[t].bbox : o ? a.bbox : void 0, l = C ? a.features[t].id : o ? a.id : void 0, A = L ? L.type === "GeometryCollection" : !1, W = A ? L.geometries.length : 1, s = 0; s < W; s++) {
|
|
302
|
+
if (T = A ? L.geometries[s] : L, T === null) {
|
|
303
|
+
if (e(
|
|
304
304
|
null,
|
|
305
305
|
u,
|
|
306
306
|
d,
|
|
307
|
-
|
|
307
|
+
i,
|
|
308
308
|
l
|
|
309
309
|
) === !1)
|
|
310
310
|
return !1;
|
|
311
311
|
continue;
|
|
312
312
|
}
|
|
313
|
-
switch (
|
|
313
|
+
switch (T.type) {
|
|
314
314
|
case "Point":
|
|
315
315
|
case "LineString":
|
|
316
316
|
case "MultiPoint":
|
|
317
317
|
case "Polygon":
|
|
318
318
|
case "MultiLineString":
|
|
319
319
|
case "MultiPolygon": {
|
|
320
|
-
if (
|
|
321
|
-
|
|
320
|
+
if (e(
|
|
321
|
+
T,
|
|
322
322
|
u,
|
|
323
323
|
d,
|
|
324
|
-
|
|
324
|
+
i,
|
|
325
325
|
l
|
|
326
326
|
) === !1)
|
|
327
327
|
return !1;
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
330
|
case "GeometryCollection": {
|
|
331
|
-
for (r = 0; r <
|
|
332
|
-
if (
|
|
333
|
-
|
|
331
|
+
for (r = 0; r < T.geometries.length; r++)
|
|
332
|
+
if (e(
|
|
333
|
+
T.geometries[r],
|
|
334
334
|
u,
|
|
335
335
|
d,
|
|
336
|
-
|
|
336
|
+
i,
|
|
337
337
|
l
|
|
338
338
|
) === !1)
|
|
339
339
|
return !1;
|
|
@@ -346,69 +346,69 @@ function Ys(a, o) {
|
|
|
346
346
|
u++;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
|
|
351
|
-
var L =
|
|
349
|
+
function Hs(a, e) {
|
|
350
|
+
Ds(a, function(t, r, s, T, W) {
|
|
351
|
+
var L = t === null ? null : t.type;
|
|
352
352
|
switch (L) {
|
|
353
353
|
case null:
|
|
354
354
|
case "Point":
|
|
355
355
|
case "LineString":
|
|
356
356
|
case "Polygon":
|
|
357
|
-
return
|
|
358
|
-
|
|
357
|
+
return e(
|
|
358
|
+
ts(t, s, { bbox: T, id: W }),
|
|
359
359
|
r,
|
|
360
360
|
0
|
|
361
361
|
) === !1 ? !1 : void 0;
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var A;
|
|
364
364
|
switch (L) {
|
|
365
365
|
case "MultiPoint":
|
|
366
|
-
|
|
366
|
+
A = "Point";
|
|
367
367
|
break;
|
|
368
368
|
case "MultiLineString":
|
|
369
|
-
|
|
369
|
+
A = "LineString";
|
|
370
370
|
break;
|
|
371
371
|
case "MultiPolygon":
|
|
372
|
-
|
|
372
|
+
A = "Polygon";
|
|
373
373
|
break;
|
|
374
374
|
}
|
|
375
|
-
for (var d = 0; d <
|
|
376
|
-
var
|
|
377
|
-
type:
|
|
378
|
-
coordinates:
|
|
375
|
+
for (var d = 0; d < t.coordinates.length; d++) {
|
|
376
|
+
var i = t.coordinates[d], l = {
|
|
377
|
+
type: A,
|
|
378
|
+
coordinates: i
|
|
379
379
|
};
|
|
380
|
-
if (
|
|
380
|
+
if (e(ts(l, s), r, d) === !1)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
389
|
-
var W =
|
|
385
|
+
function Os(a, e) {
|
|
386
|
+
Hs(a, function(t, r, s) {
|
|
387
|
+
var T = 0;
|
|
388
|
+
if (t.geometry) {
|
|
389
|
+
var W = t.geometry.type;
|
|
390
390
|
if (!(W === "Point" || W === "MultiPoint")) {
|
|
391
|
-
var L,
|
|
392
|
-
if (
|
|
393
|
-
|
|
394
|
-
function(l, u,
|
|
395
|
-
if (L === void 0 || r >
|
|
396
|
-
L = l,
|
|
391
|
+
var L, A = 0, d = 0, i = 0;
|
|
392
|
+
if (ms(
|
|
393
|
+
t,
|
|
394
|
+
function(l, u, C, o, c) {
|
|
395
|
+
if (L === void 0 || r > A || o > d || c > i) {
|
|
396
|
+
L = l, A = r, d = o, i = c, T = 0;
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
|
-
var m =
|
|
399
|
+
var m = K(
|
|
400
400
|
[L, l],
|
|
401
|
-
|
|
401
|
+
t.properties
|
|
402
402
|
);
|
|
403
|
-
if (
|
|
403
|
+
if (e(
|
|
404
404
|
m,
|
|
405
405
|
r,
|
|
406
406
|
s,
|
|
407
407
|
c,
|
|
408
|
-
|
|
408
|
+
T
|
|
409
409
|
) === !1)
|
|
410
410
|
return !1;
|
|
411
|
-
|
|
411
|
+
T++, L = l;
|
|
412
412
|
}
|
|
413
413
|
) === !1)
|
|
414
414
|
return !1;
|
|
@@ -429,30 +429,30 @@ function x(a) {
|
|
|
429
429
|
return a;
|
|
430
430
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function ps(a, e, t) {
|
|
433
433
|
if (!a)
|
|
434
434
|
throw new Error("No feature passed");
|
|
435
|
-
if (!
|
|
435
|
+
if (!t)
|
|
436
436
|
throw new Error(".featureOf() requires a name");
|
|
437
437
|
if (!a || a.type !== "Feature" || !a.geometry)
|
|
438
|
-
throw new Error("Invalid input to " +
|
|
439
|
-
if (!a.geometry || a.geometry.type !==
|
|
440
|
-
throw new Error("Invalid input to " +
|
|
438
|
+
throw new Error("Invalid input to " + t + ", Feature with geometry required");
|
|
439
|
+
if (!a.geometry || a.geometry.type !== e)
|
|
440
|
+
throw new Error("Invalid input to " + t + ": must be a " + e + ", given " + a.geometry.type);
|
|
441
441
|
}
|
|
442
|
-
var
|
|
443
|
-
function ss(a,
|
|
444
|
-
|
|
445
|
-
var r = x(a), s = x(
|
|
446
|
-
return
|
|
442
|
+
var is = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
443
|
+
function ss(a, e, t) {
|
|
444
|
+
t === void 0 && (t = {});
|
|
445
|
+
var r = x(a), s = x(e), T = q(s[1] - r[1]), W = q(s[0] - r[0]), L = q(r[1]), A = q(s[1]), d = Math.pow(Math.sin(T / 2), 2) + Math.pow(Math.sin(W / 2), 2) * Math.cos(L) * Math.cos(A);
|
|
446
|
+
return Ps(2 * Math.atan2(Math.sqrt(d), Math.sqrt(1 - d)), t.units);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function $s(a) {
|
|
449
449
|
if (!a)
|
|
450
450
|
throw new Error("geojson is required");
|
|
451
451
|
switch (a.type) {
|
|
452
452
|
case "Feature":
|
|
453
|
-
return
|
|
453
|
+
return bs(a);
|
|
454
454
|
case "FeatureCollection":
|
|
455
|
-
return
|
|
455
|
+
return Ns(a);
|
|
456
456
|
case "Point":
|
|
457
457
|
case "LineString":
|
|
458
458
|
case "Polygon":
|
|
@@ -460,197 +460,197 @@ function Hs(a) {
|
|
|
460
460
|
case "MultiLineString":
|
|
461
461
|
case "MultiPolygon":
|
|
462
462
|
case "GeometryCollection":
|
|
463
|
-
return
|
|
463
|
+
return Ts(a);
|
|
464
464
|
default:
|
|
465
465
|
throw new Error("unknown GeoJSON type");
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
var
|
|
470
|
-
return Object.keys(a).forEach(function(
|
|
471
|
-
switch (
|
|
468
|
+
function bs(a) {
|
|
469
|
+
var e = { type: "Feature" };
|
|
470
|
+
return Object.keys(a).forEach(function(t) {
|
|
471
|
+
switch (t) {
|
|
472
472
|
case "type":
|
|
473
473
|
case "properties":
|
|
474
474
|
case "geometry":
|
|
475
475
|
return;
|
|
476
476
|
default:
|
|
477
|
-
|
|
477
|
+
e[t] = a[t];
|
|
478
478
|
}
|
|
479
|
-
}),
|
|
479
|
+
}), e.properties = _s(a.properties), e.geometry = Ts(a.geometry), e;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
var
|
|
483
|
-
return a && Object.keys(a).forEach(function(
|
|
484
|
-
var r = a[
|
|
485
|
-
typeof r == "object" ? r === null ?
|
|
481
|
+
function _s(a) {
|
|
482
|
+
var e = {};
|
|
483
|
+
return a && Object.keys(a).forEach(function(t) {
|
|
484
|
+
var r = a[t];
|
|
485
|
+
typeof r == "object" ? r === null ? e[t] = null : Array.isArray(r) ? e[t] = r.map(function(s) {
|
|
486
486
|
return s;
|
|
487
|
-
}) :
|
|
488
|
-
}),
|
|
487
|
+
}) : e[t] = _s(r) : e[t] = r;
|
|
488
|
+
}), e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
var
|
|
492
|
-
return Object.keys(a).forEach(function(
|
|
493
|
-
switch (
|
|
490
|
+
function Ns(a) {
|
|
491
|
+
var e = { type: "FeatureCollection" };
|
|
492
|
+
return Object.keys(a).forEach(function(t) {
|
|
493
|
+
switch (t) {
|
|
494
494
|
case "type":
|
|
495
495
|
case "features":
|
|
496
496
|
return;
|
|
497
497
|
default:
|
|
498
|
-
|
|
498
|
+
e[t] = a[t];
|
|
499
499
|
}
|
|
500
|
-
}),
|
|
501
|
-
return
|
|
502
|
-
}),
|
|
503
|
-
}
|
|
504
|
-
function
|
|
505
|
-
var
|
|
506
|
-
return a.bbox && (
|
|
507
|
-
return
|
|
508
|
-
}),
|
|
509
|
-
}
|
|
510
|
-
function
|
|
511
|
-
var
|
|
512
|
-
return typeof
|
|
513
|
-
return
|
|
500
|
+
}), e.features = a.features.map(function(t) {
|
|
501
|
+
return bs(t);
|
|
502
|
+
}), e;
|
|
503
|
+
}
|
|
504
|
+
function Ts(a) {
|
|
505
|
+
var e = { type: a.type };
|
|
506
|
+
return a.bbox && (e.bbox = a.bbox), a.type === "GeometryCollection" ? (e.geometries = a.geometries.map(function(t) {
|
|
507
|
+
return Ts(t);
|
|
508
|
+
}), e) : (e.coordinates = vs(a.coordinates), e);
|
|
509
|
+
}
|
|
510
|
+
function vs(a) {
|
|
511
|
+
var e = a;
|
|
512
|
+
return typeof e[0] != "object" ? e.slice() : e.map(function(t) {
|
|
513
|
+
return vs(t);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function us(a, e, t, r) {
|
|
517
517
|
r === void 0 && (r = {});
|
|
518
|
-
var s = x(a),
|
|
518
|
+
var s = x(a), T = q(s[0]), W = q(s[1]), L = q(t), A = ys(e, r.units), d = Math.asin(Math.sin(W) * Math.cos(A) + Math.cos(W) * Math.sin(A) * Math.cos(L)), i = T + Math.atan2(Math.sin(L) * Math.sin(A) * Math.cos(W), Math.cos(A) - Math.sin(W) * Math.sin(d)), l = ls(i), u = ls(d);
|
|
519
519
|
return U([l, u], r.properties);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
if (
|
|
523
|
-
return
|
|
524
|
-
var r = x(a), s = x(
|
|
525
|
-
return
|
|
521
|
+
function fs(a, e, t) {
|
|
522
|
+
if (t === void 0 && (t = {}), t.final === !0)
|
|
523
|
+
return Gs(a, e);
|
|
524
|
+
var r = x(a), s = x(e), T = q(r[0]), W = q(s[0]), L = q(r[1]), A = q(s[1]), d = Math.sin(W - T) * Math.cos(A), i = Math.cos(L) * Math.sin(A) - Math.sin(L) * Math.cos(A) * Math.cos(W - T);
|
|
525
|
+
return ls(Math.atan2(d, i));
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
var
|
|
529
|
-
return
|
|
527
|
+
function Gs(a, e) {
|
|
528
|
+
var t = fs(e, a);
|
|
529
|
+
return t = (t + 180) % 360, t;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
var
|
|
531
|
+
function zs(a, e) {
|
|
532
|
+
var t = ss(a, e), r = fs(a, e), s = us(a, t / 2, r);
|
|
533
533
|
return s;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Vs(a, e) {
|
|
536
536
|
if (!a)
|
|
537
537
|
throw new Error("targetPoint is required");
|
|
538
|
-
if (!
|
|
538
|
+
if (!e)
|
|
539
539
|
throw new Error("points is required");
|
|
540
|
-
var
|
|
541
|
-
return
|
|
542
|
-
var L = ss(a,
|
|
540
|
+
var t, r = 1 / 0, s = 0;
|
|
541
|
+
return Fs(e, function(T, W) {
|
|
542
|
+
var L = ss(a, T);
|
|
543
543
|
L < r && (s = W, r = L);
|
|
544
|
-
}),
|
|
544
|
+
}), t = $s(e.features[s]), t.properties.featureIndex = s, t.properties.distanceToPoint = r, t;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
|
|
548
|
-
var r = x(a), s = x(
|
|
546
|
+
function qs(a, e, t) {
|
|
547
|
+
t === void 0 && (t = {});
|
|
548
|
+
var r = x(a), s = x(e);
|
|
549
549
|
s[0] += s[0] - r[0] > 180 ? -360 : r[0] - s[0] > 180 ? 360 : 0;
|
|
550
|
-
var
|
|
550
|
+
var T = Ks(r, s), W = gs(T, "meters", t.units);
|
|
551
551
|
return W;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
|
|
555
|
-
var r =
|
|
553
|
+
function Ks(a, e, t) {
|
|
554
|
+
t = t === void 0 ? N : Number(t);
|
|
555
|
+
var r = t, s = a[1] * Math.PI / 180, T = e[1] * Math.PI / 180, W = T - s, L = Math.abs(e[0] - a[0]) * Math.PI / 180;
|
|
556
556
|
L > Math.PI && (L -= 2 * Math.PI);
|
|
557
|
-
var
|
|
557
|
+
var A = Math.log(Math.tan(T / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), d = Math.abs(A) > 1e-11 ? W / A : Math.cos(s), i = Math.sqrt(W * W + d * d * L * L), l = i * r;
|
|
558
558
|
return l;
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
if (
|
|
560
|
+
function ns(a, e, t) {
|
|
561
|
+
if (t === void 0 && (t = {}), t.method || (t.method = "geodesic"), t.units || (t.units = "kilometers"), !a)
|
|
562
562
|
throw new Error("pt is required");
|
|
563
|
-
if (Array.isArray(a) ? a = U(a) : a.type === "Point" ? a =
|
|
563
|
+
if (Array.isArray(a) ? a = U(a) : a.type === "Point" ? a = ts(a) : ps(a, "Point", "point"), !e)
|
|
564
564
|
throw new Error("line is required");
|
|
565
|
-
Array.isArray(
|
|
565
|
+
Array.isArray(e) ? e = K(e) : e.type === "LineString" ? e = ts(e) : ps(e, "LineString", "line");
|
|
566
566
|
var r = 1 / 0, s = a.geometry.coordinates;
|
|
567
|
-
return
|
|
568
|
-
var W =
|
|
569
|
-
|
|
570
|
-
}),
|
|
567
|
+
return Os(e, function(T) {
|
|
568
|
+
var W = T.geometry.coordinates[0], L = T.geometry.coordinates[1], A = Js(s, W, L, t);
|
|
569
|
+
A < r && (r = A);
|
|
570
|
+
}), gs(r, "degrees", t.units);
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
var s = [
|
|
572
|
+
function Js(a, e, t, r) {
|
|
573
|
+
var s = [t[0] - e[0], t[1] - e[1]], T = [a[0] - e[0], a[1] - e[1]], W = Ls(T, s);
|
|
574
574
|
if (W <= 0)
|
|
575
|
-
return
|
|
576
|
-
var L =
|
|
575
|
+
return as(a, e, { method: r.method, units: "degrees" });
|
|
576
|
+
var L = Ls(s, s);
|
|
577
577
|
if (L <= W)
|
|
578
|
-
return
|
|
579
|
-
var
|
|
580
|
-
return
|
|
578
|
+
return as(a, t, { method: r.method, units: "degrees" });
|
|
579
|
+
var A = W / L, d = [e[0] + A * s[0], e[1] + A * s[1]];
|
|
580
|
+
return as(a, d, { method: r.method, units: "degrees" });
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return a[0] *
|
|
582
|
+
function Ls(a, e) {
|
|
583
|
+
return a[0] * e[0] + a[1] * e[1];
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function as(a, e, t) {
|
|
586
|
+
return t.method === "planar" ? qs(a, e, t) : ss(a, e, t);
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
if (r = r || {}, !
|
|
590
|
-
var s,
|
|
588
|
+
function Us(a, e, t, r) {
|
|
589
|
+
if (r = r || {}, !Ys(r)) throw new Error("options is invalid");
|
|
590
|
+
var s, T = [];
|
|
591
591
|
if (a.type === "Feature") s = a.geometry.coordinates;
|
|
592
592
|
else if (a.type === "LineString") s = a.coordinates;
|
|
593
593
|
else throw new Error("input must be a LineString Feature or Geometry");
|
|
594
|
-
for (var W = s.length, L = 0,
|
|
595
|
-
if (L >
|
|
596
|
-
if (
|
|
597
|
-
return
|
|
598
|
-
d =
|
|
594
|
+
for (var W = s.length, L = 0, A, d, i, l = 0; l < s.length && !(e >= L && l === s.length - 1); l++) {
|
|
595
|
+
if (L > e && T.length === 0) {
|
|
596
|
+
if (A = e - L, !A)
|
|
597
|
+
return T.push(s[l]), K(T);
|
|
598
|
+
d = fs(s[l], s[l - 1]) - 180, i = us(s[l], A, d, r), T.push(i.geometry.coordinates);
|
|
599
599
|
}
|
|
600
|
-
if (L >=
|
|
601
|
-
return
|
|
602
|
-
if (L >=
|
|
603
|
-
return
|
|
600
|
+
if (L >= t)
|
|
601
|
+
return A = t - L, A ? (d = fs(s[l], s[l - 1]) - 180, i = us(s[l], A, d, r), T.push(i.geometry.coordinates), K(T)) : (T.push(s[l]), K(T));
|
|
602
|
+
if (L >= e && T.push(s[l]), l === s.length - 1)
|
|
603
|
+
return K(T);
|
|
604
604
|
L += ss(s[l], s[l + 1], r);
|
|
605
605
|
}
|
|
606
|
-
if (L <
|
|
606
|
+
if (L < e && s.length === W)
|
|
607
607
|
throw new Error("Start position is beyond line");
|
|
608
608
|
var u = s[s.length - 1];
|
|
609
|
-
return
|
|
609
|
+
return K([u, u]);
|
|
610
610
|
}
|
|
611
611
|
const j = { units: "kilometers" };
|
|
612
|
-
function
|
|
613
|
-
var { nearestDistance: s } =
|
|
614
|
-
const L = Math.min(s, W,
|
|
615
|
-
return L === s ?
|
|
612
|
+
function Qs(a, e, t, r) {
|
|
613
|
+
var { nearestDistance: s } = rs(a, e), { nearestDistance: T } = rs(a, r), { nearestDistance: W } = rs(a, t);
|
|
614
|
+
const L = Math.min(s, W, T);
|
|
615
|
+
return L === s ? e : L === W ? t : r;
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const js = (a, e, t) => {
|
|
618
618
|
debugger;
|
|
619
|
-
const r = U(a.slice(0, 2)), { nearestCoord: s } =
|
|
620
|
-
(
|
|
619
|
+
const r = U(a.slice(0, 2)), { nearestCoord: s } = rs(a, e), T = e.findIndex(
|
|
620
|
+
(k) => k[0] == s[0] && k[1] == s[1]
|
|
621
621
|
);
|
|
622
622
|
let W = [];
|
|
623
|
-
if (
|
|
624
|
-
W.push(
|
|
625
|
-
else if (
|
|
626
|
-
W.push(
|
|
623
|
+
if (T == 0)
|
|
624
|
+
W.push(e[0], e[1]);
|
|
625
|
+
else if (T == e.length - 1)
|
|
626
|
+
W.push(e[e.length - 2], e[e.length - 1]);
|
|
627
627
|
else {
|
|
628
|
-
const
|
|
629
|
-
var L =
|
|
630
|
-
W = L >
|
|
628
|
+
const k = [e[T], e[T + 1]], X = [e[T - 1], e[T]];
|
|
629
|
+
var L = ns(r, K(k), j), A = ns(r, K(X), j);
|
|
630
|
+
W = L > A ? X : k;
|
|
631
631
|
}
|
|
632
|
-
console.log("附近的点",
|
|
633
|
-
const d =
|
|
634
|
-
var u =
|
|
632
|
+
console.log("附近的点", T, W);
|
|
633
|
+
const d = K([W[0].slice(0, 2), W[1].slice(0, 2)]), i = U(W[0].slice(0, 2)), l = U(W[1].slice(0, 2));
|
|
634
|
+
var u = ns(r, d, j), C = ss(r, i, j) || 0, o = Math.sqrt(C * C - u * u) || 0;
|
|
635
635
|
let c = W[0].slice(0, 2);
|
|
636
|
-
|
|
637
|
-
const m = ss(
|
|
636
|
+
o > 0 && (c = Us(d, 0, o, j).geometry.coordinates[1]);
|
|
637
|
+
const m = ss(i, l, j), b = Math.abs(W[0][2] - W[1][2]), I = Math.min(W[0][2], W[1][2]), P = Math.max(W[0][2], W[1][2]), g = W[0][2] > W[1][2] ? P - o / m * b : o / m * b + I;
|
|
638
638
|
console.log("高度差>>>>", b), console.log("最小高度>>>>", I);
|
|
639
639
|
const y = g - a[2], _ = u * 1e3, v = Math.sqrt(_ * _ + y * y);
|
|
640
640
|
console.log("水平距离>>>>", _), console.log("竖直距离>>>>", y), console.log("直线距离>>>>", v);
|
|
641
|
-
const
|
|
641
|
+
const S = n.Cartesian3.fromDegrees(
|
|
642
642
|
a[0],
|
|
643
643
|
a[1],
|
|
644
644
|
a[2]
|
|
645
645
|
), M = n.Cartesian3.fromDegrees(c[0], c[1], g);
|
|
646
|
-
var
|
|
646
|
+
var R = zs(
|
|
647
647
|
U([a[0], a[1]]),
|
|
648
648
|
U([c[0], c[1]])
|
|
649
649
|
).geometry.coordinates;
|
|
650
650
|
const Y = {
|
|
651
651
|
position: n.Cartesian3.fromDegrees(
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
R[0],
|
|
653
|
+
R[1],
|
|
654
654
|
g - y / 2
|
|
655
655
|
),
|
|
656
656
|
name: "直线距离",
|
|
@@ -662,13 +662,13 @@ const Us = (a, o, i) => {
|
|
|
662
662
|
scaleByDistance: new n.NearFarScalar(1e3, 1.5, 2e3, 1),
|
|
663
663
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
664
664
|
}
|
|
665
|
-
},
|
|
666
|
-
|
|
665
|
+
}, Z = [];
|
|
666
|
+
Z.push(S), Z.push(M);
|
|
667
667
|
var F = {
|
|
668
668
|
polyline: {
|
|
669
669
|
show: !0,
|
|
670
670
|
// 定义线条的 Cartesian3 位置的数组
|
|
671
|
-
positions:
|
|
671
|
+
positions: Z,
|
|
672
672
|
clampToGround: !1,
|
|
673
673
|
// 是否贴地
|
|
674
674
|
width: 2,
|
|
@@ -692,163 +692,163 @@ const Us = (a, o, i) => {
|
|
|
692
692
|
// zIndex: 0,
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
|
|
695
|
+
t.add(Y), t.add(F);
|
|
696
696
|
};
|
|
697
|
-
function
|
|
698
|
-
const
|
|
699
|
-
|
|
697
|
+
function rs(a, e) {
|
|
698
|
+
const t = U(a.slice(0, 2)), r = [];
|
|
699
|
+
e.forEach((L) => {
|
|
700
700
|
r.push(U([L[0], L[1]]));
|
|
701
701
|
});
|
|
702
|
-
const s =
|
|
702
|
+
const s = Xs(
|
|
703
703
|
r
|
|
704
|
-
),
|
|
704
|
+
), T = Vs(t, s), W = ss(t, T, j);
|
|
705
705
|
return {
|
|
706
|
-
nearestCoord:
|
|
706
|
+
nearestCoord: T.geometry.coordinates,
|
|
707
707
|
nearestDistance: W
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function B(a,
|
|
711
|
-
|
|
712
|
-
const
|
|
710
|
+
function B(a, e, t, r, s) {
|
|
711
|
+
t || (t = new n.HeadingPitchRoll());
|
|
712
|
+
const T = n.Transforms.headingPitchRollQuaternion(
|
|
713
713
|
a,
|
|
714
|
-
|
|
714
|
+
t,
|
|
715
715
|
r,
|
|
716
716
|
s
|
|
717
717
|
), W = n.Matrix4.fromRotationTranslation(
|
|
718
|
-
n.Matrix3.fromQuaternion(
|
|
718
|
+
n.Matrix3.fromQuaternion(T, new n.Matrix3()),
|
|
719
719
|
a,
|
|
720
720
|
new n.Matrix4()
|
|
721
721
|
);
|
|
722
722
|
return n.Matrix4.multiplyByPoint(
|
|
723
723
|
W,
|
|
724
|
-
|
|
724
|
+
e,
|
|
725
725
|
new n.Cartesian3()
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
var
|
|
730
|
-
return [s, r,
|
|
728
|
+
function z(a, e) {
|
|
729
|
+
var t = a.cartesianToCartographic(e), r = n.Math.toDegrees(t.latitude), s = n.Math.toDegrees(t.longitude), T = t.height;
|
|
730
|
+
return [s, r, T];
|
|
731
731
|
}
|
|
732
|
-
function Q(a,
|
|
733
|
-
const s =
|
|
734
|
-
let
|
|
735
|
-
return
|
|
732
|
+
function Q(a, e, t, r) {
|
|
733
|
+
const s = e * Math.PI / 180, T = a * Math.PI / 180, W = r * Math.PI / 180, L = t * Math.PI / 180, A = Math.sin(L - T) * Math.cos(W), d = Math.cos(s) * Math.sin(W) - Math.sin(s) * Math.cos(W) * Math.cos(L - T);
|
|
734
|
+
let i = Math.atan2(A, d) * 180 / Math.PI;
|
|
735
|
+
return i = (i + 360) % 360, i;
|
|
736
736
|
}
|
|
737
|
-
function f(a,
|
|
738
|
-
const
|
|
737
|
+
function f(a, e = 6) {
|
|
738
|
+
const t = [];
|
|
739
739
|
for (var r = 0; r < a.length - 1; r++)
|
|
740
|
-
|
|
741
|
-
...
|
|
740
|
+
t.push(
|
|
741
|
+
...xs(a[r], a[r + 1], e * -1e3, 100)
|
|
742
742
|
);
|
|
743
|
-
return
|
|
743
|
+
return t;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
var s = [],
|
|
747
|
-
(L - d) * (L - d) + (
|
|
748
|
-
), u = l *
|
|
749
|
-
|
|
745
|
+
function xs(a, e, t, r) {
|
|
746
|
+
var s = [], T = n.Cartographic.fromCartesian(a), W = n.Cartographic.fromCartesian(e), L = T.longitude * 180 / Math.PI, A = T.latitude * 180 / Math.PI, d = W.longitude * 180 / Math.PI, i = W.latitude * 180 / Math.PI, l = Math.sqrt(
|
|
747
|
+
(L - d) * (L - d) + (A - i) * (A - i)
|
|
748
|
+
), u = l * t, C = n.Cartesian3.clone(a), o = n.Cartesian3.clone(e), c = n.Cartesian3.distance(
|
|
749
|
+
C,
|
|
750
750
|
n.Cartesian3.ZERO
|
|
751
|
-
), m = n.Cartesian3.distance(
|
|
752
|
-
if (n.Cartesian3.normalize(
|
|
751
|
+
), m = n.Cartesian3.distance(o, n.Cartesian3.ZERO);
|
|
752
|
+
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(o, o), n.Cartesian3.distance(C, o) == 0)
|
|
753
753
|
return s;
|
|
754
|
-
var b = n.Cartesian3.angleBetween(
|
|
754
|
+
var b = n.Cartesian3.angleBetween(C, o);
|
|
755
755
|
s.push(a);
|
|
756
756
|
for (var I = 1; I < r - 1; I++) {
|
|
757
757
|
var P = I * 1 / (r - 1), g = 1 - P, y = Math.sin(g * b) / Math.sin(b), _ = Math.sin(P * b) / Math.sin(b), v = n.Cartesian3.multiplyByScalar(
|
|
758
|
-
|
|
758
|
+
C,
|
|
759
759
|
y,
|
|
760
760
|
new n.Cartesian3()
|
|
761
|
-
),
|
|
762
|
-
|
|
761
|
+
), S = n.Cartesian3.multiplyByScalar(
|
|
762
|
+
o,
|
|
763
763
|
_,
|
|
764
764
|
new n.Cartesian3()
|
|
765
765
|
), M = n.Cartesian3.add(
|
|
766
766
|
v,
|
|
767
|
-
|
|
767
|
+
S,
|
|
768
768
|
new n.Cartesian3()
|
|
769
|
-
),
|
|
769
|
+
), R = P * Math.PI, E = c * g + m * P + Math.sin(R) * u;
|
|
770
770
|
M = n.Cartesian3.multiplyByScalar(
|
|
771
771
|
M,
|
|
772
772
|
E,
|
|
773
773
|
M
|
|
774
774
|
), s.push(M);
|
|
775
775
|
}
|
|
776
|
-
return s.push(
|
|
776
|
+
return s.push(e), s;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function st(a, e, t = 30) {
|
|
779
779
|
const r = a.length;
|
|
780
|
-
if (r <= 2 ||
|
|
780
|
+
if (r <= 2 || e === 0 || e === r - 1)
|
|
781
781
|
return !1;
|
|
782
782
|
const s = Q(
|
|
783
|
-
a[
|
|
784
|
-
a[
|
|
785
|
-
a[
|
|
786
|
-
a[
|
|
783
|
+
a[e - 1].Longitude,
|
|
784
|
+
a[e - 1].Latitude,
|
|
785
|
+
a[e].Longitude,
|
|
786
|
+
a[e].Latitude
|
|
787
787
|
);
|
|
788
788
|
let W = Q(
|
|
789
|
-
a[
|
|
790
|
-
a[
|
|
791
|
-
a[
|
|
792
|
-
a[
|
|
789
|
+
a[e].Longitude,
|
|
790
|
+
a[e].Latitude,
|
|
791
|
+
a[e + 1].Longitude,
|
|
792
|
+
a[e + 1].Latitude
|
|
793
793
|
) - s;
|
|
794
|
-
return W > 180 && (W -= 360), W < -180 && (W += 360), Math.abs(W) >=
|
|
794
|
+
return W > 180 && (W -= 360), W < -180 && (W += 360), Math.abs(W) >= t;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Ws(a, e, t = 2) {
|
|
797
797
|
const r = a.length;
|
|
798
798
|
if (r <= 1)
|
|
799
799
|
return 0;
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
802
|
-
a[
|
|
803
|
-
a[
|
|
804
|
-
a[
|
|
805
|
-
a[
|
|
800
|
+
if (st(a, e, 15))
|
|
801
|
+
return e < r - 1 ? Q(
|
|
802
|
+
a[e].Longitude,
|
|
803
|
+
a[e].Latitude,
|
|
804
|
+
a[e + 1].Longitude,
|
|
805
|
+
a[e + 1].Latitude
|
|
806
806
|
) : Q(
|
|
807
|
-
a[
|
|
808
|
-
a[
|
|
809
|
-
a[
|
|
810
|
-
a[
|
|
807
|
+
a[e - 1].Longitude,
|
|
808
|
+
a[e - 1].Latitude,
|
|
809
|
+
a[e].Longitude,
|
|
810
|
+
a[e].Latitude
|
|
811
811
|
);
|
|
812
|
-
let s = Math.max(0,
|
|
813
|
-
if (
|
|
814
|
-
return
|
|
815
|
-
a[
|
|
816
|
-
a[
|
|
817
|
-
a[
|
|
818
|
-
a[
|
|
812
|
+
let s = Math.max(0, e - t), T = Math.min(r - 1, e + t);
|
|
813
|
+
if (T - s < 1)
|
|
814
|
+
return e === r - 1 ? Q(
|
|
815
|
+
a[e - 1].Longitude,
|
|
816
|
+
a[e - 1].Latitude,
|
|
817
|
+
a[e].Longitude,
|
|
818
|
+
a[e].Latitude
|
|
819
819
|
) : Q(
|
|
820
|
-
a[
|
|
821
|
-
a[
|
|
822
|
-
a[
|
|
823
|
-
a[
|
|
820
|
+
a[e].Longitude,
|
|
821
|
+
a[e].Latitude,
|
|
822
|
+
a[e + 1].Longitude,
|
|
823
|
+
a[e + 1].Latitude
|
|
824
824
|
);
|
|
825
825
|
const W = [];
|
|
826
|
-
for (let
|
|
826
|
+
for (let i = s; i < T; i++) {
|
|
827
827
|
const l = Q(
|
|
828
|
-
a[
|
|
829
|
-
a[
|
|
830
|
-
a[
|
|
831
|
-
a[
|
|
828
|
+
a[i].Longitude,
|
|
829
|
+
a[i].Latitude,
|
|
830
|
+
a[i + 1].Longitude,
|
|
831
|
+
a[i + 1].Latitude
|
|
832
832
|
);
|
|
833
833
|
W.push(l);
|
|
834
834
|
}
|
|
835
835
|
if (W.length === 1)
|
|
836
836
|
return W[0];
|
|
837
|
-
let L = 0,
|
|
838
|
-
for (const
|
|
839
|
-
const l =
|
|
840
|
-
L += Math.cos(l),
|
|
837
|
+
let L = 0, A = 0;
|
|
838
|
+
for (const i of W) {
|
|
839
|
+
const l = i * Math.PI / 180;
|
|
840
|
+
L += Math.cos(l), A += Math.sin(l);
|
|
841
841
|
}
|
|
842
|
-
return (Math.atan2(
|
|
842
|
+
return (Math.atan2(A, L) * 180 / Math.PI + 360) % 360;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
const
|
|
846
|
-
if (Math.abs(
|
|
844
|
+
function tt(a, e) {
|
|
845
|
+
const t = a * Math.PI / 180, r = e * Math.PI / 180, s = Math.cos(t), T = Math.sin(t), W = Math.cos(r), L = Math.sin(r), A = s + W, d = T + L;
|
|
846
|
+
if (Math.abs(A) < 1e-10 && Math.abs(d) < 1e-10)
|
|
847
847
|
return (a + 90) % 360;
|
|
848
|
-
let
|
|
849
|
-
return
|
|
848
|
+
let i = Math.atan2(d, A) * 180 / Math.PI;
|
|
849
|
+
return i = (i + 360) % 360, i;
|
|
850
850
|
}
|
|
851
|
-
class
|
|
851
|
+
class lt {
|
|
852
852
|
constructor() {
|
|
853
853
|
w(this, "LineID", "myEntity1");
|
|
854
854
|
w(this, "Tag", "");
|
|
@@ -874,7 +874,7 @@ class ai {
|
|
|
874
874
|
w(this, "LineDistanceDisplaymax", 5e3);
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
class
|
|
877
|
+
class ut {
|
|
878
878
|
constructor() {
|
|
879
879
|
w(this, "id", "");
|
|
880
880
|
w(this, "modelid", "");
|
|
@@ -886,7 +886,7 @@ class Wi {
|
|
|
886
886
|
w(this, "treeScale", 1);
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
class
|
|
889
|
+
class ct {
|
|
890
890
|
constructor() {
|
|
891
891
|
// 杆塔id
|
|
892
892
|
w(this, "id", "");
|
|
@@ -918,7 +918,7 @@ class li {
|
|
|
918
918
|
w(this, "DistanceDisplaymax", 1e3);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
class
|
|
921
|
+
class Tt {
|
|
922
922
|
constructor() {
|
|
923
923
|
// 绝缘子串id
|
|
924
924
|
w(this, "id", "");
|
|
@@ -950,7 +950,7 @@ class ui {
|
|
|
950
950
|
w(this, "DistanceDisplaymax", 500);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class Ct {
|
|
954
954
|
constructor() {
|
|
955
955
|
w(this, "name", "");
|
|
956
956
|
w(this, "X", -45);
|
|
@@ -958,11 +958,11 @@ class ci {
|
|
|
958
958
|
w(this, "Z", 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
var
|
|
962
|
-
class
|
|
961
|
+
var G = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(G || {}), V = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(V || {}), it = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(it || {}), hs = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(hs || {}), D = /* @__PURE__ */ ((a) => (a[a.悬垂串 = 0] = "悬垂串", a[a.耐张串 = 1] = "耐张串", a[a.跳线串 = 2] = "跳线串", a[a.硬跳串 = 3] = "硬跳串", a[a.V串 = 4] = "V串", a[a.地线串 = 5] = "地线串", a[a.绕跳临时 = 6] = "绕跳临时", a))(D || {}), p = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(p || {});
|
|
962
|
+
const es = class es {
|
|
963
963
|
// private arcLine1D2: Cesium.Cartesian3[]= [];
|
|
964
964
|
// 类的构造函数,用于初始化属性
|
|
965
|
-
constructor(
|
|
965
|
+
constructor(e, t, r) {
|
|
966
966
|
//三维场景
|
|
967
967
|
w(this, "viewer");
|
|
968
968
|
w(this, "LineInfo");
|
|
@@ -981,6 +981,8 @@ class Ti {
|
|
|
981
981
|
w(this, "LineentityCollection2");
|
|
982
982
|
// 塔集合
|
|
983
983
|
w(this, "offsetTowers", []);
|
|
984
|
+
// 树木集合
|
|
985
|
+
w(this, "offsetTrees", []);
|
|
984
986
|
// 控制是否自动计算 RollX 角度(默认为 true,启用自动计算)
|
|
985
987
|
w(this, "autoCalculateRollX", !0);
|
|
986
988
|
// 动态加载相关数据结构
|
|
@@ -988,6 +990,8 @@ class Ti {
|
|
|
988
990
|
// 存储每个塔的导线挂点信息
|
|
989
991
|
w(this, "loadedWireSegments", /* @__PURE__ */ new Set());
|
|
990
992
|
// 已加载的导线段 (格式: "index1-index2")
|
|
993
|
+
w(this, "loadedTreeIndices", /* @__PURE__ */ new Set());
|
|
994
|
+
// 已加载的树索引
|
|
991
995
|
// 动态加载相关
|
|
992
996
|
w(this, "isDynamicLoadingEnabled", !0);
|
|
993
997
|
// 是否启用动态加载(默认启用以解决800km卡顿问题)
|
|
@@ -1071,49 +1075,49 @@ class Ti {
|
|
|
1071
1075
|
w(this, "modelCache", /* @__PURE__ */ new Map());
|
|
1072
1076
|
// 在类中添加私有属性来存储事件处理器和标记数据源
|
|
1073
1077
|
w(this, "treeHandler", null);
|
|
1074
|
-
this.Keym = r, this.viewer =
|
|
1078
|
+
this.Keym = r, this.viewer = e, this.LineInfo = t, this.dataSource2 = new n.CustomDataSource(this.LineInfo.LineID), this.entityCollection2 = this.dataSource2.entities, this.dataSourcetree = new n.CustomDataSource(this.LineInfo.LineID + "tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.dataSourceplotting = new n.CustomDataSource("plotting"), this.entityCollectionplotting = this.dataSourceplotting.entities, this.LinedataSource2 = new n.CustomDataSource(this.LineInfo.LineID + "daoxian"), this.LineentityCollection2 = this.LinedataSource2.entities;
|
|
1075
1079
|
}
|
|
1076
1080
|
/**
|
|
1077
1081
|
* 创建模型缓存键
|
|
1078
1082
|
*/
|
|
1079
|
-
createModelCacheKey(
|
|
1080
|
-
return `${
|
|
1083
|
+
createModelCacheKey(e, t, r, s) {
|
|
1084
|
+
return `${e}_${t}_${r}_${s}`;
|
|
1081
1085
|
}
|
|
1082
1086
|
/**
|
|
1083
1087
|
* 从缓存中获取或创建模型配置
|
|
1084
1088
|
* 注意:距离参数会自动限制最大值以避免性能问题
|
|
1085
1089
|
*/
|
|
1086
|
-
getCachedModelConfig(
|
|
1087
|
-
const
|
|
1090
|
+
getCachedModelConfig(e, t, r, s) {
|
|
1091
|
+
const T = Math.max(0, r), W = Math.min(s, 5e4), L = this.createModelCacheKey(e, t, T, W);
|
|
1088
1092
|
if (!this.modelCache.has(L)) {
|
|
1089
|
-
const
|
|
1090
|
-
uri:
|
|
1091
|
-
scale:
|
|
1092
|
-
distanceDisplayCondition: [
|
|
1093
|
+
const A = {
|
|
1094
|
+
uri: e,
|
|
1095
|
+
scale: t,
|
|
1096
|
+
distanceDisplayCondition: [T, W]
|
|
1093
1097
|
};
|
|
1094
|
-
this.modelCache.set(L,
|
|
1098
|
+
this.modelCache.set(L, A);
|
|
1095
1099
|
}
|
|
1096
1100
|
return this.modelCache.get(L);
|
|
1097
1101
|
}
|
|
1098
1102
|
/**
|
|
1099
1103
|
* 统一的模型添加方法,减少重复代码
|
|
1100
1104
|
*/
|
|
1101
|
-
addModelToCollection(
|
|
1102
|
-
const
|
|
1105
|
+
addModelToCollection(e, t, r, s, T, W, L) {
|
|
1106
|
+
const A = this.getCachedModelConfig(
|
|
1103
1107
|
s,
|
|
1104
1108
|
W,
|
|
1105
1109
|
L[0],
|
|
1106
1110
|
L[1]
|
|
1107
1111
|
);
|
|
1108
1112
|
this.entityCollection2.add(
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1113
|
+
Cs(
|
|
1114
|
+
e,
|
|
1115
|
+
t,
|
|
1112
1116
|
r,
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
+
A.uri,
|
|
1118
|
+
T,
|
|
1119
|
+
A.scale,
|
|
1120
|
+
A.distanceDisplayCondition
|
|
1117
1121
|
)
|
|
1118
1122
|
);
|
|
1119
1123
|
}
|
|
@@ -1121,8 +1125,8 @@ class Ti {
|
|
|
1121
1125
|
* 设置是否自动计算 RollX 角度
|
|
1122
1126
|
* @param enable 是否启用自动计算(true: 启用, false: 禁用)
|
|
1123
1127
|
*/
|
|
1124
|
-
setAutoCalculateRollX(
|
|
1125
|
-
this.autoCalculateRollX =
|
|
1128
|
+
setAutoCalculateRollX(e) {
|
|
1129
|
+
this.autoCalculateRollX = e;
|
|
1126
1130
|
}
|
|
1127
1131
|
/**
|
|
1128
1132
|
* 获取当前是否启用自动计算 RollX 角度
|
|
@@ -1132,27 +1136,47 @@ class Ti {
|
|
|
1132
1136
|
return this.autoCalculateRollX;
|
|
1133
1137
|
}
|
|
1134
1138
|
/**
|
|
1135
|
-
*
|
|
1139
|
+
* 设置是否启用动态加载模式
|
|
1140
|
+
* @param enable 是否启用动态加载(true: 启用, false: 禁用)
|
|
1141
|
+
*/
|
|
1142
|
+
setDynamicLoadingEnabled(e) {
|
|
1143
|
+
this.isDynamicLoadingEnabled = e;
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* 获取当前是否启用动态加载模式
|
|
1147
|
+
* @returns 当前的动态加载状态
|
|
1148
|
+
*/
|
|
1149
|
+
getDynamicLoadingEnabled() {
|
|
1150
|
+
return this.isDynamicLoadingEnabled;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* 设置相机移动监听器,用于动态加载/卸载杆塔和绝缘子
|
|
1136
1154
|
*/
|
|
1137
1155
|
setupCameraMoveListener() {
|
|
1138
1156
|
this.cameraMoveHandler && this.cameraMoveHandler(), this.cameraMoveHandler = this.viewer.camera.moveEnd.addEventListener(() => {
|
|
1139
1157
|
this.updateVisibleTowers();
|
|
1140
1158
|
});
|
|
1141
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* 设置树木相机移动监听器,用于动态加载/卸载树木
|
|
1162
|
+
*/
|
|
1163
|
+
setupTreeCameraMoveListener() {
|
|
1164
|
+
this.cameraMoveHandler || this.setupCameraMoveListener();
|
|
1165
|
+
}
|
|
1142
1166
|
/**
|
|
1143
1167
|
* 计算相机视野范围内的塔索引
|
|
1144
1168
|
*/
|
|
1145
1169
|
getVisibleTowerIndices() {
|
|
1146
|
-
var
|
|
1170
|
+
var A;
|
|
1147
1171
|
if (!this.viewer.camera || this.offsetTowers.length === 0)
|
|
1148
1172
|
return { start: 0, end: 0 };
|
|
1149
|
-
const
|
|
1173
|
+
const e = this.viewer.camera.position, t = ((A = this.viewer.camera.positionCartographic) == null ? void 0 : A.height) || 1e3;
|
|
1150
1174
|
let r = 5;
|
|
1151
|
-
|
|
1152
|
-
let s = 0,
|
|
1175
|
+
t > 5e4 ? r = 2 : t > 1e4 ? r = 3 : t > 5e3 ? r = 5 : r = 10;
|
|
1176
|
+
let s = 0, T = Number.MAX_VALUE;
|
|
1153
1177
|
for (let d = 0; d < this.offsetTowers.length; d++) {
|
|
1154
|
-
const
|
|
1155
|
-
|
|
1178
|
+
const i = n.Cartesian3.distance(e, this.offsetTowers[d]);
|
|
1179
|
+
i < T && (T = i, s = d);
|
|
1156
1180
|
}
|
|
1157
1181
|
const W = Math.max(0, s - r), L = Math.min(this.offsetTowers.length - 1, s + r);
|
|
1158
1182
|
return { start: W, end: L };
|
|
@@ -1161,15 +1185,56 @@ class Ti {
|
|
|
1161
1185
|
* 更新可见范围内的塔(加载新塔,可选择性卸载远处的塔)
|
|
1162
1186
|
*/
|
|
1163
1187
|
updateVisibleTowers() {
|
|
1164
|
-
const { start:
|
|
1165
|
-
this.loadTowersInRange(
|
|
1188
|
+
const { start: e, end: t } = this.getVisibleTowerIndices();
|
|
1189
|
+
this.loadTowersInRange(e, t), this.updateVisibleTrees();
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* 计算相机视野范围内的树木索引
|
|
1193
|
+
*/
|
|
1194
|
+
getVisibleTreeIndices() {
|
|
1195
|
+
var T;
|
|
1196
|
+
if (!this.viewer.camera || this.offsetTrees.length === 0)
|
|
1197
|
+
return [];
|
|
1198
|
+
const e = this.viewer.camera.position, t = ((T = this.viewer.camera.positionCartographic) == null ? void 0 : T.height) || 1e3;
|
|
1199
|
+
let r = Math.max(5e3, t * 2);
|
|
1200
|
+
t > 5e4 && (r = 1e5);
|
|
1201
|
+
const s = [];
|
|
1202
|
+
for (let W = 0; W < this.offsetTrees.length; W++) {
|
|
1203
|
+
const L = this.offsetTrees[W];
|
|
1204
|
+
n.Cartesian3.distance(e, L) <= r && s.push(W);
|
|
1205
|
+
}
|
|
1206
|
+
if (s.length === 0 && this.offsetTrees.length > 0) {
|
|
1207
|
+
const W = Math.min(20, this.offsetTrees.length);
|
|
1208
|
+
for (let L = 0; L < W; L++)
|
|
1209
|
+
s.push(L);
|
|
1210
|
+
}
|
|
1211
|
+
return s;
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* 更新可见的树木
|
|
1215
|
+
*/
|
|
1216
|
+
updateVisibleTrees() {
|
|
1217
|
+
const e = this.getVisibleTreeIndices(), t = [];
|
|
1218
|
+
this.loadedTreeIndices.forEach((r) => {
|
|
1219
|
+
e.includes(r) || t.push(r);
|
|
1220
|
+
}), t.forEach((r) => {
|
|
1221
|
+
const s = "tree-" + this.LineInfo.Trees[r].id;
|
|
1222
|
+
this.entityCollectiontree.removeById(s), this.loadedTreeIndices.delete(r);
|
|
1223
|
+
}), e.forEach((r) => {
|
|
1224
|
+
if (!this.loadedTreeIndices.has(r))
|
|
1225
|
+
if (r >= 0 && r < this.offsetTrees.length && r < this.LineInfo.Trees.length) {
|
|
1226
|
+
const s = this.offsetTrees[r], T = this.LineInfo.Trees[r];
|
|
1227
|
+
s && T ? (this.loadTreeAtIndex(r, s), this.loadedTreeIndices.add(r)) : console.warn(`跳过无效的动态加载树木数据,索引: ${r}`);
|
|
1228
|
+
} else
|
|
1229
|
+
console.warn(`动态加载树木索引超出范围: ${r}`);
|
|
1230
|
+
});
|
|
1166
1231
|
}
|
|
1167
1232
|
/**
|
|
1168
1233
|
* 初始化线路数据(不立即加载所有实体,避免性能问题)
|
|
1169
1234
|
*/
|
|
1170
1235
|
initializeLineData() {
|
|
1171
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.towers.forEach((
|
|
1172
|
-
this.offsetTowers.push(n.Cartesian3.fromDegrees(
|
|
1236
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.towers.forEach((e) => {
|
|
1237
|
+
this.offsetTowers.push(n.Cartesian3.fromDegrees(e.Longitude, e.Latitude, e.Altitude));
|
|
1173
1238
|
}), this.autoCalculateRollX && this.calculateTowerOrientations());
|
|
1174
1239
|
}
|
|
1175
1240
|
/**
|
|
@@ -1178,143 +1243,143 @@ class Ti {
|
|
|
1178
1243
|
* 耐张塔:垂直于转角的角平分线方向
|
|
1179
1244
|
*/
|
|
1180
1245
|
calculateTowerOrientations() {
|
|
1181
|
-
const
|
|
1182
|
-
if (
|
|
1183
|
-
if (
|
|
1246
|
+
const e = this.LineInfo.towers.length;
|
|
1247
|
+
if (e !== 0) {
|
|
1248
|
+
if (e === 1) {
|
|
1184
1249
|
this.LineInfo.towers[0].RollX === void 0 && (this.LineInfo.towers[0].RollX = 90);
|
|
1185
1250
|
return;
|
|
1186
1251
|
}
|
|
1187
|
-
for (let
|
|
1252
|
+
for (let t = 0; t < e; t++) {
|
|
1188
1253
|
let r = 0;
|
|
1189
|
-
if (this.LineInfo.towers[
|
|
1190
|
-
if (
|
|
1191
|
-
r = (
|
|
1192
|
-
else if (
|
|
1193
|
-
r = (
|
|
1254
|
+
if (this.LineInfo.towers[t].type === V.耐张塔)
|
|
1255
|
+
if (t === 0)
|
|
1256
|
+
r = (Ws(this.LineInfo.towers, t, 3) - 90 + 360) % 360;
|
|
1257
|
+
else if (t === e - 1)
|
|
1258
|
+
r = (Ws(this.LineInfo.towers, t, 3) - 90 + 360) % 360;
|
|
1194
1259
|
else {
|
|
1195
|
-
const s = this.LineInfo.towers[
|
|
1260
|
+
const s = this.LineInfo.towers[t - 1], T = this.LineInfo.towers[t], W = this.LineInfo.towers[t + 1], L = Q(
|
|
1196
1261
|
s.Longitude,
|
|
1197
1262
|
s.Latitude,
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
),
|
|
1201
|
-
|
|
1202
|
-
|
|
1263
|
+
T.Longitude,
|
|
1264
|
+
T.Latitude
|
|
1265
|
+
), A = Q(
|
|
1266
|
+
T.Longitude,
|
|
1267
|
+
T.Latitude,
|
|
1203
1268
|
W.Longitude,
|
|
1204
1269
|
W.Latitude
|
|
1205
1270
|
);
|
|
1206
|
-
r = (
|
|
1271
|
+
r = (tt(L, A) - 90 + 360) % 360;
|
|
1207
1272
|
}
|
|
1208
1273
|
else
|
|
1209
|
-
r = (
|
|
1210
|
-
this.LineInfo.towers[
|
|
1274
|
+
r = (Ws(this.LineInfo.towers, t, 2) - 90 + 360) % 360;
|
|
1275
|
+
this.LineInfo.towers[t].RollX = r;
|
|
1211
1276
|
}
|
|
1212
1277
|
}
|
|
1213
1278
|
}
|
|
1214
1279
|
/**
|
|
1215
1280
|
* 加载指定范围内的塔、绝缘子和相关导线(完整的动态加载实现)
|
|
1216
1281
|
*/
|
|
1217
|
-
loadTowersInRange(
|
|
1218
|
-
if (
|
|
1282
|
+
loadTowersInRange(e, t) {
|
|
1283
|
+
if (e < 0 || t >= this.LineInfo.towers.length)
|
|
1219
1284
|
return;
|
|
1220
|
-
const r = Math.max(0,
|
|
1221
|
-
for (let
|
|
1222
|
-
this.loadedTowerIndices.has(
|
|
1223
|
-
for (let
|
|
1224
|
-
const W = `${
|
|
1225
|
-
this.loadedWireSegments.has(W) || (this.loadWireSegmentBetweenTowers(
|
|
1285
|
+
const r = Math.max(0, e - 1), s = Math.min(this.LineInfo.towers.length - 1, t + 1);
|
|
1286
|
+
for (let T = r; T <= s; T++)
|
|
1287
|
+
this.loadedTowerIndices.has(T) || (this.loadTowerAndCollectWirePoints(T), this.loadedTowerIndices.add(T));
|
|
1288
|
+
for (let T = r; T < s; T++) {
|
|
1289
|
+
const W = `${T}-${T + 1}`;
|
|
1290
|
+
this.loadedWireSegments.has(W) || (this.loadWireSegmentBetweenTowers(T, T + 1), this.loadedWireSegments.add(W));
|
|
1226
1291
|
}
|
|
1227
1292
|
}
|
|
1228
1293
|
/**
|
|
1229
1294
|
* 加载单个塔和绝缘子,并收集导线挂点信息用于后续导线计算
|
|
1230
1295
|
*/
|
|
1231
|
-
loadTowerAndCollectWirePoints(
|
|
1232
|
-
const
|
|
1233
|
-
n.Math.toRadians(this.LineInfo.towers[
|
|
1234
|
-
n.Math.toRadians(this.LineInfo.towers[
|
|
1235
|
-
n.Math.toRadians(this.LineInfo.towers[
|
|
1296
|
+
loadTowerAndCollectWirePoints(e) {
|
|
1297
|
+
const t = this.offsetTowers[e], r = new n.HeadingPitchRoll(
|
|
1298
|
+
n.Math.toRadians(this.LineInfo.towers[e].RollX),
|
|
1299
|
+
n.Math.toRadians(this.LineInfo.towers[e].RollY),
|
|
1300
|
+
n.Math.toRadians(this.LineInfo.towers[e].RollZ)
|
|
1236
1301
|
);
|
|
1237
1302
|
this.addModelToCollection(
|
|
1238
|
-
this.LineInfo.towers[
|
|
1239
|
-
|
|
1240
|
-
this.LineInfo.towers[
|
|
1241
|
-
this.LineInfo.towers[
|
|
1303
|
+
this.LineInfo.towers[e].id,
|
|
1304
|
+
t,
|
|
1305
|
+
this.LineInfo.towers[e].name,
|
|
1306
|
+
this.LineInfo.towers[e].towerModelUri,
|
|
1242
1307
|
r,
|
|
1243
|
-
this.LineInfo.towers[
|
|
1244
|
-
[this.LineInfo.towers[
|
|
1308
|
+
this.LineInfo.towers[e].towerScale,
|
|
1309
|
+
[this.LineInfo.towers[e].DistanceDisplaymin, this.LineInfo.towers[e].DistanceDisplaymax]
|
|
1245
1310
|
);
|
|
1246
|
-
const s = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[
|
|
1311
|
+
const s = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[e].RollX), 0, 0), T = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[e].RollX), 0, 0);
|
|
1247
1312
|
let W = 0;
|
|
1248
1313
|
const L = [];
|
|
1249
|
-
this.LineInfo.towers[
|
|
1314
|
+
this.LineInfo.towers[e].Insulators.forEach((A) => {
|
|
1250
1315
|
const d = B(
|
|
1251
|
-
|
|
1316
|
+
t,
|
|
1252
1317
|
new n.Cartesian3(
|
|
1253
|
-
this.LineInfo.towers[
|
|
1254
|
-
this.LineInfo.towers[
|
|
1255
|
-
this.LineInfo.towers[
|
|
1318
|
+
this.LineInfo.towers[e].towerPoint[W].X,
|
|
1319
|
+
this.LineInfo.towers[e].towerPoint[W].Y,
|
|
1320
|
+
this.LineInfo.towers[e].towerPoint[W].Z
|
|
1256
1321
|
),
|
|
1257
|
-
this.LineInfo.towers[
|
|
1322
|
+
this.LineInfo.towers[e].type === V.耐张塔 ? T : s
|
|
1258
1323
|
);
|
|
1259
|
-
let
|
|
1260
|
-
if (this.autoCalculateRollX ? l = this.LineInfo.towers[
|
|
1261
|
-
switch (
|
|
1324
|
+
let i, l;
|
|
1325
|
+
if (this.autoCalculateRollX ? l = this.LineInfo.towers[e].RollX : l = A.RollX, this.LineInfo.towers[e].type === V.耐张塔)
|
|
1326
|
+
switch (A.type) {
|
|
1262
1327
|
case D.耐张串:
|
|
1263
|
-
|
|
1328
|
+
i = A.WairFX === "进" ? new n.HeadingPitchRoll(n.Math.toRadians(l), n.Math.toRadians(-180), n.Math.toRadians(180)) : new n.HeadingPitchRoll(n.Math.toRadians(l), n.Math.toRadians(0), n.Math.toRadians(0));
|
|
1264
1329
|
break;
|
|
1265
1330
|
case D.跳线串:
|
|
1266
|
-
|
|
1331
|
+
i = new n.HeadingPitchRoll(
|
|
1267
1332
|
n.Math.toRadians(l),
|
|
1268
|
-
n.Math.toRadians(
|
|
1269
|
-
n.Math.toRadians(
|
|
1333
|
+
n.Math.toRadians(A.RollY),
|
|
1334
|
+
n.Math.toRadians(A.RollZ)
|
|
1270
1335
|
);
|
|
1271
1336
|
break;
|
|
1272
1337
|
case D.地线串:
|
|
1273
|
-
|
|
1338
|
+
i = new n.HeadingPitchRoll(
|
|
1274
1339
|
n.Math.toRadians(l),
|
|
1275
|
-
n.Math.toRadians(
|
|
1276
|
-
n.Math.toRadians(
|
|
1340
|
+
n.Math.toRadians(A.RollY),
|
|
1341
|
+
n.Math.toRadians(A.RollZ)
|
|
1277
1342
|
);
|
|
1278
1343
|
break;
|
|
1279
1344
|
default:
|
|
1280
|
-
|
|
1345
|
+
i = new n.HeadingPitchRoll(
|
|
1281
1346
|
n.Math.toRadians(l),
|
|
1282
|
-
n.Math.toRadians(
|
|
1283
|
-
n.Math.toRadians(
|
|
1347
|
+
n.Math.toRadians(A.RollY),
|
|
1348
|
+
n.Math.toRadians(A.RollZ)
|
|
1284
1349
|
);
|
|
1285
1350
|
}
|
|
1286
1351
|
else
|
|
1287
|
-
|
|
1352
|
+
i = new n.HeadingPitchRoll(
|
|
1288
1353
|
n.Math.toRadians(l),
|
|
1289
|
-
n.Math.toRadians(
|
|
1290
|
-
n.Math.toRadians(
|
|
1354
|
+
n.Math.toRadians(A.RollY),
|
|
1355
|
+
n.Math.toRadians(A.RollZ)
|
|
1291
1356
|
);
|
|
1292
1357
|
this.addModelToCollection(
|
|
1293
|
-
|
|
1358
|
+
A.id,
|
|
1294
1359
|
d,
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
[
|
|
1360
|
+
A.name,
|
|
1361
|
+
A.InsulatorModelUri,
|
|
1362
|
+
i,
|
|
1363
|
+
A.InsulatorScale,
|
|
1364
|
+
[A.DistanceDisplaymin, A.DistanceDisplaymax]
|
|
1300
1365
|
);
|
|
1301
1366
|
const u = {
|
|
1302
|
-
insulator:
|
|
1367
|
+
insulator: A,
|
|
1303
1368
|
insulatorIndex: W,
|
|
1304
|
-
position:
|
|
1369
|
+
position: t,
|
|
1305
1370
|
lineroll: s,
|
|
1306
1371
|
WairPoint: []
|
|
1307
1372
|
};
|
|
1308
|
-
|
|
1309
|
-
|
|
1373
|
+
A.InsulatorPoint.forEach((C) => {
|
|
1374
|
+
C.Y = C.Y + this.LineInfo.towers[e].towerPoint[W].Y, C.Z = C.Z + this.LineInfo.towers[e].towerPoint[W].Z, u.WairPoint.push(B(t, new n.Cartesian3(C.X, C.Y, C.Z), s));
|
|
1310
1375
|
}), L.push(u), W++;
|
|
1311
|
-
}), this.towerWirePoints.set(
|
|
1376
|
+
}), this.towerWirePoints.set(e, L);
|
|
1312
1377
|
}
|
|
1313
1378
|
/**
|
|
1314
1379
|
* 加载两个相邻塔之间的导线段
|
|
1315
1380
|
*/
|
|
1316
|
-
loadWireSegmentBetweenTowers(
|
|
1317
|
-
const r = this.towerWirePoints.get(
|
|
1381
|
+
loadWireSegmentBetweenTowers(e, t) {
|
|
1382
|
+
const r = this.towerWirePoints.get(e), s = this.towerWirePoints.get(t);
|
|
1318
1383
|
!r || !s || this.resetWireArraysForTwoTowers();
|
|
1319
1384
|
}
|
|
1320
1385
|
/**
|
|
@@ -1333,23 +1398,23 @@ class Ti {
|
|
|
1333
1398
|
* 只加载导线,不加载杆塔和绝缘子(用于动态加载模式)
|
|
1334
1399
|
*/
|
|
1335
1400
|
loadAllWiresOnly() {
|
|
1336
|
-
const
|
|
1337
|
-
this.entityCollection2 =
|
|
1401
|
+
const e = new n.EntityCollection(), t = this.entityCollection2;
|
|
1402
|
+
this.entityCollection2 = e, this.loadAllTowersAtOnce();
|
|
1338
1403
|
const r = [];
|
|
1339
|
-
|
|
1340
|
-
var
|
|
1341
|
-
s.name && (s.name.includes("导线") || s.name.includes("daoxian") || (
|
|
1342
|
-
}), this.entityCollection2 =
|
|
1404
|
+
e.values.forEach((s) => {
|
|
1405
|
+
var T;
|
|
1406
|
+
s.name && (s.name.includes("导线") || s.name.includes("daoxian") || (T = s.id) != null && T.toString().includes("daoxian")) && r.push(s);
|
|
1407
|
+
}), this.entityCollection2 = t, r.forEach((s) => {
|
|
1343
1408
|
this.entityCollection2.add(s);
|
|
1344
|
-
}),
|
|
1409
|
+
}), e.removeAll();
|
|
1345
1410
|
}
|
|
1346
1411
|
/**
|
|
1347
1412
|
* 一次性加载所有塔(兼容模式,大数据量时会卡顿)
|
|
1348
1413
|
*/
|
|
1349
1414
|
loadAllTowersAtOnce() {
|
|
1350
|
-
let
|
|
1415
|
+
let e = 0, t = 0;
|
|
1351
1416
|
this.offsetTowers.forEach((r, s) => {
|
|
1352
|
-
const
|
|
1417
|
+
const T = new n.HeadingPitchRoll(
|
|
1353
1418
|
n.Math.toRadians(this.LineInfo.towers[s].RollX),
|
|
1354
1419
|
n.Math.toRadians(this.LineInfo.towers[s].RollY),
|
|
1355
1420
|
n.Math.toRadians(this.LineInfo.towers[s].RollZ)
|
|
@@ -1359,1067 +1424,1104 @@ class Ti {
|
|
|
1359
1424
|
r,
|
|
1360
1425
|
this.LineInfo.towers[s].name,
|
|
1361
1426
|
this.LineInfo.towers[s].towerModelUri,
|
|
1362
|
-
|
|
1427
|
+
T,
|
|
1363
1428
|
this.LineInfo.towers[s].towerScale,
|
|
1364
1429
|
[this.LineInfo.towers[s].DistanceDisplaymin, this.LineInfo.towers[s].DistanceDisplaymax]
|
|
1365
1430
|
);
|
|
1366
1431
|
const W = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0), L = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0);
|
|
1367
|
-
let
|
|
1368
|
-
if (this.LineInfo.towers[s].Insulators.forEach((
|
|
1432
|
+
let A = 0;
|
|
1433
|
+
if (this.LineInfo.towers[s].Insulators.forEach((i) => {
|
|
1369
1434
|
const l = B(
|
|
1370
1435
|
r,
|
|
1371
1436
|
new n.Cartesian3(
|
|
1372
|
-
this.LineInfo.towers[s].towerPoint[
|
|
1373
|
-
this.LineInfo.towers[s].towerPoint[
|
|
1374
|
-
this.LineInfo.towers[s].towerPoint[
|
|
1437
|
+
this.LineInfo.towers[s].towerPoint[A].X,
|
|
1438
|
+
this.LineInfo.towers[s].towerPoint[A].Y,
|
|
1439
|
+
this.LineInfo.towers[s].towerPoint[A].Z
|
|
1375
1440
|
),
|
|
1376
|
-
this.LineInfo.towers[s].type ===
|
|
1441
|
+
this.LineInfo.towers[s].type === V.耐张塔 ? L : W
|
|
1377
1442
|
);
|
|
1378
|
-
let u,
|
|
1379
|
-
if (this.autoCalculateRollX ?
|
|
1380
|
-
switch (
|
|
1443
|
+
let u, C;
|
|
1444
|
+
if (this.autoCalculateRollX ? C = this.LineInfo.towers[s].RollX : C = i.RollX, this.LineInfo.towers[s].type === V.耐张塔)
|
|
1445
|
+
switch (i.type) {
|
|
1381
1446
|
case D.耐张串:
|
|
1382
|
-
u =
|
|
1447
|
+
u = i.WairFX === "进" ? new n.HeadingPitchRoll(n.Math.toRadians(C), n.Math.toRadians(-180), n.Math.toRadians(180)) : new n.HeadingPitchRoll(n.Math.toRadians(C), n.Math.toRadians(0), n.Math.toRadians(0));
|
|
1383
1448
|
break;
|
|
1384
1449
|
case D.跳线串:
|
|
1385
1450
|
u = new n.HeadingPitchRoll(
|
|
1386
|
-
n.Math.toRadians(
|
|
1387
|
-
n.Math.toRadians(
|
|
1388
|
-
n.Math.toRadians(
|
|
1451
|
+
n.Math.toRadians(C),
|
|
1452
|
+
n.Math.toRadians(i.RollY),
|
|
1453
|
+
n.Math.toRadians(i.RollZ)
|
|
1389
1454
|
);
|
|
1390
1455
|
break;
|
|
1391
1456
|
case D.地线串:
|
|
1392
1457
|
u = new n.HeadingPitchRoll(
|
|
1393
|
-
n.Math.toRadians(
|
|
1394
|
-
n.Math.toRadians(
|
|
1395
|
-
n.Math.toRadians(
|
|
1458
|
+
n.Math.toRadians(C),
|
|
1459
|
+
n.Math.toRadians(i.RollY),
|
|
1460
|
+
n.Math.toRadians(i.RollZ)
|
|
1396
1461
|
);
|
|
1397
1462
|
break;
|
|
1398
1463
|
default:
|
|
1399
1464
|
u = new n.HeadingPitchRoll(
|
|
1400
|
-
n.Math.toRadians(
|
|
1401
|
-
n.Math.toRadians(
|
|
1402
|
-
n.Math.toRadians(
|
|
1465
|
+
n.Math.toRadians(C),
|
|
1466
|
+
n.Math.toRadians(i.RollY),
|
|
1467
|
+
n.Math.toRadians(i.RollZ)
|
|
1403
1468
|
);
|
|
1404
1469
|
}
|
|
1405
1470
|
else
|
|
1406
1471
|
u = new n.HeadingPitchRoll(
|
|
1407
|
-
n.Math.toRadians(
|
|
1408
|
-
n.Math.toRadians(
|
|
1409
|
-
n.Math.toRadians(
|
|
1472
|
+
n.Math.toRadians(C),
|
|
1473
|
+
n.Math.toRadians(i.RollY),
|
|
1474
|
+
n.Math.toRadians(i.RollZ)
|
|
1410
1475
|
);
|
|
1411
1476
|
this.addModelToCollection(
|
|
1412
|
-
|
|
1477
|
+
i.id,
|
|
1413
1478
|
l,
|
|
1414
|
-
|
|
1415
|
-
|
|
1479
|
+
i.name,
|
|
1480
|
+
i.InsulatorModelUri,
|
|
1416
1481
|
u,
|
|
1417
|
-
|
|
1418
|
-
[
|
|
1482
|
+
i.InsulatorScale,
|
|
1483
|
+
[i.DistanceDisplaymin, i.DistanceDisplaymax]
|
|
1419
1484
|
);
|
|
1420
|
-
const
|
|
1421
|
-
switch (
|
|
1422
|
-
c.Y = c.Y + this.LineInfo.towers[s].towerPoint[
|
|
1423
|
-
}),
|
|
1424
|
-
case
|
|
1485
|
+
const o = [];
|
|
1486
|
+
switch (i.InsulatorPoint.forEach((c) => {
|
|
1487
|
+
c.Y = c.Y + this.LineInfo.towers[s].towerPoint[A].Y, c.Z = c.Z + this.LineInfo.towers[s].towerPoint[A].Z, o.push(B(r, new n.Cartesian3(c.X, c.Y, c.Z), W));
|
|
1488
|
+
}), i.linenum) {
|
|
1489
|
+
case hs.回路一:
|
|
1425
1490
|
if (this.LineInfo.ISPhaseSequence)
|
|
1426
|
-
if (this.LineInfo.towers[s].type ==
|
|
1427
|
-
switch (
|
|
1428
|
-
case
|
|
1429
|
-
if (
|
|
1430
|
-
if (
|
|
1491
|
+
if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1492
|
+
switch (i.PhaseSequence) {
|
|
1493
|
+
case G.A相:
|
|
1494
|
+
if (i.type == D.耐张串)
|
|
1495
|
+
if (i.WairFX == "进")
|
|
1431
1496
|
switch (this.LineInfo.Wairnum) {
|
|
1432
|
-
case
|
|
1433
|
-
this.offsetWires11.push(
|
|
1497
|
+
case p.单分裂:
|
|
1498
|
+
this.offsetWires11.push(o[0]), this.ToffsetWires1A1.push(o[0]);
|
|
1434
1499
|
break;
|
|
1435
|
-
case
|
|
1436
|
-
this.offsetWires11.push(
|
|
1500
|
+
case p.双分裂:
|
|
1501
|
+
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]);
|
|
1437
1502
|
break;
|
|
1438
|
-
case
|
|
1439
|
-
this.offsetWires11.push(
|
|
1503
|
+
case p.四分裂:
|
|
1504
|
+
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.offsetWires11.push(o[2]), this.offsetWires11.push(o[3]), this.ToffsetWires1A1.push(o[4]), this.ToffsetWires1A1.push(o[5]), this.ToffsetWires1A1.push(o[6]), this.ToffsetWires1A1.push(o[7]);
|
|
1440
1505
|
break;
|
|
1441
|
-
case
|
|
1442
|
-
this.offsetWires11.push(
|
|
1506
|
+
case p.六分裂:
|
|
1507
|
+
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.offsetWires11.push(o[2]), this.offsetWires11.push(o[3]), this.offsetWires11.push(o[4]), this.offsetWires11.push(o[5]), this.ToffsetWires1A1.push(o[6]), this.ToffsetWires1A1.push(o[7]), this.ToffsetWires1A1.push(o[8]), this.ToffsetWires1A1.push(o[9]), this.ToffsetWires1A1.push(o[10]), this.ToffsetWires1A1.push(o[11]);
|
|
1443
1508
|
break;
|
|
1444
|
-
case
|
|
1445
|
-
this.offsetWires11.push(
|
|
1509
|
+
case p.八分裂:
|
|
1510
|
+
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.offsetWires11.push(o[2]), this.offsetWires11.push(o[3]), this.offsetWires11.push(o[4]), this.offsetWires11.push(o[5]), this.offsetWires11.push(o[6]), this.offsetWires11.push(o[7]), this.ToffsetWires1A1.push(o[8]), this.ToffsetWires1A1.push(o[9]), this.ToffsetWires1A1.push(o[10]), this.ToffsetWires1A1.push(o[11]), this.ToffsetWires1A1.push(o[12]), this.ToffsetWires1A1.push(o[13]), this.ToffsetWires1A1.push(o[14]), this.ToffsetWires1A1.push(o[15]);
|
|
1446
1511
|
break;
|
|
1447
1512
|
}
|
|
1448
1513
|
else
|
|
1449
1514
|
switch (this.LineInfo.Wairnum) {
|
|
1450
|
-
case
|
|
1451
|
-
const c = B(r, new n.Cartesian3(
|
|
1515
|
+
case p.单分裂:
|
|
1516
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1452
1517
|
this.offsetWires11.push(c), this.ToffsetWires1A2.push(c);
|
|
1453
1518
|
break;
|
|
1454
|
-
case
|
|
1455
|
-
const m = B(r, new n.Cartesian3(
|
|
1519
|
+
case p.双分裂:
|
|
1520
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1456
1521
|
this.offsetWires11.push(m), this.offsetWires11.push(b), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(b);
|
|
1457
1522
|
break;
|
|
1458
|
-
case
|
|
1459
|
-
const I = B(r, new n.Cartesian3(
|
|
1523
|
+
case p.四分裂:
|
|
1524
|
+
const I = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1460
1525
|
this.offsetWires11.push(I), this.offsetWires11.push(P), this.offsetWires11.push(g), this.offsetWires11.push(y), this.ToffsetWires1A2.push(I), this.ToffsetWires1A2.push(P), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(y);
|
|
1461
1526
|
break;
|
|
1462
|
-
case
|
|
1463
|
-
const _ = B(r, new n.Cartesian3(
|
|
1464
|
-
this.offsetWires11.push(_), this.offsetWires11.push(v), this.offsetWires11.push(
|
|
1527
|
+
case p.六分裂:
|
|
1528
|
+
const _ = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1529
|
+
this.offsetWires11.push(_), this.offsetWires11.push(v), this.offsetWires11.push(S), this.offsetWires11.push(M), this.offsetWires11.push(R), this.offsetWires11.push(E), this.ToffsetWires1A2.push(_), this.ToffsetWires1A2.push(v), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(R), this.ToffsetWires1A2.push(E);
|
|
1465
1530
|
break;
|
|
1466
|
-
case
|
|
1467
|
-
const Y = B(r, new n.Cartesian3(
|
|
1468
|
-
this.offsetWires11.push(Y), this.offsetWires11.push(
|
|
1531
|
+
case p.八分裂:
|
|
1532
|
+
const Y = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1533
|
+
this.offsetWires11.push(Y), this.offsetWires11.push(Z), this.offsetWires11.push(F), this.offsetWires11.push(k), this.offsetWires11.push(X), this.offsetWires11.push(H), this.offsetWires11.push(O), this.offsetWires11.push($), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(H), this.ToffsetWires1A2.push(O), this.ToffsetWires1A2.push($);
|
|
1469
1534
|
break;
|
|
1470
1535
|
}
|
|
1471
|
-
else if (
|
|
1536
|
+
else if (i.type == D.跳线串)
|
|
1472
1537
|
switch (this.LineInfo.Wairnum) {
|
|
1473
|
-
case
|
|
1474
|
-
this.ToffsetWires1A1.push(
|
|
1538
|
+
case p.单分裂:
|
|
1539
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A2.push(o[1]);
|
|
1475
1540
|
break;
|
|
1476
|
-
case
|
|
1477
|
-
this.ToffsetWires1A1.push(
|
|
1541
|
+
case p.双分裂:
|
|
1542
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A2.push(o[2]), this.ToffsetWires1A2.push(o[3]);
|
|
1478
1543
|
break;
|
|
1479
|
-
case
|
|
1480
|
-
this.ToffsetWires1A1.push(
|
|
1544
|
+
case p.四分裂:
|
|
1545
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]), this.ToffsetWires1A2.push(o[4]), this.ToffsetWires1A2.push(o[5]), this.ToffsetWires1A2.push(o[6]), this.ToffsetWires1A2.push(o[7]);
|
|
1481
1546
|
break;
|
|
1482
|
-
case
|
|
1483
|
-
this.ToffsetWires1A1.push(
|
|
1547
|
+
case p.六分裂:
|
|
1548
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]), this.ToffsetWires1A1.push(o[4]), this.ToffsetWires1A1.push(o[5]), this.ToffsetWires1A2.push(o[6]), this.ToffsetWires1A2.push(o[7]), this.ToffsetWires1A2.push(o[8]), this.ToffsetWires1A2.push(o[9]), this.ToffsetWires1A2.push(o[10]), this.ToffsetWires1A2.push(o[11]);
|
|
1484
1549
|
break;
|
|
1485
|
-
case
|
|
1486
|
-
this.ToffsetWires1A1.push(
|
|
1550
|
+
case p.八分裂:
|
|
1551
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]), this.ToffsetWires1A1.push(o[4]), this.ToffsetWires1A1.push(o[5]), this.ToffsetWires1A1.push(o[6]), this.ToffsetWires1A1.push(o[7]), this.ToffsetWires1A2.push(o[8]), this.ToffsetWires1A2.push(o[9]), this.ToffsetWires1A2.push(o[10]), this.ToffsetWires1A2.push(o[11]), this.ToffsetWires1A2.push(o[12]), this.ToffsetWires1A2.push(o[13]), this.ToffsetWires1A2.push(o[14]), this.ToffsetWires1A2.push(o[15]);
|
|
1487
1552
|
break;
|
|
1488
1553
|
}
|
|
1489
1554
|
break;
|
|
1490
|
-
case
|
|
1491
|
-
if (
|
|
1492
|
-
if (
|
|
1555
|
+
case G.B相:
|
|
1556
|
+
if (i.type == D.耐张串)
|
|
1557
|
+
if (i.WairFX == "进")
|
|
1493
1558
|
switch (this.LineInfo.Wairnum) {
|
|
1494
|
-
case
|
|
1495
|
-
this.offsetWires12.push(
|
|
1559
|
+
case p.单分裂:
|
|
1560
|
+
this.offsetWires12.push(o[0]), this.ToffsetWires1B1.push(o[1]);
|
|
1496
1561
|
break;
|
|
1497
|
-
case
|
|
1498
|
-
this.offsetWires12.push(
|
|
1562
|
+
case p.双分裂:
|
|
1563
|
+
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]);
|
|
1499
1564
|
break;
|
|
1500
|
-
case
|
|
1501
|
-
this.offsetWires12.push(
|
|
1565
|
+
case p.四分裂:
|
|
1566
|
+
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.offsetWires12.push(o[2]), this.offsetWires12.push(o[3]), this.ToffsetWires1B1.push(o[4]), this.ToffsetWires1B1.push(o[5]), this.ToffsetWires1B1.push(o[6]), this.ToffsetWires1B1.push(o[7]);
|
|
1502
1567
|
break;
|
|
1503
|
-
case
|
|
1504
|
-
this.offsetWires12.push(
|
|
1568
|
+
case p.六分裂:
|
|
1569
|
+
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.offsetWires12.push(o[2]), this.offsetWires12.push(o[3]), this.offsetWires12.push(o[4]), this.offsetWires12.push(o[5]), this.ToffsetWires1B1.push(o[6]), this.ToffsetWires1B1.push(o[7]), this.ToffsetWires1B1.push(o[8]), this.ToffsetWires1B1.push(o[9]), this.ToffsetWires1B1.push(o[10]), this.ToffsetWires1B1.push(o[11]);
|
|
1505
1570
|
break;
|
|
1506
|
-
case
|
|
1507
|
-
this.offsetWires12.push(
|
|
1571
|
+
case p.八分裂:
|
|
1572
|
+
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.offsetWires12.push(o[2]), this.offsetWires12.push(o[3]), this.offsetWires12.push(o[4]), this.offsetWires12.push(o[5]), this.offsetWires12.push(o[6]), this.offsetWires12.push(o[7]), this.ToffsetWires1B1.push(o[8]), this.ToffsetWires1B1.push(o[9]), this.ToffsetWires1B1.push(o[10]), this.ToffsetWires1B1.push(o[11]), this.ToffsetWires1B1.push(o[12]), this.ToffsetWires1B1.push(o[13]), this.ToffsetWires1B1.push(o[14]), this.ToffsetWires1B1.push(o[15]);
|
|
1508
1573
|
break;
|
|
1509
1574
|
}
|
|
1510
1575
|
else
|
|
1511
1576
|
switch (this.LineInfo.Wairnum) {
|
|
1512
|
-
case
|
|
1513
|
-
const c = B(r, new n.Cartesian3(
|
|
1577
|
+
case p.单分裂:
|
|
1578
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1514
1579
|
this.offsetWires12.push(c), this.ToffsetWires1B2.push(c);
|
|
1515
1580
|
break;
|
|
1516
|
-
case
|
|
1517
|
-
const m = B(r, new n.Cartesian3(
|
|
1581
|
+
case p.双分裂:
|
|
1582
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1518
1583
|
this.offsetWires12.push(m), this.offsetWires12.push(b), this.ToffsetWires1B2.push(m), this.ToffsetWires1B2.push(b);
|
|
1519
1584
|
break;
|
|
1520
|
-
case
|
|
1521
|
-
const I = B(r, new n.Cartesian3(
|
|
1585
|
+
case p.四分裂:
|
|
1586
|
+
const I = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1522
1587
|
this.offsetWires12.push(I), this.offsetWires12.push(P), this.offsetWires12.push(g), this.offsetWires12.push(y), this.ToffsetWires1B2.push(I), this.ToffsetWires1B2.push(P), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(y);
|
|
1523
1588
|
break;
|
|
1524
|
-
case
|
|
1525
|
-
const _ = B(r, new n.Cartesian3(
|
|
1526
|
-
this.offsetWires12.push(_), this.offsetWires12.push(v), this.offsetWires12.push(
|
|
1589
|
+
case p.六分裂:
|
|
1590
|
+
const _ = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1591
|
+
this.offsetWires12.push(_), this.offsetWires12.push(v), this.offsetWires12.push(S), this.offsetWires12.push(M), this.offsetWires12.push(R), this.offsetWires12.push(E), this.ToffsetWires1B2.push(_), this.ToffsetWires1B2.push(v), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(R), this.ToffsetWires1B2.push(E);
|
|
1527
1592
|
break;
|
|
1528
|
-
case
|
|
1529
|
-
const Y = B(r, new n.Cartesian3(
|
|
1530
|
-
this.offsetWires12.push(Y), this.offsetWires12.push(
|
|
1593
|
+
case p.八分裂:
|
|
1594
|
+
const Y = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1595
|
+
this.offsetWires12.push(Y), this.offsetWires12.push(Z), this.offsetWires12.push(F), this.offsetWires12.push(k), this.offsetWires12.push(X), this.offsetWires12.push(H), this.offsetWires12.push(O), this.offsetWires12.push($), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(H), this.ToffsetWires1B2.push(O), this.ToffsetWires1B2.push($);
|
|
1531
1596
|
break;
|
|
1532
1597
|
}
|
|
1533
|
-
else if (
|
|
1598
|
+
else if (i.type == D.跳线串)
|
|
1534
1599
|
switch (this.LineInfo.Wairnum) {
|
|
1535
|
-
case
|
|
1536
|
-
this.ToffsetWires1B1.push(
|
|
1600
|
+
case p.单分裂:
|
|
1601
|
+
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B2.push(o[0]);
|
|
1537
1602
|
break;
|
|
1538
|
-
case
|
|
1539
|
-
this.ToffsetWires1B1.push(
|
|
1603
|
+
case p.双分裂:
|
|
1604
|
+
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B2.push(o[2]), this.ToffsetWires1B2.push(o[3]);
|
|
1540
1605
|
break;
|
|
1541
|
-
case
|
|
1542
|
-
this.ToffsetWires1B1.push(
|
|
1606
|
+
case p.四分裂:
|
|
1607
|
+
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]), this.ToffsetWires1B2.push(o[4]), this.ToffsetWires1B2.push(o[5]), this.ToffsetWires1B2.push(o[6]), this.ToffsetWires1B2.push(o[7]);
|
|
1543
1608
|
break;
|
|
1544
|
-
case
|
|
1545
|
-
this.ToffsetWires1B1.push(
|
|
1609
|
+
case p.六分裂:
|
|
1610
|
+
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]), this.ToffsetWires1B1.push(o[4]), this.ToffsetWires1B1.push(o[5]), this.ToffsetWires1B2.push(o[6]), this.ToffsetWires1B2.push(o[7]), this.ToffsetWires1B2.push(o[8]), this.ToffsetWires1B2.push(o[9]), this.ToffsetWires1B2.push(o[10]), this.ToffsetWires1B2.push(o[11]);
|
|
1546
1611
|
break;
|
|
1547
|
-
case
|
|
1548
|
-
this.ToffsetWires1B1.push(
|
|
1612
|
+
case p.八分裂:
|
|
1613
|
+
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]), this.ToffsetWires1B1.push(o[4]), this.ToffsetWires1B1.push(o[5]), this.ToffsetWires1B1.push(o[6]), this.ToffsetWires1B1.push(o[7]), this.ToffsetWires1B2.push(o[8]), this.ToffsetWires1B2.push(o[9]), this.ToffsetWires1B2.push(o[10]), this.ToffsetWires1B2.push(o[11]), this.ToffsetWires1B2.push(o[12]), this.ToffsetWires1B2.push(o[13]), this.ToffsetWires1B2.push(o[14]), this.ToffsetWires1B2.push(o[15]);
|
|
1549
1614
|
break;
|
|
1550
1615
|
}
|
|
1551
1616
|
break;
|
|
1552
|
-
case
|
|
1553
|
-
if (
|
|
1554
|
-
if (
|
|
1617
|
+
case G.C相:
|
|
1618
|
+
if (i.type == D.耐张串)
|
|
1619
|
+
if (i.WairFX == "进")
|
|
1555
1620
|
switch (this.LineInfo.Wairnum) {
|
|
1556
|
-
case
|
|
1557
|
-
this.offsetWires13.push(
|
|
1621
|
+
case p.单分裂:
|
|
1622
|
+
this.offsetWires13.push(o[0]), this.ToffsetWires1C1.push(o[1]);
|
|
1558
1623
|
break;
|
|
1559
|
-
case
|
|
1560
|
-
this.offsetWires13.push(
|
|
1624
|
+
case p.双分裂:
|
|
1625
|
+
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]);
|
|
1561
1626
|
break;
|
|
1562
|
-
case
|
|
1563
|
-
this.offsetWires13.push(
|
|
1627
|
+
case p.四分裂:
|
|
1628
|
+
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.offsetWires13.push(o[2]), this.offsetWires13.push(o[3]), this.ToffsetWires1C1.push(o[4]), this.ToffsetWires1C1.push(o[5]), this.ToffsetWires1C1.push(o[6]), this.ToffsetWires1C1.push(o[7]);
|
|
1564
1629
|
break;
|
|
1565
|
-
case
|
|
1566
|
-
this.offsetWires13.push(
|
|
1630
|
+
case p.六分裂:
|
|
1631
|
+
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.offsetWires13.push(o[2]), this.offsetWires13.push(o[3]), this.offsetWires13.push(o[4]), this.offsetWires13.push(o[5]), this.ToffsetWires1C1.push(o[6]), this.ToffsetWires1C1.push(o[7]), this.ToffsetWires1C1.push(o[8]), this.ToffsetWires1C1.push(o[9]), this.ToffsetWires1C1.push(o[10]), this.ToffsetWires1C1.push(o[11]);
|
|
1567
1632
|
break;
|
|
1568
|
-
case
|
|
1569
|
-
this.offsetWires13.push(
|
|
1633
|
+
case p.八分裂:
|
|
1634
|
+
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.offsetWires13.push(o[2]), this.offsetWires13.push(o[3]), this.offsetWires13.push(o[4]), this.offsetWires13.push(o[5]), this.offsetWires13.push(o[6]), this.offsetWires13.push(o[7]), this.ToffsetWires1C1.push(o[8]), this.ToffsetWires1C1.push(o[9]), this.ToffsetWires1C1.push(o[10]), this.ToffsetWires1C1.push(o[11]), this.ToffsetWires1C1.push(o[12]), this.ToffsetWires1C1.push(o[13]), this.ToffsetWires1C1.push(o[14]), this.ToffsetWires1C1.push(o[15]);
|
|
1570
1635
|
break;
|
|
1571
1636
|
}
|
|
1572
1637
|
else
|
|
1573
1638
|
switch (this.LineInfo.Wairnum) {
|
|
1574
|
-
case
|
|
1575
|
-
const c = B(r, new n.Cartesian3(
|
|
1639
|
+
case p.单分裂:
|
|
1640
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1576
1641
|
this.offsetWires13.push(c), this.ToffsetWires1C2.push(c);
|
|
1577
1642
|
break;
|
|
1578
|
-
case
|
|
1579
|
-
const m = B(r, new n.Cartesian3(
|
|
1643
|
+
case p.双分裂:
|
|
1644
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1580
1645
|
this.offsetWires13.push(m), this.offsetWires13.push(b), this.ToffsetWires1C2.push(m), this.ToffsetWires1C2.push(b);
|
|
1581
1646
|
break;
|
|
1582
|
-
case
|
|
1583
|
-
const I = B(r, new n.Cartesian3(
|
|
1647
|
+
case p.四分裂:
|
|
1648
|
+
const I = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1584
1649
|
this.offsetWires13.push(I), this.offsetWires13.push(P), this.offsetWires13.push(g), this.offsetWires13.push(y), this.ToffsetWires1C2.push(I), this.ToffsetWires1C2.push(P), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(y);
|
|
1585
1650
|
break;
|
|
1586
|
-
case
|
|
1587
|
-
const _ = B(r, new n.Cartesian3(
|
|
1588
|
-
this.offsetWires13.push(_), this.offsetWires13.push(v), this.offsetWires13.push(
|
|
1651
|
+
case p.六分裂:
|
|
1652
|
+
const _ = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1653
|
+
this.offsetWires13.push(_), this.offsetWires13.push(v), this.offsetWires13.push(S), this.offsetWires13.push(M), this.offsetWires13.push(R), this.offsetWires13.push(E), this.ToffsetWires1C2.push(_), this.ToffsetWires1C2.push(v), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(R), this.ToffsetWires1C2.push(E);
|
|
1589
1654
|
break;
|
|
1590
|
-
case
|
|
1591
|
-
const Y = B(r, new n.Cartesian3(
|
|
1592
|
-
this.offsetWires13.push(Y), this.offsetWires13.push(
|
|
1655
|
+
case p.八分裂:
|
|
1656
|
+
const Y = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1657
|
+
this.offsetWires13.push(Y), this.offsetWires13.push(Z), this.offsetWires13.push(F), this.offsetWires13.push(k), this.offsetWires13.push(X), this.offsetWires13.push(H), this.offsetWires13.push(O), this.offsetWires13.push($), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(H), this.ToffsetWires1C2.push(O), this.ToffsetWires1C2.push($);
|
|
1593
1658
|
break;
|
|
1594
1659
|
}
|
|
1595
|
-
else if (
|
|
1660
|
+
else if (i.type == D.跳线串)
|
|
1596
1661
|
switch (this.LineInfo.Wairnum) {
|
|
1597
|
-
case
|
|
1598
|
-
this.ToffsetWires1C1.push(
|
|
1662
|
+
case p.单分裂:
|
|
1663
|
+
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C2.push(o[0]);
|
|
1599
1664
|
break;
|
|
1600
|
-
case
|
|
1601
|
-
this.ToffsetWires1C1.push(
|
|
1665
|
+
case p.双分裂:
|
|
1666
|
+
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C2.push(o[2]), this.ToffsetWires1C2.push(o[3]);
|
|
1602
1667
|
break;
|
|
1603
|
-
case
|
|
1604
|
-
this.ToffsetWires1C1.push(
|
|
1668
|
+
case p.四分裂:
|
|
1669
|
+
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]), this.ToffsetWires1C2.push(o[4]), this.ToffsetWires1C2.push(o[5]), this.ToffsetWires1C2.push(o[6]), this.ToffsetWires1C2.push(o[7]);
|
|
1605
1670
|
break;
|
|
1606
|
-
case
|
|
1607
|
-
this.ToffsetWires1C1.push(
|
|
1671
|
+
case p.六分裂:
|
|
1672
|
+
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]), this.ToffsetWires1C1.push(o[4]), this.ToffsetWires1C1.push(o[5]), this.ToffsetWires1C2.push(o[6]), this.ToffsetWires1C2.push(o[7]), this.ToffsetWires1C2.push(o[8]), this.ToffsetWires1C2.push(o[9]), this.ToffsetWires1C2.push(o[10]), this.ToffsetWires1C2.push(o[11]);
|
|
1608
1673
|
break;
|
|
1609
|
-
case
|
|
1610
|
-
this.ToffsetWires1C1.push(
|
|
1674
|
+
case p.八分裂:
|
|
1675
|
+
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]), this.ToffsetWires1C1.push(o[4]), this.ToffsetWires1C1.push(o[5]), this.ToffsetWires1C1.push(o[6]), this.ToffsetWires1C1.push(o[7]), this.ToffsetWires1C2.push(o[8]), this.ToffsetWires1C2.push(o[9]), this.ToffsetWires1C2.push(o[10]), this.ToffsetWires1C2.push(o[11]), this.ToffsetWires1C2.push(o[12]), this.ToffsetWires1C2.push(o[13]), this.ToffsetWires1C2.push(o[14]), this.ToffsetWires1C2.push(o[15]);
|
|
1611
1676
|
break;
|
|
1612
1677
|
}
|
|
1613
1678
|
break;
|
|
1614
1679
|
}
|
|
1615
1680
|
else
|
|
1616
|
-
switch (
|
|
1617
|
-
case
|
|
1618
|
-
|
|
1681
|
+
switch (i.PhaseSequence) {
|
|
1682
|
+
case G.A相:
|
|
1683
|
+
o.forEach((c) => {
|
|
1619
1684
|
this.offsetWires11.push(c);
|
|
1620
1685
|
});
|
|
1621
1686
|
break;
|
|
1622
|
-
case
|
|
1623
|
-
|
|
1687
|
+
case G.B相:
|
|
1688
|
+
o.forEach((c) => {
|
|
1624
1689
|
this.offsetWires12.push(c);
|
|
1625
1690
|
});
|
|
1626
1691
|
break;
|
|
1627
|
-
case
|
|
1628
|
-
|
|
1692
|
+
case G.C相:
|
|
1693
|
+
o.forEach((c) => {
|
|
1629
1694
|
this.offsetWires13.push(c);
|
|
1630
1695
|
});
|
|
1631
1696
|
break;
|
|
1632
1697
|
}
|
|
1633
|
-
else if (this.LineInfo.towers[s].type ==
|
|
1634
|
-
switch (
|
|
1698
|
+
else if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1699
|
+
switch (A) {
|
|
1635
1700
|
case 2:
|
|
1636
1701
|
switch (this.LineInfo.Wairnum) {
|
|
1637
|
-
case
|
|
1638
|
-
this.offsetWires11.push(
|
|
1702
|
+
case p.单分裂:
|
|
1703
|
+
this.offsetWires11.push(o[0]), this.ToffsetWires1A1.push(o[0]);
|
|
1639
1704
|
break;
|
|
1640
|
-
case
|
|
1641
|
-
this.offsetWires11.push(
|
|
1705
|
+
case p.双分裂:
|
|
1706
|
+
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]);
|
|
1642
1707
|
break;
|
|
1643
1708
|
}
|
|
1644
1709
|
break;
|
|
1645
1710
|
case 3:
|
|
1646
1711
|
switch (this.LineInfo.Wairnum) {
|
|
1647
|
-
case
|
|
1648
|
-
this.ToffsetWires1A1.push(
|
|
1712
|
+
case p.单分裂:
|
|
1713
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A2.push(o[0]);
|
|
1649
1714
|
break;
|
|
1650
|
-
case
|
|
1651
|
-
this.ToffsetWires1A1.push(
|
|
1715
|
+
case p.双分裂:
|
|
1716
|
+
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A2.push(o[2]), this.ToffsetWires1A2.push(o[3]);
|
|
1652
1717
|
break;
|
|
1653
1718
|
}
|
|
1654
1719
|
break;
|
|
1655
1720
|
case 4:
|
|
1656
1721
|
switch (this.LineInfo.Wairnum) {
|
|
1657
|
-
case
|
|
1658
|
-
const c = B(r, new n.Cartesian3(
|
|
1722
|
+
case p.单分裂:
|
|
1723
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1659
1724
|
this.offsetWires11.push(c), this.ToffsetWires1A2.push(c);
|
|
1660
1725
|
break;
|
|
1661
|
-
case
|
|
1662
|
-
const m = B(r, new n.Cartesian3(
|
|
1726
|
+
case p.双分裂:
|
|
1727
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1663
1728
|
this.offsetWires11.push(m), this.offsetWires11.push(b), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(b);
|
|
1664
1729
|
break;
|
|
1665
1730
|
}
|
|
1666
1731
|
break;
|
|
1667
1732
|
case 5:
|
|
1668
|
-
|
|
1733
|
+
o.forEach((c) => {
|
|
1669
1734
|
this.offsetWires12.push(c), this.ToffsetWires1B1.push(c);
|
|
1670
1735
|
});
|
|
1671
1736
|
break;
|
|
1672
1737
|
case 6:
|
|
1673
|
-
|
|
1738
|
+
o.forEach((c) => {
|
|
1674
1739
|
this.ToffsetWires1B1.push(c), this.ToffsetWires1B2.push(c);
|
|
1675
1740
|
});
|
|
1676
1741
|
break;
|
|
1677
1742
|
case 7:
|
|
1678
|
-
|
|
1743
|
+
i.InsulatorPoint.forEach((c) => {
|
|
1679
1744
|
const m = B(r, new n.Cartesian3(c.X * -1, c.Y, c.Z), W);
|
|
1680
1745
|
this.offsetWires12.push(m), this.ToffsetWires1B2.push(m);
|
|
1681
1746
|
});
|
|
1682
1747
|
break;
|
|
1683
1748
|
case 8:
|
|
1684
|
-
|
|
1749
|
+
o.forEach((c) => {
|
|
1685
1750
|
this.offsetWires13.push(c), this.ToffsetWires1C1.push(c);
|
|
1686
1751
|
});
|
|
1687
1752
|
break;
|
|
1688
1753
|
case 9:
|
|
1689
|
-
|
|
1754
|
+
o.forEach((c) => {
|
|
1690
1755
|
this.ToffsetWires1C1.push(c), this.ToffsetWires1C2.push(c);
|
|
1691
1756
|
});
|
|
1692
1757
|
break;
|
|
1693
1758
|
case 10:
|
|
1694
|
-
|
|
1759
|
+
i.InsulatorPoint.forEach((c) => {
|
|
1695
1760
|
const m = B(r, new n.Cartesian3(c.X * -1, c.Y, c.Z), W);
|
|
1696
1761
|
this.offsetWires13.push(m), this.ToffsetWires1C2.push(m);
|
|
1697
1762
|
});
|
|
1698
1763
|
break;
|
|
1699
1764
|
}
|
|
1700
1765
|
else
|
|
1701
|
-
switch (
|
|
1766
|
+
switch (A) {
|
|
1702
1767
|
case 2:
|
|
1703
|
-
|
|
1768
|
+
o.forEach((c) => {
|
|
1704
1769
|
this.offsetWires11.push(c);
|
|
1705
1770
|
});
|
|
1706
1771
|
break;
|
|
1707
1772
|
case 3:
|
|
1708
|
-
|
|
1773
|
+
o.forEach((c) => {
|
|
1709
1774
|
this.offsetWires12.push(c);
|
|
1710
1775
|
});
|
|
1711
1776
|
break;
|
|
1712
1777
|
case 4:
|
|
1713
|
-
|
|
1778
|
+
o.forEach((c) => {
|
|
1714
1779
|
this.offsetWires13.push(c);
|
|
1715
1780
|
});
|
|
1716
1781
|
break;
|
|
1717
1782
|
}
|
|
1718
1783
|
break;
|
|
1719
|
-
case
|
|
1784
|
+
case hs.回路二:
|
|
1720
1785
|
if (this.LineInfo.ISPhaseSequence)
|
|
1721
|
-
if (this.LineInfo.towers[s].type ==
|
|
1722
|
-
switch (
|
|
1723
|
-
case
|
|
1724
|
-
if (
|
|
1725
|
-
if (
|
|
1786
|
+
if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1787
|
+
switch (i.PhaseSequence) {
|
|
1788
|
+
case G.A相:
|
|
1789
|
+
if (i.type == D.耐张串)
|
|
1790
|
+
if (i.WairFX == "进")
|
|
1726
1791
|
switch (this.LineInfo.Wairnum) {
|
|
1727
|
-
case
|
|
1728
|
-
this.offsetWires21.push(
|
|
1792
|
+
case p.单分裂:
|
|
1793
|
+
this.offsetWires21.push(o[0]), this.ToffsetWires2A1.push(o[0]);
|
|
1729
1794
|
break;
|
|
1730
|
-
case
|
|
1731
|
-
this.offsetWires21.push(
|
|
1795
|
+
case p.双分裂:
|
|
1796
|
+
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]);
|
|
1732
1797
|
break;
|
|
1733
|
-
case
|
|
1734
|
-
this.offsetWires21.push(
|
|
1798
|
+
case p.四分裂:
|
|
1799
|
+
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.offsetWires21.push(o[2]), this.offsetWires21.push(o[3]), this.ToffsetWires2A1.push(o[4]), this.ToffsetWires2A1.push(o[5]), this.ToffsetWires2A1.push(o[6]), this.ToffsetWires2A1.push(o[7]);
|
|
1735
1800
|
break;
|
|
1736
|
-
case
|
|
1737
|
-
this.offsetWires21.push(
|
|
1801
|
+
case p.六分裂:
|
|
1802
|
+
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.offsetWires21.push(o[2]), this.offsetWires21.push(o[3]), this.offsetWires21.push(o[4]), this.offsetWires21.push(o[5]), this.ToffsetWires2A1.push(o[6]), this.ToffsetWires2A1.push(o[7]), this.ToffsetWires2A1.push(o[8]), this.ToffsetWires2A1.push(o[9]), this.ToffsetWires2A1.push(o[10]), this.ToffsetWires2A1.push(o[11]);
|
|
1738
1803
|
break;
|
|
1739
|
-
case
|
|
1740
|
-
this.offsetWires21.push(
|
|
1804
|
+
case p.八分裂:
|
|
1805
|
+
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.offsetWires21.push(o[2]), this.offsetWires21.push(o[3]), this.offsetWires21.push(o[4]), this.offsetWires21.push(o[5]), this.offsetWires21.push(o[6]), this.offsetWires21.push(o[7]), this.ToffsetWires2A1.push(o[8]), this.ToffsetWires2A1.push(o[9]), this.ToffsetWires2A1.push(o[10]), this.ToffsetWires2A1.push(o[11]), this.ToffsetWires2A1.push(o[12]), this.ToffsetWires2A1.push(o[13]), this.ToffsetWires2A1.push(o[14]), this.ToffsetWires2A1.push(o[15]);
|
|
1741
1806
|
break;
|
|
1742
1807
|
}
|
|
1743
1808
|
else
|
|
1744
1809
|
switch (this.LineInfo.Wairnum) {
|
|
1745
|
-
case
|
|
1746
|
-
const c = B(r, new n.Cartesian3(
|
|
1810
|
+
case p.单分裂:
|
|
1811
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1747
1812
|
this.offsetWires21.push(c), this.ToffsetWires2A2.push(c);
|
|
1748
1813
|
break;
|
|
1749
|
-
case
|
|
1750
|
-
const m = B(r, new n.Cartesian3(
|
|
1814
|
+
case p.双分裂:
|
|
1815
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1751
1816
|
this.offsetWires21.push(m), this.offsetWires21.push(b), this.ToffsetWires2A2.push(m), this.ToffsetWires2A2.push(b);
|
|
1752
1817
|
break;
|
|
1753
|
-
case
|
|
1754
|
-
const I = B(r, new n.Cartesian3(
|
|
1818
|
+
case p.四分裂:
|
|
1819
|
+
const I = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1755
1820
|
this.offsetWires21.push(I), this.offsetWires21.push(P), this.offsetWires21.push(g), this.offsetWires21.push(y), this.ToffsetWires2A2.push(I), this.ToffsetWires2A2.push(P), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(y);
|
|
1756
1821
|
break;
|
|
1757
|
-
case
|
|
1758
|
-
const _ = B(r, new n.Cartesian3(
|
|
1759
|
-
this.offsetWires21.push(_), this.offsetWires21.push(v), this.offsetWires21.push(
|
|
1822
|
+
case p.六分裂:
|
|
1823
|
+
const _ = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1824
|
+
this.offsetWires21.push(_), this.offsetWires21.push(v), this.offsetWires21.push(S), this.offsetWires21.push(M), this.offsetWires21.push(R), this.offsetWires21.push(E), this.ToffsetWires2A2.push(_), this.ToffsetWires2A2.push(v), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(R), this.ToffsetWires2A2.push(E);
|
|
1760
1825
|
break;
|
|
1761
|
-
case
|
|
1762
|
-
const Y = B(r, new n.Cartesian3(
|
|
1763
|
-
this.offsetWires21.push(Y), this.offsetWires21.push(
|
|
1826
|
+
case p.八分裂:
|
|
1827
|
+
const Y = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1828
|
+
this.offsetWires21.push(Y), this.offsetWires21.push(Z), this.offsetWires21.push(F), this.offsetWires21.push(k), this.offsetWires21.push(X), this.offsetWires21.push(H), this.offsetWires21.push(O), this.offsetWires21.push($), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(H), this.ToffsetWires2A2.push(O), this.ToffsetWires2A2.push($);
|
|
1764
1829
|
break;
|
|
1765
1830
|
}
|
|
1766
|
-
else if (
|
|
1831
|
+
else if (i.type == D.跳线串)
|
|
1767
1832
|
switch (this.LineInfo.Wairnum) {
|
|
1768
|
-
case
|
|
1769
|
-
this.ToffsetWires2A1.push(
|
|
1833
|
+
case p.单分裂:
|
|
1834
|
+
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A2.push(o[0]);
|
|
1770
1835
|
break;
|
|
1771
|
-
case
|
|
1772
|
-
this.ToffsetWires2A1.push(
|
|
1836
|
+
case p.双分裂:
|
|
1837
|
+
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A2.push(o[2]), this.ToffsetWires2A2.push(o[3]);
|
|
1773
1838
|
break;
|
|
1774
|
-
case
|
|
1775
|
-
this.ToffsetWires2A1.push(
|
|
1839
|
+
case p.四分裂:
|
|
1840
|
+
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]), this.ToffsetWires2A2.push(o[4]), this.ToffsetWires2A2.push(o[5]), this.ToffsetWires2A2.push(o[6]), this.ToffsetWires2A2.push(o[7]);
|
|
1776
1841
|
break;
|
|
1777
|
-
case
|
|
1778
|
-
this.ToffsetWires2A1.push(
|
|
1842
|
+
case p.六分裂:
|
|
1843
|
+
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]), this.ToffsetWires2A1.push(o[4]), this.ToffsetWires2A1.push(o[5]), this.ToffsetWires2A2.push(o[6]), this.ToffsetWires2A2.push(o[7]), this.ToffsetWires2A2.push(o[8]), this.ToffsetWires2A2.push(o[9]), this.ToffsetWires2A2.push(o[10]), this.ToffsetWires2A2.push(o[11]);
|
|
1779
1844
|
break;
|
|
1780
|
-
case
|
|
1781
|
-
this.ToffsetWires2A1.push(
|
|
1845
|
+
case p.八分裂:
|
|
1846
|
+
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]), this.ToffsetWires2A1.push(o[4]), this.ToffsetWires2A1.push(o[5]), this.ToffsetWires2A1.push(o[6]), this.ToffsetWires2A1.push(o[7]), this.ToffsetWires2A2.push(o[8]), this.ToffsetWires2A2.push(o[9]), this.ToffsetWires2A2.push(o[10]), this.ToffsetWires2A2.push(o[11]), this.ToffsetWires2A2.push(o[12]), this.ToffsetWires2A2.push(o[13]), this.ToffsetWires2A2.push(o[14]), this.ToffsetWires2A2.push(o[15]);
|
|
1782
1847
|
break;
|
|
1783
1848
|
}
|
|
1784
1849
|
break;
|
|
1785
|
-
case
|
|
1786
|
-
if (
|
|
1787
|
-
if (
|
|
1850
|
+
case G.B相:
|
|
1851
|
+
if (i.type == D.耐张串)
|
|
1852
|
+
if (i.WairFX == "进")
|
|
1788
1853
|
switch (this.LineInfo.Wairnum) {
|
|
1789
|
-
case
|
|
1790
|
-
this.offsetWires22.push(
|
|
1854
|
+
case p.单分裂:
|
|
1855
|
+
this.offsetWires22.push(o[0]), this.ToffsetWires2B1.push(o[0]);
|
|
1791
1856
|
break;
|
|
1792
|
-
case
|
|
1793
|
-
this.offsetWires22.push(
|
|
1857
|
+
case p.双分裂:
|
|
1858
|
+
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]);
|
|
1794
1859
|
break;
|
|
1795
|
-
case
|
|
1796
|
-
this.offsetWires22.push(
|
|
1860
|
+
case p.四分裂:
|
|
1861
|
+
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.offsetWires22.push(o[2]), this.offsetWires22.push(o[3]), this.ToffsetWires2B1.push(o[4]), this.ToffsetWires2B1.push(o[5]), this.ToffsetWires2B1.push(o[6]), this.ToffsetWires2B1.push(o[7]);
|
|
1797
1862
|
break;
|
|
1798
|
-
case
|
|
1799
|
-
this.offsetWires22.push(
|
|
1863
|
+
case p.六分裂:
|
|
1864
|
+
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.offsetWires22.push(o[2]), this.offsetWires22.push(o[3]), this.offsetWires22.push(o[4]), this.offsetWires22.push(o[5]), this.ToffsetWires2B1.push(o[6]), this.ToffsetWires2B1.push(o[7]), this.ToffsetWires2B1.push(o[8]), this.ToffsetWires2B1.push(o[9]), this.ToffsetWires2B1.push(o[10]), this.ToffsetWires2B1.push(o[11]);
|
|
1800
1865
|
break;
|
|
1801
|
-
case
|
|
1802
|
-
this.offsetWires22.push(
|
|
1866
|
+
case p.八分裂:
|
|
1867
|
+
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.offsetWires22.push(o[2]), this.offsetWires22.push(o[3]), this.offsetWires22.push(o[4]), this.offsetWires22.push(o[5]), this.offsetWires22.push(o[6]), this.offsetWires22.push(o[7]), this.ToffsetWires2B1.push(o[8]), this.ToffsetWires2B1.push(o[9]), this.ToffsetWires2B1.push(o[10]), this.ToffsetWires2B1.push(o[11]), this.ToffsetWires2B1.push(o[12]), this.ToffsetWires2B1.push(o[13]), this.ToffsetWires2B1.push(o[14]), this.ToffsetWires2B1.push(o[15]);
|
|
1803
1868
|
break;
|
|
1804
1869
|
}
|
|
1805
1870
|
else
|
|
1806
1871
|
switch (this.LineInfo.Wairnum) {
|
|
1807
|
-
case
|
|
1808
|
-
const c = B(r, new n.Cartesian3(
|
|
1872
|
+
case p.单分裂:
|
|
1873
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1809
1874
|
this.offsetWires22.push(c), this.ToffsetWires2B2.push(c);
|
|
1810
1875
|
break;
|
|
1811
|
-
case
|
|
1812
|
-
const m = B(r, new n.Cartesian3(
|
|
1876
|
+
case p.双分裂:
|
|
1877
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1813
1878
|
this.offsetWires22.push(m), this.offsetWires22.push(b), this.ToffsetWires2B2.push(m), this.ToffsetWires2B2.push(b);
|
|
1814
1879
|
break;
|
|
1815
|
-
case
|
|
1816
|
-
const I = B(r, new n.Cartesian3(
|
|
1880
|
+
case p.四分裂:
|
|
1881
|
+
const I = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1817
1882
|
this.offsetWires22.push(I), this.offsetWires22.push(P), this.offsetWires22.push(g), this.offsetWires22.push(y), this.ToffsetWires2B2.push(I), this.ToffsetWires2B2.push(P), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(y);
|
|
1818
1883
|
break;
|
|
1819
|
-
case
|
|
1820
|
-
const _ = B(r, new n.Cartesian3(
|
|
1821
|
-
this.offsetWires22.push(_), this.offsetWires22.push(v), this.offsetWires22.push(
|
|
1884
|
+
case p.六分裂:
|
|
1885
|
+
const _ = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1886
|
+
this.offsetWires22.push(_), this.offsetWires22.push(v), this.offsetWires22.push(S), this.offsetWires22.push(M), this.offsetWires22.push(R), this.offsetWires22.push(E), this.ToffsetWires2B2.push(_), this.ToffsetWires2B2.push(v), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(R), this.ToffsetWires2B2.push(E);
|
|
1822
1887
|
break;
|
|
1823
|
-
case
|
|
1824
|
-
const Y = B(r, new n.Cartesian3(
|
|
1825
|
-
this.offsetWires22.push(Y), this.offsetWires22.push(
|
|
1888
|
+
case p.八分裂:
|
|
1889
|
+
const Y = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1890
|
+
this.offsetWires22.push(Y), this.offsetWires22.push(Z), this.offsetWires22.push(F), this.offsetWires22.push(k), this.offsetWires22.push(X), this.offsetWires22.push(H), this.offsetWires22.push(O), this.offsetWires22.push($), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(H), this.ToffsetWires2B2.push(O), this.ToffsetWires2B2.push($);
|
|
1826
1891
|
break;
|
|
1827
1892
|
}
|
|
1828
|
-
else if (
|
|
1893
|
+
else if (i.type == D.跳线串)
|
|
1829
1894
|
switch (this.LineInfo.Wairnum) {
|
|
1830
|
-
case
|
|
1831
|
-
this.ToffsetWires2B1.push(
|
|
1895
|
+
case p.单分裂:
|
|
1896
|
+
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B2.push(o[0]);
|
|
1832
1897
|
break;
|
|
1833
|
-
case
|
|
1834
|
-
this.ToffsetWires2B1.push(
|
|
1898
|
+
case p.双分裂:
|
|
1899
|
+
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B2.push(o[2]), this.ToffsetWires2B2.push(o[3]);
|
|
1835
1900
|
break;
|
|
1836
|
-
case
|
|
1837
|
-
this.ToffsetWires2B1.push(
|
|
1901
|
+
case p.四分裂:
|
|
1902
|
+
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]), this.ToffsetWires2B2.push(o[4]), this.ToffsetWires2B2.push(o[5]), this.ToffsetWires2B2.push(o[6]), this.ToffsetWires2B2.push(o[7]);
|
|
1838
1903
|
break;
|
|
1839
|
-
case
|
|
1840
|
-
this.ToffsetWires2B1.push(
|
|
1904
|
+
case p.六分裂:
|
|
1905
|
+
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]), this.ToffsetWires2B1.push(o[4]), this.ToffsetWires2B1.push(o[5]), this.ToffsetWires2B2.push(o[6]), this.ToffsetWires2B2.push(o[7]), this.ToffsetWires2B2.push(o[8]), this.ToffsetWires2B2.push(o[9]), this.ToffsetWires2B2.push(o[10]), this.ToffsetWires2B2.push(o[11]);
|
|
1841
1906
|
break;
|
|
1842
|
-
case
|
|
1843
|
-
this.ToffsetWires2B1.push(
|
|
1907
|
+
case p.八分裂:
|
|
1908
|
+
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]), this.ToffsetWires2B1.push(o[4]), this.ToffsetWires2B1.push(o[5]), this.ToffsetWires2B1.push(o[6]), this.ToffsetWires2B1.push(o[7]), this.ToffsetWires2B2.push(o[8]), this.ToffsetWires2B2.push(o[9]), this.ToffsetWires2B2.push(o[10]), this.ToffsetWires2B2.push(o[11]), this.ToffsetWires2B2.push(o[12]), this.ToffsetWires2B2.push(o[13]), this.ToffsetWires2B2.push(o[14]), this.ToffsetWires2B2.push(o[15]);
|
|
1844
1909
|
break;
|
|
1845
1910
|
}
|
|
1846
1911
|
break;
|
|
1847
|
-
case
|
|
1848
|
-
if (
|
|
1849
|
-
if (
|
|
1912
|
+
case G.C相:
|
|
1913
|
+
if (i.type == D.耐张串)
|
|
1914
|
+
if (i.WairFX == "进")
|
|
1850
1915
|
switch (this.LineInfo.Wairnum) {
|
|
1851
|
-
case
|
|
1852
|
-
this.offsetWires23.push(
|
|
1916
|
+
case p.单分裂:
|
|
1917
|
+
this.offsetWires23.push(o[0]), this.ToffsetWires2C1.push(o[0]);
|
|
1853
1918
|
break;
|
|
1854
|
-
case
|
|
1855
|
-
this.offsetWires23.push(
|
|
1919
|
+
case p.双分裂:
|
|
1920
|
+
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]);
|
|
1856
1921
|
break;
|
|
1857
|
-
case
|
|
1858
|
-
this.offsetWires23.push(
|
|
1922
|
+
case p.四分裂:
|
|
1923
|
+
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.offsetWires23.push(o[2]), this.offsetWires23.push(o[3]), this.ToffsetWires2C1.push(o[4]), this.ToffsetWires2C1.push(o[5]), this.ToffsetWires2C1.push(o[6]), this.ToffsetWires2C1.push(o[7]);
|
|
1859
1924
|
break;
|
|
1860
|
-
case
|
|
1861
|
-
this.offsetWires23.push(
|
|
1925
|
+
case p.六分裂:
|
|
1926
|
+
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.offsetWires23.push(o[2]), this.offsetWires23.push(o[3]), this.offsetWires23.push(o[4]), this.offsetWires23.push(o[5]), this.ToffsetWires2C1.push(o[6]), this.ToffsetWires2C1.push(o[7]), this.ToffsetWires2C1.push(o[8]), this.ToffsetWires2C1.push(o[9]), this.ToffsetWires2C1.push(o[10]), this.ToffsetWires2C1.push(o[11]);
|
|
1862
1927
|
break;
|
|
1863
|
-
case
|
|
1864
|
-
this.offsetWires23.push(
|
|
1928
|
+
case p.八分裂:
|
|
1929
|
+
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.offsetWires23.push(o[2]), this.offsetWires23.push(o[3]), this.offsetWires23.push(o[4]), this.offsetWires23.push(o[5]), this.offsetWires23.push(o[6]), this.offsetWires23.push(o[7]), this.ToffsetWires2C1.push(o[8]), this.ToffsetWires2C1.push(o[9]), this.ToffsetWires2C1.push(o[10]), this.ToffsetWires2C1.push(o[11]), this.ToffsetWires2C1.push(o[12]), this.ToffsetWires2C1.push(o[13]), this.ToffsetWires2C1.push(o[14]), this.ToffsetWires2C1.push(o[15]);
|
|
1865
1930
|
break;
|
|
1866
1931
|
}
|
|
1867
1932
|
else
|
|
1868
1933
|
switch (this.LineInfo.Wairnum) {
|
|
1869
|
-
case
|
|
1870
|
-
const c = B(r, new n.Cartesian3(
|
|
1934
|
+
case p.单分裂:
|
|
1935
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1871
1936
|
this.offsetWires23.push(c), this.ToffsetWires2C2.push(c);
|
|
1872
1937
|
break;
|
|
1873
|
-
case
|
|
1874
|
-
const m = B(r, new n.Cartesian3(
|
|
1938
|
+
case p.双分裂:
|
|
1939
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W);
|
|
1875
1940
|
this.offsetWires23.push(m), this.offsetWires23.push(b), this.ToffsetWires2C2.push(m), this.ToffsetWires2C2.push(b);
|
|
1876
1941
|
break;
|
|
1877
|
-
case
|
|
1878
|
-
const I = B(r, new n.Cartesian3(
|
|
1942
|
+
case p.四分裂:
|
|
1943
|
+
const I = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W);
|
|
1879
1944
|
this.offsetWires23.push(I), this.offsetWires23.push(P), this.offsetWires23.push(g), this.offsetWires23.push(y), this.ToffsetWires2C2.push(I), this.ToffsetWires2C2.push(P), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(y);
|
|
1880
1945
|
break;
|
|
1881
|
-
case
|
|
1882
|
-
const _ = B(r, new n.Cartesian3(
|
|
1883
|
-
this.offsetWires23.push(_), this.offsetWires23.push(v), this.offsetWires23.push(
|
|
1946
|
+
case p.六分裂:
|
|
1947
|
+
const _ = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W);
|
|
1948
|
+
this.offsetWires23.push(_), this.offsetWires23.push(v), this.offsetWires23.push(S), this.offsetWires23.push(M), this.offsetWires23.push(R), this.offsetWires23.push(E), this.ToffsetWires2C2.push(_), this.ToffsetWires2C2.push(v), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(R), this.ToffsetWires2C2.push(E);
|
|
1884
1949
|
break;
|
|
1885
|
-
case
|
|
1886
|
-
const Y = B(r, new n.Cartesian3(
|
|
1887
|
-
this.offsetWires23.push(Y), this.offsetWires23.push(
|
|
1950
|
+
case p.八分裂:
|
|
1951
|
+
const Y = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), W), $ = B(r, new n.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), W);
|
|
1952
|
+
this.offsetWires23.push(Y), this.offsetWires23.push(Z), this.offsetWires23.push(F), this.offsetWires23.push(k), this.offsetWires23.push(X), this.offsetWires23.push(H), this.offsetWires23.push(O), this.offsetWires23.push($), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(H), this.ToffsetWires2C2.push(O), this.ToffsetWires2C2.push($);
|
|
1888
1953
|
break;
|
|
1889
1954
|
}
|
|
1890
|
-
else if (
|
|
1955
|
+
else if (i.type == D.跳线串)
|
|
1891
1956
|
switch (this.LineInfo.Wairnum) {
|
|
1892
|
-
case
|
|
1893
|
-
this.ToffsetWires2C1.push(
|
|
1957
|
+
case p.单分裂:
|
|
1958
|
+
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C2.push(o[0]);
|
|
1894
1959
|
break;
|
|
1895
|
-
case
|
|
1896
|
-
this.ToffsetWires2C1.push(
|
|
1960
|
+
case p.双分裂:
|
|
1961
|
+
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C2.push(o[2]), this.ToffsetWires2C2.push(o[3]);
|
|
1897
1962
|
break;
|
|
1898
|
-
case
|
|
1899
|
-
this.ToffsetWires2C1.push(
|
|
1963
|
+
case p.四分裂:
|
|
1964
|
+
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]), this.ToffsetWires2C2.push(o[4]), this.ToffsetWires2C2.push(o[5]), this.ToffsetWires2C2.push(o[6]), this.ToffsetWires2C2.push(o[7]);
|
|
1900
1965
|
break;
|
|
1901
|
-
case
|
|
1902
|
-
this.ToffsetWires2C1.push(
|
|
1966
|
+
case p.六分裂:
|
|
1967
|
+
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]), this.ToffsetWires2C1.push(o[4]), this.ToffsetWires2C1.push(o[5]), this.ToffsetWires2C2.push(o[6]), this.ToffsetWires2C2.push(o[7]), this.ToffsetWires2C2.push(o[8]), this.ToffsetWires2C2.push(o[9]), this.ToffsetWires2C2.push(o[10]), this.ToffsetWires2C2.push(o[11]);
|
|
1903
1968
|
break;
|
|
1904
|
-
case
|
|
1905
|
-
this.ToffsetWires2C1.push(
|
|
1969
|
+
case p.八分裂:
|
|
1970
|
+
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]), this.ToffsetWires2C1.push(o[4]), this.ToffsetWires2C1.push(o[5]), this.ToffsetWires2C1.push(o[6]), this.ToffsetWires2C1.push(o[7]), this.ToffsetWires2C2.push(o[8]), this.ToffsetWires2C2.push(o[9]), this.ToffsetWires2C2.push(o[10]), this.ToffsetWires2C2.push(o[11]), this.ToffsetWires2C2.push(o[12]), this.ToffsetWires2C2.push(o[13]), this.ToffsetWires2C2.push(o[14]), this.ToffsetWires2C2.push(o[15]);
|
|
1906
1971
|
break;
|
|
1907
1972
|
}
|
|
1908
1973
|
break;
|
|
1909
1974
|
}
|
|
1910
1975
|
else
|
|
1911
|
-
switch (
|
|
1912
|
-
case
|
|
1913
|
-
|
|
1976
|
+
switch (i.PhaseSequence) {
|
|
1977
|
+
case G.A相:
|
|
1978
|
+
o.forEach((c) => {
|
|
1914
1979
|
this.offsetWires21.push(c);
|
|
1915
1980
|
});
|
|
1916
1981
|
break;
|
|
1917
|
-
case
|
|
1918
|
-
|
|
1982
|
+
case G.B相:
|
|
1983
|
+
o.forEach((c) => {
|
|
1919
1984
|
this.offsetWires22.push(c);
|
|
1920
1985
|
});
|
|
1921
1986
|
break;
|
|
1922
|
-
case
|
|
1923
|
-
|
|
1987
|
+
case G.C相:
|
|
1988
|
+
o.forEach((c) => {
|
|
1924
1989
|
this.offsetWires23.push(c);
|
|
1925
1990
|
});
|
|
1926
1991
|
break;
|
|
1927
1992
|
}
|
|
1928
|
-
else if (this.LineInfo.towers[s].type ==
|
|
1929
|
-
switch (
|
|
1993
|
+
else if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1994
|
+
switch (A) {
|
|
1930
1995
|
case 11:
|
|
1931
|
-
this.offsetWires21.push(
|
|
1996
|
+
this.offsetWires21.push(o[0]), this.ToffsetWires2A1.push(o[0]);
|
|
1932
1997
|
break;
|
|
1933
1998
|
case 12:
|
|
1934
|
-
this.ToffsetWires2A1.push(
|
|
1999
|
+
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A2.push(o[0]);
|
|
1935
2000
|
break;
|
|
1936
2001
|
case 13:
|
|
1937
|
-
const c = B(r, new n.Cartesian3(
|
|
2002
|
+
const c = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1938
2003
|
this.offsetWires21.push(c), this.ToffsetWires2A2.push(c);
|
|
1939
2004
|
break;
|
|
1940
2005
|
case 14:
|
|
1941
|
-
this.offsetWires22.push(
|
|
2006
|
+
this.offsetWires22.push(o[0]), this.ToffsetWires2B1.push(o[0]);
|
|
1942
2007
|
break;
|
|
1943
2008
|
case 15:
|
|
1944
|
-
this.ToffsetWires2B1.push(
|
|
2009
|
+
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B2.push(o[0]);
|
|
1945
2010
|
break;
|
|
1946
2011
|
case 16:
|
|
1947
|
-
const m = B(r, new n.Cartesian3(
|
|
2012
|
+
const m = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1948
2013
|
this.offsetWires22.push(m), this.ToffsetWires2B2.push(m);
|
|
1949
2014
|
break;
|
|
1950
2015
|
case 17:
|
|
1951
|
-
this.offsetWires23.push(
|
|
2016
|
+
this.offsetWires23.push(o[0]), this.ToffsetWires2C1.push(o[0]);
|
|
1952
2017
|
break;
|
|
1953
2018
|
case 18:
|
|
1954
|
-
this.ToffsetWires2C1.push(
|
|
2019
|
+
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C2.push(o[0]);
|
|
1955
2020
|
break;
|
|
1956
2021
|
case 19:
|
|
1957
|
-
const b = B(r, new n.Cartesian3(
|
|
2022
|
+
const b = B(r, new n.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), W);
|
|
1958
2023
|
this.offsetWires23.push(b), this.ToffsetWires2C2.push(b);
|
|
1959
2024
|
break;
|
|
1960
2025
|
}
|
|
1961
2026
|
else
|
|
1962
|
-
switch (
|
|
2027
|
+
switch (A) {
|
|
1963
2028
|
case 5:
|
|
1964
|
-
|
|
2029
|
+
o.forEach((c) => {
|
|
1965
2030
|
this.offsetWires21.push(c);
|
|
1966
2031
|
});
|
|
1967
2032
|
break;
|
|
1968
2033
|
case 6:
|
|
1969
|
-
|
|
2034
|
+
o.forEach((c) => {
|
|
1970
2035
|
this.offsetWires22.push(c);
|
|
1971
2036
|
});
|
|
1972
2037
|
break;
|
|
1973
2038
|
case 7:
|
|
1974
|
-
|
|
2039
|
+
o.forEach((c) => {
|
|
1975
2040
|
this.offsetWires23.push(c);
|
|
1976
2041
|
});
|
|
1977
2042
|
break;
|
|
1978
2043
|
}
|
|
1979
2044
|
break;
|
|
1980
|
-
case
|
|
2045
|
+
case hs.地线:
|
|
1981
2046
|
if (this.LineInfo.ISPhaseSequence)
|
|
1982
|
-
switch (
|
|
1983
|
-
case
|
|
1984
|
-
this.offsetGrouundWires11.push(
|
|
2047
|
+
switch (i.PhaseSequence) {
|
|
2048
|
+
case G.地线1:
|
|
2049
|
+
this.offsetGrouundWires11.push(o[0]);
|
|
1985
2050
|
break;
|
|
1986
|
-
case
|
|
1987
|
-
this.offsetGrouundWires12.push(
|
|
2051
|
+
case G.地线2:
|
|
2052
|
+
this.offsetGrouundWires12.push(o[0]);
|
|
1988
2053
|
break;
|
|
1989
2054
|
}
|
|
1990
2055
|
else
|
|
1991
|
-
switch (
|
|
2056
|
+
switch (A) {
|
|
1992
2057
|
case 0:
|
|
1993
|
-
this.offsetGrouundWires11.push(
|
|
2058
|
+
this.offsetGrouundWires11.push(o[0]);
|
|
1994
2059
|
break;
|
|
1995
2060
|
case 1:
|
|
1996
|
-
this.offsetGrouundWires12.push(
|
|
2061
|
+
this.offsetGrouundWires12.push(o[0]);
|
|
1997
2062
|
break;
|
|
1998
2063
|
}
|
|
1999
2064
|
break;
|
|
2000
2065
|
}
|
|
2001
|
-
|
|
2066
|
+
A = A + 1;
|
|
2002
2067
|
}), this.offsetWires11.length > 0 && s > 0) {
|
|
2003
|
-
const
|
|
2068
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2004
2069
|
switch (this.LineInfo.Wairnum) {
|
|
2005
|
-
case
|
|
2006
|
-
this.offsetWires11.length >= 2 && (
|
|
2007
|
-
this.arcLine1A1.push(
|
|
2070
|
+
case p.单分裂:
|
|
2071
|
+
this.offsetWires11.length >= 2 && (i.push(this.offsetWires11[e]), i.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(i), this.offsetArcWires1A.forEach((I) => {
|
|
2072
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2008
2073
|
}), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2009
2074
|
break;
|
|
2010
|
-
case
|
|
2011
|
-
this.offsetWires11.length >= 4 && (
|
|
2012
|
-
this.arcLine1A1.push(
|
|
2013
|
-
}), l.push(this.offsetWires11[
|
|
2075
|
+
case p.双分裂:
|
|
2076
|
+
this.offsetWires11.length >= 4 && (i.push(this.offsetWires11[e]), i.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2077
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2078
|
+
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2014
2079
|
break;
|
|
2015
|
-
case
|
|
2016
|
-
this.offsetWires11.length >= 8 && (
|
|
2017
|
-
this.arcLine1A1.push(
|
|
2018
|
-
}), l.push(this.offsetWires11[
|
|
2080
|
+
case p.四分裂:
|
|
2081
|
+
this.offsetWires11.length >= 8 && (i.push(this.offsetWires11[e]), i.push(this.offsetWires11[e - 4]), this.offsetArcWires1A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2082
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2083
|
+
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 3]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[e + 2]), u.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[e + 3]), C.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2019
2084
|
break;
|
|
2020
|
-
case
|
|
2021
|
-
this.offsetWires11.length >= 12 && (
|
|
2022
|
-
this.arcLine1A1.push(
|
|
2023
|
-
}), l.push(this.offsetWires11[
|
|
2085
|
+
case p.六分裂:
|
|
2086
|
+
this.offsetWires11.length >= 12 && (i.push(this.offsetWires11[e]), i.push(this.offsetWires11[e - 6]), this.offsetArcWires1A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2087
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2088
|
+
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 5]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[e + 2]), u.push(this.offsetWires11[e - 4]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[e + 3]), C.push(this.offsetWires11[e - 3]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires11[e + 4]), o.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires11[e + 5]), c.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2024
2089
|
break;
|
|
2025
|
-
case
|
|
2026
|
-
this.offsetWires11.length >= 16 && (
|
|
2027
|
-
this.arcLine1A1.push(
|
|
2028
|
-
}), l.push(this.offsetWires11[
|
|
2090
|
+
case p.八分裂:
|
|
2091
|
+
this.offsetWires11.length >= 16 && (i.push(this.offsetWires11[e]), i.push(this.offsetWires11[e - 8]), this.offsetArcWires1A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2092
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2093
|
+
}), l.push(this.offsetWires11[e + 1]), l.push(this.offsetWires11[e - 7]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[e + 2]), u.push(this.offsetWires11[e - 6]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires11[e + 3]), C.push(this.offsetWires11[e - 5]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires11[e + 4]), o.push(this.offsetWires11[e - 4]), this.offsetArcWires1A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires11[e + 5]), c.push(this.offsetWires11[e - 3]), this.offsetArcWires1A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires11[e + 6]), m.push(this.offsetWires11[e - 2]), this.offsetArcWires1A = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires11[e + 7]), b.push(this.offsetWires11[e - 1]), this.offsetArcWires1A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2029
2094
|
break;
|
|
2030
2095
|
}
|
|
2031
2096
|
}
|
|
2032
2097
|
if (this.offsetWires12.length > 0 && s > 0) {
|
|
2033
|
-
const
|
|
2098
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2034
2099
|
switch (this.LineInfo.Wairnum) {
|
|
2035
|
-
case
|
|
2036
|
-
|
|
2037
|
-
this.arcLine1B1.push(
|
|
2100
|
+
case p.单分裂:
|
|
2101
|
+
i.push(this.offsetWires12[e]), i.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2102
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2038
2103
|
});
|
|
2039
2104
|
break;
|
|
2040
|
-
case
|
|
2041
|
-
|
|
2042
|
-
this.arcLine1B1.push(
|
|
2043
|
-
}), l.push(this.offsetWires12[
|
|
2105
|
+
case p.双分裂:
|
|
2106
|
+
i.push(this.offsetWires12[e]), i.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2107
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2108
|
+
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2044
2109
|
break;
|
|
2045
|
-
case
|
|
2046
|
-
|
|
2047
|
-
this.arcLine1B1.push(
|
|
2048
|
-
}), l.push(this.offsetWires12[
|
|
2110
|
+
case p.四分裂:
|
|
2111
|
+
i.push(this.offsetWires12[e]), i.push(this.offsetWires12[e - 4]), this.offsetArcWires1B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2112
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2113
|
+
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 3]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[e + 2]), u.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[e + 3]), C.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2049
2114
|
break;
|
|
2050
|
-
case
|
|
2051
|
-
|
|
2052
|
-
this.arcLine1B1.push(
|
|
2053
|
-
}), l.push(this.offsetWires12[
|
|
2115
|
+
case p.六分裂:
|
|
2116
|
+
i.push(this.offsetWires12[e]), i.push(this.offsetWires12[e - 6]), this.offsetArcWires1B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2117
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2118
|
+
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 5]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[e + 2]), u.push(this.offsetWires12[e - 4]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[e + 3]), C.push(this.offsetWires12[e - 3]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires12[e + 4]), o.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires12[e + 5]), c.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2054
2119
|
break;
|
|
2055
|
-
case
|
|
2056
|
-
|
|
2057
|
-
this.arcLine1B1.push(
|
|
2058
|
-
}), l.push(this.offsetWires12[
|
|
2120
|
+
case p.八分裂:
|
|
2121
|
+
i.push(this.offsetWires12[e]), i.push(this.offsetWires12[e - 8]), this.offsetArcWires1B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2122
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, I));
|
|
2123
|
+
}), l.push(this.offsetWires12[e + 1]), l.push(this.offsetWires12[e - 7]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[e + 2]), u.push(this.offsetWires12[e - 6]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires12[e + 3]), C.push(this.offsetWires12[e - 5]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires12[e + 4]), o.push(this.offsetWires12[e - 4]), this.offsetArcWires1B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires12[e + 5]), c.push(this.offsetWires12[e - 3]), this.offsetArcWires1B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires12[e + 6]), m.push(this.offsetWires12[e - 2]), this.offsetArcWires1B = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires12[e + 7]), b.push(this.offsetWires12[e - 1]), this.offsetArcWires1B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2059
2124
|
break;
|
|
2060
2125
|
}
|
|
2061
2126
|
}
|
|
2062
2127
|
if (this.offsetWires13.length > 0 && s > 0) {
|
|
2063
|
-
const
|
|
2128
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2064
2129
|
switch (this.LineInfo.Wairnum) {
|
|
2065
|
-
case
|
|
2066
|
-
|
|
2130
|
+
case p.单分裂:
|
|
2131
|
+
i.push(this.offsetWires13[e]), i.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2067
2132
|
break;
|
|
2068
|
-
case
|
|
2069
|
-
|
|
2133
|
+
case p.双分裂:
|
|
2134
|
+
i.push(this.offsetWires13[e]), i.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2070
2135
|
break;
|
|
2071
|
-
case
|
|
2072
|
-
|
|
2136
|
+
case p.四分裂:
|
|
2137
|
+
i.push(this.offsetWires13[e]), i.push(this.offsetWires13[e - 4]), this.offsetArcWires1C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 3]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[e + 2]), u.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[e + 3]), C.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2073
2138
|
break;
|
|
2074
|
-
case
|
|
2075
|
-
|
|
2139
|
+
case p.六分裂:
|
|
2140
|
+
i.push(this.offsetWires13[e]), i.push(this.offsetWires13[e - 6]), this.offsetArcWires1C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 5]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[e + 2]), u.push(this.offsetWires13[e - 4]), this.offsetArcWires1C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[e + 3]), C.push(this.offsetWires13[e - 3]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires13[e + 4]), o.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires13[e + 5]), c.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2076
2141
|
break;
|
|
2077
|
-
case
|
|
2078
|
-
|
|
2142
|
+
case p.八分裂:
|
|
2143
|
+
i.push(this.offsetWires13[e]), i.push(this.offsetWires13[e - 8]), this.offsetArcWires1C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[e + 1]), l.push(this.offsetWires13[e - 7]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires13[e + 2]), u.push(this.offsetWires13[e - 6]), this.offsetArcWires1C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires13[e + 3]), C.push(this.offsetWires13[e - 5]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires13[e + 4]), o.push(this.offsetWires13[e - 4]), this.offsetArcWires1C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires13[e + 5]), c.push(this.offsetWires13[e - 3]), this.offsetArcWires1C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires13[e + 6]), m.push(this.offsetWires13[e - 2]), this.offsetArcWires1C = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires13[e + 7]), b.push(this.offsetWires13[e - 1]), this.offsetArcWires1C = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2079
2144
|
break;
|
|
2080
2145
|
}
|
|
2081
2146
|
}
|
|
2082
2147
|
if (this.offsetWires21.length > 0 && s > 0) {
|
|
2083
|
-
const
|
|
2148
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2084
2149
|
switch (this.LineInfo.Wairnum) {
|
|
2085
|
-
case
|
|
2086
|
-
|
|
2150
|
+
case p.单分裂:
|
|
2151
|
+
i.push(this.offsetWires21[e]), i.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2087
2152
|
break;
|
|
2088
|
-
case
|
|
2089
|
-
|
|
2153
|
+
case p.双分裂:
|
|
2154
|
+
i.push(this.offsetWires21[e]), i.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2090
2155
|
break;
|
|
2091
|
-
case
|
|
2092
|
-
|
|
2156
|
+
case p.四分裂:
|
|
2157
|
+
i.push(this.offsetWires21[e]), i.push(this.offsetWires21[e - 4]), this.offsetArcWires2A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 3]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[e + 2]), u.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[e + 3]), C.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2093
2158
|
break;
|
|
2094
|
-
case
|
|
2095
|
-
|
|
2159
|
+
case p.六分裂:
|
|
2160
|
+
i.push(this.offsetWires21[e]), i.push(this.offsetWires21[e - 6]), this.offsetArcWires2A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 5]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[e + 2]), u.push(this.offsetWires21[e - 4]), this.offsetArcWires2A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[e + 3]), C.push(this.offsetWires21[e - 3]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires21[e + 4]), o.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires21[e + 5]), c.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2096
2161
|
break;
|
|
2097
|
-
case
|
|
2098
|
-
|
|
2162
|
+
case p.八分裂:
|
|
2163
|
+
i.push(this.offsetWires21[e]), i.push(this.offsetWires21[e - 8]), this.offsetArcWires2A = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[e + 1]), l.push(this.offsetWires21[e - 7]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires21[e + 2]), u.push(this.offsetWires21[e - 6]), this.offsetArcWires2A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires21[e + 3]), C.push(this.offsetWires21[e - 5]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires21[e + 4]), o.push(this.offsetWires21[e - 4]), this.offsetArcWires2A = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires21[e + 5]), c.push(this.offsetWires21[e - 3]), this.offsetArcWires2A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires21[e + 6]), m.push(this.offsetWires21[e - 2]), this.offsetArcWires2A = f(m), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires21[e + 7]), b.push(this.offsetWires21[e - 1]), this.offsetArcWires2A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2099
2164
|
break;
|
|
2100
2165
|
}
|
|
2101
2166
|
}
|
|
2102
2167
|
if (this.offsetWires22.length > 0 && s > 0) {
|
|
2103
|
-
const
|
|
2168
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2104
2169
|
switch (this.LineInfo.Wairnum) {
|
|
2105
|
-
case
|
|
2106
|
-
|
|
2170
|
+
case p.单分裂:
|
|
2171
|
+
i.push(this.offsetWires22[e]), i.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2107
2172
|
break;
|
|
2108
|
-
case
|
|
2109
|
-
|
|
2173
|
+
case p.双分裂:
|
|
2174
|
+
i.push(this.offsetWires22[e]), i.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2110
2175
|
break;
|
|
2111
|
-
case
|
|
2112
|
-
|
|
2176
|
+
case p.四分裂:
|
|
2177
|
+
i.push(this.offsetWires22[e]), i.push(this.offsetWires22[e - 4]), this.offsetArcWires2B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 3]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[e + 2]), u.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[e + 3]), C.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2113
2178
|
break;
|
|
2114
|
-
case
|
|
2115
|
-
|
|
2179
|
+
case p.六分裂:
|
|
2180
|
+
i.push(this.offsetWires22[e]), i.push(this.offsetWires22[e - 6]), this.offsetArcWires2B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 5]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[e + 2]), u.push(this.offsetWires22[e - 4]), this.offsetArcWires2B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[e + 3]), C.push(this.offsetWires22[e - 3]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires22[e + 4]), o.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires22[e + 5]), c.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2116
2181
|
break;
|
|
2117
|
-
case
|
|
2118
|
-
|
|
2182
|
+
case p.八分裂:
|
|
2183
|
+
i.push(this.offsetWires22[e]), i.push(this.offsetWires22[e - 8]), this.offsetArcWires2B = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[e + 1]), l.push(this.offsetWires22[e - 7]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires22[e + 2]), u.push(this.offsetWires22[e - 6]), this.offsetArcWires2B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires22[e + 3]), C.push(this.offsetWires22[e - 5]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires22[e + 4]), o.push(this.offsetWires22[e - 4]), this.offsetArcWires2B = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires22[e + 5]), c.push(this.offsetWires22[e - 3]), this.offsetArcWires2B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires22[e + 6]), m.push(this.offsetWires22[e - 2]), this.offsetArcWires2B = f(m), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires22[e + 7]), b.push(this.offsetWires22[e - 1]), this.offsetArcWires2B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2119
2184
|
break;
|
|
2120
2185
|
}
|
|
2121
2186
|
}
|
|
2122
2187
|
if (this.offsetWires23.length > 0 && s > 0) {
|
|
2123
|
-
const
|
|
2188
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [];
|
|
2124
2189
|
switch (this.LineInfo.Wairnum) {
|
|
2125
|
-
case
|
|
2126
|
-
|
|
2190
|
+
case p.单分裂:
|
|
2191
|
+
i.push(this.offsetWires23[e]), i.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2127
2192
|
break;
|
|
2128
|
-
case
|
|
2129
|
-
|
|
2193
|
+
case p.双分裂:
|
|
2194
|
+
i.push(this.offsetWires23[e]), i.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2130
2195
|
break;
|
|
2131
|
-
case
|
|
2132
|
-
|
|
2196
|
+
case p.四分裂:
|
|
2197
|
+
i.push(this.offsetWires23[e]), i.push(this.offsetWires23[e - 4]), this.offsetArcWires2C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 3]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[e + 2]), u.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[e + 3]), C.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2133
2198
|
break;
|
|
2134
|
-
case
|
|
2135
|
-
|
|
2199
|
+
case p.六分裂:
|
|
2200
|
+
i.push(this.offsetWires23[e]), i.push(this.offsetWires23[e - 6]), this.offsetArcWires2C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 5]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[e + 2]), u.push(this.offsetWires23[e - 4]), this.offsetArcWires2C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[e + 3]), C.push(this.offsetWires23[e - 3]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires23[e + 4]), o.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires23[e + 5]), c.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2136
2201
|
break;
|
|
2137
|
-
case
|
|
2138
|
-
|
|
2202
|
+
case p.八分裂:
|
|
2203
|
+
i.push(this.offsetWires23[e]), i.push(this.offsetWires23[e - 8]), this.offsetArcWires2C = f(i), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[e + 1]), l.push(this.offsetWires23[e - 7]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires23[e + 2]), u.push(this.offsetWires23[e - 6]), this.offsetArcWires2C = f(u), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), C.push(this.offsetWires23[e + 3]), C.push(this.offsetWires23[e - 5]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires23[e + 4]), o.push(this.offsetWires23[e - 4]), this.offsetArcWires2C = f(o), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires23[e + 5]), c.push(this.offsetWires23[e - 3]), this.offsetArcWires2C = f(c), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires23[e + 6]), m.push(this.offsetWires23[e - 2]), this.offsetArcWires2C = f(m), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires23[e + 7]), b.push(this.offsetWires23[e - 1]), this.offsetArcWires2C = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2139
2204
|
break;
|
|
2140
2205
|
}
|
|
2141
2206
|
}
|
|
2142
2207
|
if (this.offsetGrouundWires11.length > 1) {
|
|
2143
|
-
const
|
|
2144
|
-
|
|
2208
|
+
const i = [];
|
|
2209
|
+
i.push(this.offsetGrouundWires11[s]), i.push(this.offsetGrouundWires11[s - 1]);
|
|
2145
2210
|
const l = [];
|
|
2146
|
-
l.push(this.offsetGrouundWires12[s]), l.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(
|
|
2147
|
-
this.arcLine1D1.push(
|
|
2211
|
+
l.push(this.offsetGrouundWires12[s]), l.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(i, 2), this.offsetGrouundWires2 = f(l, 2), this.offsetGrouundWires1.forEach((u) => {
|
|
2212
|
+
this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid, u));
|
|
2148
2213
|
}), this.LineentityCollection2.add(h(this.offsetGrouundWires1, "地线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD1Color)), this.LineentityCollection2.add(h(this.offsetGrouundWires2, "地线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD2Color));
|
|
2149
2214
|
}
|
|
2150
2215
|
let d = 2;
|
|
2151
|
-
if (this.LineInfo.towers[s].type ==
|
|
2216
|
+
if (this.LineInfo.towers[s].type == V.耐张塔) {
|
|
2152
2217
|
switch (this.LineInfo.Wairnum) {
|
|
2153
|
-
case
|
|
2154
|
-
|
|
2218
|
+
case p.单分裂:
|
|
2219
|
+
e = e + d, t = t + d;
|
|
2155
2220
|
break;
|
|
2156
|
-
case
|
|
2157
|
-
|
|
2221
|
+
case p.双分裂:
|
|
2222
|
+
e = e + d * 2, t = t + d * 2;
|
|
2158
2223
|
break;
|
|
2159
|
-
case
|
|
2160
|
-
|
|
2224
|
+
case p.四分裂:
|
|
2225
|
+
e = e + d * 4, t = t + d * 4;
|
|
2161
2226
|
break;
|
|
2162
|
-
case
|
|
2163
|
-
|
|
2227
|
+
case p.六分裂:
|
|
2228
|
+
e = e + d * 6, t = t + d * 6;
|
|
2164
2229
|
break;
|
|
2165
|
-
case
|
|
2166
|
-
|
|
2230
|
+
case p.八分裂:
|
|
2231
|
+
e = e + d * 8, t = t + d * 8;
|
|
2167
2232
|
break;
|
|
2168
2233
|
}
|
|
2169
2234
|
if (this.ToffsetWires1A1.length > 1 && this.ToffsetWires1A2.length > 1) {
|
|
2170
|
-
const
|
|
2235
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], _ = [], v = [], S = [], M = [];
|
|
2171
2236
|
switch (this.LineInfo.Wairnum) {
|
|
2172
|
-
case
|
|
2173
|
-
this.ToffsetWires1A1.length >= 2 && (
|
|
2237
|
+
case p.单分裂:
|
|
2238
|
+
this.ToffsetWires1A1.length >= 2 && (i.push(this.ToffsetWires1A1[t - 2]), i.push(this.ToffsetWires1A1[t - 1]), this.ToffsetArcWires1A = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (I.push(this.ToffsetWires1A2[t - 2]), I.push(this.ToffsetWires1A2[t - 1]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2174
2239
|
break;
|
|
2175
|
-
case
|
|
2176
|
-
this.ToffsetWires1A1.length >= 4 && (
|
|
2240
|
+
case p.双分裂:
|
|
2241
|
+
this.ToffsetWires1A1.length >= 4 && (i.push(this.ToffsetWires1A1[t - 4]), i.push(this.ToffsetWires1A1[t - 2]), this.ToffsetArcWires1A = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[t - 3]), l.push(this.ToffsetWires1A1[t - 1]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 4 && (I.push(this.ToffsetWires1A2[t - 4]), I.push(this.ToffsetWires1A2[t - 2]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[t - 3]), P.push(this.ToffsetWires1A2[t - 1]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2177
2242
|
break;
|
|
2178
|
-
case
|
|
2179
|
-
this.ToffsetWires1A1.length >= 8 && (
|
|
2243
|
+
case p.四分裂:
|
|
2244
|
+
this.ToffsetWires1A1.length >= 8 && (i.push(this.ToffsetWires1A1[t - 8]), i.push(this.ToffsetWires1A1[t - 4]), this.ToffsetArcWires1A = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[t - 7]), l.push(this.ToffsetWires1A1[t - 3]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[t - 6]), u.push(this.ToffsetWires1A1[t - 2]), this.ToffsetArcWires1A = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[t - 5]), C.push(this.ToffsetWires1A1[t - 1]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 8 && (I.push(this.ToffsetWires1A2[t - 8]), I.push(this.ToffsetWires1A2[t - 4]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[t - 7]), P.push(this.ToffsetWires1A2[t - 3]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A2[t - 6]), g.push(this.ToffsetWires1A2[t - 2]), this.ToffsetArcWires2A = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[t - 5]), y.push(this.ToffsetWires1A2[t - 1]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2180
2245
|
break;
|
|
2181
|
-
case
|
|
2182
|
-
this.ToffsetWires1A1.length >= 12 && (
|
|
2246
|
+
case p.六分裂:
|
|
2247
|
+
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[t - 12]), i.push(this.ToffsetWires1A1[t - 6]), this.ToffsetArcWires1A = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[t - 11]), l.push(this.ToffsetWires1A1[t - 5]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[t - 10]), u.push(this.ToffsetWires1A1[t - 4]), this.ToffsetArcWires1A = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[t - 9]), C.push(this.ToffsetWires1A1[t - 3]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[t - 8]), o.push(this.ToffsetWires1A1[t - 2]), this.ToffsetArcWires1A = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1A1[t - 7]), c.push(this.ToffsetWires1A1[t - 1]), this.ToffsetArcWires1A = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (I.push(this.ToffsetWires1A2[t - 12]), I.push(this.ToffsetWires1A2[t - 6]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[t - 11]), P.push(this.ToffsetWires1A2[t - 5]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A2[t - 10]), g.push(this.ToffsetWires1A2[t - 4]), this.ToffsetArcWires2A = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[t - 9]), y.push(this.ToffsetWires1A2[t - 3]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[t - 8]), _.push(this.ToffsetWires1A2[t - 2]), this.ToffsetArcWires2A = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[t - 7]), v.push(this.ToffsetWires1A2[t - 1]), this.ToffsetArcWires2A = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2183
2248
|
break;
|
|
2184
|
-
case
|
|
2185
|
-
this.ToffsetWires1A1.length >= 16 && (
|
|
2249
|
+
case p.八分裂:
|
|
2250
|
+
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[t - 16]), i.push(this.ToffsetWires1A1[t - 8]), this.ToffsetArcWires1A = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[t - 15]), l.push(this.ToffsetWires1A1[t - 7]), this.ToffsetArcWires1A = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1A1[t - 14]), u.push(this.ToffsetWires1A1[t - 6]), this.ToffsetArcWires1A = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1A1[t - 13]), C.push(this.ToffsetWires1A1[t - 5]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[t - 12]), o.push(this.ToffsetWires1A1[t - 4]), this.ToffsetArcWires1A = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1A1[t - 11]), c.push(this.ToffsetWires1A1[t - 3]), this.ToffsetArcWires1A = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A1[t - 10]), m.push(this.ToffsetWires1A1[t - 2]), this.ToffsetArcWires1A = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A1[t - 9]), b.push(this.ToffsetWires1A1[t - 1]), this.ToffsetArcWires1A = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 16 && (I.push(this.ToffsetWires1A2[t - 16]), I.push(this.ToffsetWires1A2[t - 8]), this.ToffsetArcWires2A = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[t - 15]), P.push(this.ToffsetWires1A2[t - 7]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A2[t - 14]), g.push(this.ToffsetWires1A2[t - 6]), this.ToffsetArcWires2A = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A2[t - 13]), y.push(this.ToffsetWires1A2[t - 5]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[t - 12]), _.push(this.ToffsetWires1A2[t - 4]), this.ToffsetArcWires2A = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[t - 11]), v.push(this.ToffsetWires1A2[t - 3]), this.ToffsetArcWires2A = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1A2[t - 10]), S.push(this.ToffsetWires1A2[t - 2]), this.ToffsetArcWires2A = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1A2[t - 9]), M.push(this.ToffsetWires1A2[t - 1]), this.ToffsetArcWires2A = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2186
2251
|
break;
|
|
2187
2252
|
}
|
|
2188
2253
|
}
|
|
2189
2254
|
if (this.ToffsetWires1B1.length > 1 && this.ToffsetWires1B2.length > 1) {
|
|
2190
|
-
const
|
|
2255
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], _ = [], v = [], S = [], M = [];
|
|
2191
2256
|
switch (this.LineInfo.Wairnum) {
|
|
2192
|
-
case
|
|
2193
|
-
this.ToffsetWires1B1.length >= 2 && (
|
|
2257
|
+
case p.单分裂:
|
|
2258
|
+
this.ToffsetWires1B1.length >= 2 && (i.push(this.ToffsetWires1B1[t - 2]), i.push(this.ToffsetWires1B1[t - 1]), this.ToffsetArcWires1B = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (I.push(this.ToffsetWires1B2[t - 2]), I.push(this.ToffsetWires1B2[t - 1]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2194
2259
|
break;
|
|
2195
|
-
case
|
|
2196
|
-
this.ToffsetWires1B1.length >= 4 && (
|
|
2260
|
+
case p.双分裂:
|
|
2261
|
+
this.ToffsetWires1B1.length >= 4 && (i.push(this.ToffsetWires1B1[t - 4]), i.push(this.ToffsetWires1B1[t - 2]), this.ToffsetArcWires1B = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[t - 3]), l.push(this.ToffsetWires1B1[t - 1]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 4 && (I.push(this.ToffsetWires1B2[t - 4]), I.push(this.ToffsetWires1B2[t - 2]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[t - 3]), P.push(this.ToffsetWires1B2[t - 1]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2197
2262
|
break;
|
|
2198
|
-
case
|
|
2199
|
-
this.ToffsetWires1B1.length >= 8 && (
|
|
2263
|
+
case p.四分裂:
|
|
2264
|
+
this.ToffsetWires1B1.length >= 8 && (i.push(this.ToffsetWires1B1[t - 8]), i.push(this.ToffsetWires1B1[t - 4]), this.ToffsetArcWires1B = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[t - 7]), l.push(this.ToffsetWires1B1[t - 3]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[t - 6]), u.push(this.ToffsetWires1B1[t - 2]), this.ToffsetArcWires1B = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[t - 5]), C.push(this.ToffsetWires1B1[t - 1]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 8 && (I.push(this.ToffsetWires1B2[t - 8]), I.push(this.ToffsetWires1B2[t - 4]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[t - 7]), P.push(this.ToffsetWires1B2[t - 3]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B2[t - 6]), g.push(this.ToffsetWires1B2[t - 2]), this.ToffsetArcWires2B = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[t - 5]), y.push(this.ToffsetWires1B2[t - 1]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2200
2265
|
break;
|
|
2201
|
-
case
|
|
2202
|
-
this.ToffsetWires1B1.length >= 12 && (
|
|
2266
|
+
case p.六分裂:
|
|
2267
|
+
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[t - 12]), i.push(this.ToffsetWires1B1[t - 6]), this.ToffsetArcWires1B = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[t - 11]), l.push(this.ToffsetWires1B1[t - 5]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[t - 10]), u.push(this.ToffsetWires1B1[t - 4]), this.ToffsetArcWires1B = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[t - 9]), C.push(this.ToffsetWires1B1[t - 3]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[t - 8]), o.push(this.ToffsetWires1B1[t - 2]), this.ToffsetArcWires1B = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1B1[t - 7]), c.push(this.ToffsetWires1B1[t - 1]), this.ToffsetArcWires1B = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (I.push(this.ToffsetWires1B2[t - 12]), I.push(this.ToffsetWires1B2[t - 6]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[t - 11]), P.push(this.ToffsetWires1B2[t - 5]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B2[t - 10]), g.push(this.ToffsetWires1B2[t - 4]), this.ToffsetArcWires2B = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[t - 9]), y.push(this.ToffsetWires1B2[t - 3]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[t - 8]), _.push(this.ToffsetWires1B2[t - 2]), this.ToffsetArcWires2B = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[t - 7]), v.push(this.ToffsetWires1B2[t - 1]), this.ToffsetArcWires2B = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2203
2268
|
break;
|
|
2204
|
-
case
|
|
2205
|
-
this.ToffsetWires1B1.length >= 16 && (
|
|
2269
|
+
case p.八分裂:
|
|
2270
|
+
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[t - 16]), i.push(this.ToffsetWires1B1[t - 8]), this.ToffsetArcWires1B = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[t - 15]), l.push(this.ToffsetWires1B1[t - 7]), this.ToffsetArcWires1B = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1B1[t - 14]), u.push(this.ToffsetWires1B1[t - 6]), this.ToffsetArcWires1B = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1B1[t - 13]), C.push(this.ToffsetWires1B1[t - 5]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[t - 12]), o.push(this.ToffsetWires1B1[t - 4]), this.ToffsetArcWires1B = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1B1[t - 11]), c.push(this.ToffsetWires1B1[t - 3]), this.ToffsetArcWires1B = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B1[t - 10]), m.push(this.ToffsetWires1B1[t - 2]), this.ToffsetArcWires1B = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B1[t - 9]), b.push(this.ToffsetWires1B1[t - 1]), this.ToffsetArcWires1B = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 16 && (I.push(this.ToffsetWires1B2[t - 16]), I.push(this.ToffsetWires1B2[t - 8]), this.ToffsetArcWires2B = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[t - 15]), P.push(this.ToffsetWires1B2[t - 7]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B2[t - 14]), g.push(this.ToffsetWires1B2[t - 6]), this.ToffsetArcWires2B = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B2[t - 13]), y.push(this.ToffsetWires1B2[t - 5]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[t - 12]), _.push(this.ToffsetWires1B2[t - 4]), this.ToffsetArcWires2B = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[t - 11]), v.push(this.ToffsetWires1B2[t - 3]), this.ToffsetArcWires2B = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1B2[t - 10]), S.push(this.ToffsetWires1B2[t - 2]), this.ToffsetArcWires2B = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1B2[t - 9]), M.push(this.ToffsetWires1B2[t - 1]), this.ToffsetArcWires2B = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2206
2271
|
break;
|
|
2207
2272
|
}
|
|
2208
2273
|
}
|
|
2209
2274
|
if (this.ToffsetWires1C1.length > 1 && this.ToffsetWires1C2.length > 1) {
|
|
2210
|
-
const
|
|
2275
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], _ = [], v = [], S = [], M = [];
|
|
2211
2276
|
switch (this.LineInfo.Wairnum) {
|
|
2212
|
-
case
|
|
2213
|
-
this.ToffsetWires1C1.length >= 2 && (
|
|
2277
|
+
case p.单分裂:
|
|
2278
|
+
this.ToffsetWires1C1.length >= 2 && (i.push(this.ToffsetWires1C1[t - 2]), i.push(this.ToffsetWires1C1[t - 1]), this.ToffsetArcWires1C = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (I.push(this.ToffsetWires1C2[t - 2]), I.push(this.ToffsetWires1C2[t - 1]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2214
2279
|
break;
|
|
2215
|
-
case
|
|
2216
|
-
this.ToffsetWires1C1.length >= 4 && (
|
|
2280
|
+
case p.双分裂:
|
|
2281
|
+
this.ToffsetWires1C1.length >= 4 && (i.push(this.ToffsetWires1C1[t - 4]), i.push(this.ToffsetWires1C1[t - 2]), this.ToffsetArcWires1C = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[t - 3]), l.push(this.ToffsetWires1C1[t - 1]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 4 && (I.push(this.ToffsetWires1C2[t - 4]), I.push(this.ToffsetWires1C2[t - 2]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[t - 3]), P.push(this.ToffsetWires1C2[t - 1]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2217
2282
|
break;
|
|
2218
|
-
case
|
|
2219
|
-
this.ToffsetWires1C1.length >= 8 && (
|
|
2283
|
+
case p.四分裂:
|
|
2284
|
+
this.ToffsetWires1C1.length >= 8 && (i.push(this.ToffsetWires1C1[t - 8]), i.push(this.ToffsetWires1C1[t - 4]), this.ToffsetArcWires1C = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[t - 7]), l.push(this.ToffsetWires1C1[t - 3]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[t - 6]), u.push(this.ToffsetWires1C1[t - 2]), this.ToffsetArcWires1C = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[t - 5]), C.push(this.ToffsetWires1C1[t - 1]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 8 && (I.push(this.ToffsetWires1C2[t - 8]), I.push(this.ToffsetWires1C2[t - 4]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[t - 7]), P.push(this.ToffsetWires1C2[t - 3]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C2[t - 6]), g.push(this.ToffsetWires1C2[t - 2]), this.ToffsetArcWires2C = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[t - 5]), y.push(this.ToffsetWires1C2[t - 1]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2220
2285
|
break;
|
|
2221
|
-
case
|
|
2222
|
-
this.ToffsetWires1C1.length >= 12 && (
|
|
2286
|
+
case p.六分裂:
|
|
2287
|
+
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[t - 12]), i.push(this.ToffsetWires1C1[t - 6]), this.ToffsetArcWires1C = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[t - 11]), l.push(this.ToffsetWires1C1[t - 5]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[t - 10]), u.push(this.ToffsetWires1C1[t - 4]), this.ToffsetArcWires1C = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[t - 9]), C.push(this.ToffsetWires1C1[t - 3]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[t - 8]), o.push(this.ToffsetWires1C1[t - 2]), this.ToffsetArcWires1C = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1C1[t - 7]), c.push(this.ToffsetWires1C1[t - 1]), this.ToffsetArcWires1C = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (I.push(this.ToffsetWires1C2[t - 12]), I.push(this.ToffsetWires1C2[t - 6]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[t - 11]), P.push(this.ToffsetWires1C2[t - 5]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C2[t - 10]), g.push(this.ToffsetWires1C2[t - 4]), this.ToffsetArcWires2C = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[t - 9]), y.push(this.ToffsetWires1C2[t - 3]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[t - 8]), _.push(this.ToffsetWires1C2[t - 2]), this.ToffsetArcWires2C = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[t - 7]), v.push(this.ToffsetWires1C2[t - 1]), this.ToffsetArcWires2C = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2223
2288
|
break;
|
|
2224
|
-
case
|
|
2225
|
-
this.ToffsetWires1C1.length >= 16 && (
|
|
2289
|
+
case p.八分裂:
|
|
2290
|
+
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[t - 16]), i.push(this.ToffsetWires1C1[t - 8]), this.ToffsetArcWires1C = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[t - 15]), l.push(this.ToffsetWires1C1[t - 7]), this.ToffsetArcWires1C = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires1C1[t - 14]), u.push(this.ToffsetWires1C1[t - 6]), this.ToffsetArcWires1C = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires1C1[t - 13]), C.push(this.ToffsetWires1C1[t - 5]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[t - 12]), o.push(this.ToffsetWires1C1[t - 4]), this.ToffsetArcWires1C = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires1C1[t - 11]), c.push(this.ToffsetWires1C1[t - 3]), this.ToffsetArcWires1C = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C1[t - 10]), m.push(this.ToffsetWires1C1[t - 2]), this.ToffsetArcWires1C = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C1[t - 9]), b.push(this.ToffsetWires1C1[t - 1]), this.ToffsetArcWires1C = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 16 && (I.push(this.ToffsetWires1C2[t - 16]), I.push(this.ToffsetWires1C2[t - 8]), this.ToffsetArcWires2C = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[t - 15]), P.push(this.ToffsetWires1C2[t - 7]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C2[t - 14]), g.push(this.ToffsetWires1C2[t - 6]), this.ToffsetArcWires2C = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C2[t - 13]), y.push(this.ToffsetWires1C2[t - 5]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[t - 12]), _.push(this.ToffsetWires1C2[t - 4]), this.ToffsetArcWires2C = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[t - 11]), v.push(this.ToffsetWires1C2[t - 3]), this.ToffsetArcWires2C = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1C2[t - 10]), S.push(this.ToffsetWires1C2[t - 2]), this.ToffsetArcWires2C = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1C2[t - 9]), M.push(this.ToffsetWires1C2[t - 1]), this.ToffsetArcWires2C = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2226
2291
|
break;
|
|
2227
2292
|
}
|
|
2228
2293
|
}
|
|
2229
2294
|
if (this.ToffsetWires2A1.length > 1 && this.ToffsetWires2A2.length > 1) {
|
|
2230
|
-
const
|
|
2295
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], _ = [], v = [], S = [], M = [];
|
|
2231
2296
|
switch (this.LineInfo.Wairnum) {
|
|
2232
|
-
case
|
|
2233
|
-
this.ToffsetWires2A1.length >= 2 && (
|
|
2297
|
+
case p.单分裂:
|
|
2298
|
+
this.ToffsetWires2A1.length >= 2 && (i.push(this.ToffsetWires2A1[t - 2]), i.push(this.ToffsetWires2A1[t - 1]), this.ToffsetArcWires1A2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (I.push(this.ToffsetWires2A2[t - 2]), I.push(this.ToffsetWires2A2[t - 1]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2234
2299
|
break;
|
|
2235
|
-
case
|
|
2236
|
-
this.ToffsetWires2A1.length >= 4 && (
|
|
2300
|
+
case p.双分裂:
|
|
2301
|
+
this.ToffsetWires2A1.length >= 4 && (i.push(this.ToffsetWires2A1[t - 4]), i.push(this.ToffsetWires2A1[t - 2]), this.ToffsetArcWires1A2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[t - 3]), l.push(this.ToffsetWires2A1[t - 1]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 4 && (I.push(this.ToffsetWires2A2[t - 4]), I.push(this.ToffsetWires2A2[t - 2]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[t - 3]), P.push(this.ToffsetWires2A2[t - 1]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2237
2302
|
break;
|
|
2238
|
-
case
|
|
2239
|
-
this.ToffsetWires2A1.length >= 8 && (
|
|
2303
|
+
case p.四分裂:
|
|
2304
|
+
this.ToffsetWires2A1.length >= 8 && (i.push(this.ToffsetWires2A1[t - 8]), i.push(this.ToffsetWires2A1[t - 4]), this.ToffsetArcWires1A2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[t - 7]), l.push(this.ToffsetWires2A1[t - 3]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[t - 6]), u.push(this.ToffsetWires2A1[t - 2]), this.ToffsetArcWires1A2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[t - 5]), C.push(this.ToffsetWires2A1[t - 1]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 8 && (I.push(this.ToffsetWires2A2[t - 8]), I.push(this.ToffsetWires2A2[t - 4]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[t - 7]), P.push(this.ToffsetWires2A2[t - 3]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A2[t - 6]), g.push(this.ToffsetWires2A2[t - 2]), this.ToffsetArcWires2A2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[t - 5]), y.push(this.ToffsetWires2A2[t - 1]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2240
2305
|
break;
|
|
2241
|
-
case
|
|
2242
|
-
this.ToffsetWires2A1.length >= 12 && (
|
|
2306
|
+
case p.六分裂:
|
|
2307
|
+
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[t - 12]), i.push(this.ToffsetWires2A1[t - 6]), this.ToffsetArcWires1A2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[t - 11]), l.push(this.ToffsetWires2A1[t - 5]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[t - 10]), u.push(this.ToffsetWires2A1[t - 4]), this.ToffsetArcWires1A2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[t - 9]), C.push(this.ToffsetWires2A1[t - 3]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[t - 8]), o.push(this.ToffsetWires2A1[t - 2]), this.ToffsetArcWires1A2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2A1[t - 7]), c.push(this.ToffsetWires2A1[t - 1]), this.ToffsetArcWires1A2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (I.push(this.ToffsetWires2A2[t - 12]), I.push(this.ToffsetWires2A2[t - 6]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[t - 11]), P.push(this.ToffsetWires2A2[t - 5]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A2[t - 10]), g.push(this.ToffsetWires2A2[t - 4]), this.ToffsetArcWires2A2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[t - 9]), y.push(this.ToffsetWires2A2[t - 3]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[t - 8]), _.push(this.ToffsetWires2A2[t - 2]), this.ToffsetArcWires2A2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[t - 7]), v.push(this.ToffsetWires2A2[t - 1]), this.ToffsetArcWires2A2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2243
2308
|
break;
|
|
2244
|
-
case
|
|
2245
|
-
this.ToffsetWires2A1.length >= 16 && (
|
|
2309
|
+
case p.八分裂:
|
|
2310
|
+
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[t - 16]), i.push(this.ToffsetWires2A1[t - 8]), this.ToffsetArcWires1A2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[t - 15]), l.push(this.ToffsetWires2A1[t - 7]), this.ToffsetArcWires1A2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2A1[t - 14]), u.push(this.ToffsetWires2A1[t - 6]), this.ToffsetArcWires1A2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2A1[t - 13]), C.push(this.ToffsetWires2A1[t - 5]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[t - 12]), o.push(this.ToffsetWires2A1[t - 4]), this.ToffsetArcWires1A2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2A1[t - 11]), c.push(this.ToffsetWires2A1[t - 3]), this.ToffsetArcWires1A2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A1[t - 10]), m.push(this.ToffsetWires2A1[t - 2]), this.ToffsetArcWires1A2 = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A1[t - 9]), b.push(this.ToffsetWires2A1[t - 1]), this.ToffsetArcWires1A2 = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 16 && (I.push(this.ToffsetWires2A2[t - 16]), I.push(this.ToffsetWires2A2[t - 8]), this.ToffsetArcWires2A2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[t - 15]), P.push(this.ToffsetWires2A2[t - 7]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A2[t - 14]), g.push(this.ToffsetWires2A2[t - 6]), this.ToffsetArcWires2A2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A2[t - 13]), y.push(this.ToffsetWires2A2[t - 5]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[t - 12]), _.push(this.ToffsetWires2A2[t - 4]), this.ToffsetArcWires2A2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[t - 11]), v.push(this.ToffsetWires2A2[t - 3]), this.ToffsetArcWires2A2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2A2[t - 10]), S.push(this.ToffsetWires2A2[t - 2]), this.ToffsetArcWires2A2 = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2A2[t - 9]), M.push(this.ToffsetWires2A2[t - 1]), this.ToffsetArcWires2A2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2246
2311
|
break;
|
|
2247
2312
|
}
|
|
2248
2313
|
}
|
|
2249
2314
|
if (this.ToffsetWires2B1.length > 1 && this.ToffsetWires2B2.length > 1) {
|
|
2250
|
-
const
|
|
2315
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], _ = [], v = [], S = [], M = [];
|
|
2251
2316
|
switch (this.LineInfo.Wairnum) {
|
|
2252
|
-
case
|
|
2253
|
-
this.ToffsetWires2B1.length >= 2 && (
|
|
2317
|
+
case p.单分裂:
|
|
2318
|
+
this.ToffsetWires2B1.length >= 2 && (i.push(this.ToffsetWires2B1[t - 2]), i.push(this.ToffsetWires2B1[t - 1]), this.ToffsetArcWires1B2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (I.push(this.ToffsetWires2B2[t - 2]), I.push(this.ToffsetWires2B2[t - 1]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2254
2319
|
break;
|
|
2255
|
-
case
|
|
2256
|
-
this.ToffsetWires2B1.length >= 4 && (
|
|
2320
|
+
case p.双分裂:
|
|
2321
|
+
this.ToffsetWires2B1.length >= 4 && (i.push(this.ToffsetWires2B1[t - 4]), i.push(this.ToffsetWires2B1[t - 2]), this.ToffsetArcWires1B2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[t - 3]), l.push(this.ToffsetWires2B1[t - 1]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 4 && (I.push(this.ToffsetWires2B2[t - 4]), I.push(this.ToffsetWires2B2[t - 2]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[t - 3]), P.push(this.ToffsetWires2B2[t - 1]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2257
2322
|
break;
|
|
2258
|
-
case
|
|
2259
|
-
this.ToffsetWires2B1.length >= 8 && (
|
|
2323
|
+
case p.四分裂:
|
|
2324
|
+
this.ToffsetWires2B1.length >= 8 && (i.push(this.ToffsetWires2B1[t - 8]), i.push(this.ToffsetWires2B1[t - 4]), this.ToffsetArcWires1B2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[t - 7]), l.push(this.ToffsetWires2B1[t - 3]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[t - 6]), u.push(this.ToffsetWires2B1[t - 2]), this.ToffsetArcWires1B2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[t - 5]), C.push(this.ToffsetWires2B1[t - 1]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 8 && (I.push(this.ToffsetWires2B2[t - 8]), I.push(this.ToffsetWires2B2[t - 4]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[t - 7]), P.push(this.ToffsetWires2B2[t - 3]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B2[t - 6]), g.push(this.ToffsetWires2B2[t - 2]), this.ToffsetArcWires2B2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[t - 5]), y.push(this.ToffsetWires2B2[t - 1]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2260
2325
|
break;
|
|
2261
|
-
case
|
|
2262
|
-
this.ToffsetWires2B1.length >= 12 && (
|
|
2326
|
+
case p.六分裂:
|
|
2327
|
+
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[t - 12]), i.push(this.ToffsetWires2B1[t - 6]), this.ToffsetArcWires1B2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[t - 11]), l.push(this.ToffsetWires2B1[t - 5]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[t - 10]), u.push(this.ToffsetWires2B1[t - 4]), this.ToffsetArcWires1B2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[t - 9]), C.push(this.ToffsetWires2B1[t - 3]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[t - 8]), o.push(this.ToffsetWires2B1[t - 2]), this.ToffsetArcWires1B2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2B1[t - 7]), c.push(this.ToffsetWires2B1[t - 1]), this.ToffsetArcWires1B2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (I.push(this.ToffsetWires2B2[t - 12]), I.push(this.ToffsetWires2B2[t - 6]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[t - 11]), P.push(this.ToffsetWires2B2[t - 5]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B2[t - 10]), g.push(this.ToffsetWires2B2[t - 4]), this.ToffsetArcWires2B2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[t - 9]), y.push(this.ToffsetWires2B2[t - 3]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[t - 8]), _.push(this.ToffsetWires2B2[t - 2]), this.ToffsetArcWires2B2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[t - 7]), v.push(this.ToffsetWires2B2[t - 1]), this.ToffsetArcWires2B2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2263
2328
|
break;
|
|
2264
|
-
case
|
|
2265
|
-
this.ToffsetWires2B1.length >= 16 && (
|
|
2329
|
+
case p.八分裂:
|
|
2330
|
+
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[t - 16]), i.push(this.ToffsetWires2B1[t - 8]), this.ToffsetArcWires1B2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[t - 15]), l.push(this.ToffsetWires2B1[t - 7]), this.ToffsetArcWires1B2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2B1[t - 14]), u.push(this.ToffsetWires2B1[t - 6]), this.ToffsetArcWires1B2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2B1[t - 13]), C.push(this.ToffsetWires2B1[t - 5]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[t - 12]), o.push(this.ToffsetWires2B1[t - 4]), this.ToffsetArcWires1B2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2B1[t - 11]), c.push(this.ToffsetWires2B1[t - 3]), this.ToffsetArcWires1B2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B1[t - 10]), m.push(this.ToffsetWires2B1[t - 2]), this.ToffsetArcWires1B2 = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B1[t - 9]), b.push(this.ToffsetWires2B1[t - 1]), this.ToffsetArcWires1B2 = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 16 && (I.push(this.ToffsetWires2B2[t - 16]), I.push(this.ToffsetWires2B2[t - 8]), this.ToffsetArcWires2B2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[t - 15]), P.push(this.ToffsetWires2B2[t - 7]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B2[t - 14]), g.push(this.ToffsetWires2B2[t - 6]), this.ToffsetArcWires2B2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B2[t - 13]), y.push(this.ToffsetWires2B2[t - 5]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[t - 12]), _.push(this.ToffsetWires2B2[t - 4]), this.ToffsetArcWires2B2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[t - 11]), v.push(this.ToffsetWires2B2[t - 3]), this.ToffsetArcWires2B2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2B2[t - 10]), S.push(this.ToffsetWires2B2[t - 2]), this.ToffsetArcWires2B2 = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2B2[t - 9]), M.push(this.ToffsetWires2B2[t - 1]), this.ToffsetArcWires2B2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2266
2331
|
break;
|
|
2267
2332
|
}
|
|
2268
2333
|
}
|
|
2269
2334
|
if (this.ToffsetWires2C1.length > 1 && this.ToffsetWires2C2.length > 1) {
|
|
2270
|
-
const
|
|
2335
|
+
const i = [], l = [], u = [], C = [], o = [], c = [], m = [], b = [], I = [], P = [], g = [], y = [], _ = [], v = [], S = [], M = [];
|
|
2271
2336
|
switch (this.LineInfo.Wairnum) {
|
|
2272
|
-
case
|
|
2273
|
-
this.ToffsetWires2C1.length >= 2 && (
|
|
2337
|
+
case p.单分裂:
|
|
2338
|
+
this.ToffsetWires2C1.length >= 2 && (i.push(this.ToffsetWires2C1[t - 2]), i.push(this.ToffsetWires2C1[t - 1]), this.ToffsetArcWires1C2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (I.push(this.ToffsetWires2C2[t - 2]), I.push(this.ToffsetWires2C2[t - 1]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2274
2339
|
break;
|
|
2275
|
-
case
|
|
2276
|
-
this.ToffsetWires2C1.length >= 4 && (
|
|
2340
|
+
case p.双分裂:
|
|
2341
|
+
this.ToffsetWires2C1.length >= 4 && (i.push(this.ToffsetWires2C1[t - 4]), i.push(this.ToffsetWires2C1[t - 2]), this.ToffsetArcWires1C2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[t - 3]), l.push(this.ToffsetWires2C1[t - 1]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 4 && (I.push(this.ToffsetWires2C2[t - 4]), I.push(this.ToffsetWires2C2[t - 2]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[t - 3]), P.push(this.ToffsetWires2C2[t - 1]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2277
2342
|
break;
|
|
2278
|
-
case
|
|
2279
|
-
this.ToffsetWires2C1.length >= 8 && (
|
|
2343
|
+
case p.四分裂:
|
|
2344
|
+
this.ToffsetWires2C1.length >= 8 && (i.push(this.ToffsetWires2C1[t - 8]), i.push(this.ToffsetWires2C1[t - 4]), this.ToffsetArcWires1C2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[t - 7]), l.push(this.ToffsetWires2C1[t - 3]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[t - 6]), u.push(this.ToffsetWires2C1[t - 2]), this.ToffsetArcWires1C2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[t - 5]), C.push(this.ToffsetWires2C1[t - 1]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 8 && (I.push(this.ToffsetWires2C2[t - 8]), I.push(this.ToffsetWires2C2[t - 4]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[t - 7]), P.push(this.ToffsetWires2C2[t - 3]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C2[t - 6]), g.push(this.ToffsetWires2C2[t - 2]), this.ToffsetArcWires2C2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[t - 5]), y.push(this.ToffsetWires2C2[t - 1]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2280
2345
|
break;
|
|
2281
|
-
case
|
|
2282
|
-
this.ToffsetWires2C1.length >= 12 && (
|
|
2346
|
+
case p.六分裂:
|
|
2347
|
+
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[t - 12]), i.push(this.ToffsetWires2C1[t - 6]), this.ToffsetArcWires1C2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[t - 11]), l.push(this.ToffsetWires2C1[t - 5]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[t - 10]), u.push(this.ToffsetWires2C1[t - 4]), this.ToffsetArcWires1C2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[t - 9]), C.push(this.ToffsetWires2C1[t - 3]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[t - 8]), o.push(this.ToffsetWires2C1[t - 2]), this.ToffsetArcWires1C2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2C1[t - 7]), c.push(this.ToffsetWires2C1[t - 1]), this.ToffsetArcWires1C2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (I.push(this.ToffsetWires2C2[t - 12]), I.push(this.ToffsetWires2C2[t - 6]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[t - 11]), P.push(this.ToffsetWires2C2[t - 5]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C2[t - 10]), g.push(this.ToffsetWires2C2[t - 4]), this.ToffsetArcWires2C2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[t - 9]), y.push(this.ToffsetWires2C2[t - 3]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[t - 8]), _.push(this.ToffsetWires2C2[t - 2]), this.ToffsetArcWires2C2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[t - 7]), v.push(this.ToffsetWires2C2[t - 1]), this.ToffsetArcWires2C2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2283
2348
|
break;
|
|
2284
|
-
case
|
|
2285
|
-
this.ToffsetWires2C1.length >= 16 && (
|
|
2349
|
+
case p.八分裂:
|
|
2350
|
+
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[t - 16]), i.push(this.ToffsetWires2C1[t - 8]), this.ToffsetArcWires1C2 = f(i, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[t - 15]), l.push(this.ToffsetWires2C1[t - 7]), this.ToffsetArcWires1C2 = f(l, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), u.push(this.ToffsetWires2C1[t - 14]), u.push(this.ToffsetWires2C1[t - 6]), this.ToffsetArcWires1C2 = f(u, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), C.push(this.ToffsetWires2C1[t - 13]), C.push(this.ToffsetWires2C1[t - 5]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[t - 12]), o.push(this.ToffsetWires2C1[t - 4]), this.ToffsetArcWires1C2 = f(o, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), c.push(this.ToffsetWires2C1[t - 11]), c.push(this.ToffsetWires2C1[t - 3]), this.ToffsetArcWires1C2 = f(c, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C1[t - 10]), m.push(this.ToffsetWires2C1[t - 2]), this.ToffsetArcWires1C2 = f(m, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C1[t - 9]), b.push(this.ToffsetWires2C1[t - 1]), this.ToffsetArcWires1C2 = f(b, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 16 && (I.push(this.ToffsetWires2C2[t - 16]), I.push(this.ToffsetWires2C2[t - 8]), this.ToffsetArcWires2C2 = f(I, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[t - 15]), P.push(this.ToffsetWires2C2[t - 7]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C2[t - 14]), g.push(this.ToffsetWires2C2[t - 6]), this.ToffsetArcWires2C2 = f(g, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线3" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C2[t - 13]), y.push(this.ToffsetWires2C2[t - 5]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[t - 12]), _.push(this.ToffsetWires2C2[t - 4]), this.ToffsetArcWires2C2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[t - 11]), v.push(this.ToffsetWires2C2[t - 3]), this.ToffsetArcWires2C2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2C2[t - 10]), S.push(this.ToffsetWires2C2[t - 2]), this.ToffsetArcWires2C2 = f(S, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线7" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2C2[t - 9]), M.push(this.ToffsetWires2C2[t - 1]), this.ToffsetArcWires2C2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2286
2351
|
break;
|
|
2287
2352
|
}
|
|
2288
2353
|
}
|
|
2289
2354
|
} else
|
|
2290
2355
|
switch (this.LineInfo.Wairnum) {
|
|
2291
|
-
case
|
|
2292
|
-
|
|
2356
|
+
case p.单分裂:
|
|
2357
|
+
e = e + 1;
|
|
2293
2358
|
break;
|
|
2294
|
-
case
|
|
2295
|
-
|
|
2359
|
+
case p.双分裂:
|
|
2360
|
+
e = e + 2;
|
|
2296
2361
|
break;
|
|
2297
|
-
case
|
|
2298
|
-
|
|
2362
|
+
case p.四分裂:
|
|
2363
|
+
e = e + 4;
|
|
2299
2364
|
break;
|
|
2300
|
-
case
|
|
2301
|
-
|
|
2365
|
+
case p.六分裂:
|
|
2366
|
+
e = e + 6;
|
|
2302
2367
|
break;
|
|
2303
|
-
case
|
|
2304
|
-
|
|
2368
|
+
case p.八分裂:
|
|
2369
|
+
e = e + 8;
|
|
2305
2370
|
break;
|
|
2306
2371
|
}
|
|
2307
2372
|
});
|
|
2308
2373
|
}
|
|
2309
|
-
addTreeData(
|
|
2310
|
-
this.LineInfo.Trees.push(
|
|
2374
|
+
addTreeData(e) {
|
|
2375
|
+
this.LineInfo.Trees.push(e);
|
|
2311
2376
|
}
|
|
2312
2377
|
//加载数模型
|
|
2378
|
+
/**
|
|
2379
|
+
* 初始化树木数据并设置动态加载(如果启用)
|
|
2380
|
+
*/
|
|
2313
2381
|
loadTree() {
|
|
2314
|
-
this.LineInfo.Trees.forEach((
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2382
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.Trees.forEach((e) => {
|
|
2383
|
+
this.offsetTrees.push(n.Cartesian3.fromDegrees(e.lon, e.lat, e.alt));
|
|
2384
|
+
}), this.viewer.dataSources.contains(this.dataSourcetree) || (this.viewer.dataSources.add(this.dataSourcetree), console.log("Added tree datasource to viewer in loadTree")), this.entityCollectiontree.show = !0, this.isDynamicLoadingEnabled ? (this.setupTreeCameraMoveListener(), this.updateVisibleTrees()) : this.loadAllTreesAtOnce());
|
|
2385
|
+
}
|
|
2386
|
+
/**
|
|
2387
|
+
* 一次性加载所有树木(静态加载模式)
|
|
2388
|
+
*/
|
|
2389
|
+
loadAllTreesAtOnce() {
|
|
2390
|
+
this.LineInfo.Trees.length !== this.offsetTrees.length && console.warn(
|
|
2391
|
+
`树木数据长度 (${this.LineInfo.Trees.length}) 与位置数据长度 (${this.offsetTrees.length}) 不匹配`
|
|
2392
|
+
);
|
|
2393
|
+
const e = Math.min(this.LineInfo.Trees.length, this.offsetTrees.length);
|
|
2394
|
+
for (let t = 0; t < e; t++) {
|
|
2395
|
+
const r = this.LineInfo.Trees[t], s = this.offsetTrees[t];
|
|
2396
|
+
r && s ? this.loadTreeAtIndex(t, s) : console.warn(`跳过无效的树木数据,索引: ${t}`);
|
|
2397
|
+
}
|
|
2398
|
+
console.log(`完成加载 ${e} 棵树木`);
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* 加载指定索引的树木
|
|
2402
|
+
*/
|
|
2403
|
+
loadTreeAtIndex(e, t) {
|
|
2404
|
+
const r = this.LineInfo.Trees[e];
|
|
2405
|
+
if (!r.modelurl || r.modelurl.trim() === "") {
|
|
2406
|
+
console.warn(`Tree ${e} has invalid model URL: ${r.modelurl}. Skipping...`);
|
|
2407
|
+
return;
|
|
2408
|
+
}
|
|
2409
|
+
console.log(`Loading tree ${e}: id=${r.id}, url=${r.modelurl}, lon=${r.lon}, lat=${r.lat}, alt=${r.alt}, treeH=${r.treeH}, treeScale=${r.treeScale}`);
|
|
2410
|
+
let s = 1;
|
|
2411
|
+
r.treeScale > 0 && r.treeH > 0 ? (s = r.treeH / r.treeScale, s <= 0 && (s = 1)) : r.treeH > 0 && (s = r.treeH), console.log(`Tree ${e} scale: ${s} (treeH=${r.treeH}, treeScale=${r.treeScale})`);
|
|
2412
|
+
const T = this.getCachedModelConfig(
|
|
2413
|
+
r.modelurl,
|
|
2414
|
+
s,
|
|
2415
|
+
0,
|
|
2416
|
+
// 最小显示距离
|
|
2417
|
+
2e4
|
|
2418
|
+
// 最大显示距离(20km)
|
|
2419
|
+
);
|
|
2420
|
+
this.entityCollectiontree.add(
|
|
2421
|
+
Cs(
|
|
2422
|
+
"tree-" + r.id,
|
|
2423
|
+
t,
|
|
2424
|
+
"tree-" + r.id,
|
|
2425
|
+
T.uri,
|
|
2426
|
+
new n.HeadingPitchRoll(0, 0, 0),
|
|
2427
|
+
// 树木通常不需要旋转
|
|
2428
|
+
T.scale,
|
|
2429
|
+
T.distanceDisplayCondition
|
|
2430
|
+
)
|
|
2431
|
+
), console.log(`Tree ${e} added. Total trees in collection: ${this.entityCollectiontree.values.length}`);
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* 飞到指定索引的树木位置
|
|
2435
|
+
* @param treeIndex 树木索引(从0开始)
|
|
2436
|
+
*/
|
|
2437
|
+
flyToTree(e) {
|
|
2438
|
+
if (e < 0 || e >= this.LineInfo.Trees.length) {
|
|
2439
|
+
console.warn(`Invalid tree index: ${e}. Valid range: 0-${this.LineInfo.Trees.length - 1}`);
|
|
2440
|
+
return;
|
|
2441
|
+
}
|
|
2442
|
+
const t = this.LineInfo.Trees[e], r = n.Cartesian3.fromDegrees(t.lon, t.lat, t.alt + (t.treeH || 0));
|
|
2443
|
+
this.viewer.camera.flyTo({
|
|
2444
|
+
destination: r,
|
|
2445
|
+
duration: 2,
|
|
2446
|
+
orientation: {
|
|
2447
|
+
heading: n.Math.toRadians(0),
|
|
2448
|
+
pitch: n.Math.toRadians(-60),
|
|
2449
|
+
roll: n.Math.toRadians(0)
|
|
2450
|
+
}
|
|
2451
|
+
}), console.log(`Flying to tree ${e}: lon=${t.lon}, lat=${t.lat}, alt=${t.alt}, treeH=${t.treeH}`);
|
|
2359
2452
|
}
|
|
2360
2453
|
/**
|
|
2361
2454
|
* 显示计算结果
|
|
2362
2455
|
* @param point 树木坐标点 [经度, 纬度, 高度]
|
|
2363
2456
|
*/
|
|
2364
|
-
calcResult(
|
|
2365
|
-
const
|
|
2366
|
-
|
|
2457
|
+
calcResult(e) {
|
|
2458
|
+
const t = Qs(
|
|
2459
|
+
e,
|
|
2367
2460
|
this.arcLine1A1,
|
|
2368
2461
|
this.arcLine1B1,
|
|
2369
2462
|
this.arcLine1D1
|
|
2370
2463
|
);
|
|
2371
|
-
|
|
2464
|
+
js(e, t, this.entityCollectionplotting);
|
|
2372
2465
|
}
|
|
2373
2466
|
/**
|
|
2374
2467
|
* 加载树木点击监听功能
|
|
2375
2468
|
*/
|
|
2376
2469
|
loadTreeListen() {
|
|
2377
2470
|
this.treeHandler && this.removeTreeListen();
|
|
2378
|
-
const
|
|
2379
|
-
var
|
|
2380
|
-
const s =
|
|
2471
|
+
const e = (t, r) => {
|
|
2472
|
+
var T;
|
|
2473
|
+
const s = t.scene.pick(r);
|
|
2381
2474
|
if (n.defined(s)) {
|
|
2382
|
-
const W = n.defaultValue(s.id, (
|
|
2475
|
+
const W = n.defaultValue(s.id, (T = s.primitive) == null ? void 0 : T.id);
|
|
2383
2476
|
if (W instanceof n.Entity)
|
|
2384
2477
|
return W;
|
|
2385
2478
|
}
|
|
2386
2479
|
};
|
|
2387
|
-
this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((
|
|
2480
|
+
this.ensurePlottingDataSourceAdded(), this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((t) => {
|
|
2388
2481
|
var s;
|
|
2389
|
-
const r =
|
|
2390
|
-
if (r && r.id
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2482
|
+
const r = e(this.viewer, t.position);
|
|
2483
|
+
if (r && r.id) {
|
|
2484
|
+
const T = String(r.id);
|
|
2485
|
+
if (T.startsWith(es.TREE_ENTITY_PREFIX)) {
|
|
2486
|
+
const W = T.substring(es.TREE_ENTITY_PREFIX.length), L = (s = this.LineInfo.Trees) == null ? void 0 : s.find(
|
|
2487
|
+
(A) => A && A.id && String(A.id) === W
|
|
2488
|
+
);
|
|
2489
|
+
if (L) {
|
|
2490
|
+
const A = [
|
|
2491
|
+
L.lon,
|
|
2492
|
+
L.lat,
|
|
2493
|
+
Number(L.alt || 0) + Number(L.treeH || 0)
|
|
2494
|
+
];
|
|
2495
|
+
console.log("拾取树木:", L, "坐标:", A), this.calcResult(A);
|
|
2496
|
+
} else
|
|
2497
|
+
console.warn(`未找到ID为 ${W} 的树木`);
|
|
2402
2498
|
}
|
|
2403
2499
|
}
|
|
2404
|
-
}, n.ScreenSpaceEventType.LEFT_CLICK)
|
|
2500
|
+
}, n.ScreenSpaceEventType.LEFT_CLICK);
|
|
2501
|
+
}
|
|
2502
|
+
/**
|
|
2503
|
+
* 确保计算结果数据源已添加到viewer并显示
|
|
2504
|
+
*/
|
|
2505
|
+
ensurePlottingDataSourceAdded() {
|
|
2506
|
+
this.viewer.dataSources.contains(this.dataSourceplotting) || this.viewer.dataSources.add(this.dataSourceplotting), this.entityCollectionplotting.show = !0;
|
|
2405
2507
|
}
|
|
2406
2508
|
/**
|
|
2407
2509
|
* 移除树木点击监听及清理相关资源
|
|
2408
2510
|
*/
|
|
2409
2511
|
removeTreeListen() {
|
|
2410
|
-
this.treeHandler && (this.treeHandler.destroy(), this.treeHandler = null), this.dataSourceplotting && (this.
|
|
2512
|
+
this.treeHandler && (this.treeHandler.destroy(), this.treeHandler = null), this.dataSourceplotting && (this.entityCollectionplotting.removeAll(), this.entityCollectionplotting.show = !1);
|
|
2411
2513
|
}
|
|
2412
2514
|
LineChannelTerrainVerification() {
|
|
2413
|
-
this.LineInfo.Trees.forEach((
|
|
2414
|
-
if (
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
Number(
|
|
2515
|
+
this.ensurePlottingDataSourceAdded(), this.LineInfo.Trees.forEach((e) => {
|
|
2516
|
+
if (e) {
|
|
2517
|
+
const t = [
|
|
2518
|
+
e.lon,
|
|
2519
|
+
e.lat,
|
|
2520
|
+
Number(e.alt || 0) + Number(e.treeH || 0)
|
|
2419
2521
|
];
|
|
2420
|
-
this.calcResult(
|
|
2522
|
+
this.calcResult(t);
|
|
2421
2523
|
}
|
|
2422
|
-
})
|
|
2524
|
+
});
|
|
2423
2525
|
}
|
|
2424
2526
|
/**
|
|
2425
2527
|
* 清除所有树距测算标记(可选方法)
|
|
@@ -2433,12 +2535,18 @@ class Ti {
|
|
|
2433
2535
|
}
|
|
2434
2536
|
//加载渲染树木
|
|
2435
2537
|
loadtreeModel() {
|
|
2436
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSourcetree), this.entityCollectiontree.show = !0);
|
|
2538
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.contains(this.dataSourcetree) || (this.viewer.dataSources.add(this.dataSourcetree), console.log("Added tree datasource to viewer")), this.entityCollectiontree.show = !0, console.log(`Tree entity collection show: ${this.entityCollectiontree.show}, entities count: ${this.entityCollectiontree.values.length}`));
|
|
2437
2539
|
}
|
|
2438
2540
|
//移除树木
|
|
2439
2541
|
RemoveTreeModel() {
|
|
2440
2542
|
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSourcetree), this.entityCollectiontree.show = !1);
|
|
2441
2543
|
}
|
|
2544
|
+
/**
|
|
2545
|
+
* 重新加载树木(用于切换动态/静态模式后)
|
|
2546
|
+
*/
|
|
2547
|
+
reloadTrees() {
|
|
2548
|
+
this.RemoveTreeModel(), this.dataSourcetree = new n.CustomDataSource(this.LineInfo.LineID + "tree"), this.entityCollectiontree = this.dataSourcetree.entities, this.loadTree();
|
|
2549
|
+
}
|
|
2442
2550
|
LineSpriteLineinit() {
|
|
2443
2551
|
n.Material._materialCache.addMaterial(
|
|
2444
2552
|
"SpriteLineMaterialType",
|
|
@@ -2471,15 +2579,18 @@ class Ti {
|
|
|
2471
2579
|
);
|
|
2472
2580
|
}
|
|
2473
2581
|
//设置显隐
|
|
2474
|
-
setLineVisible(
|
|
2475
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show =
|
|
2582
|
+
setLineVisible(e) {
|
|
2583
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show = e, this.LineentityCollection2.show = e);
|
|
2476
2584
|
}
|
|
2477
2585
|
//移除渲染电力线路
|
|
2478
2586
|
RemoveLineModel() {
|
|
2479
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSource2), this.entityCollection2.show = !1, this.viewer.dataSources.remove(this.LinedataSource2), this.LineentityCollection2.show = !1, this.cameraMoveHandler && (this.cameraMoveHandler(), this.cameraMoveHandler = null), this.loadedTowerIndices.clear(), this.modelCache.clear());
|
|
2587
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSource2), this.entityCollection2.show = !1, this.viewer.dataSources.remove(this.LinedataSource2), this.LineentityCollection2.show = !1, this.cameraMoveHandler && (this.cameraMoveHandler(), this.cameraMoveHandler = null), this.loadedTowerIndices.clear(), this.loadedTreeIndices.clear(), this.modelCache.clear());
|
|
2480
2588
|
}
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2589
|
+
};
|
|
2590
|
+
// 树木实体ID前缀常量
|
|
2591
|
+
w(es, "TREE_ENTITY_PREFIX", "tree-");
|
|
2592
|
+
let ws = es;
|
|
2593
|
+
class At {
|
|
2483
2594
|
constructor() {
|
|
2484
2595
|
// 杆塔id
|
|
2485
2596
|
w(this, "id", "");
|
|
@@ -2509,119 +2620,119 @@ class Ci {
|
|
|
2509
2620
|
w(this, "RollZ", 0);
|
|
2510
2621
|
}
|
|
2511
2622
|
}
|
|
2512
|
-
function
|
|
2623
|
+
function et(a) {
|
|
2513
2624
|
debugger;
|
|
2514
|
-
const
|
|
2515
|
-
`),
|
|
2516
|
-
for (const W of
|
|
2625
|
+
const e = a.split(`
|
|
2626
|
+
`), t = [], r = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/, T = /^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;
|
|
2627
|
+
for (const W of e) {
|
|
2517
2628
|
const L = W.trim();
|
|
2518
2629
|
if (!L) continue;
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2521
|
-
|
|
2522
|
-
id: parseInt(
|
|
2523
|
-
x: parseFloat(
|
|
2524
|
-
y: parseFloat(
|
|
2525
|
-
z: parseFloat(
|
|
2526
|
-
flag: parseInt(
|
|
2630
|
+
const A = L.match(s);
|
|
2631
|
+
if (A) {
|
|
2632
|
+
t.push({
|
|
2633
|
+
id: parseInt(A[1]),
|
|
2634
|
+
x: parseFloat(A[2]),
|
|
2635
|
+
y: parseFloat(A[3]),
|
|
2636
|
+
z: parseFloat(A[4]),
|
|
2637
|
+
flag: parseInt(A[5])
|
|
2527
2638
|
});
|
|
2528
2639
|
continue;
|
|
2529
2640
|
}
|
|
2530
|
-
const d = L.match(
|
|
2641
|
+
const d = L.match(T);
|
|
2531
2642
|
d && r.push({
|
|
2532
2643
|
from: parseInt(d[1]),
|
|
2533
2644
|
to: parseInt(d[2]),
|
|
2534
2645
|
type: parseInt(d[3])
|
|
2535
2646
|
});
|
|
2536
2647
|
}
|
|
2537
|
-
return { TowerNodes:
|
|
2648
|
+
return { TowerNodes: t, connections: r };
|
|
2538
2649
|
}
|
|
2539
|
-
function
|
|
2540
|
-
const
|
|
2541
|
-
`),
|
|
2542
|
-
for (const r of
|
|
2650
|
+
function ot(a) {
|
|
2651
|
+
const e = a.split(`
|
|
2652
|
+
`), t = [];
|
|
2653
|
+
for (const r of e) {
|
|
2543
2654
|
if (!r.trim()) continue;
|
|
2544
|
-
const s = r.trim().split(/\s+/).filter((L) => L !== ""),
|
|
2545
|
-
if (isNaN(
|
|
2655
|
+
const s = r.trim().split(/\s+/).filter((L) => L !== ""), T = parseInt(s[0]);
|
|
2656
|
+
if (isNaN(T)) continue;
|
|
2546
2657
|
const W = [];
|
|
2547
2658
|
for (let L = 1; L < s.length; L += 3) {
|
|
2548
|
-
const
|
|
2549
|
-
if (!isNaN(
|
|
2659
|
+
const A = parseFloat(s[L]), d = parseFloat(s[L + 1]), i = parseFloat(s[L + 2]);
|
|
2660
|
+
if (!isNaN(A) && !isNaN(d) && !isNaN(i)) {
|
|
2550
2661
|
const l = Math.floor((L - 1) / 3) + 1;
|
|
2551
|
-
W.push({ timeStep: l, x:
|
|
2662
|
+
W.push({ timeStep: l, x: A, y: d, z: i });
|
|
2552
2663
|
}
|
|
2553
2664
|
}
|
|
2554
|
-
|
|
2555
|
-
nodeId:
|
|
2665
|
+
t.push({
|
|
2666
|
+
nodeId: T,
|
|
2556
2667
|
displacements: W
|
|
2557
2668
|
});
|
|
2558
2669
|
}
|
|
2559
|
-
return
|
|
2670
|
+
return t;
|
|
2560
2671
|
}
|
|
2561
|
-
function
|
|
2562
|
-
const
|
|
2563
|
-
return a.forEach((
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
nodeId:
|
|
2672
|
+
function Is(a) {
|
|
2673
|
+
const e = {};
|
|
2674
|
+
return a.forEach((t) => {
|
|
2675
|
+
t.displacements.forEach((r) => {
|
|
2676
|
+
e[r.timeStep] || (e[r.timeStep] = []), e[r.timeStep].push({
|
|
2677
|
+
nodeId: t.nodeId,
|
|
2567
2678
|
...r
|
|
2568
2679
|
});
|
|
2569
2680
|
});
|
|
2570
|
-
}),
|
|
2681
|
+
}), e;
|
|
2571
2682
|
}
|
|
2572
|
-
function
|
|
2573
|
-
const
|
|
2574
|
-
`),
|
|
2575
|
-
for (const s of
|
|
2683
|
+
function rt(a) {
|
|
2684
|
+
const e = a.split(`
|
|
2685
|
+
`), t = [];
|
|
2686
|
+
for (const s of e) {
|
|
2576
2687
|
if (!s.trim()) continue;
|
|
2577
|
-
const
|
|
2578
|
-
if (
|
|
2579
|
-
const W =
|
|
2580
|
-
|
|
2688
|
+
const T = s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);
|
|
2689
|
+
if (T) {
|
|
2690
|
+
const W = T[1].replace(/\s+/g, ""), L = T[2].trim().split(/\s+/).map(Number);
|
|
2691
|
+
t.push({
|
|
2581
2692
|
elementId: W,
|
|
2582
2693
|
stressRatios: L
|
|
2583
2694
|
});
|
|
2584
2695
|
}
|
|
2585
2696
|
}
|
|
2586
2697
|
const r = [];
|
|
2587
|
-
if (
|
|
2588
|
-
const s =
|
|
2589
|
-
for (let
|
|
2698
|
+
if (t.length > 0) {
|
|
2699
|
+
const s = t[0].stressRatios.length;
|
|
2700
|
+
for (let T = 0; T < s; T++) {
|
|
2590
2701
|
const W = {
|
|
2591
|
-
timeIndex:
|
|
2702
|
+
timeIndex: T,
|
|
2592
2703
|
elements: []
|
|
2593
2704
|
};
|
|
2594
|
-
for (const L of
|
|
2595
|
-
let
|
|
2596
|
-
const d = L.stressRatios[
|
|
2597
|
-
d > 1 ?
|
|
2705
|
+
for (const L of t) {
|
|
2706
|
+
let A;
|
|
2707
|
+
const d = L.stressRatios[T];
|
|
2708
|
+
d > 1 ? A = J.RED : d > 0.95 && d <= 1 ? A = J.PINK : d > 0.85 && d <= 0.95 ? A = J.YELLOW : d > 0.7 && d <= 0.85 ? A = J.GREEN : A = J.BLUE, W.elements.push({
|
|
2598
2709
|
elementId: L.elementId,
|
|
2599
2710
|
stressRatio: d,
|
|
2600
|
-
ylbColor:
|
|
2711
|
+
ylbColor: A
|
|
2601
2712
|
});
|
|
2602
2713
|
}
|
|
2603
2714
|
r.push(W);
|
|
2604
2715
|
}
|
|
2605
2716
|
}
|
|
2606
|
-
return { byElement:
|
|
2717
|
+
return { byElement: t, byTime: r };
|
|
2607
2718
|
}
|
|
2608
|
-
class
|
|
2609
|
-
constructor(
|
|
2719
|
+
class ht {
|
|
2720
|
+
constructor(e) {
|
|
2610
2721
|
w(this, "viewer");
|
|
2611
2722
|
w(this, "lines", []);
|
|
2612
|
-
this.viewer =
|
|
2723
|
+
this.viewer = e;
|
|
2613
2724
|
}
|
|
2614
2725
|
/**
|
|
2615
2726
|
* 添加一条线
|
|
2616
2727
|
* @returns 生成的Entity对象
|
|
2617
2728
|
*/
|
|
2618
|
-
addLine(
|
|
2619
|
-
const r =
|
|
2729
|
+
addLine(e, t) {
|
|
2730
|
+
const r = Es(this.viewer, e, t);
|
|
2620
2731
|
return this.lines.push(r), r;
|
|
2621
2732
|
}
|
|
2622
2733
|
/** 移除所有线 */
|
|
2623
2734
|
removeAll() {
|
|
2624
|
-
this.lines.forEach((
|
|
2735
|
+
this.lines.forEach((e) => this.viewer.entities.remove(e)), this.lines = [];
|
|
2625
2736
|
}
|
|
2626
2737
|
// /** 更新线坐标 */
|
|
2627
2738
|
// updateLinePositions(entity: Cesium.Entity, newPositions: Cartesian3[]) {
|
|
@@ -2638,60 +2749,60 @@ class oi {
|
|
|
2638
2749
|
// });
|
|
2639
2750
|
// }
|
|
2640
2751
|
}
|
|
2641
|
-
var
|
|
2642
|
-
(function(a,
|
|
2643
|
-
(function(
|
|
2752
|
+
var Ms = { exports: {} };
|
|
2753
|
+
(function(a, e) {
|
|
2754
|
+
(function(t, r) {
|
|
2644
2755
|
r();
|
|
2645
|
-
})(
|
|
2646
|
-
function
|
|
2647
|
-
return typeof
|
|
2756
|
+
})(is, function() {
|
|
2757
|
+
function t(d, i) {
|
|
2758
|
+
return typeof i > "u" ? i = { autoBom: !1 } : typeof i != "object" && (console.warn("Deprecated: Expected third argument to be a object"), i = { autoBom: !i }), i.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type) ? new Blob(["\uFEFF", d], { type: d.type }) : d;
|
|
2648
2759
|
}
|
|
2649
|
-
function r(d,
|
|
2760
|
+
function r(d, i, l) {
|
|
2650
2761
|
var u = new XMLHttpRequest();
|
|
2651
2762
|
u.open("GET", d), u.responseType = "blob", u.onload = function() {
|
|
2652
|
-
|
|
2763
|
+
A(u.response, i, l);
|
|
2653
2764
|
}, u.onerror = function() {
|
|
2654
2765
|
console.error("could not download file");
|
|
2655
2766
|
}, u.send();
|
|
2656
2767
|
}
|
|
2657
2768
|
function s(d) {
|
|
2658
|
-
var
|
|
2659
|
-
|
|
2769
|
+
var i = new XMLHttpRequest();
|
|
2770
|
+
i.open("HEAD", d, !1);
|
|
2660
2771
|
try {
|
|
2661
|
-
|
|
2772
|
+
i.send();
|
|
2662
2773
|
} catch {
|
|
2663
2774
|
}
|
|
2664
|
-
return 200 <=
|
|
2775
|
+
return 200 <= i.status && 299 >= i.status;
|
|
2665
2776
|
}
|
|
2666
|
-
function
|
|
2777
|
+
function T(d) {
|
|
2667
2778
|
try {
|
|
2668
2779
|
d.dispatchEvent(new MouseEvent("click"));
|
|
2669
2780
|
} catch {
|
|
2670
|
-
var
|
|
2671
|
-
|
|
2781
|
+
var i = document.createEvent("MouseEvents");
|
|
2782
|
+
i.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), d.dispatchEvent(i);
|
|
2672
2783
|
}
|
|
2673
2784
|
}
|
|
2674
|
-
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof
|
|
2675
|
-
} : "download" in HTMLAnchorElement.prototype && !L ? function(d,
|
|
2676
|
-
var u = W.URL || W.webkitURL,
|
|
2677
|
-
|
|
2678
|
-
u.revokeObjectURL(
|
|
2785
|
+
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof is == "object" && is.global === is ? is : void 0, L = W.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), A = W.saveAs || (typeof window != "object" || window !== W ? function() {
|
|
2786
|
+
} : "download" in HTMLAnchorElement.prototype && !L ? function(d, i, l) {
|
|
2787
|
+
var u = W.URL || W.webkitURL, C = document.createElement("a");
|
|
2788
|
+
i = i || d.name || "download", C.download = i, C.rel = "noopener", typeof d == "string" ? (C.href = d, C.origin === location.origin ? T(C) : s(C.href) ? r(d, i, l) : T(C, C.target = "_blank")) : (C.href = u.createObjectURL(d), setTimeout(function() {
|
|
2789
|
+
u.revokeObjectURL(C.href);
|
|
2679
2790
|
}, 4e4), setTimeout(function() {
|
|
2680
|
-
C
|
|
2791
|
+
T(C);
|
|
2681
2792
|
}, 0));
|
|
2682
|
-
} : "msSaveOrOpenBlob" in navigator ? function(d,
|
|
2683
|
-
if (
|
|
2684
|
-
else if (s(d)) r(d,
|
|
2793
|
+
} : "msSaveOrOpenBlob" in navigator ? function(d, i, l) {
|
|
2794
|
+
if (i = i || d.name || "download", typeof d != "string") navigator.msSaveOrOpenBlob(t(d, l), i);
|
|
2795
|
+
else if (s(d)) r(d, i, l);
|
|
2685
2796
|
else {
|
|
2686
2797
|
var u = document.createElement("a");
|
|
2687
2798
|
u.href = d, u.target = "_blank", setTimeout(function() {
|
|
2688
|
-
|
|
2799
|
+
T(u);
|
|
2689
2800
|
});
|
|
2690
2801
|
}
|
|
2691
|
-
} : function(d,
|
|
2692
|
-
if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof d == "string") return r(d,
|
|
2693
|
-
var
|
|
2694
|
-
if ((c ||
|
|
2802
|
+
} : function(d, i, l, u) {
|
|
2803
|
+
if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof d == "string") return r(d, i, l);
|
|
2804
|
+
var C = d.type === "application/octet-stream", o = /constructor/i.test(W.HTMLElement) || W.safari, c = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2805
|
+
if ((c || C && o || L) && typeof FileReader < "u") {
|
|
2695
2806
|
var m = new FileReader();
|
|
2696
2807
|
m.onloadend = function() {
|
|
2697
2808
|
var P = m.result;
|
|
@@ -2704,32 +2815,32 @@ var bs = { exports: {} };
|
|
|
2704
2815
|
}, 4e4);
|
|
2705
2816
|
}
|
|
2706
2817
|
});
|
|
2707
|
-
W.saveAs =
|
|
2818
|
+
W.saveAs = A.saveAs = A, a.exports = A;
|
|
2708
2819
|
});
|
|
2709
|
-
})(
|
|
2710
|
-
var
|
|
2711
|
-
const
|
|
2712
|
-
class
|
|
2820
|
+
})(Ms);
|
|
2821
|
+
var cs = Ms.exports;
|
|
2822
|
+
const ds = require("shp-write");
|
|
2823
|
+
class ft {
|
|
2713
2824
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
2714
|
-
constructor(
|
|
2825
|
+
constructor(e, t, r) {
|
|
2715
2826
|
// private viewer: Cesium.Viewer;
|
|
2716
2827
|
w(this, "towerNodes", []);
|
|
2717
2828
|
w(this, "connections", []);
|
|
2718
2829
|
w(this, "towerFZS");
|
|
2719
|
-
this.towerNodes =
|
|
2830
|
+
this.towerNodes = e, this.connections = t, this.towerFZS = r;
|
|
2720
2831
|
}
|
|
2721
2832
|
// 导出杆塔数据为SHP文件
|
|
2722
2833
|
async exportTowerToSHP() {
|
|
2723
2834
|
try {
|
|
2724
|
-
const
|
|
2725
|
-
await this.generateSHPFiles(
|
|
2726
|
-
} catch (
|
|
2727
|
-
console.error("导出SHP文件失败:",
|
|
2835
|
+
const e = await this.generatePointFeatures(), t = await this.generateLineFeatures();
|
|
2836
|
+
await this.generateSHPFiles(e, t), console.log("SHP文件导出成功");
|
|
2837
|
+
} catch (e) {
|
|
2838
|
+
console.error("导出SHP文件失败:", e);
|
|
2728
2839
|
}
|
|
2729
2840
|
}
|
|
2730
2841
|
// 生成点要素数据 - 修复坐标格式
|
|
2731
2842
|
async generatePointFeatures() {
|
|
2732
|
-
const
|
|
2843
|
+
const e = [], t = new n.HeadingPitchRoll(
|
|
2733
2844
|
n.Math.toRadians(this.towerFZS.RollX),
|
|
2734
2845
|
this.towerFZS.RollY,
|
|
2735
2846
|
this.towerFZS.RollZ
|
|
@@ -2739,11 +2850,11 @@ class ri {
|
|
|
2739
2850
|
this.towerFZS.Altitude
|
|
2740
2851
|
);
|
|
2741
2852
|
for (const s of this.towerNodes) {
|
|
2742
|
-
const
|
|
2853
|
+
const T = new n.Cartesian3(s.x, s.y, s.z), W = this.getPositionByHprAndOffset(r, T, t), L = n.Ellipsoid.WGS84.cartesianToCartographic(W), A = n.Math.toDegrees(L.longitude), d = n.Math.toDegrees(L.latitude), i = L.height, l = {
|
|
2743
2854
|
type: "Feature",
|
|
2744
2855
|
geometry: {
|
|
2745
2856
|
type: "Point",
|
|
2746
|
-
coordinates: [
|
|
2857
|
+
coordinates: [A, d]
|
|
2747
2858
|
// 只使用经度和纬度,高度放在属性中
|
|
2748
2859
|
},
|
|
2749
2860
|
properties: {
|
|
@@ -2752,21 +2863,21 @@ class ri {
|
|
|
2752
2863
|
x: s.x,
|
|
2753
2864
|
y: s.y,
|
|
2754
2865
|
z: s.z,
|
|
2755
|
-
longitude:
|
|
2866
|
+
longitude: A,
|
|
2756
2867
|
latitude: d,
|
|
2757
|
-
height:
|
|
2868
|
+
height: i,
|
|
2758
2869
|
// 高度作为属性存储
|
|
2759
|
-
elevation:
|
|
2870
|
+
elevation: i,
|
|
2760
2871
|
type: "tower_node"
|
|
2761
2872
|
}
|
|
2762
2873
|
};
|
|
2763
|
-
|
|
2874
|
+
e.push(l);
|
|
2764
2875
|
}
|
|
2765
|
-
return
|
|
2876
|
+
return e;
|
|
2766
2877
|
}
|
|
2767
2878
|
// 生成线要素数据 - 修复坐标格式
|
|
2768
2879
|
async generateLineFeatures() {
|
|
2769
|
-
const
|
|
2880
|
+
const e = [], t = new n.HeadingPitchRoll(
|
|
2770
2881
|
n.Math.toRadians(this.towerFZS.RollX),
|
|
2771
2882
|
this.towerFZS.RollY,
|
|
2772
2883
|
this.towerFZS.RollZ
|
|
@@ -2776,14 +2887,14 @@ class ri {
|
|
|
2776
2887
|
this.towerFZS.Altitude
|
|
2777
2888
|
);
|
|
2778
2889
|
for (const s of this.connections) {
|
|
2779
|
-
const
|
|
2780
|
-
if (!
|
|
2781
|
-
const L = new n.Cartesian3(
|
|
2890
|
+
const T = this.towerNodes.find((g) => g.id === s.from), W = this.towerNodes.find((g) => g.id === s.to);
|
|
2891
|
+
if (!T || !W) continue;
|
|
2892
|
+
const L = new n.Cartesian3(T.x, T.y, T.z), A = new n.Cartesian3(W.x, W.y, W.z), d = this.getPositionByHprAndOffset(r, L, t), i = this.getPositionByHprAndOffset(r, A, t), l = n.Ellipsoid.WGS84.cartesianToCartographic(d), u = n.Ellipsoid.WGS84.cartesianToCartographic(i), C = n.Math.toDegrees(l.longitude), o = n.Math.toDegrees(l.latitude), c = l.height, m = n.Math.toDegrees(u.longitude), b = n.Math.toDegrees(u.latitude), I = u.height, P = {
|
|
2782
2893
|
type: "Feature",
|
|
2783
2894
|
geometry: {
|
|
2784
2895
|
type: "LineString",
|
|
2785
2896
|
coordinates: [
|
|
2786
|
-
[
|
|
2897
|
+
[C, o],
|
|
2787
2898
|
// 起点,二维坐标
|
|
2788
2899
|
[m, b]
|
|
2789
2900
|
// 终点,二维坐标
|
|
@@ -2799,108 +2910,108 @@ class ri {
|
|
|
2799
2910
|
// 终点高度
|
|
2800
2911
|
avg_height: (c + I) / 2,
|
|
2801
2912
|
// 平均高度
|
|
2802
|
-
length: this.calculateDistance(d,
|
|
2913
|
+
length: this.calculateDistance(d, i),
|
|
2803
2914
|
type: "tower_member",
|
|
2804
2915
|
width: this.towerFZS.TowerMembersWidth,
|
|
2805
|
-
from_longitude:
|
|
2806
|
-
from_latitude:
|
|
2916
|
+
from_longitude: C,
|
|
2917
|
+
from_latitude: o,
|
|
2807
2918
|
to_longitude: m,
|
|
2808
2919
|
to_latitude: b
|
|
2809
2920
|
}
|
|
2810
2921
|
};
|
|
2811
|
-
|
|
2922
|
+
e.push(P);
|
|
2812
2923
|
}
|
|
2813
|
-
return
|
|
2924
|
+
return e;
|
|
2814
2925
|
}
|
|
2815
2926
|
// 修复SHP文件生成方法
|
|
2816
|
-
async generateSHPFiles(
|
|
2927
|
+
async generateSHPFiles(e, t) {
|
|
2817
2928
|
try {
|
|
2818
|
-
if (
|
|
2929
|
+
if (e.length > 0) {
|
|
2819
2930
|
const r = {
|
|
2820
2931
|
type: "FeatureCollection",
|
|
2821
|
-
features:
|
|
2822
|
-
}, s =
|
|
2932
|
+
features: e
|
|
2933
|
+
}, s = ds.point(r);
|
|
2823
2934
|
this.downloadSHPFiles(s, "tower_nodes");
|
|
2824
2935
|
}
|
|
2825
|
-
if (
|
|
2936
|
+
if (t.length > 0) {
|
|
2826
2937
|
const r = {
|
|
2827
2938
|
type: "FeatureCollection",
|
|
2828
|
-
features:
|
|
2829
|
-
}, s =
|
|
2939
|
+
features: t
|
|
2940
|
+
}, s = ds.line(r);
|
|
2830
2941
|
this.downloadSHPFiles(s, "tower_members");
|
|
2831
2942
|
}
|
|
2832
2943
|
} catch (r) {
|
|
2833
|
-
console.error("生成SHP文件时出错:", r), await this.alternativeExport(
|
|
2944
|
+
console.error("生成SHP文件时出错:", r), await this.alternativeExport(e, t);
|
|
2834
2945
|
}
|
|
2835
2946
|
}
|
|
2836
2947
|
// 下载SHP文件
|
|
2837
|
-
downloadSHPFiles(
|
|
2838
|
-
const r = new Blob([
|
|
2839
|
-
|
|
2948
|
+
downloadSHPFiles(e, t) {
|
|
2949
|
+
const r = new Blob([e], { type: "application/zip" });
|
|
2950
|
+
cs.saveAs(r, `${t}.zip`);
|
|
2840
2951
|
}
|
|
2841
2952
|
// 备用导出方案 - 导出为GeoJSON
|
|
2842
|
-
async alternativeExport(
|
|
2843
|
-
if (console.log("使用备用方案导出为GeoJSON格式"),
|
|
2953
|
+
async alternativeExport(e, t) {
|
|
2954
|
+
if (console.log("使用备用方案导出为GeoJSON格式"), e.length > 0) {
|
|
2844
2955
|
const r = {
|
|
2845
2956
|
type: "FeatureCollection",
|
|
2846
|
-
features:
|
|
2957
|
+
features: e
|
|
2847
2958
|
};
|
|
2848
2959
|
this.downloadJSON(r, "tower_nodes.geojson");
|
|
2849
2960
|
}
|
|
2850
|
-
if (
|
|
2961
|
+
if (t.length > 0) {
|
|
2851
2962
|
const r = {
|
|
2852
2963
|
type: "FeatureCollection",
|
|
2853
|
-
features:
|
|
2964
|
+
features: t
|
|
2854
2965
|
};
|
|
2855
2966
|
this.downloadJSON(r, "tower_members.geojson");
|
|
2856
2967
|
}
|
|
2857
2968
|
}
|
|
2858
2969
|
// 下载JSON文件
|
|
2859
|
-
downloadJSON(
|
|
2860
|
-
const r = new Blob([JSON.stringify(
|
|
2970
|
+
downloadJSON(e, t) {
|
|
2971
|
+
const r = new Blob([JSON.stringify(e, null, 2)], {
|
|
2861
2972
|
type: "application/json"
|
|
2862
2973
|
});
|
|
2863
|
-
|
|
2974
|
+
cs.saveAs(r, t);
|
|
2864
2975
|
}
|
|
2865
2976
|
// 计算两点之间的距离
|
|
2866
|
-
calculateDistance(
|
|
2867
|
-
return n.Cartesian3.distance(
|
|
2977
|
+
calculateDistance(e, t) {
|
|
2978
|
+
return n.Cartesian3.distance(e, t);
|
|
2868
2979
|
}
|
|
2869
2980
|
// 根据朝向和偏移量计算位置
|
|
2870
|
-
getPositionByHprAndOffset(
|
|
2871
|
-
const s = n.Transforms.headingPitchRollToFixedFrame(
|
|
2872
|
-
return n.Matrix4.multiplyByPoint(s,
|
|
2981
|
+
getPositionByHprAndOffset(e, t, r) {
|
|
2982
|
+
const s = n.Transforms.headingPitchRollToFixedFrame(e, r);
|
|
2983
|
+
return n.Matrix4.multiplyByPoint(s, t, new n.Cartesian3());
|
|
2873
2984
|
}
|
|
2874
2985
|
}
|
|
2875
|
-
class
|
|
2876
|
-
static async exportToCSV(
|
|
2877
|
-
const s = this.exportNodesToCSV(
|
|
2986
|
+
class nt {
|
|
2987
|
+
static async exportToCSV(e, t, r) {
|
|
2988
|
+
const s = this.exportNodesToCSV(e, r);
|
|
2878
2989
|
this.downloadCSV(s, "tower_nodes.csv");
|
|
2879
|
-
const
|
|
2880
|
-
this.downloadCSV(
|
|
2990
|
+
const T = this.exportConnectionsToCSV(t, e, r);
|
|
2991
|
+
this.downloadCSV(T, "tower_connections.csv");
|
|
2881
2992
|
}
|
|
2882
|
-
static exportNodesToCSV(
|
|
2993
|
+
static exportNodesToCSV(e, t) {
|
|
2883
2994
|
let r = `ID,X,Y,Z,Longitude,Latitude,Height
|
|
2884
2995
|
`;
|
|
2885
2996
|
const s = new n.HeadingPitchRoll(
|
|
2886
|
-
n.Math.toRadians(
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
),
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2997
|
+
n.Math.toRadians(t.RollX),
|
|
2998
|
+
t.RollY,
|
|
2999
|
+
t.RollZ
|
|
3000
|
+
), T = n.Cartesian3.fromDegrees(
|
|
3001
|
+
t.Longitude,
|
|
3002
|
+
t.Latitude,
|
|
3003
|
+
t.Altitude
|
|
2893
3004
|
);
|
|
2894
|
-
return
|
|
2895
|
-
const L = new n.Cartesian3(W.x, W.y, W.z),
|
|
2896
|
-
r += `${W.id},${W.x},${W.y},${W.z},${
|
|
3005
|
+
return e.forEach((W) => {
|
|
3006
|
+
const L = new n.Cartesian3(W.x, W.y, W.z), A = this.getPositionByHprAndOffset(T, L, s), d = n.Ellipsoid.WGS84.cartesianToCartographic(A), i = n.Math.toDegrees(d.longitude), l = n.Math.toDegrees(d.latitude), u = d.height;
|
|
3007
|
+
r += `${W.id},${W.x},${W.y},${W.z},${i},${l},${u}
|
|
2897
3008
|
`;
|
|
2898
3009
|
}), r;
|
|
2899
3010
|
}
|
|
2900
|
-
static exportConnectionsToCSV(
|
|
3011
|
+
static exportConnectionsToCSV(e, t, r) {
|
|
2901
3012
|
let s = `FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
|
|
2902
3013
|
`;
|
|
2903
|
-
const
|
|
3014
|
+
const T = new n.HeadingPitchRoll(
|
|
2904
3015
|
n.Math.toRadians(r.RollX),
|
|
2905
3016
|
r.RollY,
|
|
2906
3017
|
r.RollZ
|
|
@@ -2909,25 +3020,25 @@ class hi {
|
|
|
2909
3020
|
r.Latitude,
|
|
2910
3021
|
r.Altitude
|
|
2911
3022
|
);
|
|
2912
|
-
return
|
|
2913
|
-
const
|
|
2914
|
-
if (!
|
|
2915
|
-
const
|
|
2916
|
-
s += `${L.from},${L.to},${
|
|
3023
|
+
return e.forEach((L) => {
|
|
3024
|
+
const A = t.find((c) => c.id === L.from), d = t.find((c) => c.id === L.to);
|
|
3025
|
+
if (!A || !d) return;
|
|
3026
|
+
const i = new n.Cartesian3(A.x, A.y, A.z), l = new n.Cartesian3(d.x, d.y, d.z), u = this.getPositionByHprAndOffset(W, i, T), C = this.getPositionByHprAndOffset(W, l, T), o = n.Cartesian3.distance(u, C);
|
|
3027
|
+
s += `${L.from},${L.to},${A.x},${A.y},${A.z},${d.x},${d.y},${d.z},${o}
|
|
2917
3028
|
`;
|
|
2918
3029
|
}), s;
|
|
2919
3030
|
}
|
|
2920
|
-
static downloadCSV(
|
|
2921
|
-
const r = new Blob([
|
|
2922
|
-
|
|
3031
|
+
static downloadCSV(e, t) {
|
|
3032
|
+
const r = new Blob([e], { type: "text/csv;charset=utf-8;" });
|
|
3033
|
+
cs.saveAs(r, t);
|
|
2923
3034
|
}
|
|
2924
|
-
static getPositionByHprAndOffset(
|
|
2925
|
-
const s = n.Transforms.headingPitchRollToFixedFrame(
|
|
2926
|
-
return n.Matrix4.multiplyByPoint(s,
|
|
3035
|
+
static getPositionByHprAndOffset(e, t, r) {
|
|
3036
|
+
const s = n.Transforms.headingPitchRollToFixedFrame(e, r);
|
|
3037
|
+
return n.Matrix4.multiplyByPoint(s, t, new n.Cartesian3());
|
|
2927
3038
|
}
|
|
2928
3039
|
}
|
|
2929
|
-
class
|
|
2930
|
-
constructor(
|
|
3040
|
+
class pt {
|
|
3041
|
+
constructor(e, t, r) {
|
|
2931
3042
|
//三维场景
|
|
2932
3043
|
w(this, "viewer");
|
|
2933
3044
|
w(this, "TowerFZS");
|
|
@@ -2949,7 +3060,7 @@ class Ai {
|
|
|
2949
3060
|
w(this, "byTimes", []);
|
|
2950
3061
|
// 或者如果是Node.js环境:
|
|
2951
3062
|
w(this, "_animationInterval", null);
|
|
2952
|
-
this.Keym = r, this.viewer =
|
|
3063
|
+
this.Keym = r, this.viewer = e, this.TowerFZS = t, this.dataSource2 = new n.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new ht(this.viewer);
|
|
2953
3064
|
}
|
|
2954
3065
|
// 类的构造函数,用于初始化属性
|
|
2955
3066
|
// private shpExporter: TowerSHPExporter;
|
|
@@ -2959,9 +3070,9 @@ class Ai {
|
|
|
2959
3070
|
loadfile() {
|
|
2960
3071
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
2961
3072
|
return;
|
|
2962
|
-
const { TowerNodes:
|
|
2963
|
-
this.TowerNodes =
|
|
2964
|
-
const { byTime: r } =
|
|
3073
|
+
const { TowerNodes: e, connections: t } = et(this.TowerFZS.towerFZinfo);
|
|
3074
|
+
this.TowerNodes = e, this.connections = t, this.displacementData = ot(this.TowerFZS.towerDisFile);
|
|
3075
|
+
const { byTime: r } = rt(this.TowerFZS.stressFileContent);
|
|
2965
3076
|
this.byTimes = r;
|
|
2966
3077
|
debugger;
|
|
2967
3078
|
}
|
|
@@ -2969,12 +3080,12 @@ class Ai {
|
|
|
2969
3080
|
loadFZTower() {
|
|
2970
3081
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
2971
3082
|
return;
|
|
2972
|
-
let
|
|
2973
|
-
const
|
|
3083
|
+
let e = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
3084
|
+
const t = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
2974
3085
|
this.connections.forEach((r) => {
|
|
2975
|
-
const s = this.TowerNodes.find((l) => l.id === r.from),
|
|
2976
|
-
W.push(B(
|
|
2977
|
-
const
|
|
3086
|
+
const s = this.TowerNodes.find((l) => l.id === r.from), T = this.TowerNodes.find((l) => l.id === r.to), W = [], L = new n.Cartesian3(s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z);
|
|
3087
|
+
W.push(B(t, L, e));
|
|
3088
|
+
const A = os(
|
|
2978
3089
|
this.viewer,
|
|
2979
3090
|
W[0],
|
|
2980
3091
|
(s == null ? void 0 : s.id) + "",
|
|
@@ -2985,10 +3096,10 @@ class Ai {
|
|
|
2985
3096
|
pixelOffset: [0, -30]
|
|
2986
3097
|
}
|
|
2987
3098
|
);
|
|
2988
|
-
this.pointEntities.push(
|
|
2989
|
-
const d = new n.Cartesian3(
|
|
2990
|
-
W.push(B(
|
|
2991
|
-
const
|
|
3099
|
+
this.pointEntities.push(A);
|
|
3100
|
+
const d = new n.Cartesian3(T == null ? void 0 : T.x, T == null ? void 0 : T.y, T == null ? void 0 : T.z);
|
|
3101
|
+
W.push(B(t, d, e));
|
|
3102
|
+
const i = os(
|
|
2992
3103
|
this.viewer,
|
|
2993
3104
|
W[1],
|
|
2994
3105
|
(s == null ? void 0 : s.id) + "",
|
|
@@ -2999,12 +3110,12 @@ class Ai {
|
|
|
2999
3110
|
pixelOffset: [0, -30]
|
|
3000
3111
|
}
|
|
3001
3112
|
);
|
|
3002
|
-
this.pointEntities.push(
|
|
3113
|
+
this.pointEntities.push(i), this.TowerLineManager.addLine(W);
|
|
3003
3114
|
}), this.initSHPExporter();
|
|
3004
3115
|
}
|
|
3005
3116
|
// 使用修复后的SHP导出器
|
|
3006
3117
|
async exportToSHP() {
|
|
3007
|
-
await new
|
|
3118
|
+
await new ft(
|
|
3008
3119
|
this.TowerNodes,
|
|
3009
3120
|
this.connections,
|
|
3010
3121
|
this.TowerFZS
|
|
@@ -3012,7 +3123,7 @@ class Ai {
|
|
|
3012
3123
|
}
|
|
3013
3124
|
// 如果SHP导出仍有问题,使用CSV备用方案
|
|
3014
3125
|
async exportToCSV() {
|
|
3015
|
-
await
|
|
3126
|
+
await nt.exportToCSV(
|
|
3016
3127
|
this.TowerNodes,
|
|
3017
3128
|
this.connections,
|
|
3018
3129
|
this.TowerFZS
|
|
@@ -3022,16 +3133,16 @@ class Ai {
|
|
|
3022
3133
|
* 加载指定时间步的位移塔架模型
|
|
3023
3134
|
* @param timedis 时间步索引
|
|
3024
3135
|
*/
|
|
3025
|
-
loadFZDISTower(
|
|
3136
|
+
loadFZDISTower(e) {
|
|
3026
3137
|
if (this.Keym !== "OW_JPS_EEngin_001")
|
|
3027
3138
|
return;
|
|
3028
|
-
const r =
|
|
3139
|
+
const r = Is(this.displacementData)[e], s = this.byTimes.find((L) => L.timeIndex === e);
|
|
3029
3140
|
debugger;
|
|
3030
3141
|
if (!r) {
|
|
3031
|
-
console.warn(`未找到时间步 ${
|
|
3142
|
+
console.warn(`未找到时间步 ${e} 的位移数据`);
|
|
3032
3143
|
return;
|
|
3033
3144
|
}
|
|
3034
|
-
const
|
|
3145
|
+
const T = new n.HeadingPitchRoll(
|
|
3035
3146
|
n.Math.toRadians(this.TowerFZS.RollX),
|
|
3036
3147
|
this.TowerFZS.RollY,
|
|
3037
3148
|
this.TowerFZS.RollZ
|
|
@@ -3041,28 +3152,28 @@ class Ai {
|
|
|
3041
3152
|
this.TowerFZS.Altitude
|
|
3042
3153
|
);
|
|
3043
3154
|
this.connections.forEach((L) => {
|
|
3044
|
-
const
|
|
3045
|
-
if (!
|
|
3155
|
+
const A = this.TowerNodes.find((y) => y.id === L.from), d = this.TowerNodes.find((y) => y.id === L.to);
|
|
3156
|
+
if (!A || !d) {
|
|
3046
3157
|
console.warn(`找不到连接 ${L.from}->${L.to} 的节点`);
|
|
3047
3158
|
return;
|
|
3048
3159
|
}
|
|
3049
3160
|
debugger;
|
|
3050
|
-
const
|
|
3051
|
-
if (!
|
|
3161
|
+
const i = r.find((y) => y.nodeId === L.from), l = r.find((y) => y.nodeId === L.to);
|
|
3162
|
+
if (!i || !l) {
|
|
3052
3163
|
console.warn(`找不到连接 ${L.from}->${L.to} 的位移数据`);
|
|
3053
3164
|
return;
|
|
3054
3165
|
}
|
|
3055
3166
|
const u = new n.Cartesian3(
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
),
|
|
3167
|
+
A.x - i.x,
|
|
3168
|
+
A.y - i.y,
|
|
3169
|
+
A.z - i.z
|
|
3170
|
+
), C = new n.Cartesian3(
|
|
3060
3171
|
d.x - l.x,
|
|
3061
3172
|
d.y - l.y,
|
|
3062
3173
|
d.z - l.z
|
|
3063
|
-
),
|
|
3174
|
+
), o = B(W, u, T), c = os(
|
|
3064
3175
|
this.viewer,
|
|
3065
|
-
|
|
3176
|
+
o,
|
|
3066
3177
|
L.from + "",
|
|
3067
3178
|
{
|
|
3068
3179
|
pointColor: n.Color.RED,
|
|
@@ -3072,7 +3183,7 @@ class Ai {
|
|
|
3072
3183
|
}
|
|
3073
3184
|
);
|
|
3074
3185
|
this.pointEntities.push(c);
|
|
3075
|
-
const m = B(W,
|
|
3186
|
+
const m = B(W, C, T), b = os(
|
|
3076
3187
|
this.viewer,
|
|
3077
3188
|
m,
|
|
3078
3189
|
L.to + "",
|
|
@@ -3084,7 +3195,7 @@ class Ai {
|
|
|
3084
3195
|
}
|
|
3085
3196
|
);
|
|
3086
3197
|
this.pointEntities.push(b);
|
|
3087
|
-
const I = [
|
|
3198
|
+
const I = [o, m], P = L.from + "-" + L.to, g = s == null ? void 0 : s.elements.find((y) => y.elementId === P);
|
|
3088
3199
|
debugger;
|
|
3089
3200
|
this.TowerLineManager.addLine(I, {
|
|
3090
3201
|
color: g == null ? void 0 : g.ylbColor,
|
|
@@ -3097,19 +3208,19 @@ class Ai {
|
|
|
3097
3208
|
});
|
|
3098
3209
|
}
|
|
3099
3210
|
//加载指定位移
|
|
3100
|
-
loadFZDISTower1(
|
|
3211
|
+
loadFZDISTower1(e) {
|
|
3101
3212
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3102
3213
|
return;
|
|
3103
|
-
const
|
|
3214
|
+
const t = Is(this.displacementData);
|
|
3104
3215
|
let r = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
3105
3216
|
const s = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
3106
|
-
this.connections.forEach((
|
|
3107
|
-
const W = this.TowerNodes.find((
|
|
3108
|
-
|
|
3109
|
-
const u = new n.Cartesian3(
|
|
3110
|
-
|
|
3217
|
+
this.connections.forEach((T) => {
|
|
3218
|
+
const W = this.TowerNodes.find((C) => C.id === T.from), L = t[e].find((C) => C.nodeId === T.from), A = this.TowerNodes.find((C) => C.id === T.to), d = t[e].find((C) => C.nodeId === T.to), i = [], l = new n.Cartesian3(W.x - L.x, W.y - L.y, W.z - L.z);
|
|
3219
|
+
i.push(B(s, l, r));
|
|
3220
|
+
const u = new n.Cartesian3(A.x - d.x, A.y - d.y, A.z - d.z);
|
|
3221
|
+
i.push(B(s, u, r));
|
|
3111
3222
|
debugger;
|
|
3112
|
-
this.entityCollection2.add(h(
|
|
3223
|
+
this.entityCollection2.add(h(i, T.from + "" + T.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
3113
3224
|
});
|
|
3114
3225
|
}
|
|
3115
3226
|
/**
|
|
@@ -3122,17 +3233,17 @@ class Ai {
|
|
|
3122
3233
|
console.warn("没有可用的位移数据");
|
|
3123
3234
|
return;
|
|
3124
3235
|
}
|
|
3125
|
-
let
|
|
3126
|
-
const
|
|
3236
|
+
let e = 1;
|
|
3237
|
+
const t = this.displacementData.length;
|
|
3127
3238
|
this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3128
3239
|
const r = () => {
|
|
3129
|
-
if (this.viewer.dataSources.contains(this.dataSource2) && this.viewer.dataSources.remove(this.dataSource2, !0),
|
|
3130
|
-
|
|
3240
|
+
if (this.viewer.dataSources.contains(this.dataSource2) && this.viewer.dataSources.remove(this.dataSource2, !0), e > t) {
|
|
3241
|
+
e = 1;
|
|
3131
3242
|
return;
|
|
3132
3243
|
}
|
|
3133
3244
|
this.dataSource2 = new n.CustomDataSource("fztower"), this.entityCollection2 = this.dataSource2.entities;
|
|
3134
3245
|
try {
|
|
3135
|
-
this.loadFZDISTower(
|
|
3246
|
+
this.loadFZDISTower(e), this.loadFZModel(), console.log(`正在显示位移帧: ${e}/${t}`), e++;
|
|
3136
3247
|
} catch (s) {
|
|
3137
3248
|
console.error("加载位移帧时出错:", s), this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3138
3249
|
}
|
|
@@ -3144,37 +3255,37 @@ class Ai {
|
|
|
3144
3255
|
this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3145
3256
|
}
|
|
3146
3257
|
// 暂停/继续动画
|
|
3147
|
-
toggleAnimation(
|
|
3148
|
-
|
|
3258
|
+
toggleAnimation(e) {
|
|
3259
|
+
e ? this.stopDisplacementAnimation() : this.loadAllFZDisTower();
|
|
3149
3260
|
}
|
|
3150
3261
|
//加载仿真模型
|
|
3151
3262
|
loadFZModel() {
|
|
3152
3263
|
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSource2), this.viewer.entities.show);
|
|
3153
3264
|
}
|
|
3154
3265
|
//设置显隐
|
|
3155
|
-
setFZModelVisible(
|
|
3156
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show =
|
|
3266
|
+
setFZModelVisible(e) {
|
|
3267
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show = e);
|
|
3157
3268
|
}
|
|
3158
3269
|
//移除渲染电力线路
|
|
3159
3270
|
RemoveFZModel() {
|
|
3160
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.TowerLineManager.removeAll(), this.pointEntities.forEach((
|
|
3271
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.TowerLineManager.removeAll(), this.pointEntities.forEach((e) => this.viewer.entities.remove(e)), this.pointEntities.length = 0);
|
|
3161
3272
|
}
|
|
3162
3273
|
}
|
|
3163
3274
|
export {
|
|
3164
|
-
|
|
3165
|
-
|
|
3275
|
+
Ct as GUAPoint,
|
|
3276
|
+
Tt as InsulatorInfo,
|
|
3166
3277
|
D as InsulatorType,
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3278
|
+
ht as LineManager,
|
|
3279
|
+
hs as LineNum,
|
|
3280
|
+
it as LineType,
|
|
3281
|
+
pt as OWEEgineFZManager,
|
|
3282
|
+
ws as OWEEgineManager,
|
|
3283
|
+
G as PhaseSType,
|
|
3284
|
+
At as TowerFZInfo,
|
|
3285
|
+
ct as TowerInfo,
|
|
3286
|
+
lt as TowerLineInfo,
|
|
3287
|
+
V as TowerType,
|
|
3288
|
+
ut as TreeType,
|
|
3289
|
+
p as WairnumType,
|
|
3290
|
+
Cs as drawModel
|
|
3180
3291
|
};
|