ow-eengine-power 2.4.7 → 2.4.8
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 +1245 -1242
- package/dist/OW_EEngine_Power.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
var Ss = Object.defineProperty;
|
|
2
|
-
var ks = (a,
|
|
3
|
-
var
|
|
2
|
+
var ks = (a, o, i) => o in a ? Ss(a, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[o] = i;
|
|
3
|
+
var I = (a, o, i) => ks(a, typeof o != "symbol" ? o + "" : o, i);
|
|
4
4
|
import * as n from "cesium";
|
|
5
5
|
import { Color as J, HeightReference as Rs, LabelStyle as Zs } from "cesium";
|
|
6
|
-
function Es(a,
|
|
6
|
+
function Es(a, o, i = {}) {
|
|
7
7
|
const {
|
|
8
8
|
color: r = J.WHITE,
|
|
9
9
|
width: s = 3,
|
|
10
|
-
clampToGround:
|
|
10
|
+
clampToGround: c = !1,
|
|
11
11
|
zIndex: W = 0,
|
|
12
12
|
dashed: L = !1,
|
|
13
|
-
dashLength:
|
|
14
|
-
} = i,
|
|
13
|
+
dashLength: p = 10
|
|
14
|
+
} = i, w = L ? new n.PolylineDashMaterialProperty({
|
|
15
15
|
color: r,
|
|
16
|
-
dashLength:
|
|
16
|
+
dashLength: p
|
|
17
17
|
}) : new n.ColorMaterialProperty(r);
|
|
18
18
|
return a.entities.add({
|
|
19
19
|
polyline: {
|
|
20
|
-
positions:
|
|
20
|
+
positions: o,
|
|
21
21
|
width: s,
|
|
22
|
-
material:
|
|
23
|
-
clampToGround:
|
|
22
|
+
material: w,
|
|
23
|
+
clampToGround: c,
|
|
24
24
|
zIndex: W
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function h(a,
|
|
28
|
+
function h(a, o, i = 10, r = "#ba1919", s, c = !1) {
|
|
29
29
|
const W = {
|
|
30
30
|
show: !0,
|
|
31
31
|
positions: a,
|
|
32
|
-
clampToGround:
|
|
32
|
+
clampToGround: c,
|
|
33
33
|
width: i,
|
|
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: c ? void 0 : 0
|
|
39
39
|
// 贴地线需要采样,空间线则无需
|
|
40
40
|
};
|
|
41
41
|
let L;
|
|
@@ -43,10 +43,10 @@ function h(a, e, i = 10, r = "#ba1919", s, T = !1) {
|
|
|
43
43
|
L[0],
|
|
44
44
|
L[1]
|
|
45
45
|
), {
|
|
46
|
-
name:
|
|
46
|
+
name: o,
|
|
47
47
|
// 2. 按需加载标签:默认不显示,或同样受距离控制
|
|
48
48
|
label: {
|
|
49
|
-
text:
|
|
49
|
+
text: o,
|
|
50
50
|
font: "18px sans-serif",
|
|
51
51
|
distanceDisplayCondition: new n.DistanceDisplayCondition(
|
|
52
52
|
L[0],
|
|
@@ -57,11 +57,11 @@ function h(a, e, i = 10, r = "#ba1919", s, T = !1) {
|
|
|
57
57
|
polyline: W
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function Cs(a,
|
|
60
|
+
function Cs(a, o, i, r, s = new n.HeadingPitchRoll(0, 0, 0), c = 1, W) {
|
|
61
61
|
const L = {
|
|
62
62
|
show: !0,
|
|
63
63
|
uri: r,
|
|
64
|
-
scale:
|
|
64
|
+
scale: c,
|
|
65
65
|
// // 添加渐变过渡
|
|
66
66
|
// minimumPixelSize: 64, // 最小像素尺寸
|
|
67
67
|
// maximumScale: 20000, // 最大缩放比例
|
|
@@ -77,29 +77,29 @@ function Cs(a, e, i, r, s = new n.HeadingPitchRoll(0, 0, 0), T = 1, W) {
|
|
|
77
77
|
) : L.distanceDisplayCondition = W), {
|
|
78
78
|
id: a,
|
|
79
79
|
name: i,
|
|
80
|
-
position:
|
|
80
|
+
position: o,
|
|
81
81
|
orientation: n.Transforms.headingPitchRollQuaternion(
|
|
82
|
-
|
|
82
|
+
o,
|
|
83
83
|
s
|
|
84
84
|
),
|
|
85
85
|
model: L
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function os(a,
|
|
88
|
+
function os(a, o, i, r = {}) {
|
|
89
89
|
const {
|
|
90
90
|
pointColor: s = J.YELLOW,
|
|
91
|
-
pointSize:
|
|
91
|
+
pointSize: c = 12,
|
|
92
92
|
labelColor: W = J.WHITE,
|
|
93
93
|
fontSize: L = 16,
|
|
94
|
-
pixelOffset:
|
|
95
|
-
heightReference:
|
|
94
|
+
pixelOffset: p = [0, -20],
|
|
95
|
+
heightReference: w = Rs.NONE
|
|
96
96
|
} = r;
|
|
97
97
|
return a.entities.add({
|
|
98
|
-
position:
|
|
98
|
+
position: o,
|
|
99
99
|
point: {
|
|
100
100
|
color: s,
|
|
101
|
-
pixelSize:
|
|
102
|
-
heightReference:
|
|
101
|
+
pixelSize: c,
|
|
102
|
+
heightReference: w,
|
|
103
103
|
distanceDisplayCondition: new n.DistanceDisplayCondition(0, 100)
|
|
104
104
|
// 显示距离范围
|
|
105
105
|
},
|
|
@@ -107,39 +107,39 @@ function os(a, e, i, r = {}) {
|
|
|
107
107
|
text: i,
|
|
108
108
|
font: `${L}px sans-serif`,
|
|
109
109
|
fillColor: W,
|
|
110
|
-
pixelOffset: new n.Cartesian2(...
|
|
110
|
+
pixelOffset: new n.Cartesian2(...p),
|
|
111
111
|
style: Zs.FILL_AND_OUTLINE,
|
|
112
112
|
outlineWidth: 2,
|
|
113
113
|
outlineColor: J.BLACK,
|
|
114
|
-
heightReference:
|
|
114
|
+
heightReference: w,
|
|
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 G = 63710088e-1, Bs = {
|
|
121
|
+
centimeters: G * 100,
|
|
122
|
+
centimetres: G * 100,
|
|
123
|
+
degrees: G / 111325,
|
|
124
|
+
feet: G * 3.28084,
|
|
125
|
+
inches: G * 39.37,
|
|
126
|
+
kilometers: G / 1e3,
|
|
127
|
+
kilometres: G / 1e3,
|
|
128
|
+
meters: G,
|
|
129
|
+
metres: G,
|
|
130
|
+
miles: G / 1609.344,
|
|
131
|
+
millimeters: G * 1e3,
|
|
132
|
+
millimetres: G * 1e3,
|
|
133
|
+
nauticalmiles: G / 1852,
|
|
134
134
|
radians: 1,
|
|
135
|
-
yards:
|
|
135
|
+
yards: G * 1.0936
|
|
136
136
|
};
|
|
137
|
-
function is(a,
|
|
137
|
+
function is(a, o, i) {
|
|
138
138
|
i === void 0 && (i = {});
|
|
139
139
|
var r = { type: "Feature" };
|
|
140
|
-
return (i.id === 0 || i.id) && (r.id = i.id), i.bbox && (r.bbox = i.bbox), r.properties =
|
|
140
|
+
return (i.id === 0 || i.id) && (r.id = i.id), i.bbox && (r.bbox = i.bbox), r.properties = o || {}, r.geometry = a, r;
|
|
141
141
|
}
|
|
142
|
-
function U(a,
|
|
142
|
+
function U(a, o, i) {
|
|
143
143
|
if (i === void 0 && (i = {}), !a)
|
|
144
144
|
throw new Error("coordinates is required");
|
|
145
145
|
if (!Array.isArray(a))
|
|
@@ -152,70 +152,70 @@ function U(a, e, i) {
|
|
|
152
152
|
type: "Point",
|
|
153
153
|
coordinates: a
|
|
154
154
|
};
|
|
155
|
-
return is(r,
|
|
155
|
+
return is(r, o, i);
|
|
156
156
|
}
|
|
157
|
-
function K(a,
|
|
157
|
+
function K(a, o, i) {
|
|
158
158
|
if (i === void 0 && (i = {}), 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 is(r,
|
|
164
|
+
return is(r, o, i);
|
|
165
165
|
}
|
|
166
|
-
function Xs(a,
|
|
167
|
-
|
|
166
|
+
function Xs(a, o) {
|
|
167
|
+
o === void 0 && (o = {});
|
|
168
168
|
var i = { type: "FeatureCollection" };
|
|
169
|
-
return
|
|
169
|
+
return o.id && (i.id = o.id), o.bbox && (i.bbox = o.bbox), i.features = a, i;
|
|
170
170
|
}
|
|
171
|
-
function Ps(a,
|
|
172
|
-
|
|
173
|
-
var i = Bs[
|
|
171
|
+
function Ps(a, o) {
|
|
172
|
+
o === void 0 && (o = "kilometers");
|
|
173
|
+
var i = Bs[o];
|
|
174
174
|
if (!i)
|
|
175
|
-
throw new Error(
|
|
175
|
+
throw new Error(o + " units is invalid");
|
|
176
176
|
return a * i;
|
|
177
177
|
}
|
|
178
|
-
function ys(a,
|
|
179
|
-
|
|
180
|
-
var i = Bs[
|
|
178
|
+
function ys(a, o) {
|
|
179
|
+
o === void 0 && (o = "kilometers");
|
|
180
|
+
var i = Bs[o];
|
|
181
181
|
if (!i)
|
|
182
|
-
throw new Error(
|
|
182
|
+
throw new Error(o + " units is invalid");
|
|
183
183
|
return a / i;
|
|
184
184
|
}
|
|
185
185
|
function ls(a) {
|
|
186
|
-
var
|
|
187
|
-
return
|
|
186
|
+
var o = a % (2 * Math.PI);
|
|
187
|
+
return o * 180 / Math.PI;
|
|
188
188
|
}
|
|
189
189
|
function q(a) {
|
|
190
|
-
var
|
|
191
|
-
return
|
|
190
|
+
var o = a % 360;
|
|
191
|
+
return o * Math.PI / 180;
|
|
192
192
|
}
|
|
193
|
-
function gs(a,
|
|
194
|
-
if (
|
|
193
|
+
function gs(a, o, i) {
|
|
194
|
+
if (o === void 0 && (o = "kilometers"), i === void 0 && (i = "kilometers"), !(a >= 0))
|
|
195
195
|
throw new Error("length must be a positive number");
|
|
196
|
-
return Ps(ys(a,
|
|
196
|
+
return Ps(ys(a, o), i);
|
|
197
197
|
}
|
|
198
198
|
function As(a) {
|
|
199
199
|
return !isNaN(a) && a !== null && !Array.isArray(a);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Ds(a) {
|
|
202
202
|
return !!a && a.constructor === Object;
|
|
203
203
|
}
|
|
204
|
-
function ms(a,
|
|
204
|
+
function ms(a, o, i) {
|
|
205
205
|
if (a !== null)
|
|
206
|
-
for (var r, s,
|
|
207
|
-
|
|
208
|
-
for (var
|
|
206
|
+
for (var r, s, c, W, L, p, w, t = 0, l = 0, u, C = a.type, e = C === "FeatureCollection", T = C === "Feature", m = e ? a.features.length : 1, b = 0; b < m; b++) {
|
|
207
|
+
w = e ? a.features[b].geometry : T ? a.geometry : a, u = w ? w.type === "GeometryCollection" : !1, L = u ? w.geometries.length : 1;
|
|
208
|
+
for (var d = 0; d < L; d++) {
|
|
209
209
|
var P = 0, g = 0;
|
|
210
|
-
if (W = u ?
|
|
211
|
-
|
|
210
|
+
if (W = u ? w.geometries[d] : w, W !== null) {
|
|
211
|
+
p = W.coordinates;
|
|
212
212
|
var y = W.type;
|
|
213
213
|
switch (t = 0, y) {
|
|
214
214
|
case null:
|
|
215
215
|
break;
|
|
216
216
|
case "Point":
|
|
217
|
-
if (
|
|
218
|
-
|
|
217
|
+
if (o(
|
|
218
|
+
p,
|
|
219
219
|
l,
|
|
220
220
|
b,
|
|
221
221
|
P,
|
|
@@ -226,9 +226,9 @@ function ms(a, e, 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 < p.length; r++) {
|
|
230
|
+
if (o(
|
|
231
|
+
p[r],
|
|
232
232
|
l,
|
|
233
233
|
b,
|
|
234
234
|
P,
|
|
@@ -241,10 +241,10 @@ function ms(a, e, 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 < p.length; r++) {
|
|
245
|
+
for (s = 0; s < p[r].length - t; s++) {
|
|
246
|
+
if (o(
|
|
247
|
+
p[r][s],
|
|
248
248
|
l,
|
|
249
249
|
b,
|
|
250
250
|
P,
|
|
@@ -258,11 +258,11 @@ function ms(a, e, 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 < p.length; r++) {
|
|
262
|
+
for (g = 0, s = 0; s < p[r].length; s++) {
|
|
263
|
+
for (c = 0; c < p[r][s].length - t; c++) {
|
|
264
|
+
if (o(
|
|
265
|
+
p[r][s][c],
|
|
266
266
|
l,
|
|
267
267
|
b,
|
|
268
268
|
P,
|
|
@@ -278,7 +278,7 @@ function ms(a, e, i) {
|
|
|
278
278
|
break;
|
|
279
279
|
case "GeometryCollection":
|
|
280
280
|
for (r = 0; r < W.geometries.length; r++)
|
|
281
|
-
if (ms(W.geometries[r],
|
|
281
|
+
if (ms(W.geometries[r], o) === !1)
|
|
282
282
|
return !1;
|
|
283
283
|
break;
|
|
284
284
|
default:
|
|
@@ -288,39 +288,39 @@ function ms(a, e, i) {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Ys(a, o) {
|
|
292
292
|
if (a.type === "Feature")
|
|
293
|
-
|
|
293
|
+
o(a, 0);
|
|
294
294
|
else if (a.type === "FeatureCollection")
|
|
295
|
-
for (var i = 0; i < a.features.length &&
|
|
295
|
+
for (var i = 0; i < a.features.length && o(a.features[i], i) !== !1; i++)
|
|
296
296
|
;
|
|
297
297
|
}
|
|
298
|
-
function Fs(a,
|
|
299
|
-
var i, r, s,
|
|
300
|
-
for (i = 0; i <
|
|
301
|
-
for (L = C ? a.features[i].geometry :
|
|
302
|
-
if (
|
|
303
|
-
if (
|
|
298
|
+
function Fs(a, o) {
|
|
299
|
+
var i, r, s, c, W, L, p, w, t, l, u = 0, C = a.type === "FeatureCollection", e = a.type === "Feature", T = C ? a.features.length : 1;
|
|
300
|
+
for (i = 0; i < T; i++) {
|
|
301
|
+
for (L = C ? a.features[i].geometry : e ? a.geometry : a, w = C ? a.features[i].properties : e ? a.properties : {}, t = C ? a.features[i].bbox : e ? a.bbox : void 0, l = C ? a.features[i].id : e ? a.id : void 0, p = L ? L.type === "GeometryCollection" : !1, W = p ? L.geometries.length : 1, s = 0; s < W; s++) {
|
|
302
|
+
if (c = p ? L.geometries[s] : L, c === null) {
|
|
303
|
+
if (o(
|
|
304
304
|
null,
|
|
305
305
|
u,
|
|
306
|
-
|
|
306
|
+
w,
|
|
307
307
|
t,
|
|
308
308
|
l
|
|
309
309
|
) === !1)
|
|
310
310
|
return !1;
|
|
311
311
|
continue;
|
|
312
312
|
}
|
|
313
|
-
switch (
|
|
313
|
+
switch (c.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 (o(
|
|
321
|
+
c,
|
|
322
322
|
u,
|
|
323
|
-
|
|
323
|
+
w,
|
|
324
324
|
t,
|
|
325
325
|
l
|
|
326
326
|
) === !1)
|
|
@@ -328,11 +328,11 @@ function Fs(a, e) {
|
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
330
|
case "GeometryCollection": {
|
|
331
|
-
for (r = 0; r <
|
|
332
|
-
if (
|
|
333
|
-
|
|
331
|
+
for (r = 0; r < c.geometries.length; r++)
|
|
332
|
+
if (o(
|
|
333
|
+
c.geometries[r],
|
|
334
334
|
u,
|
|
335
|
-
|
|
335
|
+
w,
|
|
336
336
|
t,
|
|
337
337
|
l
|
|
338
338
|
) === !1)
|
|
@@ -346,69 +346,69 @@ function Fs(a, e) {
|
|
|
346
346
|
u++;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function Hs(a,
|
|
350
|
-
Fs(a, function(i, r, s,
|
|
349
|
+
function Hs(a, o) {
|
|
350
|
+
Fs(a, function(i, r, s, c, W) {
|
|
351
351
|
var L = i === null ? null : i.type;
|
|
352
352
|
switch (L) {
|
|
353
353
|
case null:
|
|
354
354
|
case "Point":
|
|
355
355
|
case "LineString":
|
|
356
356
|
case "Polygon":
|
|
357
|
-
return
|
|
358
|
-
is(i, s, { bbox:
|
|
357
|
+
return o(
|
|
358
|
+
is(i, s, { bbox: c, id: W }),
|
|
359
359
|
r,
|
|
360
360
|
0
|
|
361
361
|
) === !1 ? !1 : void 0;
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var p;
|
|
364
364
|
switch (L) {
|
|
365
365
|
case "MultiPoint":
|
|
366
|
-
|
|
366
|
+
p = "Point";
|
|
367
367
|
break;
|
|
368
368
|
case "MultiLineString":
|
|
369
|
-
|
|
369
|
+
p = "LineString";
|
|
370
370
|
break;
|
|
371
371
|
case "MultiPolygon":
|
|
372
|
-
|
|
372
|
+
p = "Polygon";
|
|
373
373
|
break;
|
|
374
374
|
}
|
|
375
|
-
for (var
|
|
376
|
-
var t = i.coordinates[
|
|
377
|
-
type:
|
|
375
|
+
for (var w = 0; w < i.coordinates.length; w++) {
|
|
376
|
+
var t = i.coordinates[w], l = {
|
|
377
|
+
type: p,
|
|
378
378
|
coordinates: t
|
|
379
379
|
};
|
|
380
|
-
if (
|
|
380
|
+
if (o(is(l, s), r, w) === !1)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
function Os(a,
|
|
385
|
+
function Os(a, o) {
|
|
386
386
|
Hs(a, function(i, r, s) {
|
|
387
|
-
var
|
|
387
|
+
var c = 0;
|
|
388
388
|
if (i.geometry) {
|
|
389
389
|
var W = i.geometry.type;
|
|
390
390
|
if (!(W === "Point" || W === "MultiPoint")) {
|
|
391
|
-
var L,
|
|
391
|
+
var L, p = 0, w = 0, t = 0;
|
|
392
392
|
if (ms(
|
|
393
393
|
i,
|
|
394
|
-
function(l, u, C,
|
|
395
|
-
if (L === void 0 || r >
|
|
396
|
-
L = l,
|
|
394
|
+
function(l, u, C, e, T) {
|
|
395
|
+
if (L === void 0 || r > p || e > w || T > t) {
|
|
396
|
+
L = l, p = r, w = e, t = T, c = 0;
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
399
|
var m = K(
|
|
400
400
|
[L, l],
|
|
401
401
|
i.properties
|
|
402
402
|
);
|
|
403
|
-
if (
|
|
403
|
+
if (o(
|
|
404
404
|
m,
|
|
405
405
|
r,
|
|
406
406
|
s,
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
T,
|
|
408
|
+
c
|
|
409
409
|
) === !1)
|
|
410
410
|
return !1;
|
|
411
|
-
|
|
411
|
+
c++, 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 ps(a,
|
|
432
|
+
function ps(a, o, i) {
|
|
433
433
|
if (!a)
|
|
434
434
|
throw new Error("No feature passed");
|
|
435
435
|
if (!i)
|
|
436
436
|
throw new Error(".featureOf() requires a name");
|
|
437
437
|
if (!a || a.type !== "Feature" || !a.geometry)
|
|
438
438
|
throw new Error("Invalid input to " + i + ", Feature with geometry required");
|
|
439
|
-
if (!a.geometry || a.geometry.type !==
|
|
440
|
-
throw new Error("Invalid input to " + i + ": must be a " +
|
|
439
|
+
if (!a.geometry || a.geometry.type !== o)
|
|
440
|
+
throw new Error("Invalid input to " + i + ": must be a " + o + ", given " + a.geometry.type);
|
|
441
441
|
}
|
|
442
442
|
var ts = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
443
|
-
function ss(a,
|
|
443
|
+
function ss(a, o, i) {
|
|
444
444
|
i === void 0 && (i = {});
|
|
445
|
-
var r = x(a), s = x(
|
|
446
|
-
return Ps(2 * Math.atan2(Math.sqrt(
|
|
445
|
+
var r = x(a), s = x(o), c = q(s[1] - r[1]), W = q(s[0] - r[0]), L = q(r[1]), p = q(s[1]), w = Math.pow(Math.sin(c / 2), 2) + Math.pow(Math.sin(W / 2), 2) * Math.cos(L) * Math.cos(p);
|
|
446
|
+
return Ps(2 * Math.atan2(Math.sqrt(w), Math.sqrt(1 - w)), i.units);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Ns(a) {
|
|
449
449
|
if (!a)
|
|
450
450
|
throw new Error("geojson is required");
|
|
451
451
|
switch (a.type) {
|
|
452
452
|
case "Feature":
|
|
453
453
|
return bs(a);
|
|
454
454
|
case "FeatureCollection":
|
|
455
|
-
return
|
|
455
|
+
return Gs(a);
|
|
456
456
|
case "Point":
|
|
457
457
|
case "LineString":
|
|
458
458
|
case "Polygon":
|
|
@@ -466,7 +466,7 @@ function $s(a) {
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
function bs(a) {
|
|
469
|
-
var
|
|
469
|
+
var o = { type: "Feature" };
|
|
470
470
|
return Object.keys(a).forEach(function(i) {
|
|
471
471
|
switch (i) {
|
|
472
472
|
case "type":
|
|
@@ -474,180 +474,180 @@ function bs(a) {
|
|
|
474
474
|
case "geometry":
|
|
475
475
|
return;
|
|
476
476
|
default:
|
|
477
|
-
|
|
477
|
+
o[i] = a[i];
|
|
478
478
|
}
|
|
479
|
-
}),
|
|
479
|
+
}), o.properties = vs(a.properties), o.geometry = Ts(a.geometry), o;
|
|
480
480
|
}
|
|
481
481
|
function vs(a) {
|
|
482
|
-
var
|
|
482
|
+
var o = {};
|
|
483
483
|
return a && Object.keys(a).forEach(function(i) {
|
|
484
484
|
var r = a[i];
|
|
485
|
-
typeof r == "object" ? r === null ?
|
|
485
|
+
typeof r == "object" ? r === null ? o[i] = null : Array.isArray(r) ? o[i] = r.map(function(s) {
|
|
486
486
|
return s;
|
|
487
|
-
}) :
|
|
488
|
-
}),
|
|
487
|
+
}) : o[i] = vs(r) : o[i] = r;
|
|
488
|
+
}), o;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
var
|
|
490
|
+
function Gs(a) {
|
|
491
|
+
var o = { type: "FeatureCollection" };
|
|
492
492
|
return Object.keys(a).forEach(function(i) {
|
|
493
493
|
switch (i) {
|
|
494
494
|
case "type":
|
|
495
495
|
case "features":
|
|
496
496
|
return;
|
|
497
497
|
default:
|
|
498
|
-
|
|
498
|
+
o[i] = a[i];
|
|
499
499
|
}
|
|
500
|
-
}),
|
|
500
|
+
}), o.features = a.features.map(function(i) {
|
|
501
501
|
return bs(i);
|
|
502
|
-
}),
|
|
502
|
+
}), o;
|
|
503
503
|
}
|
|
504
504
|
function Ts(a) {
|
|
505
|
-
var
|
|
506
|
-
return a.bbox && (
|
|
505
|
+
var o = { type: a.type };
|
|
506
|
+
return a.bbox && (o.bbox = a.bbox), a.type === "GeometryCollection" ? (o.geometries = a.geometries.map(function(i) {
|
|
507
507
|
return Ts(i);
|
|
508
|
-
}),
|
|
508
|
+
}), o) : (o.coordinates = _s(a.coordinates), o);
|
|
509
509
|
}
|
|
510
510
|
function _s(a) {
|
|
511
|
-
var
|
|
512
|
-
return typeof
|
|
511
|
+
var o = a;
|
|
512
|
+
return typeof o[0] != "object" ? o.slice() : o.map(function(i) {
|
|
513
513
|
return _s(i);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function us(a,
|
|
516
|
+
function us(a, o, i, r) {
|
|
517
517
|
r === void 0 && (r = {});
|
|
518
|
-
var s = x(a),
|
|
518
|
+
var s = x(a), c = q(s[0]), W = q(s[1]), L = q(i), p = ys(o, r.units), w = Math.asin(Math.sin(W) * Math.cos(p) + Math.cos(W) * Math.sin(p) * Math.cos(L)), t = c + Math.atan2(Math.sin(L) * Math.sin(p) * Math.cos(W), Math.cos(p) - Math.sin(W) * Math.sin(w)), l = ls(t), u = ls(w);
|
|
519
519
|
return U([l, u], r.properties);
|
|
520
520
|
}
|
|
521
|
-
function fs(a,
|
|
521
|
+
function fs(a, o, i) {
|
|
522
522
|
if (i === void 0 && (i = {}), i.final === !0)
|
|
523
|
-
return
|
|
524
|
-
var r = x(a), s = x(
|
|
525
|
-
return ls(Math.atan2(
|
|
523
|
+
return $s(a, o);
|
|
524
|
+
var r = x(a), s = x(o), c = q(r[0]), W = q(s[0]), L = q(r[1]), p = q(s[1]), w = Math.sin(W - c) * Math.cos(p), t = Math.cos(L) * Math.sin(p) - Math.sin(L) * Math.cos(p) * Math.cos(W - c);
|
|
525
|
+
return ls(Math.atan2(w, t));
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
var i = fs(
|
|
527
|
+
function $s(a, o) {
|
|
528
|
+
var i = fs(o, a);
|
|
529
529
|
return i = (i + 180) % 360, i;
|
|
530
530
|
}
|
|
531
|
-
function zs(a,
|
|
532
|
-
var i = ss(a,
|
|
531
|
+
function zs(a, o) {
|
|
532
|
+
var i = ss(a, o), r = fs(a, o), s = us(a, i / 2, r);
|
|
533
533
|
return s;
|
|
534
534
|
}
|
|
535
|
-
function Vs(a,
|
|
535
|
+
function Vs(a, o) {
|
|
536
536
|
if (!a)
|
|
537
537
|
throw new Error("targetPoint is required");
|
|
538
|
-
if (!
|
|
538
|
+
if (!o)
|
|
539
539
|
throw new Error("points is required");
|
|
540
540
|
var i, r = 1 / 0, s = 0;
|
|
541
|
-
return
|
|
542
|
-
var L = ss(a,
|
|
541
|
+
return Ys(o, function(c, W) {
|
|
542
|
+
var L = ss(a, c);
|
|
543
543
|
L < r && (s = W, r = L);
|
|
544
|
-
}), i =
|
|
544
|
+
}), i = Ns(o.features[s]), i.properties.featureIndex = s, i.properties.distanceToPoint = r, i;
|
|
545
545
|
}
|
|
546
|
-
function qs(a,
|
|
546
|
+
function qs(a, o, i) {
|
|
547
547
|
i === void 0 && (i = {});
|
|
548
|
-
var r = x(a), s = x(
|
|
548
|
+
var r = x(a), s = x(o);
|
|
549
549
|
s[0] += s[0] - r[0] > 180 ? -360 : r[0] - s[0] > 180 ? 360 : 0;
|
|
550
|
-
var
|
|
550
|
+
var c = Ks(r, s), W = gs(c, "meters", i.units);
|
|
551
551
|
return W;
|
|
552
552
|
}
|
|
553
|
-
function Ks(a,
|
|
554
|
-
i = i === void 0 ?
|
|
555
|
-
var r = i, s = a[1] * Math.PI / 180,
|
|
553
|
+
function Ks(a, o, i) {
|
|
554
|
+
i = i === void 0 ? G : Number(i);
|
|
555
|
+
var r = i, s = a[1] * Math.PI / 180, c = o[1] * Math.PI / 180, W = c - s, L = Math.abs(o[0] - a[0]) * Math.PI / 180;
|
|
556
556
|
L > Math.PI && (L -= 2 * Math.PI);
|
|
557
|
-
var
|
|
557
|
+
var p = Math.log(Math.tan(c / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), w = Math.abs(p) > 1e-11 ? W / p : Math.cos(s), t = Math.sqrt(W * W + w * w * L * L), l = t * r;
|
|
558
558
|
return l;
|
|
559
559
|
}
|
|
560
|
-
function ns(a,
|
|
560
|
+
function ns(a, o, i) {
|
|
561
561
|
if (i === void 0 && (i = {}), i.method || (i.method = "geodesic"), i.units || (i.units = "kilometers"), !a)
|
|
562
562
|
throw new Error("pt is required");
|
|
563
|
-
if (Array.isArray(a) ? a = U(a) : a.type === "Point" ? a = is(a) : ps(a, "Point", "point"), !
|
|
563
|
+
if (Array.isArray(a) ? a = U(a) : a.type === "Point" ? a = is(a) : ps(a, "Point", "point"), !o)
|
|
564
564
|
throw new Error("line is required");
|
|
565
|
-
Array.isArray(
|
|
565
|
+
Array.isArray(o) ? o = K(o) : o.type === "LineString" ? o = is(o) : ps(o, "LineString", "line");
|
|
566
566
|
var r = 1 / 0, s = a.geometry.coordinates;
|
|
567
|
-
return Os(
|
|
568
|
-
var W =
|
|
569
|
-
|
|
567
|
+
return Os(o, function(c) {
|
|
568
|
+
var W = c.geometry.coordinates[0], L = c.geometry.coordinates[1], p = Js(s, W, L, i);
|
|
569
|
+
p < r && (r = p);
|
|
570
570
|
}), gs(r, "degrees", i.units);
|
|
571
571
|
}
|
|
572
|
-
function Js(a,
|
|
573
|
-
var s = [i[0] -
|
|
572
|
+
function Js(a, o, i, r) {
|
|
573
|
+
var s = [i[0] - o[0], i[1] - o[1]], c = [a[0] - o[0], a[1] - o[1]], W = Ls(c, s);
|
|
574
574
|
if (W <= 0)
|
|
575
|
-
return as(a,
|
|
575
|
+
return as(a, o, { method: r.method, units: "degrees" });
|
|
576
576
|
var L = Ls(s, s);
|
|
577
577
|
if (L <= W)
|
|
578
578
|
return as(a, i, { method: r.method, units: "degrees" });
|
|
579
|
-
var
|
|
580
|
-
return as(a,
|
|
579
|
+
var p = W / L, w = [o[0] + p * s[0], o[1] + p * s[1]];
|
|
580
|
+
return as(a, w, { method: r.method, units: "degrees" });
|
|
581
581
|
}
|
|
582
|
-
function Ls(a,
|
|
583
|
-
return a[0] *
|
|
582
|
+
function Ls(a, o) {
|
|
583
|
+
return a[0] * o[0] + a[1] * o[1];
|
|
584
584
|
}
|
|
585
|
-
function as(a,
|
|
586
|
-
return i.method === "planar" ? qs(a,
|
|
585
|
+
function as(a, o, i) {
|
|
586
|
+
return i.method === "planar" ? qs(a, o, i) : ss(a, o, i);
|
|
587
587
|
}
|
|
588
|
-
function Us(a,
|
|
589
|
-
if (r = r || {}, !
|
|
590
|
-
var s,
|
|
588
|
+
function Us(a, o, i, r) {
|
|
589
|
+
if (r = r || {}, !Ds(r)) throw new Error("options is invalid");
|
|
590
|
+
var s, c = [];
|
|
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
|
-
|
|
594
|
+
for (var W = s.length, L = 0, p, w, t, l = 0; l < s.length && !(o >= L && l === s.length - 1); l++) {
|
|
595
|
+
if (L > o && c.length === 0) {
|
|
596
|
+
if (p = o - L, !p)
|
|
597
|
+
return c.push(s[l]), K(c);
|
|
598
|
+
w = fs(s[l], s[l - 1]) - 180, t = us(s[l], p, w, r), c.push(t.geometry.coordinates);
|
|
599
599
|
}
|
|
600
600
|
if (L >= i)
|
|
601
|
-
return
|
|
602
|
-
if (L >=
|
|
603
|
-
return K(
|
|
601
|
+
return p = i - L, p ? (w = fs(s[l], s[l - 1]) - 180, t = us(s[l], p, w, r), c.push(t.geometry.coordinates), K(c)) : (c.push(s[l]), K(c));
|
|
602
|
+
if (L >= o && c.push(s[l]), l === s.length - 1)
|
|
603
|
+
return K(c);
|
|
604
604
|
L += ss(s[l], s[l + 1], r);
|
|
605
605
|
}
|
|
606
|
-
if (L <
|
|
606
|
+
if (L < o && s.length === W)
|
|
607
607
|
throw new Error("Start position is beyond line");
|
|
608
608
|
var u = s[s.length - 1];
|
|
609
609
|
return K([u, u]);
|
|
610
610
|
}
|
|
611
611
|
const j = { units: "kilometers" };
|
|
612
|
-
function Qs(a,
|
|
613
|
-
var { nearestDistance: s } = rs(a,
|
|
614
|
-
const L = Math.min(s, W,
|
|
615
|
-
return L === s ?
|
|
612
|
+
function Qs(a, o, i, r) {
|
|
613
|
+
var { nearestDistance: s } = rs(a, o), { nearestDistance: c } = rs(a, r), { nearestDistance: W } = rs(a, i);
|
|
614
|
+
const L = Math.min(s, W, c);
|
|
615
|
+
return L === s ? o : L === W ? i : r;
|
|
616
616
|
}
|
|
617
|
-
const js = (a,
|
|
617
|
+
const js = (a, o, i) => {
|
|
618
618
|
debugger;
|
|
619
|
-
const r = U(a.slice(0, 2)), { nearestCoord: s } = rs(a,
|
|
619
|
+
const r = U(a.slice(0, 2)), { nearestCoord: s } = rs(a, o), c = o.findIndex(
|
|
620
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 (c == 0)
|
|
624
|
+
W.push(o[0], o[1]);
|
|
625
|
+
else if (c == o.length - 1)
|
|
626
|
+
W.push(o[o.length - 2], o[o.length - 1]);
|
|
627
627
|
else {
|
|
628
|
-
const k = [
|
|
629
|
-
var L = ns(r, K(k), j),
|
|
630
|
-
W = L >
|
|
631
|
-
}
|
|
632
|
-
console.log("附近的点",
|
|
633
|
-
const
|
|
634
|
-
var u = ns(r,
|
|
635
|
-
let
|
|
636
|
-
|
|
637
|
-
const m = ss(t, l, j), b = Math.abs(W[0][2] - W[1][2]),
|
|
638
|
-
console.log("高度差>>>>", b), console.log("最小高度>>>>",
|
|
628
|
+
const k = [o[c], o[c + 1]], X = [o[c - 1], o[c]];
|
|
629
|
+
var L = ns(r, K(k), j), p = ns(r, K(X), j);
|
|
630
|
+
W = L > p ? X : k;
|
|
631
|
+
}
|
|
632
|
+
console.log("附近的点", c, W);
|
|
633
|
+
const w = K([W[0].slice(0, 2), W[1].slice(0, 2)]), t = U(W[0].slice(0, 2)), l = U(W[1].slice(0, 2));
|
|
634
|
+
var u = ns(r, w, j), C = ss(r, t, j) || 0, e = Math.sqrt(C * C - u * u) || 0;
|
|
635
|
+
let T = W[0].slice(0, 2);
|
|
636
|
+
e > 0 && (T = Us(w, 0, e, j).geometry.coordinates[1]);
|
|
637
|
+
const m = ss(t, l, j), b = Math.abs(W[0][2] - W[1][2]), d = 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 - e / m * b : e / m * b + d;
|
|
638
|
+
console.log("高度差>>>>", b), console.log("最小高度>>>>", d);
|
|
639
639
|
const y = g - a[2], v = u * 1e3, _ = Math.sqrt(v * v + y * y);
|
|
640
640
|
console.log("水平距离>>>>", v), console.log("竖直距离>>>>", y), console.log("直线距离>>>>", _);
|
|
641
641
|
const S = n.Cartesian3.fromDegrees(
|
|
642
642
|
a[0],
|
|
643
643
|
a[1],
|
|
644
644
|
a[2]
|
|
645
|
-
), M = n.Cartesian3.fromDegrees(
|
|
645
|
+
), M = n.Cartesian3.fromDegrees(T[0], T[1], g);
|
|
646
646
|
var R = zs(
|
|
647
647
|
U([a[0], a[1]]),
|
|
648
|
-
U([
|
|
648
|
+
U([T[0], T[1]])
|
|
649
649
|
).geometry.coordinates;
|
|
650
|
-
const
|
|
650
|
+
const D = {
|
|
651
651
|
position: n.Cartesian3.fromDegrees(
|
|
652
652
|
R[0],
|
|
653
653
|
R[1],
|
|
@@ -664,7 +664,7 @@ const js = (a, e, i) => {
|
|
|
664
664
|
}
|
|
665
665
|
}, Z = [];
|
|
666
666
|
Z.push(S), Z.push(M);
|
|
667
|
-
var
|
|
667
|
+
var Y = {
|
|
668
668
|
polyline: {
|
|
669
669
|
show: !0,
|
|
670
670
|
// 定义线条的 Cartesian3 位置的数组
|
|
@@ -692,138 +692,138 @@ const js = (a, e, i) => {
|
|
|
692
692
|
// zIndex: 0,
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
i.add(
|
|
695
|
+
i.add(D), i.add(Y);
|
|
696
696
|
};
|
|
697
|
-
function rs(a,
|
|
697
|
+
function rs(a, o) {
|
|
698
698
|
const i = U(a.slice(0, 2)), r = [];
|
|
699
|
-
|
|
699
|
+
o.forEach((L) => {
|
|
700
700
|
r.push(U([L[0], L[1]]));
|
|
701
701
|
});
|
|
702
702
|
const s = Xs(
|
|
703
703
|
r
|
|
704
|
-
),
|
|
704
|
+
), c = Vs(i, s), W = ss(i, c, j);
|
|
705
705
|
return {
|
|
706
|
-
nearestCoord:
|
|
706
|
+
nearestCoord: c.geometry.coordinates,
|
|
707
707
|
nearestDistance: W
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function B(a,
|
|
710
|
+
function B(a, o, i, r, s) {
|
|
711
711
|
i || (i = new n.HeadingPitchRoll());
|
|
712
|
-
const
|
|
712
|
+
const c = n.Transforms.headingPitchRollQuaternion(
|
|
713
713
|
a,
|
|
714
714
|
i,
|
|
715
715
|
r,
|
|
716
716
|
s
|
|
717
717
|
), W = n.Matrix4.fromRotationTranslation(
|
|
718
|
-
n.Matrix3.fromQuaternion(
|
|
718
|
+
n.Matrix3.fromQuaternion(c, new n.Matrix3()),
|
|
719
719
|
a,
|
|
720
720
|
new n.Matrix4()
|
|
721
721
|
);
|
|
722
722
|
return n.Matrix4.multiplyByPoint(
|
|
723
723
|
W,
|
|
724
|
-
|
|
724
|
+
o,
|
|
725
725
|
new n.Cartesian3()
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
|
-
function z(a,
|
|
729
|
-
var i = a.cartesianToCartographic(
|
|
730
|
-
return [s, r,
|
|
728
|
+
function z(a, o) {
|
|
729
|
+
var i = a.cartesianToCartographic(o), r = n.Math.toDegrees(i.latitude), s = n.Math.toDegrees(i.longitude), c = i.height;
|
|
730
|
+
return [s, r, c];
|
|
731
731
|
}
|
|
732
|
-
function Q(a,
|
|
733
|
-
const s =
|
|
734
|
-
let t = Math.atan2(
|
|
732
|
+
function Q(a, o, i, r) {
|
|
733
|
+
const s = o * Math.PI / 180, c = a * Math.PI / 180, W = r * Math.PI / 180, L = i * Math.PI / 180, p = Math.sin(L - c) * Math.cos(W), w = Math.cos(s) * Math.sin(W) - Math.sin(s) * Math.cos(W) * Math.cos(L - c);
|
|
734
|
+
let t = Math.atan2(p, w) * 180 / Math.PI;
|
|
735
735
|
return t = (t + 360) % 360, t;
|
|
736
736
|
}
|
|
737
|
-
function f(a,
|
|
737
|
+
function f(a, o = 6) {
|
|
738
738
|
const i = [];
|
|
739
739
|
for (var r = 0; r < a.length - 1; r++)
|
|
740
740
|
i.push(
|
|
741
|
-
...xs(a[r], a[r + 1],
|
|
741
|
+
...xs(a[r], a[r + 1], o * -1e3, 100)
|
|
742
742
|
);
|
|
743
743
|
return i;
|
|
744
744
|
}
|
|
745
|
-
function xs(a,
|
|
746
|
-
var s = [],
|
|
747
|
-
(L -
|
|
748
|
-
), u = l * i, C = n.Cartesian3.clone(a),
|
|
745
|
+
function xs(a, o, i, r) {
|
|
746
|
+
var s = [], c = n.Cartographic.fromCartesian(a), W = n.Cartographic.fromCartesian(o), L = c.longitude * 180 / Math.PI, p = c.latitude * 180 / Math.PI, w = W.longitude * 180 / Math.PI, t = W.latitude * 180 / Math.PI, l = Math.sqrt(
|
|
747
|
+
(L - w) * (L - w) + (p - t) * (p - t)
|
|
748
|
+
), u = l * i, C = n.Cartesian3.clone(a), e = n.Cartesian3.clone(o), T = n.Cartesian3.distance(
|
|
749
749
|
C,
|
|
750
750
|
n.Cartesian3.ZERO
|
|
751
|
-
), m = n.Cartesian3.distance(
|
|
752
|
-
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(
|
|
751
|
+
), m = n.Cartesian3.distance(e, n.Cartesian3.ZERO);
|
|
752
|
+
if (n.Cartesian3.normalize(C, C), n.Cartesian3.normalize(e, e), n.Cartesian3.distance(C, e) == 0)
|
|
753
753
|
return s;
|
|
754
|
-
var b = n.Cartesian3.angleBetween(C,
|
|
754
|
+
var b = n.Cartesian3.angleBetween(C, e);
|
|
755
755
|
s.push(a);
|
|
756
|
-
for (var
|
|
757
|
-
var P =
|
|
756
|
+
for (var d = 1; d < r - 1; d++) {
|
|
757
|
+
var P = d * 1 / (r - 1), g = 1 - P, y = Math.sin(g * b) / Math.sin(b), v = Math.sin(P * b) / Math.sin(b), _ = n.Cartesian3.multiplyByScalar(
|
|
758
758
|
C,
|
|
759
759
|
y,
|
|
760
760
|
new n.Cartesian3()
|
|
761
761
|
), S = n.Cartesian3.multiplyByScalar(
|
|
762
|
-
|
|
762
|
+
e,
|
|
763
763
|
v,
|
|
764
764
|
new n.Cartesian3()
|
|
765
765
|
), M = n.Cartesian3.add(
|
|
766
766
|
_,
|
|
767
767
|
S,
|
|
768
768
|
new n.Cartesian3()
|
|
769
|
-
), R = P * Math.PI, E =
|
|
769
|
+
), R = P * Math.PI, E = T * 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(o), s;
|
|
777
777
|
}
|
|
778
|
-
function si(a,
|
|
778
|
+
function si(a, o, i = 30) {
|
|
779
779
|
const r = a.length;
|
|
780
|
-
if (r <= 2 ||
|
|
780
|
+
if (r <= 2 || o === 0 || o === r - 1)
|
|
781
781
|
return !1;
|
|
782
782
|
const s = Q(
|
|
783
|
-
a[
|
|
784
|
-
a[
|
|
785
|
-
a[
|
|
786
|
-
a[
|
|
783
|
+
a[o - 1].Longitude,
|
|
784
|
+
a[o - 1].Latitude,
|
|
785
|
+
a[o].Longitude,
|
|
786
|
+
a[o].Latitude
|
|
787
787
|
);
|
|
788
788
|
let W = Q(
|
|
789
|
-
a[
|
|
790
|
-
a[
|
|
791
|
-
a[
|
|
792
|
-
a[
|
|
789
|
+
a[o].Longitude,
|
|
790
|
+
a[o].Latitude,
|
|
791
|
+
a[o + 1].Longitude,
|
|
792
|
+
a[o + 1].Latitude
|
|
793
793
|
) - s;
|
|
794
794
|
return W > 180 && (W -= 360), W < -180 && (W += 360), Math.abs(W) >= i;
|
|
795
795
|
}
|
|
796
|
-
function Ws(a,
|
|
796
|
+
function Ws(a, o, i = 2) {
|
|
797
797
|
const r = a.length;
|
|
798
798
|
if (r <= 1)
|
|
799
799
|
return 0;
|
|
800
|
-
if (si(a,
|
|
801
|
-
return
|
|
802
|
-
a[
|
|
803
|
-
a[
|
|
804
|
-
a[
|
|
805
|
-
a[
|
|
800
|
+
if (si(a, o, 15))
|
|
801
|
+
return o < r - 1 ? Q(
|
|
802
|
+
a[o].Longitude,
|
|
803
|
+
a[o].Latitude,
|
|
804
|
+
a[o + 1].Longitude,
|
|
805
|
+
a[o + 1].Latitude
|
|
806
806
|
) : Q(
|
|
807
|
-
a[
|
|
808
|
-
a[
|
|
809
|
-
a[
|
|
810
|
-
a[
|
|
807
|
+
a[o - 1].Longitude,
|
|
808
|
+
a[o - 1].Latitude,
|
|
809
|
+
a[o].Longitude,
|
|
810
|
+
a[o].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, o - i), c = Math.min(r - 1, o + i);
|
|
813
|
+
if (c - s < 1)
|
|
814
|
+
return o === r - 1 ? Q(
|
|
815
|
+
a[o - 1].Longitude,
|
|
816
|
+
a[o - 1].Latitude,
|
|
817
|
+
a[o].Longitude,
|
|
818
|
+
a[o].Latitude
|
|
819
819
|
) : Q(
|
|
820
|
-
a[
|
|
821
|
-
a[
|
|
822
|
-
a[
|
|
823
|
-
a[
|
|
820
|
+
a[o].Longitude,
|
|
821
|
+
a[o].Latitude,
|
|
822
|
+
a[o + 1].Longitude,
|
|
823
|
+
a[o + 1].Latitude
|
|
824
824
|
);
|
|
825
825
|
const W = [];
|
|
826
|
-
for (let t = s; t <
|
|
826
|
+
for (let t = s; t < c; t++) {
|
|
827
827
|
const l = Q(
|
|
828
828
|
a[t].Longitude,
|
|
829
829
|
a[t].Latitude,
|
|
@@ -834,280 +834,280 @@ function Ws(a, e, i = 2) {
|
|
|
834
834
|
}
|
|
835
835
|
if (W.length === 1)
|
|
836
836
|
return W[0];
|
|
837
|
-
let L = 0,
|
|
837
|
+
let L = 0, p = 0;
|
|
838
838
|
for (const t of W) {
|
|
839
839
|
const l = t * Math.PI / 180;
|
|
840
|
-
L += Math.cos(l),
|
|
840
|
+
L += Math.cos(l), p += Math.sin(l);
|
|
841
841
|
}
|
|
842
|
-
return (Math.atan2(
|
|
842
|
+
return (Math.atan2(p, L) * 180 / Math.PI + 360) % 360;
|
|
843
843
|
}
|
|
844
|
-
function ii(a,
|
|
845
|
-
const i = a * Math.PI / 180, r =
|
|
846
|
-
if (Math.abs(
|
|
844
|
+
function ii(a, o) {
|
|
845
|
+
const i = a * Math.PI / 180, r = o * Math.PI / 180, s = Math.cos(i), c = Math.sin(i), W = Math.cos(r), L = Math.sin(r), p = s + W, w = c + L;
|
|
846
|
+
if (Math.abs(p) < 1e-10 && Math.abs(w) < 1e-10)
|
|
847
847
|
return (a + 90) % 360;
|
|
848
|
-
let t = Math.atan2(
|
|
848
|
+
let t = Math.atan2(w, p) * 180 / Math.PI;
|
|
849
849
|
return t = (t + 360) % 360, t;
|
|
850
850
|
}
|
|
851
851
|
class li {
|
|
852
852
|
constructor() {
|
|
853
|
-
|
|
854
|
-
|
|
853
|
+
I(this, "LineID", "myEntity1");
|
|
854
|
+
I(this, "Tag", "");
|
|
855
855
|
// 线路杆塔台账
|
|
856
|
-
|
|
856
|
+
I(this, "towers", []);
|
|
857
857
|
//是否启用自定义相序 true 按照设置相序分类 false 按照集合顺序分类
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
858
|
+
I(this, "ISPhaseSequence", !1);
|
|
859
|
+
I(this, "Wairnum", 0);
|
|
860
|
+
I(this, "Type", 0);
|
|
861
|
+
I(this, "Trees", []);
|
|
862
862
|
// 导线颜色
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
863
|
+
I(this, "wireAColor", "#FFFFFF");
|
|
864
|
+
I(this, "wireBColor", "#FFFFFF");
|
|
865
|
+
I(this, "wireCColor", "#FFFFFF");
|
|
866
|
+
I(this, "wireTColor", "#FFFFFF");
|
|
867
867
|
//地线
|
|
868
|
-
|
|
869
|
-
|
|
868
|
+
I(this, "wireD1Color", "#FFFFFF");
|
|
869
|
+
I(this, "wireD2Color", "#FFFFFF");
|
|
870
870
|
// 导线宽度
|
|
871
|
-
|
|
871
|
+
I(this, "wireWidth", 1);
|
|
872
872
|
//线模型显隐距离
|
|
873
|
-
|
|
874
|
-
|
|
873
|
+
I(this, "LineDistanceDisplaymin", 0);
|
|
874
|
+
I(this, "LineDistanceDisplaymax", 5e3);
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
class ui {
|
|
878
878
|
constructor() {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
879
|
+
I(this, "id", "");
|
|
880
|
+
I(this, "modelid", "");
|
|
881
|
+
I(this, "lon", 0);
|
|
882
|
+
I(this, "lat", 0);
|
|
883
|
+
I(this, "alt", 0);
|
|
884
|
+
I(this, "treeH", 0);
|
|
885
|
+
I(this, "modelurl", "");
|
|
886
|
+
I(this, "treeScale", 1);
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
class ci {
|
|
890
890
|
constructor() {
|
|
891
891
|
// 杆塔id
|
|
892
|
-
|
|
892
|
+
I(this, "id", "");
|
|
893
893
|
// 杆塔名称
|
|
894
|
-
|
|
894
|
+
I(this, "name", "");
|
|
895
895
|
//杆塔类型
|
|
896
|
-
|
|
896
|
+
I(this, "type", 0);
|
|
897
897
|
// 经度
|
|
898
|
-
|
|
898
|
+
I(this, "Longitude", 0);
|
|
899
899
|
// 纬度
|
|
900
|
-
|
|
900
|
+
I(this, "Latitude", 0);
|
|
901
901
|
// 高程
|
|
902
|
-
|
|
902
|
+
I(this, "Altitude", 0);
|
|
903
903
|
// 转角
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
904
|
+
I(this, "RollX", 0);
|
|
905
|
+
I(this, "RollY", 90);
|
|
906
|
+
I(this, "RollZ", 0);
|
|
907
|
+
I(this, "towerScale", 1);
|
|
908
908
|
// 电线偏移高度,单位:米
|
|
909
|
-
|
|
909
|
+
I(this, "towerHeight", 0);
|
|
910
910
|
//模型路径
|
|
911
|
-
|
|
911
|
+
I(this, "towerModelUri", "");
|
|
912
912
|
//挂点信息
|
|
913
|
-
|
|
913
|
+
I(this, "towerPoint", []);
|
|
914
914
|
//绝缘子串
|
|
915
|
-
|
|
915
|
+
I(this, "Insulators", []);
|
|
916
916
|
//模型显隐距离
|
|
917
|
-
|
|
918
|
-
|
|
917
|
+
I(this, "DistanceDisplaymin", 0);
|
|
918
|
+
I(this, "DistanceDisplaymax", 1e3);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
class Ti {
|
|
922
922
|
constructor() {
|
|
923
923
|
// 绝缘子串id
|
|
924
|
-
|
|
924
|
+
I(this, "id", "");
|
|
925
925
|
// 绝缘子串名称
|
|
926
|
-
|
|
926
|
+
I(this, "name", "");
|
|
927
927
|
// 类型 地线串 耐张串 悬垂串 跳线串
|
|
928
|
-
|
|
929
|
-
|
|
928
|
+
I(this, "type", 0);
|
|
929
|
+
I(this, "WairFX", "进");
|
|
930
930
|
//串所属回路
|
|
931
|
-
|
|
931
|
+
I(this, "linenum", 1);
|
|
932
932
|
//分裂数
|
|
933
|
-
|
|
933
|
+
I(this, "Wairnum", 0);
|
|
934
934
|
//相序
|
|
935
|
-
|
|
935
|
+
I(this, "PhaseSequence", 0);
|
|
936
936
|
//串模型转角
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
937
|
+
I(this, "RollX", 0);
|
|
938
|
+
I(this, "RollY", 0);
|
|
939
|
+
I(this, "RollZ", 0);
|
|
940
940
|
//缩放
|
|
941
|
-
|
|
941
|
+
I(this, "InsulatorScale", 1);
|
|
942
942
|
//串长
|
|
943
|
-
|
|
943
|
+
I(this, "InsulatorLength", 0);
|
|
944
944
|
//模型路径
|
|
945
|
-
|
|
945
|
+
I(this, "InsulatorModelUri", "");
|
|
946
946
|
//挂点信息
|
|
947
|
-
|
|
947
|
+
I(this, "InsulatorPoint", []);
|
|
948
948
|
//模型显隐距离
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
I(this, "DistanceDisplaymin", 0);
|
|
950
|
+
I(this, "DistanceDisplaymax", 500);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
953
|
class Ci {
|
|
954
954
|
constructor() {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
955
|
+
I(this, "name", "");
|
|
956
|
+
I(this, "X", -45);
|
|
957
|
+
I(this, "Y", 90);
|
|
958
|
+
I(this, "Z", 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
var
|
|
961
|
+
var $ = /* @__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))($ || {}), V = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(V || {}), ti = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(ti || {}), hs = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(hs || {}), F = /* @__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))(F || {}), A = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(A || {});
|
|
962
962
|
const es = class es {
|
|
963
963
|
// private arcLine1D2: Cesium.Cartesian3[]= [];
|
|
964
964
|
// 类的构造函数,用于初始化属性
|
|
965
|
-
constructor(
|
|
965
|
+
constructor(o, i, r) {
|
|
966
966
|
//三维场景
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
967
|
+
I(this, "viewer");
|
|
968
|
+
I(this, "LineInfo");
|
|
969
|
+
I(this, "Keym", "");
|
|
970
970
|
// 模型模型集合
|
|
971
|
-
|
|
972
|
-
|
|
971
|
+
I(this, "dataSource2");
|
|
972
|
+
I(this, "entityCollection2");
|
|
973
973
|
// 模型模型集合
|
|
974
|
-
|
|
975
|
-
|
|
974
|
+
I(this, "dataSourcetree");
|
|
975
|
+
I(this, "entityCollectiontree");
|
|
976
976
|
// 模型模型集合
|
|
977
|
-
|
|
978
|
-
|
|
977
|
+
I(this, "dataSourceplotting");
|
|
978
|
+
I(this, "entityCollectionplotting");
|
|
979
979
|
// // 模型模型集合
|
|
980
|
-
|
|
981
|
-
|
|
980
|
+
I(this, "LinedataSource2");
|
|
981
|
+
I(this, "LineentityCollection2");
|
|
982
982
|
// 塔集合
|
|
983
|
-
|
|
983
|
+
I(this, "offsetTowers", []);
|
|
984
984
|
// 树木集合
|
|
985
|
-
|
|
985
|
+
I(this, "offsetTrees", []);
|
|
986
986
|
// 控制是否自动计算 RollX 角度(默认为 true,启用自动计算)
|
|
987
|
-
|
|
987
|
+
I(this, "autoCalculateRollX", !0);
|
|
988
988
|
// 动态加载相关数据结构
|
|
989
|
-
|
|
989
|
+
I(this, "towerWirePoints", /* @__PURE__ */ new Map());
|
|
990
990
|
// 存储每个塔的导线挂点信息
|
|
991
|
-
|
|
991
|
+
I(this, "loadedWireSegments", /* @__PURE__ */ new Set());
|
|
992
992
|
// 已加载的导线段 (格式: "index1-index2")
|
|
993
|
-
|
|
993
|
+
I(this, "loadedTreeIndices", /* @__PURE__ */ new Set());
|
|
994
994
|
// 已加载的树索引
|
|
995
995
|
// 动态加载相关
|
|
996
|
-
|
|
996
|
+
I(this, "isDynamicLoadingEnabled", !0);
|
|
997
997
|
// 是否启用动态加载(默认启用以解决800km卡顿问题)
|
|
998
|
-
|
|
998
|
+
I(this, "loadedTowerIndices", /* @__PURE__ */ new Set());
|
|
999
999
|
// 已加载的塔索引
|
|
1000
|
-
|
|
1000
|
+
I(this, "isTreeModelRemoved", !1);
|
|
1001
1001
|
// 树木模型是否被移除
|
|
1002
|
-
|
|
1002
|
+
I(this, "isLineModelRemoved", !1);
|
|
1003
1003
|
// 线路模型是否被移除
|
|
1004
|
-
|
|
1004
|
+
I(this, "cameraMoveHandler", null);
|
|
1005
1005
|
// 相机移动监听器
|
|
1006
1006
|
// 回路1单根导线1
|
|
1007
|
-
|
|
1007
|
+
I(this, "offsetWires11", []);
|
|
1008
1008
|
// 回路1单根导线2
|
|
1009
|
-
|
|
1009
|
+
I(this, "offsetWires12", []);
|
|
1010
1010
|
// 回路1单根导线3
|
|
1011
|
-
|
|
1011
|
+
I(this, "offsetWires13", []);
|
|
1012
1012
|
// 回路2单根导线1
|
|
1013
|
-
|
|
1013
|
+
I(this, "offsetWires21", []);
|
|
1014
1014
|
// 回路2单根导线2
|
|
1015
|
-
|
|
1015
|
+
I(this, "offsetWires22", []);
|
|
1016
1016
|
// 回路2单根导线3
|
|
1017
|
-
|
|
1017
|
+
I(this, "offsetWires23", []);
|
|
1018
1018
|
// 回路一A跳线
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1019
|
+
I(this, "ToffsetArcWires1A", []);
|
|
1020
|
+
I(this, "ToffsetArcWires2A", []);
|
|
1021
|
+
I(this, "ToffsetWires1A1", []);
|
|
1022
|
+
I(this, "ToffsetWires1A2", []);
|
|
1023
1023
|
// 回路一B跳线
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1024
|
+
I(this, "ToffsetArcWires1B", []);
|
|
1025
|
+
I(this, "ToffsetArcWires2B", []);
|
|
1026
|
+
I(this, "ToffsetWires1B1", []);
|
|
1027
|
+
I(this, "ToffsetWires1B2", []);
|
|
1028
1028
|
// 回路一C跳线
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1029
|
+
I(this, "ToffsetArcWires1C", []);
|
|
1030
|
+
I(this, "ToffsetArcWires2C", []);
|
|
1031
|
+
I(this, "ToffsetWires1C1", []);
|
|
1032
|
+
I(this, "ToffsetWires1C2", []);
|
|
1033
1033
|
// 回路二A跳线
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1034
|
+
I(this, "ToffsetArcWires1A2", []);
|
|
1035
|
+
I(this, "ToffsetArcWires2A2", []);
|
|
1036
|
+
I(this, "ToffsetWires2A1", []);
|
|
1037
|
+
I(this, "ToffsetWires2A2", []);
|
|
1038
1038
|
// 回路二B跳线
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1039
|
+
I(this, "ToffsetArcWires1B2", []);
|
|
1040
|
+
I(this, "ToffsetArcWires2B2", []);
|
|
1041
|
+
I(this, "ToffsetWires2B1", []);
|
|
1042
|
+
I(this, "ToffsetWires2B2", []);
|
|
1043
1043
|
// 回路二C跳线
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1044
|
+
I(this, "ToffsetArcWires1C2", []);
|
|
1045
|
+
I(this, "ToffsetArcWires2C2", []);
|
|
1046
|
+
I(this, "ToffsetWires2C1", []);
|
|
1047
|
+
I(this, "ToffsetWires2C2", []);
|
|
1048
1048
|
// 回路一导线相序A
|
|
1049
|
-
|
|
1049
|
+
I(this, "offsetArcWires1A", []);
|
|
1050
1050
|
// 回路一导线相序B
|
|
1051
|
-
|
|
1051
|
+
I(this, "offsetArcWires1B", []);
|
|
1052
1052
|
// 回路一导线相序C
|
|
1053
|
-
|
|
1053
|
+
I(this, "offsetArcWires1C", []);
|
|
1054
1054
|
// 回路二导线相序A
|
|
1055
|
-
|
|
1055
|
+
I(this, "offsetArcWires2A", []);
|
|
1056
1056
|
// 回路二导线相序B
|
|
1057
|
-
|
|
1057
|
+
I(this, "offsetArcWires2B", []);
|
|
1058
1058
|
// 回路二导线相序C
|
|
1059
|
-
|
|
1059
|
+
I(this, "offsetArcWires2C", []);
|
|
1060
1060
|
//地线1
|
|
1061
|
-
|
|
1061
|
+
I(this, "offsetGrouundWires1", []);
|
|
1062
1062
|
//地线2
|
|
1063
|
-
|
|
1063
|
+
I(this, "offsetGrouundWires2", []);
|
|
1064
1064
|
// 单根地线1
|
|
1065
|
-
|
|
1065
|
+
I(this, "offsetGrouundWires11", []);
|
|
1066
1066
|
// 单根地线2
|
|
1067
|
-
|
|
1067
|
+
I(this, "offsetGrouundWires12", []);
|
|
1068
1068
|
// 电线(垂线)集合 用于计算
|
|
1069
1069
|
//回路1
|
|
1070
|
-
|
|
1071
|
-
|
|
1070
|
+
I(this, "arcLine1A1", []);
|
|
1071
|
+
I(this, "arcLine1B1", []);
|
|
1072
1072
|
// private arcLine1C1: Cesium.Cartesian3[] = [];
|
|
1073
1073
|
//地线
|
|
1074
|
-
|
|
1074
|
+
I(this, "arcLine1D1", []);
|
|
1075
1075
|
/**
|
|
1076
1076
|
* 模型缓存映射,用于避免重复创建相同配置的模型实体
|
|
1077
1077
|
* 键格式: modelUri_scale_distanceMin_distanceMax
|
|
1078
1078
|
*/
|
|
1079
|
-
|
|
1079
|
+
I(this, "modelCache", /* @__PURE__ */ new Map());
|
|
1080
1080
|
// 在类中添加私有属性来存储事件处理器和标记数据源
|
|
1081
|
-
|
|
1082
|
-
this.Keym = r, this.viewer =
|
|
1081
|
+
I(this, "treeHandler", null);
|
|
1082
|
+
this.Keym = r, this.viewer = o, this.LineInfo = i, 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;
|
|
1083
1083
|
}
|
|
1084
1084
|
/**
|
|
1085
1085
|
* 创建模型缓存键
|
|
1086
1086
|
*/
|
|
1087
|
-
createModelCacheKey(
|
|
1088
|
-
return `${
|
|
1087
|
+
createModelCacheKey(o, i, r, s) {
|
|
1088
|
+
return `${o}_${i}_${r}_${s}`;
|
|
1089
1089
|
}
|
|
1090
1090
|
/**
|
|
1091
1091
|
* 从缓存中获取或创建模型配置
|
|
1092
1092
|
* 注意:距离参数会自动限制最大值以避免性能问题
|
|
1093
1093
|
*/
|
|
1094
|
-
getCachedModelConfig(
|
|
1095
|
-
const
|
|
1094
|
+
getCachedModelConfig(o, i, r, s) {
|
|
1095
|
+
const c = Math.max(0, r), W = Math.min(s, 5e4), L = this.createModelCacheKey(o, i, c, W);
|
|
1096
1096
|
if (!this.modelCache.has(L)) {
|
|
1097
|
-
const
|
|
1098
|
-
uri:
|
|
1097
|
+
const p = {
|
|
1098
|
+
uri: o,
|
|
1099
1099
|
scale: i,
|
|
1100
|
-
distanceDisplayCondition: [
|
|
1100
|
+
distanceDisplayCondition: [c, W]
|
|
1101
1101
|
};
|
|
1102
|
-
this.modelCache.set(L,
|
|
1102
|
+
this.modelCache.set(L, p);
|
|
1103
1103
|
}
|
|
1104
1104
|
return this.modelCache.get(L);
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* 统一的模型添加方法,减少重复代码
|
|
1108
1108
|
*/
|
|
1109
|
-
addModelToCollection(
|
|
1110
|
-
const
|
|
1109
|
+
addModelToCollection(o, i, r, s, c, W, L) {
|
|
1110
|
+
const p = this.getCachedModelConfig(
|
|
1111
1111
|
s,
|
|
1112
1112
|
W,
|
|
1113
1113
|
L[0],
|
|
@@ -1115,13 +1115,13 @@ const es = class es {
|
|
|
1115
1115
|
);
|
|
1116
1116
|
this.entityCollection2.add(
|
|
1117
1117
|
Cs(
|
|
1118
|
-
|
|
1118
|
+
o,
|
|
1119
1119
|
i,
|
|
1120
1120
|
r,
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1121
|
+
p.uri,
|
|
1122
|
+
c,
|
|
1123
|
+
p.scale,
|
|
1124
|
+
p.distanceDisplayCondition
|
|
1125
1125
|
)
|
|
1126
1126
|
);
|
|
1127
1127
|
}
|
|
@@ -1129,8 +1129,8 @@ const es = class es {
|
|
|
1129
1129
|
* 设置是否自动计算 RollX 角度
|
|
1130
1130
|
* @param enable 是否启用自动计算(true: 启用, false: 禁用)
|
|
1131
1131
|
*/
|
|
1132
|
-
setAutoCalculateRollX(
|
|
1133
|
-
this.autoCalculateRollX =
|
|
1132
|
+
setAutoCalculateRollX(o) {
|
|
1133
|
+
this.autoCalculateRollX = o;
|
|
1134
1134
|
}
|
|
1135
1135
|
/**
|
|
1136
1136
|
* 获取当前是否启用自动计算 RollX 角度
|
|
@@ -1143,8 +1143,8 @@ const es = class es {
|
|
|
1143
1143
|
* 设置是否启用动态加载模式
|
|
1144
1144
|
* @param enable 是否启用动态加载(true: 启用, false: 禁用)
|
|
1145
1145
|
*/
|
|
1146
|
-
setDynamicLoadingEnabled(
|
|
1147
|
-
this.isDynamicLoadingEnabled =
|
|
1146
|
+
setDynamicLoadingEnabled(o) {
|
|
1147
|
+
this.isDynamicLoadingEnabled = o;
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* 获取当前是否启用动态加载模式
|
|
@@ -1171,16 +1171,16 @@ const es = class es {
|
|
|
1171
1171
|
* 计算相机视野范围内的塔索引
|
|
1172
1172
|
*/
|
|
1173
1173
|
getVisibleTowerIndices() {
|
|
1174
|
-
var
|
|
1174
|
+
var p;
|
|
1175
1175
|
if (!this.viewer.camera || this.offsetTowers.length === 0)
|
|
1176
1176
|
return { start: 0, end: 0 };
|
|
1177
|
-
const
|
|
1177
|
+
const o = this.viewer.camera.position, i = ((p = this.viewer.camera.positionCartographic) == null ? void 0 : p.height) || 1e3;
|
|
1178
1178
|
let r = 5;
|
|
1179
1179
|
i > 5e4 ? r = 2 : i > 1e4 ? r = 3 : i > 5e3 ? r = 5 : r = 10;
|
|
1180
|
-
let s = 0,
|
|
1181
|
-
for (let
|
|
1182
|
-
const t = n.Cartesian3.distance(
|
|
1183
|
-
t <
|
|
1180
|
+
let s = 0, c = Number.MAX_VALUE;
|
|
1181
|
+
for (let w = 0; w < this.offsetTowers.length; w++) {
|
|
1182
|
+
const t = n.Cartesian3.distance(o, this.offsetTowers[w]);
|
|
1183
|
+
t < c && (c = t, s = w);
|
|
1184
1184
|
}
|
|
1185
1185
|
const W = Math.max(0, s - r), L = Math.min(this.offsetTowers.length - 1, s + r);
|
|
1186
1186
|
return { start: W, end: L };
|
|
@@ -1189,23 +1189,23 @@ const es = class es {
|
|
|
1189
1189
|
* 更新可见范围内的塔(加载新塔,可选择性卸载远处的塔)
|
|
1190
1190
|
*/
|
|
1191
1191
|
updateVisibleTowers() {
|
|
1192
|
-
const { start:
|
|
1193
|
-
this.isLineModelRemoved || this.loadTowersInRange(
|
|
1192
|
+
const { start: o, end: i } = this.getVisibleTowerIndices();
|
|
1193
|
+
this.isLineModelRemoved || this.loadTowersInRange(o, i), this.isTreeModelRemoved || this.updateVisibleTrees();
|
|
1194
1194
|
}
|
|
1195
1195
|
/**
|
|
1196
1196
|
* 计算相机视野范围内的树木索引
|
|
1197
1197
|
*/
|
|
1198
1198
|
getVisibleTreeIndices() {
|
|
1199
|
-
var
|
|
1199
|
+
var c;
|
|
1200
1200
|
if (!this.viewer.camera || this.offsetTrees.length === 0)
|
|
1201
1201
|
return [];
|
|
1202
|
-
const
|
|
1202
|
+
const o = this.viewer.camera.position, i = ((c = this.viewer.camera.positionCartographic) == null ? void 0 : c.height) || 1e3;
|
|
1203
1203
|
let r = Math.max(5e3, i * 2);
|
|
1204
1204
|
i > 5e4 && (r = 1e5);
|
|
1205
1205
|
const s = [];
|
|
1206
1206
|
for (let W = 0; W < this.offsetTrees.length; W++) {
|
|
1207
1207
|
const L = this.offsetTrees[W];
|
|
1208
|
-
n.Cartesian3.distance(
|
|
1208
|
+
n.Cartesian3.distance(o, L) <= r && s.push(W);
|
|
1209
1209
|
}
|
|
1210
1210
|
if (s.length === 0 && this.offsetTrees.length > 0) {
|
|
1211
1211
|
const W = Math.min(20, this.offsetTrees.length);
|
|
@@ -1220,17 +1220,17 @@ const es = class es {
|
|
|
1220
1220
|
updateVisibleTrees() {
|
|
1221
1221
|
if (this.isTreeModelRemoved)
|
|
1222
1222
|
return;
|
|
1223
|
-
const
|
|
1223
|
+
const o = this.getVisibleTreeIndices(), i = [];
|
|
1224
1224
|
this.loadedTreeIndices.forEach((r) => {
|
|
1225
|
-
|
|
1225
|
+
o.includes(r) || i.push(r);
|
|
1226
1226
|
}), i.forEach((r) => {
|
|
1227
1227
|
const s = "tree-" + this.LineInfo.Trees[r].id;
|
|
1228
1228
|
this.entityCollectiontree.removeById(s), this.loadedTreeIndices.delete(r);
|
|
1229
|
-
}),
|
|
1229
|
+
}), o.forEach((r) => {
|
|
1230
1230
|
if (!this.loadedTreeIndices.has(r))
|
|
1231
1231
|
if (r >= 0 && r < this.offsetTrees.length && r < this.LineInfo.Trees.length) {
|
|
1232
|
-
const s = this.offsetTrees[r],
|
|
1233
|
-
s &&
|
|
1232
|
+
const s = this.offsetTrees[r], c = this.LineInfo.Trees[r];
|
|
1233
|
+
s && c ? (this.loadTreeAtIndex(r, s), this.loadedTreeIndices.add(r)) : console.warn(`跳过无效的动态加载树木数据,索引: ${r}`);
|
|
1234
1234
|
} else
|
|
1235
1235
|
console.warn(`动态加载树木索引超出范围: ${r}`);
|
|
1236
1236
|
});
|
|
@@ -1239,8 +1239,8 @@ const es = class es {
|
|
|
1239
1239
|
* 初始化线路数据(不立即加载所有实体,避免性能问题)
|
|
1240
1240
|
*/
|
|
1241
1241
|
initializeLineData() {
|
|
1242
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.towers.forEach((
|
|
1243
|
-
this.offsetTowers.push(n.Cartesian3.fromDegrees(
|
|
1242
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.towers.forEach((o) => {
|
|
1243
|
+
this.offsetTowers.push(n.Cartesian3.fromDegrees(o.Longitude, o.Latitude, o.Altitude));
|
|
1244
1244
|
}), this.autoCalculateRollX && this.calculateTowerOrientations());
|
|
1245
1245
|
}
|
|
1246
1246
|
/**
|
|
@@ -1249,32 +1249,32 @@ const es = class es {
|
|
|
1249
1249
|
* 耐张塔:垂直于转角的角平分线方向
|
|
1250
1250
|
*/
|
|
1251
1251
|
calculateTowerOrientations() {
|
|
1252
|
-
const
|
|
1253
|
-
if (
|
|
1254
|
-
if (
|
|
1252
|
+
const o = this.LineInfo.towers.length;
|
|
1253
|
+
if (o !== 0) {
|
|
1254
|
+
if (o === 1) {
|
|
1255
1255
|
this.LineInfo.towers[0].RollX === void 0 && (this.LineInfo.towers[0].RollX = 90);
|
|
1256
1256
|
return;
|
|
1257
1257
|
}
|
|
1258
|
-
for (let i = 0; i <
|
|
1258
|
+
for (let i = 0; i < o; i++) {
|
|
1259
1259
|
let r = 0;
|
|
1260
1260
|
if (this.LineInfo.towers[i].type === V.耐张塔)
|
|
1261
1261
|
if (i === 0)
|
|
1262
1262
|
r = (Ws(this.LineInfo.towers, i, 3) - 90 + 360) % 360;
|
|
1263
|
-
else if (i ===
|
|
1263
|
+
else if (i === o - 1)
|
|
1264
1264
|
r = (Ws(this.LineInfo.towers, i, 3) - 90 + 360) % 360;
|
|
1265
1265
|
else {
|
|
1266
|
-
const s = this.LineInfo.towers[i - 1],
|
|
1266
|
+
const s = this.LineInfo.towers[i - 1], c = this.LineInfo.towers[i], W = this.LineInfo.towers[i + 1], L = Q(
|
|
1267
1267
|
s.Longitude,
|
|
1268
1268
|
s.Latitude,
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
),
|
|
1272
|
-
|
|
1273
|
-
|
|
1269
|
+
c.Longitude,
|
|
1270
|
+
c.Latitude
|
|
1271
|
+
), p = Q(
|
|
1272
|
+
c.Longitude,
|
|
1273
|
+
c.Latitude,
|
|
1274
1274
|
W.Longitude,
|
|
1275
1275
|
W.Latitude
|
|
1276
1276
|
);
|
|
1277
|
-
r = (ii(L,
|
|
1277
|
+
r = (ii(L, p) - 90 + 360) % 360;
|
|
1278
1278
|
}
|
|
1279
1279
|
else
|
|
1280
1280
|
r = (Ws(this.LineInfo.towers, i, 2) - 90 + 360) % 360;
|
|
@@ -1285,107 +1285,107 @@ const es = class es {
|
|
|
1285
1285
|
/**
|
|
1286
1286
|
* 加载指定范围内的塔、绝缘子和相关导线(完整的动态加载实现)
|
|
1287
1287
|
*/
|
|
1288
|
-
loadTowersInRange(
|
|
1289
|
-
if (
|
|
1288
|
+
loadTowersInRange(o, i) {
|
|
1289
|
+
if (o < 0 || i >= this.LineInfo.towers.length)
|
|
1290
1290
|
return;
|
|
1291
|
-
const r = Math.max(0,
|
|
1292
|
-
for (let
|
|
1293
|
-
this.loadedTowerIndices.has(
|
|
1294
|
-
for (let
|
|
1295
|
-
const W = `${
|
|
1296
|
-
this.loadedWireSegments.has(W) || (this.loadWireSegmentBetweenTowers(
|
|
1291
|
+
const r = Math.max(0, o - 1), s = Math.min(this.LineInfo.towers.length - 1, i + 1);
|
|
1292
|
+
for (let c = r; c <= s; c++)
|
|
1293
|
+
this.loadedTowerIndices.has(c) || (this.loadTowerAndCollectWirePoints(c), this.loadedTowerIndices.add(c));
|
|
1294
|
+
for (let c = r; c < s; c++) {
|
|
1295
|
+
const W = `${c}-${c + 1}`;
|
|
1296
|
+
this.loadedWireSegments.has(W) || (this.loadWireSegmentBetweenTowers(c, c + 1), this.loadedWireSegments.add(W));
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
/**
|
|
1300
1300
|
* 加载单个塔和绝缘子,并收集导线挂点信息用于后续导线计算
|
|
1301
1301
|
*/
|
|
1302
|
-
loadTowerAndCollectWirePoints(
|
|
1303
|
-
const i = this.offsetTowers[
|
|
1304
|
-
n.Math.toRadians(this.LineInfo.towers[
|
|
1305
|
-
n.Math.toRadians(this.LineInfo.towers[
|
|
1306
|
-
n.Math.toRadians(this.LineInfo.towers[
|
|
1302
|
+
loadTowerAndCollectWirePoints(o) {
|
|
1303
|
+
const i = this.offsetTowers[o], r = new n.HeadingPitchRoll(
|
|
1304
|
+
n.Math.toRadians(this.LineInfo.towers[o].RollX),
|
|
1305
|
+
n.Math.toRadians(this.LineInfo.towers[o].RollY),
|
|
1306
|
+
n.Math.toRadians(this.LineInfo.towers[o].RollZ)
|
|
1307
1307
|
);
|
|
1308
1308
|
this.addModelToCollection(
|
|
1309
|
-
this.LineInfo.towers[
|
|
1309
|
+
this.LineInfo.towers[o].id,
|
|
1310
1310
|
i,
|
|
1311
|
-
this.LineInfo.towers[
|
|
1312
|
-
this.LineInfo.towers[
|
|
1311
|
+
this.LineInfo.towers[o].name,
|
|
1312
|
+
this.LineInfo.towers[o].towerModelUri,
|
|
1313
1313
|
r,
|
|
1314
|
-
this.LineInfo.towers[
|
|
1315
|
-
[this.LineInfo.towers[
|
|
1314
|
+
this.LineInfo.towers[o].towerScale,
|
|
1315
|
+
[this.LineInfo.towers[o].DistanceDisplaymin, this.LineInfo.towers[o].DistanceDisplaymax]
|
|
1316
1316
|
);
|
|
1317
|
-
const s = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[
|
|
1317
|
+
const s = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX), 0, 0), c = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX), 0, 0);
|
|
1318
1318
|
let W = 0;
|
|
1319
1319
|
const L = [];
|
|
1320
|
-
this.LineInfo.towers[
|
|
1321
|
-
const
|
|
1320
|
+
this.LineInfo.towers[o].Insulators.forEach((p) => {
|
|
1321
|
+
const w = B(
|
|
1322
1322
|
i,
|
|
1323
1323
|
new n.Cartesian3(
|
|
1324
|
-
this.LineInfo.towers[
|
|
1325
|
-
this.LineInfo.towers[
|
|
1326
|
-
this.LineInfo.towers[
|
|
1324
|
+
this.LineInfo.towers[o].towerPoint[W].X,
|
|
1325
|
+
this.LineInfo.towers[o].towerPoint[W].Y,
|
|
1326
|
+
this.LineInfo.towers[o].towerPoint[W].Z
|
|
1327
1327
|
),
|
|
1328
|
-
this.LineInfo.towers[
|
|
1328
|
+
this.LineInfo.towers[o].type === V.耐张塔 ? c : s
|
|
1329
1329
|
);
|
|
1330
1330
|
let t, l;
|
|
1331
|
-
if (this.autoCalculateRollX ? l = this.LineInfo.towers[
|
|
1332
|
-
switch (
|
|
1331
|
+
if (this.autoCalculateRollX ? l = this.LineInfo.towers[o].RollX : l = p.RollX, this.LineInfo.towers[o].type === V.耐张塔)
|
|
1332
|
+
switch (p.type) {
|
|
1333
1333
|
case F.耐张串:
|
|
1334
|
-
t =
|
|
1334
|
+
t = p.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));
|
|
1335
1335
|
break;
|
|
1336
1336
|
case F.跳线串:
|
|
1337
1337
|
t = new n.HeadingPitchRoll(
|
|
1338
1338
|
n.Math.toRadians(l),
|
|
1339
|
-
n.Math.toRadians(
|
|
1340
|
-
n.Math.toRadians(
|
|
1339
|
+
n.Math.toRadians(p.RollY),
|
|
1340
|
+
n.Math.toRadians(p.RollZ)
|
|
1341
1341
|
);
|
|
1342
1342
|
break;
|
|
1343
1343
|
case F.地线串:
|
|
1344
1344
|
t = new n.HeadingPitchRoll(
|
|
1345
1345
|
n.Math.toRadians(l),
|
|
1346
|
-
n.Math.toRadians(
|
|
1347
|
-
n.Math.toRadians(
|
|
1346
|
+
n.Math.toRadians(p.RollY),
|
|
1347
|
+
n.Math.toRadians(p.RollZ)
|
|
1348
1348
|
);
|
|
1349
1349
|
break;
|
|
1350
1350
|
default:
|
|
1351
1351
|
t = new n.HeadingPitchRoll(
|
|
1352
1352
|
n.Math.toRadians(l),
|
|
1353
|
-
n.Math.toRadians(
|
|
1354
|
-
n.Math.toRadians(
|
|
1353
|
+
n.Math.toRadians(p.RollY),
|
|
1354
|
+
n.Math.toRadians(p.RollZ)
|
|
1355
1355
|
);
|
|
1356
1356
|
}
|
|
1357
1357
|
else
|
|
1358
1358
|
t = new n.HeadingPitchRoll(
|
|
1359
1359
|
n.Math.toRadians(l),
|
|
1360
|
-
n.Math.toRadians(
|
|
1361
|
-
n.Math.toRadians(
|
|
1360
|
+
n.Math.toRadians(p.RollY),
|
|
1361
|
+
n.Math.toRadians(p.RollZ)
|
|
1362
1362
|
);
|
|
1363
1363
|
this.addModelToCollection(
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1364
|
+
p.id,
|
|
1365
|
+
w,
|
|
1366
|
+
p.name,
|
|
1367
|
+
p.InsulatorModelUri,
|
|
1368
1368
|
t,
|
|
1369
|
-
|
|
1370
|
-
[
|
|
1369
|
+
p.InsulatorScale,
|
|
1370
|
+
[p.DistanceDisplaymin, p.DistanceDisplaymax]
|
|
1371
1371
|
);
|
|
1372
1372
|
const u = {
|
|
1373
|
-
insulator:
|
|
1373
|
+
insulator: p,
|
|
1374
1374
|
insulatorIndex: W,
|
|
1375
1375
|
position: i,
|
|
1376
1376
|
lineroll: s,
|
|
1377
1377
|
WairPoint: []
|
|
1378
1378
|
};
|
|
1379
|
-
|
|
1380
|
-
C.Y = C.Y + this.LineInfo.towers[
|
|
1379
|
+
p.InsulatorPoint.forEach((C) => {
|
|
1380
|
+
C.Y = C.Y + this.LineInfo.towers[o].towerPoint[W].Y, C.Z = C.Z + this.LineInfo.towers[o].towerPoint[W].Z, u.WairPoint.push(B(i, new n.Cartesian3(C.X, C.Y, C.Z), s));
|
|
1381
1381
|
}), L.push(u), W++;
|
|
1382
|
-
}), this.towerWirePoints.set(
|
|
1382
|
+
}), this.towerWirePoints.set(o, L);
|
|
1383
1383
|
}
|
|
1384
1384
|
/**
|
|
1385
1385
|
* 加载两个相邻塔之间的导线段
|
|
1386
1386
|
*/
|
|
1387
|
-
loadWireSegmentBetweenTowers(
|
|
1388
|
-
const r = this.towerWirePoints.get(
|
|
1387
|
+
loadWireSegmentBetweenTowers(o, i) {
|
|
1388
|
+
const r = this.towerWirePoints.get(o), s = this.towerWirePoints.get(i);
|
|
1389
1389
|
!r || !s || this.resetWireArraysForTwoTowers();
|
|
1390
1390
|
}
|
|
1391
1391
|
/**
|
|
@@ -1404,23 +1404,23 @@ const es = class es {
|
|
|
1404
1404
|
* 只加载导线,不加载杆塔和绝缘子(用于动态加载模式)
|
|
1405
1405
|
*/
|
|
1406
1406
|
loadAllWiresOnly() {
|
|
1407
|
-
const
|
|
1408
|
-
this.entityCollection2 =
|
|
1407
|
+
const o = new n.EntityCollection(), i = this.entityCollection2;
|
|
1408
|
+
this.entityCollection2 = o, this.loadAllTowersAtOnce();
|
|
1409
1409
|
const r = [];
|
|
1410
|
-
|
|
1411
|
-
var
|
|
1412
|
-
s.name && (s.name.includes("导线") || s.name.includes("daoxian") || (
|
|
1410
|
+
o.values.forEach((s) => {
|
|
1411
|
+
var c;
|
|
1412
|
+
s.name && (s.name.includes("导线") || s.name.includes("daoxian") || (c = s.id) != null && c.toString().includes("daoxian")) && r.push(s);
|
|
1413
1413
|
}), this.entityCollection2 = i, r.forEach((s) => {
|
|
1414
1414
|
this.entityCollection2.add(s);
|
|
1415
|
-
}),
|
|
1415
|
+
}), o.removeAll();
|
|
1416
1416
|
}
|
|
1417
1417
|
/**
|
|
1418
1418
|
* 一次性加载所有塔(兼容模式,大数据量时会卡顿)
|
|
1419
1419
|
*/
|
|
1420
1420
|
loadAllTowersAtOnce() {
|
|
1421
|
-
let
|
|
1421
|
+
let o = 0, i = 0;
|
|
1422
1422
|
this.offsetTowers.forEach((r, s) => {
|
|
1423
|
-
const
|
|
1423
|
+
const c = new n.HeadingPitchRoll(
|
|
1424
1424
|
n.Math.toRadians(this.LineInfo.towers[s].RollX),
|
|
1425
1425
|
n.Math.toRadians(this.LineInfo.towers[s].RollY),
|
|
1426
1426
|
n.Math.toRadians(this.LineInfo.towers[s].RollZ)
|
|
@@ -1430,19 +1430,19 @@ const es = class es {
|
|
|
1430
1430
|
r,
|
|
1431
1431
|
this.LineInfo.towers[s].name,
|
|
1432
1432
|
this.LineInfo.towers[s].towerModelUri,
|
|
1433
|
-
|
|
1433
|
+
c,
|
|
1434
1434
|
this.LineInfo.towers[s].towerScale,
|
|
1435
1435
|
[this.LineInfo.towers[s].DistanceDisplaymin, this.LineInfo.towers[s].DistanceDisplaymax]
|
|
1436
1436
|
);
|
|
1437
1437
|
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);
|
|
1438
|
-
let
|
|
1438
|
+
let p = 0;
|
|
1439
1439
|
if (this.LineInfo.towers[s].Insulators.forEach((t) => {
|
|
1440
1440
|
const l = B(
|
|
1441
1441
|
r,
|
|
1442
1442
|
new n.Cartesian3(
|
|
1443
|
-
this.LineInfo.towers[s].towerPoint[
|
|
1444
|
-
this.LineInfo.towers[s].towerPoint[
|
|
1445
|
-
this.LineInfo.towers[s].towerPoint[
|
|
1443
|
+
this.LineInfo.towers[s].towerPoint[p].X,
|
|
1444
|
+
this.LineInfo.towers[s].towerPoint[p].Y,
|
|
1445
|
+
this.LineInfo.towers[s].towerPoint[p].Z
|
|
1446
1446
|
),
|
|
1447
1447
|
this.LineInfo.towers[s].type === V.耐张塔 ? L : W
|
|
1448
1448
|
);
|
|
@@ -1488,301 +1488,301 @@ const es = class es {
|
|
|
1488
1488
|
t.InsulatorScale,
|
|
1489
1489
|
[t.DistanceDisplaymin, t.DistanceDisplaymax]
|
|
1490
1490
|
);
|
|
1491
|
-
const
|
|
1492
|
-
switch (t.InsulatorPoint.forEach((
|
|
1493
|
-
|
|
1491
|
+
const e = [];
|
|
1492
|
+
switch (t.InsulatorPoint.forEach((T) => {
|
|
1493
|
+
T.Y = T.Y + this.LineInfo.towers[s].towerPoint[p].Y, T.Z = T.Z + this.LineInfo.towers[s].towerPoint[p].Z, e.push(B(r, new n.Cartesian3(T.X, T.Y, T.Z), W));
|
|
1494
1494
|
}), t.linenum) {
|
|
1495
1495
|
case hs.回路一:
|
|
1496
1496
|
if (this.LineInfo.ISPhaseSequence)
|
|
1497
1497
|
if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1498
1498
|
switch (t.PhaseSequence) {
|
|
1499
|
-
case
|
|
1499
|
+
case $.A相:
|
|
1500
1500
|
if (t.type == F.耐张串)
|
|
1501
1501
|
if (t.WairFX == "进")
|
|
1502
1502
|
switch (this.LineInfo.Wairnum) {
|
|
1503
|
-
case
|
|
1504
|
-
this.offsetWires11.push(
|
|
1503
|
+
case A.单分裂:
|
|
1504
|
+
this.offsetWires11.push(e[0]), this.ToffsetWires1A1.push(e[0]);
|
|
1505
1505
|
break;
|
|
1506
|
-
case
|
|
1507
|
-
this.offsetWires11.push(
|
|
1506
|
+
case A.双分裂:
|
|
1507
|
+
this.offsetWires11.push(e[0]), this.offsetWires11.push(e[1]), this.ToffsetWires1A1.push(e[2]), this.ToffsetWires1A1.push(e[3]);
|
|
1508
1508
|
break;
|
|
1509
|
-
case
|
|
1510
|
-
this.offsetWires11.push(
|
|
1509
|
+
case A.四分裂:
|
|
1510
|
+
this.offsetWires11.push(e[0]), this.offsetWires11.push(e[1]), this.offsetWires11.push(e[2]), this.offsetWires11.push(e[3]), this.ToffsetWires1A1.push(e[4]), this.ToffsetWires1A1.push(e[5]), this.ToffsetWires1A1.push(e[6]), this.ToffsetWires1A1.push(e[7]);
|
|
1511
1511
|
break;
|
|
1512
|
-
case
|
|
1513
|
-
this.offsetWires11.push(
|
|
1512
|
+
case A.六分裂:
|
|
1513
|
+
this.offsetWires11.push(e[0]), this.offsetWires11.push(e[1]), this.offsetWires11.push(e[2]), this.offsetWires11.push(e[3]), this.offsetWires11.push(e[4]), this.offsetWires11.push(e[5]), this.ToffsetWires1A1.push(e[6]), this.ToffsetWires1A1.push(e[7]), this.ToffsetWires1A1.push(e[8]), this.ToffsetWires1A1.push(e[9]), this.ToffsetWires1A1.push(e[10]), this.ToffsetWires1A1.push(e[11]);
|
|
1514
1514
|
break;
|
|
1515
|
-
case
|
|
1516
|
-
this.offsetWires11.push(
|
|
1515
|
+
case A.八分裂:
|
|
1516
|
+
this.offsetWires11.push(e[0]), this.offsetWires11.push(e[1]), this.offsetWires11.push(e[2]), this.offsetWires11.push(e[3]), this.offsetWires11.push(e[4]), this.offsetWires11.push(e[5]), this.offsetWires11.push(e[6]), this.offsetWires11.push(e[7]), this.ToffsetWires1A1.push(e[8]), this.ToffsetWires1A1.push(e[9]), this.ToffsetWires1A1.push(e[10]), this.ToffsetWires1A1.push(e[11]), this.ToffsetWires1A1.push(e[12]), this.ToffsetWires1A1.push(e[13]), this.ToffsetWires1A1.push(e[14]), this.ToffsetWires1A1.push(e[15]);
|
|
1517
1517
|
break;
|
|
1518
1518
|
}
|
|
1519
1519
|
else
|
|
1520
1520
|
switch (this.LineInfo.Wairnum) {
|
|
1521
|
-
case
|
|
1522
|
-
const
|
|
1523
|
-
this.offsetWires11.push(
|
|
1521
|
+
case A.单分裂:
|
|
1522
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1523
|
+
this.offsetWires11.push(T), this.ToffsetWires1A2.push(T);
|
|
1524
1524
|
break;
|
|
1525
|
-
case
|
|
1525
|
+
case A.双分裂:
|
|
1526
1526
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1527
1527
|
this.offsetWires11.push(m), this.offsetWires11.push(b), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(b);
|
|
1528
1528
|
break;
|
|
1529
|
-
case
|
|
1530
|
-
const
|
|
1531
|
-
this.offsetWires11.push(
|
|
1529
|
+
case A.四分裂:
|
|
1530
|
+
const d = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1531
|
+
this.offsetWires11.push(d), this.offsetWires11.push(P), this.offsetWires11.push(g), this.offsetWires11.push(y), this.ToffsetWires1A2.push(d), this.ToffsetWires1A2.push(P), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(y);
|
|
1532
1532
|
break;
|
|
1533
|
-
case
|
|
1533
|
+
case A.六分裂:
|
|
1534
1534
|
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1535
1535
|
this.offsetWires11.push(v), this.offsetWires11.push(_), this.offsetWires11.push(S), this.offsetWires11.push(M), this.offsetWires11.push(R), this.offsetWires11.push(E), this.ToffsetWires1A2.push(v), this.ToffsetWires1A2.push(_), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(R), this.ToffsetWires1A2.push(E);
|
|
1536
1536
|
break;
|
|
1537
|
-
case
|
|
1538
|
-
const
|
|
1539
|
-
this.offsetWires11.push(
|
|
1537
|
+
case A.八分裂:
|
|
1538
|
+
const D = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), Y = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1539
|
+
this.offsetWires11.push(D), this.offsetWires11.push(Z), this.offsetWires11.push(Y), this.offsetWires11.push(k), this.offsetWires11.push(X), this.offsetWires11.push(H), this.offsetWires11.push(O), this.offsetWires11.push(N), this.ToffsetWires1A2.push(D), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(H), this.ToffsetWires1A2.push(O), this.ToffsetWires1A2.push(N);
|
|
1540
1540
|
break;
|
|
1541
1541
|
}
|
|
1542
1542
|
else if (t.type == F.跳线串)
|
|
1543
1543
|
switch (this.LineInfo.Wairnum) {
|
|
1544
|
-
case
|
|
1545
|
-
this.ToffsetWires1A1.push(
|
|
1544
|
+
case A.单分裂:
|
|
1545
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A2.push(e[1]);
|
|
1546
1546
|
break;
|
|
1547
|
-
case
|
|
1548
|
-
this.ToffsetWires1A1.push(
|
|
1547
|
+
case A.双分裂:
|
|
1548
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A1.push(e[1]), this.ToffsetWires1A2.push(e[2]), this.ToffsetWires1A2.push(e[3]);
|
|
1549
1549
|
break;
|
|
1550
|
-
case
|
|
1551
|
-
this.ToffsetWires1A1.push(
|
|
1550
|
+
case A.四分裂:
|
|
1551
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A1.push(e[1]), this.ToffsetWires1A1.push(e[2]), this.ToffsetWires1A1.push(e[3]), this.ToffsetWires1A2.push(e[4]), this.ToffsetWires1A2.push(e[5]), this.ToffsetWires1A2.push(e[6]), this.ToffsetWires1A2.push(e[7]);
|
|
1552
1552
|
break;
|
|
1553
|
-
case
|
|
1554
|
-
this.ToffsetWires1A1.push(
|
|
1553
|
+
case A.六分裂:
|
|
1554
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A1.push(e[1]), this.ToffsetWires1A1.push(e[2]), this.ToffsetWires1A1.push(e[3]), this.ToffsetWires1A1.push(e[4]), this.ToffsetWires1A1.push(e[5]), this.ToffsetWires1A2.push(e[6]), this.ToffsetWires1A2.push(e[7]), this.ToffsetWires1A2.push(e[8]), this.ToffsetWires1A2.push(e[9]), this.ToffsetWires1A2.push(e[10]), this.ToffsetWires1A2.push(e[11]);
|
|
1555
1555
|
break;
|
|
1556
|
-
case
|
|
1557
|
-
this.ToffsetWires1A1.push(
|
|
1556
|
+
case A.八分裂:
|
|
1557
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A1.push(e[1]), this.ToffsetWires1A1.push(e[2]), this.ToffsetWires1A1.push(e[3]), this.ToffsetWires1A1.push(e[4]), this.ToffsetWires1A1.push(e[5]), this.ToffsetWires1A1.push(e[6]), this.ToffsetWires1A1.push(e[7]), this.ToffsetWires1A2.push(e[8]), this.ToffsetWires1A2.push(e[9]), this.ToffsetWires1A2.push(e[10]), this.ToffsetWires1A2.push(e[11]), this.ToffsetWires1A2.push(e[12]), this.ToffsetWires1A2.push(e[13]), this.ToffsetWires1A2.push(e[14]), this.ToffsetWires1A2.push(e[15]);
|
|
1558
1558
|
break;
|
|
1559
1559
|
}
|
|
1560
1560
|
break;
|
|
1561
|
-
case
|
|
1561
|
+
case $.B相:
|
|
1562
1562
|
if (t.type == F.耐张串)
|
|
1563
1563
|
if (t.WairFX == "进")
|
|
1564
1564
|
switch (this.LineInfo.Wairnum) {
|
|
1565
|
-
case
|
|
1566
|
-
this.offsetWires12.push(
|
|
1565
|
+
case A.单分裂:
|
|
1566
|
+
this.offsetWires12.push(e[0]), this.ToffsetWires1B1.push(e[1]);
|
|
1567
1567
|
break;
|
|
1568
|
-
case
|
|
1569
|
-
this.offsetWires12.push(
|
|
1568
|
+
case A.双分裂:
|
|
1569
|
+
this.offsetWires12.push(e[0]), this.offsetWires12.push(e[1]), this.ToffsetWires1B1.push(e[2]), this.ToffsetWires1B1.push(e[3]);
|
|
1570
1570
|
break;
|
|
1571
|
-
case
|
|
1572
|
-
this.offsetWires12.push(
|
|
1571
|
+
case A.四分裂:
|
|
1572
|
+
this.offsetWires12.push(e[0]), this.offsetWires12.push(e[1]), this.offsetWires12.push(e[2]), this.offsetWires12.push(e[3]), this.ToffsetWires1B1.push(e[4]), this.ToffsetWires1B1.push(e[5]), this.ToffsetWires1B1.push(e[6]), this.ToffsetWires1B1.push(e[7]);
|
|
1573
1573
|
break;
|
|
1574
|
-
case
|
|
1575
|
-
this.offsetWires12.push(
|
|
1574
|
+
case A.六分裂:
|
|
1575
|
+
this.offsetWires12.push(e[0]), this.offsetWires12.push(e[1]), this.offsetWires12.push(e[2]), this.offsetWires12.push(e[3]), this.offsetWires12.push(e[4]), this.offsetWires12.push(e[5]), this.ToffsetWires1B1.push(e[6]), this.ToffsetWires1B1.push(e[7]), this.ToffsetWires1B1.push(e[8]), this.ToffsetWires1B1.push(e[9]), this.ToffsetWires1B1.push(e[10]), this.ToffsetWires1B1.push(e[11]);
|
|
1576
1576
|
break;
|
|
1577
|
-
case
|
|
1578
|
-
this.offsetWires12.push(
|
|
1577
|
+
case A.八分裂:
|
|
1578
|
+
this.offsetWires12.push(e[0]), this.offsetWires12.push(e[1]), this.offsetWires12.push(e[2]), this.offsetWires12.push(e[3]), this.offsetWires12.push(e[4]), this.offsetWires12.push(e[5]), this.offsetWires12.push(e[6]), this.offsetWires12.push(e[7]), this.ToffsetWires1B1.push(e[8]), this.ToffsetWires1B1.push(e[9]), this.ToffsetWires1B1.push(e[10]), this.ToffsetWires1B1.push(e[11]), this.ToffsetWires1B1.push(e[12]), this.ToffsetWires1B1.push(e[13]), this.ToffsetWires1B1.push(e[14]), this.ToffsetWires1B1.push(e[15]);
|
|
1579
1579
|
break;
|
|
1580
1580
|
}
|
|
1581
1581
|
else
|
|
1582
1582
|
switch (this.LineInfo.Wairnum) {
|
|
1583
|
-
case
|
|
1584
|
-
const
|
|
1585
|
-
this.offsetWires12.push(
|
|
1583
|
+
case A.单分裂:
|
|
1584
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1585
|
+
this.offsetWires12.push(T), this.ToffsetWires1B2.push(T);
|
|
1586
1586
|
break;
|
|
1587
|
-
case
|
|
1587
|
+
case A.双分裂:
|
|
1588
1588
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1589
1589
|
this.offsetWires12.push(m), this.offsetWires12.push(b), this.ToffsetWires1B2.push(m), this.ToffsetWires1B2.push(b);
|
|
1590
1590
|
break;
|
|
1591
|
-
case
|
|
1592
|
-
const
|
|
1593
|
-
this.offsetWires12.push(
|
|
1591
|
+
case A.四分裂:
|
|
1592
|
+
const d = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1593
|
+
this.offsetWires12.push(d), this.offsetWires12.push(P), this.offsetWires12.push(g), this.offsetWires12.push(y), this.ToffsetWires1B2.push(d), this.ToffsetWires1B2.push(P), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(y);
|
|
1594
1594
|
break;
|
|
1595
|
-
case
|
|
1595
|
+
case A.六分裂:
|
|
1596
1596
|
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1597
1597
|
this.offsetWires12.push(v), this.offsetWires12.push(_), this.offsetWires12.push(S), this.offsetWires12.push(M), this.offsetWires12.push(R), this.offsetWires12.push(E), this.ToffsetWires1B2.push(v), this.ToffsetWires1B2.push(_), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(R), this.ToffsetWires1B2.push(E);
|
|
1598
1598
|
break;
|
|
1599
|
-
case
|
|
1600
|
-
const
|
|
1601
|
-
this.offsetWires12.push(
|
|
1599
|
+
case A.八分裂:
|
|
1600
|
+
const D = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), Y = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1601
|
+
this.offsetWires12.push(D), this.offsetWires12.push(Z), this.offsetWires12.push(Y), this.offsetWires12.push(k), this.offsetWires12.push(X), this.offsetWires12.push(H), this.offsetWires12.push(O), this.offsetWires12.push(N), this.ToffsetWires1B2.push(D), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(H), this.ToffsetWires1B2.push(O), this.ToffsetWires1B2.push(N);
|
|
1602
1602
|
break;
|
|
1603
1603
|
}
|
|
1604
1604
|
else if (t.type == F.跳线串)
|
|
1605
1605
|
switch (this.LineInfo.Wairnum) {
|
|
1606
|
-
case
|
|
1607
|
-
this.ToffsetWires1B1.push(
|
|
1606
|
+
case A.单分裂:
|
|
1607
|
+
this.ToffsetWires1B1.push(e[0]), this.ToffsetWires1B2.push(e[0]);
|
|
1608
1608
|
break;
|
|
1609
|
-
case
|
|
1610
|
-
this.ToffsetWires1B1.push(
|
|
1609
|
+
case A.双分裂:
|
|
1610
|
+
this.ToffsetWires1B1.push(e[0]), this.ToffsetWires1B1.push(e[1]), this.ToffsetWires1B2.push(e[2]), this.ToffsetWires1B2.push(e[3]);
|
|
1611
1611
|
break;
|
|
1612
|
-
case
|
|
1613
|
-
this.ToffsetWires1B1.push(
|
|
1612
|
+
case A.四分裂:
|
|
1613
|
+
this.ToffsetWires1B1.push(e[0]), this.ToffsetWires1B1.push(e[1]), this.ToffsetWires1B1.push(e[2]), this.ToffsetWires1B1.push(e[3]), this.ToffsetWires1B2.push(e[4]), this.ToffsetWires1B2.push(e[5]), this.ToffsetWires1B2.push(e[6]), this.ToffsetWires1B2.push(e[7]);
|
|
1614
1614
|
break;
|
|
1615
|
-
case
|
|
1616
|
-
this.ToffsetWires1B1.push(
|
|
1615
|
+
case A.六分裂:
|
|
1616
|
+
this.ToffsetWires1B1.push(e[0]), this.ToffsetWires1B1.push(e[1]), this.ToffsetWires1B1.push(e[2]), this.ToffsetWires1B1.push(e[3]), this.ToffsetWires1B1.push(e[4]), this.ToffsetWires1B1.push(e[5]), this.ToffsetWires1B2.push(e[6]), this.ToffsetWires1B2.push(e[7]), this.ToffsetWires1B2.push(e[8]), this.ToffsetWires1B2.push(e[9]), this.ToffsetWires1B2.push(e[10]), this.ToffsetWires1B2.push(e[11]);
|
|
1617
1617
|
break;
|
|
1618
|
-
case
|
|
1619
|
-
this.ToffsetWires1B1.push(
|
|
1618
|
+
case A.八分裂:
|
|
1619
|
+
this.ToffsetWires1B1.push(e[0]), this.ToffsetWires1B1.push(e[1]), this.ToffsetWires1B1.push(e[2]), this.ToffsetWires1B1.push(e[3]), this.ToffsetWires1B1.push(e[4]), this.ToffsetWires1B1.push(e[5]), this.ToffsetWires1B1.push(e[6]), this.ToffsetWires1B1.push(e[7]), this.ToffsetWires1B2.push(e[8]), this.ToffsetWires1B2.push(e[9]), this.ToffsetWires1B2.push(e[10]), this.ToffsetWires1B2.push(e[11]), this.ToffsetWires1B2.push(e[12]), this.ToffsetWires1B2.push(e[13]), this.ToffsetWires1B2.push(e[14]), this.ToffsetWires1B2.push(e[15]);
|
|
1620
1620
|
break;
|
|
1621
1621
|
}
|
|
1622
1622
|
break;
|
|
1623
|
-
case
|
|
1623
|
+
case $.C相:
|
|
1624
1624
|
if (t.type == F.耐张串)
|
|
1625
1625
|
if (t.WairFX == "进")
|
|
1626
1626
|
switch (this.LineInfo.Wairnum) {
|
|
1627
|
-
case
|
|
1628
|
-
this.offsetWires13.push(
|
|
1627
|
+
case A.单分裂:
|
|
1628
|
+
this.offsetWires13.push(e[0]), this.ToffsetWires1C1.push(e[1]);
|
|
1629
1629
|
break;
|
|
1630
|
-
case
|
|
1631
|
-
this.offsetWires13.push(
|
|
1630
|
+
case A.双分裂:
|
|
1631
|
+
this.offsetWires13.push(e[0]), this.offsetWires13.push(e[1]), this.ToffsetWires1C1.push(e[2]), this.ToffsetWires1C1.push(e[3]);
|
|
1632
1632
|
break;
|
|
1633
|
-
case
|
|
1634
|
-
this.offsetWires13.push(
|
|
1633
|
+
case A.四分裂:
|
|
1634
|
+
this.offsetWires13.push(e[0]), this.offsetWires13.push(e[1]), this.offsetWires13.push(e[2]), this.offsetWires13.push(e[3]), this.ToffsetWires1C1.push(e[4]), this.ToffsetWires1C1.push(e[5]), this.ToffsetWires1C1.push(e[6]), this.ToffsetWires1C1.push(e[7]);
|
|
1635
1635
|
break;
|
|
1636
|
-
case
|
|
1637
|
-
this.offsetWires13.push(
|
|
1636
|
+
case A.六分裂:
|
|
1637
|
+
this.offsetWires13.push(e[0]), this.offsetWires13.push(e[1]), this.offsetWires13.push(e[2]), this.offsetWires13.push(e[3]), this.offsetWires13.push(e[4]), this.offsetWires13.push(e[5]), this.ToffsetWires1C1.push(e[6]), this.ToffsetWires1C1.push(e[7]), this.ToffsetWires1C1.push(e[8]), this.ToffsetWires1C1.push(e[9]), this.ToffsetWires1C1.push(e[10]), this.ToffsetWires1C1.push(e[11]);
|
|
1638
1638
|
break;
|
|
1639
|
-
case
|
|
1640
|
-
this.offsetWires13.push(
|
|
1639
|
+
case A.八分裂:
|
|
1640
|
+
this.offsetWires13.push(e[0]), this.offsetWires13.push(e[1]), this.offsetWires13.push(e[2]), this.offsetWires13.push(e[3]), this.offsetWires13.push(e[4]), this.offsetWires13.push(e[5]), this.offsetWires13.push(e[6]), this.offsetWires13.push(e[7]), this.ToffsetWires1C1.push(e[8]), this.ToffsetWires1C1.push(e[9]), this.ToffsetWires1C1.push(e[10]), this.ToffsetWires1C1.push(e[11]), this.ToffsetWires1C1.push(e[12]), this.ToffsetWires1C1.push(e[13]), this.ToffsetWires1C1.push(e[14]), this.ToffsetWires1C1.push(e[15]);
|
|
1641
1641
|
break;
|
|
1642
1642
|
}
|
|
1643
1643
|
else
|
|
1644
1644
|
switch (this.LineInfo.Wairnum) {
|
|
1645
|
-
case
|
|
1646
|
-
const
|
|
1647
|
-
this.offsetWires13.push(
|
|
1645
|
+
case A.单分裂:
|
|
1646
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1647
|
+
this.offsetWires13.push(T), this.ToffsetWires1C2.push(T);
|
|
1648
1648
|
break;
|
|
1649
|
-
case
|
|
1649
|
+
case A.双分裂:
|
|
1650
1650
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1651
1651
|
this.offsetWires13.push(m), this.offsetWires13.push(b), this.ToffsetWires1C2.push(m), this.ToffsetWires1C2.push(b);
|
|
1652
1652
|
break;
|
|
1653
|
-
case
|
|
1654
|
-
const
|
|
1655
|
-
this.offsetWires13.push(
|
|
1653
|
+
case A.四分裂:
|
|
1654
|
+
const d = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1655
|
+
this.offsetWires13.push(d), this.offsetWires13.push(P), this.offsetWires13.push(g), this.offsetWires13.push(y), this.ToffsetWires1C2.push(d), this.ToffsetWires1C2.push(P), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(y);
|
|
1656
1656
|
break;
|
|
1657
|
-
case
|
|
1657
|
+
case A.六分裂:
|
|
1658
1658
|
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1659
1659
|
this.offsetWires13.push(v), this.offsetWires13.push(_), this.offsetWires13.push(S), this.offsetWires13.push(M), this.offsetWires13.push(R), this.offsetWires13.push(E), this.ToffsetWires1C2.push(v), this.ToffsetWires1C2.push(_), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(R), this.ToffsetWires1C2.push(E);
|
|
1660
1660
|
break;
|
|
1661
|
-
case
|
|
1662
|
-
const
|
|
1663
|
-
this.offsetWires13.push(
|
|
1661
|
+
case A.八分裂:
|
|
1662
|
+
const D = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), Y = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1663
|
+
this.offsetWires13.push(D), this.offsetWires13.push(Z), this.offsetWires13.push(Y), this.offsetWires13.push(k), this.offsetWires13.push(X), this.offsetWires13.push(H), this.offsetWires13.push(O), this.offsetWires13.push(N), this.ToffsetWires1C2.push(D), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(H), this.ToffsetWires1C2.push(O), this.ToffsetWires1C2.push(N);
|
|
1664
1664
|
break;
|
|
1665
1665
|
}
|
|
1666
1666
|
else if (t.type == F.跳线串)
|
|
1667
1667
|
switch (this.LineInfo.Wairnum) {
|
|
1668
|
-
case
|
|
1669
|
-
this.ToffsetWires1C1.push(
|
|
1668
|
+
case A.单分裂:
|
|
1669
|
+
this.ToffsetWires1C1.push(e[0]), this.ToffsetWires1C2.push(e[0]);
|
|
1670
1670
|
break;
|
|
1671
|
-
case
|
|
1672
|
-
this.ToffsetWires1C1.push(
|
|
1671
|
+
case A.双分裂:
|
|
1672
|
+
this.ToffsetWires1C1.push(e[0]), this.ToffsetWires1C1.push(e[1]), this.ToffsetWires1C2.push(e[2]), this.ToffsetWires1C2.push(e[3]);
|
|
1673
1673
|
break;
|
|
1674
|
-
case
|
|
1675
|
-
this.ToffsetWires1C1.push(
|
|
1674
|
+
case A.四分裂:
|
|
1675
|
+
this.ToffsetWires1C1.push(e[0]), this.ToffsetWires1C1.push(e[1]), this.ToffsetWires1C1.push(e[2]), this.ToffsetWires1C1.push(e[3]), this.ToffsetWires1C2.push(e[4]), this.ToffsetWires1C2.push(e[5]), this.ToffsetWires1C2.push(e[6]), this.ToffsetWires1C2.push(e[7]);
|
|
1676
1676
|
break;
|
|
1677
|
-
case
|
|
1678
|
-
this.ToffsetWires1C1.push(
|
|
1677
|
+
case A.六分裂:
|
|
1678
|
+
this.ToffsetWires1C1.push(e[0]), this.ToffsetWires1C1.push(e[1]), this.ToffsetWires1C1.push(e[2]), this.ToffsetWires1C1.push(e[3]), this.ToffsetWires1C1.push(e[4]), this.ToffsetWires1C1.push(e[5]), this.ToffsetWires1C2.push(e[6]), this.ToffsetWires1C2.push(e[7]), this.ToffsetWires1C2.push(e[8]), this.ToffsetWires1C2.push(e[9]), this.ToffsetWires1C2.push(e[10]), this.ToffsetWires1C2.push(e[11]);
|
|
1679
1679
|
break;
|
|
1680
|
-
case
|
|
1681
|
-
this.ToffsetWires1C1.push(
|
|
1680
|
+
case A.八分裂:
|
|
1681
|
+
this.ToffsetWires1C1.push(e[0]), this.ToffsetWires1C1.push(e[1]), this.ToffsetWires1C1.push(e[2]), this.ToffsetWires1C1.push(e[3]), this.ToffsetWires1C1.push(e[4]), this.ToffsetWires1C1.push(e[5]), this.ToffsetWires1C1.push(e[6]), this.ToffsetWires1C1.push(e[7]), this.ToffsetWires1C2.push(e[8]), this.ToffsetWires1C2.push(e[9]), this.ToffsetWires1C2.push(e[10]), this.ToffsetWires1C2.push(e[11]), this.ToffsetWires1C2.push(e[12]), this.ToffsetWires1C2.push(e[13]), this.ToffsetWires1C2.push(e[14]), this.ToffsetWires1C2.push(e[15]);
|
|
1682
1682
|
break;
|
|
1683
1683
|
}
|
|
1684
1684
|
break;
|
|
1685
1685
|
}
|
|
1686
1686
|
else
|
|
1687
1687
|
switch (t.PhaseSequence) {
|
|
1688
|
-
case
|
|
1689
|
-
|
|
1690
|
-
this.offsetWires11.push(
|
|
1688
|
+
case $.A相:
|
|
1689
|
+
e.forEach((T) => {
|
|
1690
|
+
this.offsetWires11.push(T);
|
|
1691
1691
|
});
|
|
1692
1692
|
break;
|
|
1693
|
-
case
|
|
1694
|
-
|
|
1695
|
-
this.offsetWires12.push(
|
|
1693
|
+
case $.B相:
|
|
1694
|
+
e.forEach((T) => {
|
|
1695
|
+
this.offsetWires12.push(T);
|
|
1696
1696
|
});
|
|
1697
1697
|
break;
|
|
1698
|
-
case
|
|
1699
|
-
|
|
1700
|
-
this.offsetWires13.push(
|
|
1698
|
+
case $.C相:
|
|
1699
|
+
e.forEach((T) => {
|
|
1700
|
+
this.offsetWires13.push(T);
|
|
1701
1701
|
});
|
|
1702
1702
|
break;
|
|
1703
1703
|
}
|
|
1704
1704
|
else if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1705
|
-
switch (
|
|
1705
|
+
switch (p) {
|
|
1706
1706
|
case 2:
|
|
1707
1707
|
switch (this.LineInfo.Wairnum) {
|
|
1708
|
-
case
|
|
1709
|
-
this.offsetWires11.push(
|
|
1708
|
+
case A.单分裂:
|
|
1709
|
+
this.offsetWires11.push(e[0]), this.ToffsetWires1A1.push(e[0]);
|
|
1710
1710
|
break;
|
|
1711
|
-
case
|
|
1712
|
-
this.offsetWires11.push(
|
|
1711
|
+
case A.双分裂:
|
|
1712
|
+
this.offsetWires11.push(e[0]), this.offsetWires11.push(e[1]), this.ToffsetWires1A1.push(e[2]), this.ToffsetWires1A1.push(e[3]);
|
|
1713
1713
|
break;
|
|
1714
1714
|
}
|
|
1715
1715
|
break;
|
|
1716
1716
|
case 3:
|
|
1717
1717
|
switch (this.LineInfo.Wairnum) {
|
|
1718
|
-
case
|
|
1719
|
-
this.ToffsetWires1A1.push(
|
|
1718
|
+
case A.单分裂:
|
|
1719
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A2.push(e[0]);
|
|
1720
1720
|
break;
|
|
1721
|
-
case
|
|
1722
|
-
this.ToffsetWires1A1.push(
|
|
1721
|
+
case A.双分裂:
|
|
1722
|
+
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A1.push(e[1]), this.ToffsetWires1A2.push(e[2]), this.ToffsetWires1A2.push(e[3]);
|
|
1723
1723
|
break;
|
|
1724
1724
|
}
|
|
1725
1725
|
break;
|
|
1726
1726
|
case 4:
|
|
1727
1727
|
switch (this.LineInfo.Wairnum) {
|
|
1728
|
-
case
|
|
1729
|
-
const
|
|
1730
|
-
this.offsetWires11.push(
|
|
1728
|
+
case A.单分裂:
|
|
1729
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1730
|
+
this.offsetWires11.push(T), this.ToffsetWires1A2.push(T);
|
|
1731
1731
|
break;
|
|
1732
|
-
case
|
|
1732
|
+
case A.双分裂:
|
|
1733
1733
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1734
1734
|
this.offsetWires11.push(m), this.offsetWires11.push(b), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(b);
|
|
1735
1735
|
break;
|
|
1736
1736
|
}
|
|
1737
1737
|
break;
|
|
1738
1738
|
case 5:
|
|
1739
|
-
|
|
1740
|
-
this.offsetWires12.push(
|
|
1739
|
+
e.forEach((T) => {
|
|
1740
|
+
this.offsetWires12.push(T), this.ToffsetWires1B1.push(T);
|
|
1741
1741
|
});
|
|
1742
1742
|
break;
|
|
1743
1743
|
case 6:
|
|
1744
|
-
|
|
1745
|
-
this.ToffsetWires1B1.push(
|
|
1744
|
+
e.forEach((T) => {
|
|
1745
|
+
this.ToffsetWires1B1.push(T), this.ToffsetWires1B2.push(T);
|
|
1746
1746
|
});
|
|
1747
1747
|
break;
|
|
1748
1748
|
case 7:
|
|
1749
|
-
t.InsulatorPoint.forEach((
|
|
1750
|
-
const m = B(r, new n.Cartesian3(
|
|
1749
|
+
t.InsulatorPoint.forEach((T) => {
|
|
1750
|
+
const m = B(r, new n.Cartesian3(T.X * -1, T.Y, T.Z), W);
|
|
1751
1751
|
this.offsetWires12.push(m), this.ToffsetWires1B2.push(m);
|
|
1752
1752
|
});
|
|
1753
1753
|
break;
|
|
1754
1754
|
case 8:
|
|
1755
|
-
|
|
1756
|
-
this.offsetWires13.push(
|
|
1755
|
+
e.forEach((T) => {
|
|
1756
|
+
this.offsetWires13.push(T), this.ToffsetWires1C1.push(T);
|
|
1757
1757
|
});
|
|
1758
1758
|
break;
|
|
1759
1759
|
case 9:
|
|
1760
|
-
|
|
1761
|
-
this.ToffsetWires1C1.push(
|
|
1760
|
+
e.forEach((T) => {
|
|
1761
|
+
this.ToffsetWires1C1.push(T), this.ToffsetWires1C2.push(T);
|
|
1762
1762
|
});
|
|
1763
1763
|
break;
|
|
1764
1764
|
case 10:
|
|
1765
|
-
t.InsulatorPoint.forEach((
|
|
1766
|
-
const m = B(r, new n.Cartesian3(
|
|
1765
|
+
t.InsulatorPoint.forEach((T) => {
|
|
1766
|
+
const m = B(r, new n.Cartesian3(T.X * -1, T.Y, T.Z), W);
|
|
1767
1767
|
this.offsetWires13.push(m), this.ToffsetWires1C2.push(m);
|
|
1768
1768
|
});
|
|
1769
1769
|
break;
|
|
1770
1770
|
}
|
|
1771
1771
|
else
|
|
1772
|
-
switch (
|
|
1772
|
+
switch (p) {
|
|
1773
1773
|
case 2:
|
|
1774
|
-
|
|
1775
|
-
this.offsetWires11.push(
|
|
1774
|
+
e.forEach((T) => {
|
|
1775
|
+
this.offsetWires11.push(T);
|
|
1776
1776
|
});
|
|
1777
1777
|
break;
|
|
1778
1778
|
case 3:
|
|
1779
|
-
|
|
1780
|
-
this.offsetWires12.push(
|
|
1779
|
+
e.forEach((T) => {
|
|
1780
|
+
this.offsetWires12.push(T);
|
|
1781
1781
|
});
|
|
1782
1782
|
break;
|
|
1783
1783
|
case 4:
|
|
1784
|
-
|
|
1785
|
-
this.offsetWires13.push(
|
|
1784
|
+
e.forEach((T) => {
|
|
1785
|
+
this.offsetWires13.push(T);
|
|
1786
1786
|
});
|
|
1787
1787
|
break;
|
|
1788
1788
|
}
|
|
@@ -1791,238 +1791,238 @@ const es = class es {
|
|
|
1791
1791
|
if (this.LineInfo.ISPhaseSequence)
|
|
1792
1792
|
if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
1793
1793
|
switch (t.PhaseSequence) {
|
|
1794
|
-
case
|
|
1794
|
+
case $.A相:
|
|
1795
1795
|
if (t.type == F.耐张串)
|
|
1796
1796
|
if (t.WairFX == "进")
|
|
1797
1797
|
switch (this.LineInfo.Wairnum) {
|
|
1798
|
-
case
|
|
1799
|
-
this.offsetWires21.push(
|
|
1798
|
+
case A.单分裂:
|
|
1799
|
+
this.offsetWires21.push(e[0]), this.ToffsetWires2A1.push(e[0]);
|
|
1800
1800
|
break;
|
|
1801
|
-
case
|
|
1802
|
-
this.offsetWires21.push(
|
|
1801
|
+
case A.双分裂:
|
|
1802
|
+
this.offsetWires21.push(e[0]), this.offsetWires21.push(e[1]), this.ToffsetWires2A1.push(e[2]), this.ToffsetWires2A1.push(e[3]);
|
|
1803
1803
|
break;
|
|
1804
|
-
case
|
|
1805
|
-
this.offsetWires21.push(
|
|
1804
|
+
case A.四分裂:
|
|
1805
|
+
this.offsetWires21.push(e[0]), this.offsetWires21.push(e[1]), this.offsetWires21.push(e[2]), this.offsetWires21.push(e[3]), this.ToffsetWires2A1.push(e[4]), this.ToffsetWires2A1.push(e[5]), this.ToffsetWires2A1.push(e[6]), this.ToffsetWires2A1.push(e[7]);
|
|
1806
1806
|
break;
|
|
1807
|
-
case
|
|
1808
|
-
this.offsetWires21.push(
|
|
1807
|
+
case A.六分裂:
|
|
1808
|
+
this.offsetWires21.push(e[0]), this.offsetWires21.push(e[1]), this.offsetWires21.push(e[2]), this.offsetWires21.push(e[3]), this.offsetWires21.push(e[4]), this.offsetWires21.push(e[5]), this.ToffsetWires2A1.push(e[6]), this.ToffsetWires2A1.push(e[7]), this.ToffsetWires2A1.push(e[8]), this.ToffsetWires2A1.push(e[9]), this.ToffsetWires2A1.push(e[10]), this.ToffsetWires2A1.push(e[11]);
|
|
1809
1809
|
break;
|
|
1810
|
-
case
|
|
1811
|
-
this.offsetWires21.push(
|
|
1810
|
+
case A.八分裂:
|
|
1811
|
+
this.offsetWires21.push(e[0]), this.offsetWires21.push(e[1]), this.offsetWires21.push(e[2]), this.offsetWires21.push(e[3]), this.offsetWires21.push(e[4]), this.offsetWires21.push(e[5]), this.offsetWires21.push(e[6]), this.offsetWires21.push(e[7]), this.ToffsetWires2A1.push(e[8]), this.ToffsetWires2A1.push(e[9]), this.ToffsetWires2A1.push(e[10]), this.ToffsetWires2A1.push(e[11]), this.ToffsetWires2A1.push(e[12]), this.ToffsetWires2A1.push(e[13]), this.ToffsetWires2A1.push(e[14]), this.ToffsetWires2A1.push(e[15]);
|
|
1812
1812
|
break;
|
|
1813
1813
|
}
|
|
1814
1814
|
else
|
|
1815
1815
|
switch (this.LineInfo.Wairnum) {
|
|
1816
|
-
case
|
|
1817
|
-
const
|
|
1818
|
-
this.offsetWires21.push(
|
|
1816
|
+
case A.单分裂:
|
|
1817
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1818
|
+
this.offsetWires21.push(T), this.ToffsetWires2A2.push(T);
|
|
1819
1819
|
break;
|
|
1820
|
-
case
|
|
1820
|
+
case A.双分裂:
|
|
1821
1821
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1822
1822
|
this.offsetWires21.push(m), this.offsetWires21.push(b), this.ToffsetWires2A2.push(m), this.ToffsetWires2A2.push(b);
|
|
1823
1823
|
break;
|
|
1824
|
-
case
|
|
1825
|
-
const
|
|
1826
|
-
this.offsetWires21.push(
|
|
1824
|
+
case A.四分裂:
|
|
1825
|
+
const d = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1826
|
+
this.offsetWires21.push(d), this.offsetWires21.push(P), this.offsetWires21.push(g), this.offsetWires21.push(y), this.ToffsetWires2A2.push(d), this.ToffsetWires2A2.push(P), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(y);
|
|
1827
1827
|
break;
|
|
1828
|
-
case
|
|
1828
|
+
case A.六分裂:
|
|
1829
1829
|
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1830
1830
|
this.offsetWires21.push(v), this.offsetWires21.push(_), this.offsetWires21.push(S), this.offsetWires21.push(M), this.offsetWires21.push(R), this.offsetWires21.push(E), this.ToffsetWires2A2.push(v), this.ToffsetWires2A2.push(_), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(R), this.ToffsetWires2A2.push(E);
|
|
1831
1831
|
break;
|
|
1832
|
-
case
|
|
1833
|
-
const
|
|
1834
|
-
this.offsetWires21.push(
|
|
1832
|
+
case A.八分裂:
|
|
1833
|
+
const D = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), Y = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1834
|
+
this.offsetWires21.push(D), this.offsetWires21.push(Z), this.offsetWires21.push(Y), this.offsetWires21.push(k), this.offsetWires21.push(X), this.offsetWires21.push(H), this.offsetWires21.push(O), this.offsetWires21.push(N), this.ToffsetWires2A2.push(D), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(H), this.ToffsetWires2A2.push(O), this.ToffsetWires2A2.push(N);
|
|
1835
1835
|
break;
|
|
1836
1836
|
}
|
|
1837
1837
|
else if (t.type == F.跳线串)
|
|
1838
1838
|
switch (this.LineInfo.Wairnum) {
|
|
1839
|
-
case
|
|
1840
|
-
this.ToffsetWires2A1.push(
|
|
1839
|
+
case A.单分裂:
|
|
1840
|
+
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A2.push(e[0]);
|
|
1841
1841
|
break;
|
|
1842
|
-
case
|
|
1843
|
-
this.ToffsetWires2A1.push(
|
|
1842
|
+
case A.双分裂:
|
|
1843
|
+
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A1.push(e[1]), this.ToffsetWires2A2.push(e[2]), this.ToffsetWires2A2.push(e[3]);
|
|
1844
1844
|
break;
|
|
1845
|
-
case
|
|
1846
|
-
this.ToffsetWires2A1.push(
|
|
1845
|
+
case A.四分裂:
|
|
1846
|
+
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A1.push(e[1]), this.ToffsetWires2A1.push(e[2]), this.ToffsetWires2A1.push(e[3]), this.ToffsetWires2A2.push(e[4]), this.ToffsetWires2A2.push(e[5]), this.ToffsetWires2A2.push(e[6]), this.ToffsetWires2A2.push(e[7]);
|
|
1847
1847
|
break;
|
|
1848
|
-
case
|
|
1849
|
-
this.ToffsetWires2A1.push(
|
|
1848
|
+
case A.六分裂:
|
|
1849
|
+
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A1.push(e[1]), this.ToffsetWires2A1.push(e[2]), this.ToffsetWires2A1.push(e[3]), this.ToffsetWires2A1.push(e[4]), this.ToffsetWires2A1.push(e[5]), this.ToffsetWires2A2.push(e[6]), this.ToffsetWires2A2.push(e[7]), this.ToffsetWires2A2.push(e[8]), this.ToffsetWires2A2.push(e[9]), this.ToffsetWires2A2.push(e[10]), this.ToffsetWires2A2.push(e[11]);
|
|
1850
1850
|
break;
|
|
1851
|
-
case
|
|
1852
|
-
this.ToffsetWires2A1.push(
|
|
1851
|
+
case A.八分裂:
|
|
1852
|
+
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A1.push(e[1]), this.ToffsetWires2A1.push(e[2]), this.ToffsetWires2A1.push(e[3]), this.ToffsetWires2A1.push(e[4]), this.ToffsetWires2A1.push(e[5]), this.ToffsetWires2A1.push(e[6]), this.ToffsetWires2A1.push(e[7]), this.ToffsetWires2A2.push(e[8]), this.ToffsetWires2A2.push(e[9]), this.ToffsetWires2A2.push(e[10]), this.ToffsetWires2A2.push(e[11]), this.ToffsetWires2A2.push(e[12]), this.ToffsetWires2A2.push(e[13]), this.ToffsetWires2A2.push(e[14]), this.ToffsetWires2A2.push(e[15]);
|
|
1853
1853
|
break;
|
|
1854
1854
|
}
|
|
1855
1855
|
break;
|
|
1856
|
-
case
|
|
1856
|
+
case $.B相:
|
|
1857
1857
|
if (t.type == F.耐张串)
|
|
1858
1858
|
if (t.WairFX == "进")
|
|
1859
1859
|
switch (this.LineInfo.Wairnum) {
|
|
1860
|
-
case
|
|
1861
|
-
this.offsetWires22.push(
|
|
1860
|
+
case A.单分裂:
|
|
1861
|
+
this.offsetWires22.push(e[0]), this.ToffsetWires2B1.push(e[0]);
|
|
1862
1862
|
break;
|
|
1863
|
-
case
|
|
1864
|
-
this.offsetWires22.push(
|
|
1863
|
+
case A.双分裂:
|
|
1864
|
+
this.offsetWires22.push(e[0]), this.offsetWires22.push(e[1]), this.ToffsetWires2B1.push(e[2]), this.ToffsetWires2B1.push(e[3]);
|
|
1865
1865
|
break;
|
|
1866
|
-
case
|
|
1867
|
-
this.offsetWires22.push(
|
|
1866
|
+
case A.四分裂:
|
|
1867
|
+
this.offsetWires22.push(e[0]), this.offsetWires22.push(e[1]), this.offsetWires22.push(e[2]), this.offsetWires22.push(e[3]), this.ToffsetWires2B1.push(e[4]), this.ToffsetWires2B1.push(e[5]), this.ToffsetWires2B1.push(e[6]), this.ToffsetWires2B1.push(e[7]);
|
|
1868
1868
|
break;
|
|
1869
|
-
case
|
|
1870
|
-
this.offsetWires22.push(
|
|
1869
|
+
case A.六分裂:
|
|
1870
|
+
this.offsetWires22.push(e[0]), this.offsetWires22.push(e[1]), this.offsetWires22.push(e[2]), this.offsetWires22.push(e[3]), this.offsetWires22.push(e[4]), this.offsetWires22.push(e[5]), this.ToffsetWires2B1.push(e[6]), this.ToffsetWires2B1.push(e[7]), this.ToffsetWires2B1.push(e[8]), this.ToffsetWires2B1.push(e[9]), this.ToffsetWires2B1.push(e[10]), this.ToffsetWires2B1.push(e[11]);
|
|
1871
1871
|
break;
|
|
1872
|
-
case
|
|
1873
|
-
this.offsetWires22.push(
|
|
1872
|
+
case A.八分裂:
|
|
1873
|
+
this.offsetWires22.push(e[0]), this.offsetWires22.push(e[1]), this.offsetWires22.push(e[2]), this.offsetWires22.push(e[3]), this.offsetWires22.push(e[4]), this.offsetWires22.push(e[5]), this.offsetWires22.push(e[6]), this.offsetWires22.push(e[7]), this.ToffsetWires2B1.push(e[8]), this.ToffsetWires2B1.push(e[9]), this.ToffsetWires2B1.push(e[10]), this.ToffsetWires2B1.push(e[11]), this.ToffsetWires2B1.push(e[12]), this.ToffsetWires2B1.push(e[13]), this.ToffsetWires2B1.push(e[14]), this.ToffsetWires2B1.push(e[15]);
|
|
1874
1874
|
break;
|
|
1875
1875
|
}
|
|
1876
1876
|
else
|
|
1877
1877
|
switch (this.LineInfo.Wairnum) {
|
|
1878
|
-
case
|
|
1879
|
-
const
|
|
1880
|
-
this.offsetWires22.push(
|
|
1878
|
+
case A.单分裂:
|
|
1879
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1880
|
+
this.offsetWires22.push(T), this.ToffsetWires2B2.push(T);
|
|
1881
1881
|
break;
|
|
1882
|
-
case
|
|
1882
|
+
case A.双分裂:
|
|
1883
1883
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1884
1884
|
this.offsetWires22.push(m), this.offsetWires22.push(b), this.ToffsetWires2B2.push(m), this.ToffsetWires2B2.push(b);
|
|
1885
1885
|
break;
|
|
1886
|
-
case
|
|
1887
|
-
const
|
|
1888
|
-
this.offsetWires22.push(
|
|
1886
|
+
case A.四分裂:
|
|
1887
|
+
const d = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1888
|
+
this.offsetWires22.push(d), this.offsetWires22.push(P), this.offsetWires22.push(g), this.offsetWires22.push(y), this.ToffsetWires2B2.push(d), this.ToffsetWires2B2.push(P), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(y);
|
|
1889
1889
|
break;
|
|
1890
|
-
case
|
|
1890
|
+
case A.六分裂:
|
|
1891
1891
|
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1892
1892
|
this.offsetWires22.push(v), this.offsetWires22.push(_), this.offsetWires22.push(S), this.offsetWires22.push(M), this.offsetWires22.push(R), this.offsetWires22.push(E), this.ToffsetWires2B2.push(v), this.ToffsetWires2B2.push(_), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(R), this.ToffsetWires2B2.push(E);
|
|
1893
1893
|
break;
|
|
1894
|
-
case
|
|
1895
|
-
const
|
|
1896
|
-
this.offsetWires22.push(
|
|
1894
|
+
case A.八分裂:
|
|
1895
|
+
const D = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), Y = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1896
|
+
this.offsetWires22.push(D), this.offsetWires22.push(Z), this.offsetWires22.push(Y), this.offsetWires22.push(k), this.offsetWires22.push(X), this.offsetWires22.push(H), this.offsetWires22.push(O), this.offsetWires22.push(N), this.ToffsetWires2B2.push(D), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(H), this.ToffsetWires2B2.push(O), this.ToffsetWires2B2.push(N);
|
|
1897
1897
|
break;
|
|
1898
1898
|
}
|
|
1899
1899
|
else if (t.type == F.跳线串)
|
|
1900
1900
|
switch (this.LineInfo.Wairnum) {
|
|
1901
|
-
case
|
|
1902
|
-
this.ToffsetWires2B1.push(
|
|
1901
|
+
case A.单分裂:
|
|
1902
|
+
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B2.push(e[0]);
|
|
1903
1903
|
break;
|
|
1904
|
-
case
|
|
1905
|
-
this.ToffsetWires2B1.push(
|
|
1904
|
+
case A.双分裂:
|
|
1905
|
+
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B1.push(e[1]), this.ToffsetWires2B2.push(e[2]), this.ToffsetWires2B2.push(e[3]);
|
|
1906
1906
|
break;
|
|
1907
|
-
case
|
|
1908
|
-
this.ToffsetWires2B1.push(
|
|
1907
|
+
case A.四分裂:
|
|
1908
|
+
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B1.push(e[1]), this.ToffsetWires2B1.push(e[2]), this.ToffsetWires2B1.push(e[3]), this.ToffsetWires2B2.push(e[4]), this.ToffsetWires2B2.push(e[5]), this.ToffsetWires2B2.push(e[6]), this.ToffsetWires2B2.push(e[7]);
|
|
1909
1909
|
break;
|
|
1910
|
-
case
|
|
1911
|
-
this.ToffsetWires2B1.push(
|
|
1910
|
+
case A.六分裂:
|
|
1911
|
+
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B1.push(e[1]), this.ToffsetWires2B1.push(e[2]), this.ToffsetWires2B1.push(e[3]), this.ToffsetWires2B1.push(e[4]), this.ToffsetWires2B1.push(e[5]), this.ToffsetWires2B2.push(e[6]), this.ToffsetWires2B2.push(e[7]), this.ToffsetWires2B2.push(e[8]), this.ToffsetWires2B2.push(e[9]), this.ToffsetWires2B2.push(e[10]), this.ToffsetWires2B2.push(e[11]);
|
|
1912
1912
|
break;
|
|
1913
|
-
case
|
|
1914
|
-
this.ToffsetWires2B1.push(
|
|
1913
|
+
case A.八分裂:
|
|
1914
|
+
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B1.push(e[1]), this.ToffsetWires2B1.push(e[2]), this.ToffsetWires2B1.push(e[3]), this.ToffsetWires2B1.push(e[4]), this.ToffsetWires2B1.push(e[5]), this.ToffsetWires2B1.push(e[6]), this.ToffsetWires2B1.push(e[7]), this.ToffsetWires2B2.push(e[8]), this.ToffsetWires2B2.push(e[9]), this.ToffsetWires2B2.push(e[10]), this.ToffsetWires2B2.push(e[11]), this.ToffsetWires2B2.push(e[12]), this.ToffsetWires2B2.push(e[13]), this.ToffsetWires2B2.push(e[14]), this.ToffsetWires2B2.push(e[15]);
|
|
1915
1915
|
break;
|
|
1916
1916
|
}
|
|
1917
1917
|
break;
|
|
1918
|
-
case
|
|
1918
|
+
case $.C相:
|
|
1919
1919
|
if (t.type == F.耐张串)
|
|
1920
1920
|
if (t.WairFX == "进")
|
|
1921
1921
|
switch (this.LineInfo.Wairnum) {
|
|
1922
|
-
case
|
|
1923
|
-
this.offsetWires23.push(
|
|
1922
|
+
case A.单分裂:
|
|
1923
|
+
this.offsetWires23.push(e[0]), this.ToffsetWires2C1.push(e[0]);
|
|
1924
1924
|
break;
|
|
1925
|
-
case
|
|
1926
|
-
this.offsetWires23.push(
|
|
1925
|
+
case A.双分裂:
|
|
1926
|
+
this.offsetWires23.push(e[0]), this.offsetWires23.push(e[1]), this.ToffsetWires2C1.push(e[2]), this.ToffsetWires2C1.push(e[3]);
|
|
1927
1927
|
break;
|
|
1928
|
-
case
|
|
1929
|
-
this.offsetWires23.push(
|
|
1928
|
+
case A.四分裂:
|
|
1929
|
+
this.offsetWires23.push(e[0]), this.offsetWires23.push(e[1]), this.offsetWires23.push(e[2]), this.offsetWires23.push(e[3]), this.ToffsetWires2C1.push(e[4]), this.ToffsetWires2C1.push(e[5]), this.ToffsetWires2C1.push(e[6]), this.ToffsetWires2C1.push(e[7]);
|
|
1930
1930
|
break;
|
|
1931
|
-
case
|
|
1932
|
-
this.offsetWires23.push(
|
|
1931
|
+
case A.六分裂:
|
|
1932
|
+
this.offsetWires23.push(e[0]), this.offsetWires23.push(e[1]), this.offsetWires23.push(e[2]), this.offsetWires23.push(e[3]), this.offsetWires23.push(e[4]), this.offsetWires23.push(e[5]), this.ToffsetWires2C1.push(e[6]), this.ToffsetWires2C1.push(e[7]), this.ToffsetWires2C1.push(e[8]), this.ToffsetWires2C1.push(e[9]), this.ToffsetWires2C1.push(e[10]), this.ToffsetWires2C1.push(e[11]);
|
|
1933
1933
|
break;
|
|
1934
|
-
case
|
|
1935
|
-
this.offsetWires23.push(
|
|
1934
|
+
case A.八分裂:
|
|
1935
|
+
this.offsetWires23.push(e[0]), this.offsetWires23.push(e[1]), this.offsetWires23.push(e[2]), this.offsetWires23.push(e[3]), this.offsetWires23.push(e[4]), this.offsetWires23.push(e[5]), this.offsetWires23.push(e[6]), this.offsetWires23.push(e[7]), this.ToffsetWires2C1.push(e[8]), this.ToffsetWires2C1.push(e[9]), this.ToffsetWires2C1.push(e[10]), this.ToffsetWires2C1.push(e[11]), this.ToffsetWires2C1.push(e[12]), this.ToffsetWires2C1.push(e[13]), this.ToffsetWires2C1.push(e[14]), this.ToffsetWires2C1.push(e[15]);
|
|
1936
1936
|
break;
|
|
1937
1937
|
}
|
|
1938
1938
|
else
|
|
1939
1939
|
switch (this.LineInfo.Wairnum) {
|
|
1940
|
-
case
|
|
1941
|
-
const
|
|
1942
|
-
this.offsetWires23.push(
|
|
1940
|
+
case A.单分裂:
|
|
1941
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
1942
|
+
this.offsetWires23.push(T), this.ToffsetWires2C2.push(T);
|
|
1943
1943
|
break;
|
|
1944
|
-
case
|
|
1944
|
+
case A.双分裂:
|
|
1945
1945
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), b = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W);
|
|
1946
1946
|
this.offsetWires23.push(m), this.offsetWires23.push(b), this.ToffsetWires2C2.push(m), this.ToffsetWires2C2.push(b);
|
|
1947
1947
|
break;
|
|
1948
|
-
case
|
|
1949
|
-
const
|
|
1950
|
-
this.offsetWires23.push(
|
|
1948
|
+
case A.四分裂:
|
|
1949
|
+
const d = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), P = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), g = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), y = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W);
|
|
1950
|
+
this.offsetWires23.push(d), this.offsetWires23.push(P), this.offsetWires23.push(g), this.offsetWires23.push(y), this.ToffsetWires2C2.push(d), this.ToffsetWires2C2.push(P), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(y);
|
|
1951
1951
|
break;
|
|
1952
|
-
case
|
|
1952
|
+
case A.六分裂:
|
|
1953
1953
|
const v = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), _ = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1954
1954
|
this.offsetWires23.push(v), this.offsetWires23.push(_), this.offsetWires23.push(S), this.offsetWires23.push(M), this.offsetWires23.push(R), this.offsetWires23.push(E), this.ToffsetWires2C2.push(v), this.ToffsetWires2C2.push(_), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(R), this.ToffsetWires2C2.push(E);
|
|
1955
1955
|
break;
|
|
1956
|
-
case
|
|
1957
|
-
const
|
|
1958
|
-
this.offsetWires23.push(
|
|
1956
|
+
case A.八分裂:
|
|
1957
|
+
const D = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), Y = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1958
|
+
this.offsetWires23.push(D), this.offsetWires23.push(Z), this.offsetWires23.push(Y), this.offsetWires23.push(k), this.offsetWires23.push(X), this.offsetWires23.push(H), this.offsetWires23.push(O), this.offsetWires23.push(N), this.ToffsetWires2C2.push(D), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(H), this.ToffsetWires2C2.push(O), this.ToffsetWires2C2.push(N);
|
|
1959
1959
|
break;
|
|
1960
1960
|
}
|
|
1961
1961
|
else if (t.type == F.跳线串)
|
|
1962
1962
|
switch (this.LineInfo.Wairnum) {
|
|
1963
|
-
case
|
|
1964
|
-
this.ToffsetWires2C1.push(
|
|
1963
|
+
case A.单分裂:
|
|
1964
|
+
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C2.push(e[0]);
|
|
1965
1965
|
break;
|
|
1966
|
-
case
|
|
1967
|
-
this.ToffsetWires2C1.push(
|
|
1966
|
+
case A.双分裂:
|
|
1967
|
+
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C1.push(e[1]), this.ToffsetWires2C2.push(e[2]), this.ToffsetWires2C2.push(e[3]);
|
|
1968
1968
|
break;
|
|
1969
|
-
case
|
|
1970
|
-
this.ToffsetWires2C1.push(
|
|
1969
|
+
case A.四分裂:
|
|
1970
|
+
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C1.push(e[1]), this.ToffsetWires2C1.push(e[2]), this.ToffsetWires2C1.push(e[3]), this.ToffsetWires2C2.push(e[4]), this.ToffsetWires2C2.push(e[5]), this.ToffsetWires2C2.push(e[6]), this.ToffsetWires2C2.push(e[7]);
|
|
1971
1971
|
break;
|
|
1972
|
-
case
|
|
1973
|
-
this.ToffsetWires2C1.push(
|
|
1972
|
+
case A.六分裂:
|
|
1973
|
+
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C1.push(e[1]), this.ToffsetWires2C1.push(e[2]), this.ToffsetWires2C1.push(e[3]), this.ToffsetWires2C1.push(e[4]), this.ToffsetWires2C1.push(e[5]), this.ToffsetWires2C2.push(e[6]), this.ToffsetWires2C2.push(e[7]), this.ToffsetWires2C2.push(e[8]), this.ToffsetWires2C2.push(e[9]), this.ToffsetWires2C2.push(e[10]), this.ToffsetWires2C2.push(e[11]);
|
|
1974
1974
|
break;
|
|
1975
|
-
case
|
|
1976
|
-
this.ToffsetWires2C1.push(
|
|
1975
|
+
case A.八分裂:
|
|
1976
|
+
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C1.push(e[1]), this.ToffsetWires2C1.push(e[2]), this.ToffsetWires2C1.push(e[3]), this.ToffsetWires2C1.push(e[4]), this.ToffsetWires2C1.push(e[5]), this.ToffsetWires2C1.push(e[6]), this.ToffsetWires2C1.push(e[7]), this.ToffsetWires2C2.push(e[8]), this.ToffsetWires2C2.push(e[9]), this.ToffsetWires2C2.push(e[10]), this.ToffsetWires2C2.push(e[11]), this.ToffsetWires2C2.push(e[12]), this.ToffsetWires2C2.push(e[13]), this.ToffsetWires2C2.push(e[14]), this.ToffsetWires2C2.push(e[15]);
|
|
1977
1977
|
break;
|
|
1978
1978
|
}
|
|
1979
1979
|
break;
|
|
1980
1980
|
}
|
|
1981
1981
|
else
|
|
1982
1982
|
switch (t.PhaseSequence) {
|
|
1983
|
-
case
|
|
1984
|
-
|
|
1985
|
-
this.offsetWires21.push(
|
|
1983
|
+
case $.A相:
|
|
1984
|
+
e.forEach((T) => {
|
|
1985
|
+
this.offsetWires21.push(T);
|
|
1986
1986
|
});
|
|
1987
1987
|
break;
|
|
1988
|
-
case
|
|
1989
|
-
|
|
1990
|
-
this.offsetWires22.push(
|
|
1988
|
+
case $.B相:
|
|
1989
|
+
e.forEach((T) => {
|
|
1990
|
+
this.offsetWires22.push(T);
|
|
1991
1991
|
});
|
|
1992
1992
|
break;
|
|
1993
|
-
case
|
|
1994
|
-
|
|
1995
|
-
this.offsetWires23.push(
|
|
1993
|
+
case $.C相:
|
|
1994
|
+
e.forEach((T) => {
|
|
1995
|
+
this.offsetWires23.push(T);
|
|
1996
1996
|
});
|
|
1997
1997
|
break;
|
|
1998
1998
|
}
|
|
1999
1999
|
else if (this.LineInfo.towers[s].type == V.耐张塔)
|
|
2000
|
-
switch (
|
|
2000
|
+
switch (p) {
|
|
2001
2001
|
case 11:
|
|
2002
|
-
this.offsetWires21.push(
|
|
2002
|
+
this.offsetWires21.push(e[0]), this.ToffsetWires2A1.push(e[0]);
|
|
2003
2003
|
break;
|
|
2004
2004
|
case 12:
|
|
2005
|
-
this.ToffsetWires2A1.push(
|
|
2005
|
+
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A2.push(e[0]);
|
|
2006
2006
|
break;
|
|
2007
2007
|
case 13:
|
|
2008
|
-
const
|
|
2009
|
-
this.offsetWires21.push(
|
|
2008
|
+
const T = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
2009
|
+
this.offsetWires21.push(T), this.ToffsetWires2A2.push(T);
|
|
2010
2010
|
break;
|
|
2011
2011
|
case 14:
|
|
2012
|
-
this.offsetWires22.push(
|
|
2012
|
+
this.offsetWires22.push(e[0]), this.ToffsetWires2B1.push(e[0]);
|
|
2013
2013
|
break;
|
|
2014
2014
|
case 15:
|
|
2015
|
-
this.ToffsetWires2B1.push(
|
|
2015
|
+
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B2.push(e[0]);
|
|
2016
2016
|
break;
|
|
2017
2017
|
case 16:
|
|
2018
2018
|
const m = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
2019
2019
|
this.offsetWires22.push(m), this.ToffsetWires2B2.push(m);
|
|
2020
2020
|
break;
|
|
2021
2021
|
case 17:
|
|
2022
|
-
this.offsetWires23.push(
|
|
2022
|
+
this.offsetWires23.push(e[0]), this.ToffsetWires2C1.push(e[0]);
|
|
2023
2023
|
break;
|
|
2024
2024
|
case 18:
|
|
2025
|
-
this.ToffsetWires2C1.push(
|
|
2025
|
+
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C2.push(e[0]);
|
|
2026
2026
|
break;
|
|
2027
2027
|
case 19:
|
|
2028
2028
|
const b = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W);
|
|
@@ -2030,20 +2030,20 @@ const es = class es {
|
|
|
2030
2030
|
break;
|
|
2031
2031
|
}
|
|
2032
2032
|
else
|
|
2033
|
-
switch (
|
|
2033
|
+
switch (p) {
|
|
2034
2034
|
case 5:
|
|
2035
|
-
|
|
2036
|
-
this.offsetWires21.push(
|
|
2035
|
+
e.forEach((T) => {
|
|
2036
|
+
this.offsetWires21.push(T);
|
|
2037
2037
|
});
|
|
2038
2038
|
break;
|
|
2039
2039
|
case 6:
|
|
2040
|
-
|
|
2041
|
-
this.offsetWires22.push(
|
|
2040
|
+
e.forEach((T) => {
|
|
2041
|
+
this.offsetWires22.push(T);
|
|
2042
2042
|
});
|
|
2043
2043
|
break;
|
|
2044
2044
|
case 7:
|
|
2045
|
-
|
|
2046
|
-
this.offsetWires23.push(
|
|
2045
|
+
e.forEach((T) => {
|
|
2046
|
+
this.offsetWires23.push(T);
|
|
2047
2047
|
});
|
|
2048
2048
|
break;
|
|
2049
2049
|
}
|
|
@@ -2051,162 +2051,162 @@ const es = class es {
|
|
|
2051
2051
|
case hs.地线:
|
|
2052
2052
|
if (this.LineInfo.ISPhaseSequence)
|
|
2053
2053
|
switch (t.PhaseSequence) {
|
|
2054
|
-
case
|
|
2055
|
-
this.offsetGrouundWires11.push(
|
|
2054
|
+
case $.地线1:
|
|
2055
|
+
this.offsetGrouundWires11.push(e[0]);
|
|
2056
2056
|
break;
|
|
2057
|
-
case
|
|
2058
|
-
this.offsetGrouundWires12.push(
|
|
2057
|
+
case $.地线2:
|
|
2058
|
+
this.offsetGrouundWires12.push(e[0]);
|
|
2059
2059
|
break;
|
|
2060
2060
|
}
|
|
2061
2061
|
else
|
|
2062
|
-
switch (
|
|
2062
|
+
switch (p) {
|
|
2063
2063
|
case 0:
|
|
2064
|
-
this.offsetGrouundWires11.push(
|
|
2064
|
+
this.offsetGrouundWires11.push(e[0]);
|
|
2065
2065
|
break;
|
|
2066
2066
|
case 1:
|
|
2067
|
-
this.offsetGrouundWires12.push(
|
|
2067
|
+
this.offsetGrouundWires12.push(e[0]);
|
|
2068
2068
|
break;
|
|
2069
2069
|
}
|
|
2070
2070
|
break;
|
|
2071
2071
|
}
|
|
2072
|
-
|
|
2072
|
+
p = p + 1;
|
|
2073
2073
|
}), this.offsetWires11.length > 0 && s > 0) {
|
|
2074
|
-
const t = [], l = [], u = [], C = [],
|
|
2074
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [];
|
|
2075
2075
|
switch (this.LineInfo.Wairnum) {
|
|
2076
|
-
case
|
|
2077
|
-
this.offsetWires11.length >= 2 && (t.push(this.offsetWires11[
|
|
2078
|
-
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2076
|
+
case A.单分裂:
|
|
2077
|
+
this.offsetWires11.length >= 2 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(t), this.offsetArcWires1A.forEach((d) => {
|
|
2078
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2079
2079
|
}), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2080
2080
|
break;
|
|
2081
|
-
case
|
|
2082
|
-
this.offsetWires11.length >= 4 && (t.push(this.offsetWires11[
|
|
2083
|
-
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2084
|
-
}), l.push(this.offsetWires11[
|
|
2081
|
+
case A.双分裂:
|
|
2082
|
+
this.offsetWires11.length >= 4 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((d) => {
|
|
2083
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2084
|
+
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2085
2085
|
break;
|
|
2086
|
-
case
|
|
2087
|
-
this.offsetWires11.length >= 8 && (t.push(this.offsetWires11[
|
|
2088
|
-
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2089
|
-
}), l.push(this.offsetWires11[
|
|
2086
|
+
case A.四分裂:
|
|
2087
|
+
this.offsetWires11.length >= 8 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((d) => {
|
|
2088
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2089
|
+
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 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[o + 2]), u.push(this.offsetWires11[o - 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[o + 3]), C.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2090
2090
|
break;
|
|
2091
|
-
case
|
|
2092
|
-
this.offsetWires11.length >= 12 && (t.push(this.offsetWires11[
|
|
2093
|
-
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2094
|
-
}), l.push(this.offsetWires11[
|
|
2091
|
+
case A.六分裂:
|
|
2092
|
+
this.offsetWires11.length >= 12 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((d) => {
|
|
2093
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2094
|
+
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 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[o + 2]), u.push(this.offsetWires11[o - 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[o + 3]), C.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires11[o + 4]), e.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[o + 5]), T.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2095
2095
|
break;
|
|
2096
|
-
case
|
|
2097
|
-
this.offsetWires11.length >= 16 && (t.push(this.offsetWires11[
|
|
2098
|
-
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2099
|
-
}), l.push(this.offsetWires11[
|
|
2096
|
+
case A.八分裂:
|
|
2097
|
+
this.offsetWires11.length >= 16 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 8]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((d) => {
|
|
2098
|
+
this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2099
|
+
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 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[o + 2]), u.push(this.offsetWires11[o - 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[o + 3]), C.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires11[o + 4]), e.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[o + 5]), T.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires11[o + 6]), m.push(this.offsetWires11[o - 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[o + 7]), b.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2100
2100
|
break;
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
if (this.offsetWires12.length > 0 && s > 0) {
|
|
2104
|
-
const t = [], l = [], u = [], C = [],
|
|
2104
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [];
|
|
2105
2105
|
switch (this.LineInfo.Wairnum) {
|
|
2106
|
-
case
|
|
2107
|
-
t.push(this.offsetWires12[
|
|
2108
|
-
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2106
|
+
case A.单分裂:
|
|
2107
|
+
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((d) => {
|
|
2108
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2109
2109
|
});
|
|
2110
2110
|
break;
|
|
2111
|
-
case
|
|
2112
|
-
t.push(this.offsetWires12[
|
|
2113
|
-
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2114
|
-
}), l.push(this.offsetWires12[
|
|
2111
|
+
case A.双分裂:
|
|
2112
|
+
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((d) => {
|
|
2113
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2114
|
+
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2115
2115
|
break;
|
|
2116
|
-
case
|
|
2117
|
-
t.push(this.offsetWires12[
|
|
2118
|
-
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2119
|
-
}), l.push(this.offsetWires12[
|
|
2116
|
+
case A.四分裂:
|
|
2117
|
+
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((d) => {
|
|
2118
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2119
|
+
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 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[o + 2]), u.push(this.offsetWires12[o - 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[o + 3]), C.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2120
2120
|
break;
|
|
2121
|
-
case
|
|
2122
|
-
t.push(this.offsetWires12[
|
|
2123
|
-
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2124
|
-
}), l.push(this.offsetWires12[
|
|
2121
|
+
case A.六分裂:
|
|
2122
|
+
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((d) => {
|
|
2123
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2124
|
+
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 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[o + 2]), u.push(this.offsetWires12[o - 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[o + 3]), C.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires12[o + 4]), e.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[o + 5]), T.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2125
2125
|
break;
|
|
2126
|
-
case
|
|
2127
|
-
t.push(this.offsetWires12[
|
|
2128
|
-
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,
|
|
2129
|
-
}), l.push(this.offsetWires12[
|
|
2126
|
+
case A.八分裂:
|
|
2127
|
+
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 8]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((d) => {
|
|
2128
|
+
this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid, d));
|
|
2129
|
+
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 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[o + 2]), u.push(this.offsetWires12[o - 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[o + 3]), C.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires12[o + 4]), e.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[o + 5]), T.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires12[o + 6]), m.push(this.offsetWires12[o - 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[o + 7]), b.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2130
2130
|
break;
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
2133
|
if (this.offsetWires13.length > 0 && s > 0) {
|
|
2134
|
-
const t = [], l = [], u = [], C = [],
|
|
2134
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [];
|
|
2135
2135
|
switch (this.LineInfo.Wairnum) {
|
|
2136
|
-
case
|
|
2137
|
-
t.push(this.offsetWires13[
|
|
2136
|
+
case A.单分裂:
|
|
2137
|
+
t.push(this.offsetWires13[o]), t.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2138
2138
|
break;
|
|
2139
|
-
case
|
|
2140
|
-
t.push(this.offsetWires13[
|
|
2139
|
+
case A.双分裂:
|
|
2140
|
+
t.push(this.offsetWires13[o]), t.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 1]), l.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2141
2141
|
break;
|
|
2142
|
-
case
|
|
2143
|
-
t.push(this.offsetWires13[
|
|
2142
|
+
case A.四分裂:
|
|
2143
|
+
t.push(this.offsetWires13[o]), t.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 1]), l.push(this.offsetWires13[o - 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[o + 2]), u.push(this.offsetWires13[o - 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[o + 3]), C.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2144
2144
|
break;
|
|
2145
|
-
case
|
|
2146
|
-
t.push(this.offsetWires13[
|
|
2145
|
+
case A.六分裂:
|
|
2146
|
+
t.push(this.offsetWires13[o]), t.push(this.offsetWires13[o - 6]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 1]), l.push(this.offsetWires13[o - 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[o + 2]), u.push(this.offsetWires13[o - 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[o + 3]), C.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires13[o + 4]), e.push(this.offsetWires13[o - 2]), this.offsetArcWires1C = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires13[o + 5]), T.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2147
2147
|
break;
|
|
2148
|
-
case
|
|
2149
|
-
t.push(this.offsetWires13[
|
|
2148
|
+
case A.八分裂:
|
|
2149
|
+
t.push(this.offsetWires13[o]), t.push(this.offsetWires13[o - 8]), this.offsetArcWires1C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[o + 1]), l.push(this.offsetWires13[o - 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[o + 2]), u.push(this.offsetWires13[o - 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[o + 3]), C.push(this.offsetWires13[o - 5]), this.offsetArcWires1C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires13[o + 4]), e.push(this.offsetWires13[o - 4]), this.offsetArcWires1C = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires13[o + 5]), T.push(this.offsetWires13[o - 3]), this.offsetArcWires1C = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires13[o + 6]), m.push(this.offsetWires13[o - 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[o + 7]), b.push(this.offsetWires13[o - 1]), this.offsetArcWires1C = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1C, "导线1_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2150
2150
|
break;
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
if (this.offsetWires21.length > 0 && s > 0) {
|
|
2154
|
-
const t = [], l = [], u = [], C = [],
|
|
2154
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [];
|
|
2155
2155
|
switch (this.LineInfo.Wairnum) {
|
|
2156
|
-
case
|
|
2157
|
-
t.push(this.offsetWires21[
|
|
2156
|
+
case A.单分裂:
|
|
2157
|
+
t.push(this.offsetWires21[o]), t.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2158
2158
|
break;
|
|
2159
|
-
case
|
|
2160
|
-
t.push(this.offsetWires21[
|
|
2159
|
+
case A.双分裂:
|
|
2160
|
+
t.push(this.offsetWires21[o]), t.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 1]), l.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2161
2161
|
break;
|
|
2162
|
-
case
|
|
2163
|
-
t.push(this.offsetWires21[
|
|
2162
|
+
case A.四分裂:
|
|
2163
|
+
t.push(this.offsetWires21[o]), t.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 1]), l.push(this.offsetWires21[o - 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[o + 2]), u.push(this.offsetWires21[o - 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[o + 3]), C.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2164
2164
|
break;
|
|
2165
|
-
case
|
|
2166
|
-
t.push(this.offsetWires21[
|
|
2165
|
+
case A.六分裂:
|
|
2166
|
+
t.push(this.offsetWires21[o]), t.push(this.offsetWires21[o - 6]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 1]), l.push(this.offsetWires21[o - 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[o + 2]), u.push(this.offsetWires21[o - 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[o + 3]), C.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires21[o + 4]), e.push(this.offsetWires21[o - 2]), this.offsetArcWires2A = f(e), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires21[o + 5]), T.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2167
2167
|
break;
|
|
2168
|
-
case
|
|
2169
|
-
t.push(this.offsetWires21[
|
|
2168
|
+
case A.八分裂:
|
|
2169
|
+
t.push(this.offsetWires21[o]), t.push(this.offsetWires21[o - 8]), this.offsetArcWires2A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[o + 1]), l.push(this.offsetWires21[o - 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[o + 2]), u.push(this.offsetWires21[o - 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[o + 3]), C.push(this.offsetWires21[o - 5]), this.offsetArcWires2A = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires21[o + 4]), e.push(this.offsetWires21[o - 4]), this.offsetArcWires2A = f(e), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires21[o + 5]), T.push(this.offsetWires21[o - 3]), this.offsetArcWires2A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires21[o + 6]), m.push(this.offsetWires21[o - 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[o + 7]), b.push(this.offsetWires21[o - 1]), this.offsetArcWires2A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2A, "导线2_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2170
2170
|
break;
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
if (this.offsetWires22.length > 0 && s > 0) {
|
|
2174
|
-
const t = [], l = [], u = [], C = [],
|
|
2174
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [];
|
|
2175
2175
|
switch (this.LineInfo.Wairnum) {
|
|
2176
|
-
case
|
|
2177
|
-
t.push(this.offsetWires22[
|
|
2176
|
+
case A.单分裂:
|
|
2177
|
+
t.push(this.offsetWires22[o]), t.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2178
2178
|
break;
|
|
2179
|
-
case
|
|
2180
|
-
t.push(this.offsetWires22[
|
|
2179
|
+
case A.双分裂:
|
|
2180
|
+
t.push(this.offsetWires22[o]), t.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 1]), l.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2181
2181
|
break;
|
|
2182
|
-
case
|
|
2183
|
-
t.push(this.offsetWires22[
|
|
2182
|
+
case A.四分裂:
|
|
2183
|
+
t.push(this.offsetWires22[o]), t.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 1]), l.push(this.offsetWires22[o - 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[o + 2]), u.push(this.offsetWires22[o - 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[o + 3]), C.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2184
2184
|
break;
|
|
2185
|
-
case
|
|
2186
|
-
t.push(this.offsetWires22[
|
|
2185
|
+
case A.六分裂:
|
|
2186
|
+
t.push(this.offsetWires22[o]), t.push(this.offsetWires22[o - 6]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 1]), l.push(this.offsetWires22[o - 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[o + 2]), u.push(this.offsetWires22[o - 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[o + 3]), C.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires22[o + 4]), e.push(this.offsetWires22[o - 2]), this.offsetArcWires2B = f(e), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires22[o + 5]), T.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2187
2187
|
break;
|
|
2188
|
-
case
|
|
2189
|
-
t.push(this.offsetWires22[
|
|
2188
|
+
case A.八分裂:
|
|
2189
|
+
t.push(this.offsetWires22[o]), t.push(this.offsetWires22[o - 8]), this.offsetArcWires2B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[o + 1]), l.push(this.offsetWires22[o - 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[o + 2]), u.push(this.offsetWires22[o - 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[o + 3]), C.push(this.offsetWires22[o - 5]), this.offsetArcWires2B = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires22[o + 4]), e.push(this.offsetWires22[o - 4]), this.offsetArcWires2B = f(e), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires22[o + 5]), T.push(this.offsetWires22[o - 3]), this.offsetArcWires2B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires22[o + 6]), m.push(this.offsetWires22[o - 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[o + 7]), b.push(this.offsetWires22[o - 1]), this.offsetArcWires2B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2B, "导线2_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2190
2190
|
break;
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
2193
|
if (this.offsetWires23.length > 0 && s > 0) {
|
|
2194
|
-
const t = [], l = [], u = [], C = [],
|
|
2194
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [];
|
|
2195
2195
|
switch (this.LineInfo.Wairnum) {
|
|
2196
|
-
case
|
|
2197
|
-
t.push(this.offsetWires23[
|
|
2196
|
+
case A.单分裂:
|
|
2197
|
+
t.push(this.offsetWires23[o]), t.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2198
2198
|
break;
|
|
2199
|
-
case
|
|
2200
|
-
t.push(this.offsetWires23[
|
|
2199
|
+
case A.双分裂:
|
|
2200
|
+
t.push(this.offsetWires23[o]), t.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 1]), l.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(l), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2201
2201
|
break;
|
|
2202
|
-
case
|
|
2203
|
-
t.push(this.offsetWires23[
|
|
2202
|
+
case A.四分裂:
|
|
2203
|
+
t.push(this.offsetWires23[o]), t.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 1]), l.push(this.offsetWires23[o - 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[o + 2]), u.push(this.offsetWires23[o - 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[o + 3]), C.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2204
2204
|
break;
|
|
2205
|
-
case
|
|
2206
|
-
t.push(this.offsetWires23[
|
|
2205
|
+
case A.六分裂:
|
|
2206
|
+
t.push(this.offsetWires23[o]), t.push(this.offsetWires23[o - 6]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 1]), l.push(this.offsetWires23[o - 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[o + 2]), u.push(this.offsetWires23[o - 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[o + 3]), C.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires23[o + 4]), e.push(this.offsetWires23[o - 2]), this.offsetArcWires2C = f(e), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires23[o + 5]), T.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(T), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2207
2207
|
break;
|
|
2208
|
-
case
|
|
2209
|
-
t.push(this.offsetWires23[
|
|
2208
|
+
case A.八分裂:
|
|
2209
|
+
t.push(this.offsetWires23[o]), t.push(this.offsetWires23[o - 8]), this.offsetArcWires2C = f(t), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[o + 1]), l.push(this.offsetWires23[o - 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[o + 2]), u.push(this.offsetWires23[o - 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[o + 3]), C.push(this.offsetWires23[o - 5]), this.offsetArcWires2C = f(C), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires23[o + 4]), e.push(this.offsetWires23[o - 4]), this.offsetArcWires2C = f(e), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires23[o + 5]), T.push(this.offsetWires23[o - 3]), this.offsetArcWires2C = f(T), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires23[o + 6]), m.push(this.offsetWires23[o - 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[o + 7]), b.push(this.offsetWires23[o - 1]), this.offsetArcWires2C = f(b), this.LineentityCollection2.add(h(this.offsetArcWires2C, "导线2_C8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2210
2210
|
break;
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
@@ -2218,176 +2218,176 @@ const es = class es {
|
|
|
2218
2218
|
this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid, u));
|
|
2219
2219
|
}), 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));
|
|
2220
2220
|
}
|
|
2221
|
-
let
|
|
2221
|
+
let w = 2;
|
|
2222
2222
|
if (this.LineInfo.towers[s].type == V.耐张塔) {
|
|
2223
2223
|
switch (this.LineInfo.Wairnum) {
|
|
2224
|
-
case
|
|
2225
|
-
|
|
2224
|
+
case A.单分裂:
|
|
2225
|
+
o = o + w, i = i + w;
|
|
2226
2226
|
break;
|
|
2227
|
-
case
|
|
2228
|
-
|
|
2227
|
+
case A.双分裂:
|
|
2228
|
+
o = o + w * 2, i = i + w * 2;
|
|
2229
2229
|
break;
|
|
2230
|
-
case
|
|
2231
|
-
|
|
2230
|
+
case A.四分裂:
|
|
2231
|
+
o = o + w * 4, i = i + w * 4;
|
|
2232
2232
|
break;
|
|
2233
|
-
case
|
|
2234
|
-
|
|
2233
|
+
case A.六分裂:
|
|
2234
|
+
o = o + w * 6, i = i + w * 6;
|
|
2235
2235
|
break;
|
|
2236
|
-
case
|
|
2237
|
-
|
|
2236
|
+
case A.八分裂:
|
|
2237
|
+
o = o + w * 8, i = i + w * 8;
|
|
2238
2238
|
break;
|
|
2239
2239
|
}
|
|
2240
2240
|
if (this.ToffsetWires1A1.length > 1 && this.ToffsetWires1A2.length > 1) {
|
|
2241
|
-
const t = [], l = [], u = [], C = [],
|
|
2241
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [], d = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2242
2242
|
switch (this.LineInfo.Wairnum) {
|
|
2243
|
-
case
|
|
2244
|
-
this.ToffsetWires1A1.length >= 2 && (t.push(this.ToffsetWires1A1[i - 2]), t.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (
|
|
2243
|
+
case A.单分裂:
|
|
2244
|
+
this.ToffsetWires1A1.length >= 2 && (t.push(this.ToffsetWires1A1[i - 2]), t.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (d.push(this.ToffsetWires1A2[i - 2]), d.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2245
2245
|
break;
|
|
2246
|
-
case
|
|
2247
|
-
this.ToffsetWires1A1.length >= 4 && (t.push(this.ToffsetWires1A1[i - 4]), t.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 3]), l.push(this.ToffsetWires1A1[i - 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 && (
|
|
2246
|
+
case A.双分裂:
|
|
2247
|
+
this.ToffsetWires1A1.length >= 4 && (t.push(this.ToffsetWires1A1[i - 4]), t.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 3]), l.push(this.ToffsetWires1A1[i - 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 && (d.push(this.ToffsetWires1A2[i - 4]), d.push(this.ToffsetWires1A2[i - 2]), this.ToffsetArcWires2A = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 3]), P.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2248
2248
|
break;
|
|
2249
|
-
case
|
|
2250
|
-
this.ToffsetWires1A1.length >= 8 && (t.push(this.ToffsetWires1A1[i - 8]), t.push(this.ToffsetWires1A1[i - 4]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 7]), l.push(this.ToffsetWires1A1[i - 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[i - 6]), u.push(this.ToffsetWires1A1[i - 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[i - 5]), C.push(this.ToffsetWires1A1[i - 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 && (
|
|
2249
|
+
case A.四分裂:
|
|
2250
|
+
this.ToffsetWires1A1.length >= 8 && (t.push(this.ToffsetWires1A1[i - 8]), t.push(this.ToffsetWires1A1[i - 4]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 7]), l.push(this.ToffsetWires1A1[i - 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[i - 6]), u.push(this.ToffsetWires1A1[i - 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[i - 5]), C.push(this.ToffsetWires1A1[i - 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 && (d.push(this.ToffsetWires1A2[i - 8]), d.push(this.ToffsetWires1A2[i - 4]), this.ToffsetArcWires2A = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 7]), P.push(this.ToffsetWires1A2[i - 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[i - 6]), g.push(this.ToffsetWires1A2[i - 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[i - 5]), y.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2251
2251
|
break;
|
|
2252
|
-
case
|
|
2253
|
-
this.ToffsetWires1A1.length >= 12 && (t.push(this.ToffsetWires1A1[i - 12]), t.push(this.ToffsetWires1A1[i - 6]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 11]), l.push(this.ToffsetWires1A1[i - 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[i - 10]), u.push(this.ToffsetWires1A1[i - 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[i - 9]), C.push(this.ToffsetWires1A1[i - 3]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2252
|
+
case A.六分裂:
|
|
2253
|
+
this.ToffsetWires1A1.length >= 12 && (t.push(this.ToffsetWires1A1[i - 12]), t.push(this.ToffsetWires1A1[i - 6]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 11]), l.push(this.ToffsetWires1A1[i - 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[i - 10]), u.push(this.ToffsetWires1A1[i - 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[i - 9]), C.push(this.ToffsetWires1A1[i - 3]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires1A1[i - 8]), e.push(this.ToffsetWires1A1[i - 2]), this.ToffsetArcWires1A = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[i - 7]), T.push(this.ToffsetWires1A1[i - 1]), this.ToffsetArcWires1A = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (d.push(this.ToffsetWires1A2[i - 12]), d.push(this.ToffsetWires1A2[i - 6]), this.ToffsetArcWires2A = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 11]), P.push(this.ToffsetWires1A2[i - 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[i - 10]), g.push(this.ToffsetWires1A2[i - 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[i - 9]), y.push(this.ToffsetWires1A2[i - 3]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[i - 8]), v.push(this.ToffsetWires1A2[i - 2]), this.ToffsetArcWires2A = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[i - 7]), _.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2254
2254
|
break;
|
|
2255
|
-
case
|
|
2256
|
-
this.ToffsetWires1A1.length >= 16 && (t.push(this.ToffsetWires1A1[i - 16]), t.push(this.ToffsetWires1A1[i - 8]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 15]), l.push(this.ToffsetWires1A1[i - 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[i - 14]), u.push(this.ToffsetWires1A1[i - 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[i - 13]), C.push(this.ToffsetWires1A1[i - 5]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2255
|
+
case A.八分裂:
|
|
2256
|
+
this.ToffsetWires1A1.length >= 16 && (t.push(this.ToffsetWires1A1[i - 16]), t.push(this.ToffsetWires1A1[i - 8]), this.ToffsetArcWires1A = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[i - 15]), l.push(this.ToffsetWires1A1[i - 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[i - 14]), u.push(this.ToffsetWires1A1[i - 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[i - 13]), C.push(this.ToffsetWires1A1[i - 5]), this.ToffsetArcWires1A = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires1A1[i - 12]), e.push(this.ToffsetWires1A1[i - 4]), this.ToffsetArcWires1A = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[i - 11]), T.push(this.ToffsetWires1A1[i - 3]), this.ToffsetArcWires1A = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A, "1A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A1[i - 10]), m.push(this.ToffsetWires1A1[i - 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[i - 9]), b.push(this.ToffsetWires1A1[i - 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 && (d.push(this.ToffsetWires1A2[i - 16]), d.push(this.ToffsetWires1A2[i - 8]), this.ToffsetArcWires2A = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1A2[i - 15]), P.push(this.ToffsetWires1A2[i - 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[i - 14]), g.push(this.ToffsetWires1A2[i - 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[i - 13]), y.push(this.ToffsetWires1A2[i - 5]), this.ToffsetArcWires2A = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[i - 12]), v.push(this.ToffsetWires1A2[i - 4]), this.ToffsetArcWires2A = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[i - 11]), _.push(this.ToffsetWires1A2[i - 3]), this.ToffsetArcWires2A = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1A2[i - 10]), S.push(this.ToffsetWires1A2[i - 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[i - 9]), M.push(this.ToffsetWires1A2[i - 1]), this.ToffsetArcWires2A = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A, "1A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2257
2257
|
break;
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
2260
|
if (this.ToffsetWires1B1.length > 1 && this.ToffsetWires1B2.length > 1) {
|
|
2261
|
-
const t = [], l = [], u = [], C = [],
|
|
2261
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [], d = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2262
2262
|
switch (this.LineInfo.Wairnum) {
|
|
2263
|
-
case
|
|
2264
|
-
this.ToffsetWires1B1.length >= 2 && (t.push(this.ToffsetWires1B1[i - 2]), t.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (
|
|
2263
|
+
case A.单分裂:
|
|
2264
|
+
this.ToffsetWires1B1.length >= 2 && (t.push(this.ToffsetWires1B1[i - 2]), t.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (d.push(this.ToffsetWires1B2[i - 2]), d.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2265
2265
|
break;
|
|
2266
|
-
case
|
|
2267
|
-
this.ToffsetWires1B1.length >= 4 && (t.push(this.ToffsetWires1B1[i - 4]), t.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 3]), l.push(this.ToffsetWires1B1[i - 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 && (
|
|
2266
|
+
case A.双分裂:
|
|
2267
|
+
this.ToffsetWires1B1.length >= 4 && (t.push(this.ToffsetWires1B1[i - 4]), t.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 3]), l.push(this.ToffsetWires1B1[i - 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 && (d.push(this.ToffsetWires1B2[i - 4]), d.push(this.ToffsetWires1B2[i - 2]), this.ToffsetArcWires2B = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 3]), P.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2268
2268
|
break;
|
|
2269
|
-
case
|
|
2270
|
-
this.ToffsetWires1B1.length >= 8 && (t.push(this.ToffsetWires1B1[i - 8]), t.push(this.ToffsetWires1B1[i - 4]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 7]), l.push(this.ToffsetWires1B1[i - 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[i - 6]), u.push(this.ToffsetWires1B1[i - 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[i - 5]), C.push(this.ToffsetWires1B1[i - 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 && (
|
|
2269
|
+
case A.四分裂:
|
|
2270
|
+
this.ToffsetWires1B1.length >= 8 && (t.push(this.ToffsetWires1B1[i - 8]), t.push(this.ToffsetWires1B1[i - 4]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 7]), l.push(this.ToffsetWires1B1[i - 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[i - 6]), u.push(this.ToffsetWires1B1[i - 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[i - 5]), C.push(this.ToffsetWires1B1[i - 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 && (d.push(this.ToffsetWires1B2[i - 8]), d.push(this.ToffsetWires1B2[i - 4]), this.ToffsetArcWires2B = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 7]), P.push(this.ToffsetWires1B2[i - 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[i - 6]), g.push(this.ToffsetWires1B2[i - 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[i - 5]), y.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2271
2271
|
break;
|
|
2272
|
-
case
|
|
2273
|
-
this.ToffsetWires1B1.length >= 12 && (t.push(this.ToffsetWires1B1[i - 12]), t.push(this.ToffsetWires1B1[i - 6]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 11]), l.push(this.ToffsetWires1B1[i - 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[i - 10]), u.push(this.ToffsetWires1B1[i - 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[i - 9]), C.push(this.ToffsetWires1B1[i - 3]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2272
|
+
case A.六分裂:
|
|
2273
|
+
this.ToffsetWires1B1.length >= 12 && (t.push(this.ToffsetWires1B1[i - 12]), t.push(this.ToffsetWires1B1[i - 6]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 11]), l.push(this.ToffsetWires1B1[i - 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[i - 10]), u.push(this.ToffsetWires1B1[i - 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[i - 9]), C.push(this.ToffsetWires1B1[i - 3]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires1B1[i - 8]), e.push(this.ToffsetWires1B1[i - 2]), this.ToffsetArcWires1B = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[i - 7]), T.push(this.ToffsetWires1B1[i - 1]), this.ToffsetArcWires1B = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (d.push(this.ToffsetWires1B2[i - 12]), d.push(this.ToffsetWires1B2[i - 6]), this.ToffsetArcWires2B = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 11]), P.push(this.ToffsetWires1B2[i - 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[i - 10]), g.push(this.ToffsetWires1B2[i - 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[i - 9]), y.push(this.ToffsetWires1B2[i - 3]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[i - 8]), v.push(this.ToffsetWires1B2[i - 2]), this.ToffsetArcWires2B = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[i - 7]), _.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2274
2274
|
break;
|
|
2275
|
-
case
|
|
2276
|
-
this.ToffsetWires1B1.length >= 16 && (t.push(this.ToffsetWires1B1[i - 16]), t.push(this.ToffsetWires1B1[i - 8]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 15]), l.push(this.ToffsetWires1B1[i - 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[i - 14]), u.push(this.ToffsetWires1B1[i - 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[i - 13]), C.push(this.ToffsetWires1B1[i - 5]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2275
|
+
case A.八分裂:
|
|
2276
|
+
this.ToffsetWires1B1.length >= 16 && (t.push(this.ToffsetWires1B1[i - 16]), t.push(this.ToffsetWires1B1[i - 8]), this.ToffsetArcWires1B = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[i - 15]), l.push(this.ToffsetWires1B1[i - 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[i - 14]), u.push(this.ToffsetWires1B1[i - 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[i - 13]), C.push(this.ToffsetWires1B1[i - 5]), this.ToffsetArcWires1B = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires1B1[i - 12]), e.push(this.ToffsetWires1B1[i - 4]), this.ToffsetArcWires1B = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[i - 11]), T.push(this.ToffsetWires1B1[i - 3]), this.ToffsetArcWires1B = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B, "1B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B1[i - 10]), m.push(this.ToffsetWires1B1[i - 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[i - 9]), b.push(this.ToffsetWires1B1[i - 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 && (d.push(this.ToffsetWires1B2[i - 16]), d.push(this.ToffsetWires1B2[i - 8]), this.ToffsetArcWires2B = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1B2[i - 15]), P.push(this.ToffsetWires1B2[i - 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[i - 14]), g.push(this.ToffsetWires1B2[i - 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[i - 13]), y.push(this.ToffsetWires1B2[i - 5]), this.ToffsetArcWires2B = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[i - 12]), v.push(this.ToffsetWires1B2[i - 4]), this.ToffsetArcWires2B = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[i - 11]), _.push(this.ToffsetWires1B2[i - 3]), this.ToffsetArcWires2B = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1B2[i - 10]), S.push(this.ToffsetWires1B2[i - 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[i - 9]), M.push(this.ToffsetWires1B2[i - 1]), this.ToffsetArcWires2B = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B, "1B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2277
2277
|
break;
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
2280
|
if (this.ToffsetWires1C1.length > 1 && this.ToffsetWires1C2.length > 1) {
|
|
2281
|
-
const t = [], l = [], u = [], C = [],
|
|
2281
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [], d = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2282
2282
|
switch (this.LineInfo.Wairnum) {
|
|
2283
|
-
case
|
|
2284
|
-
this.ToffsetWires1C1.length >= 2 && (t.push(this.ToffsetWires1C1[i - 2]), t.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (
|
|
2283
|
+
case A.单分裂:
|
|
2284
|
+
this.ToffsetWires1C1.length >= 2 && (t.push(this.ToffsetWires1C1[i - 2]), t.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (d.push(this.ToffsetWires1C2[i - 2]), d.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2285
2285
|
break;
|
|
2286
|
-
case
|
|
2287
|
-
this.ToffsetWires1C1.length >= 4 && (t.push(this.ToffsetWires1C1[i - 4]), t.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 3]), l.push(this.ToffsetWires1C1[i - 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 && (
|
|
2286
|
+
case A.双分裂:
|
|
2287
|
+
this.ToffsetWires1C1.length >= 4 && (t.push(this.ToffsetWires1C1[i - 4]), t.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 3]), l.push(this.ToffsetWires1C1[i - 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 && (d.push(this.ToffsetWires1C2[i - 4]), d.push(this.ToffsetWires1C2[i - 2]), this.ToffsetArcWires2C = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 3]), P.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2288
2288
|
break;
|
|
2289
|
-
case
|
|
2290
|
-
this.ToffsetWires1C1.length >= 8 && (t.push(this.ToffsetWires1C1[i - 8]), t.push(this.ToffsetWires1C1[i - 4]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 7]), l.push(this.ToffsetWires1C1[i - 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[i - 6]), u.push(this.ToffsetWires1C1[i - 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[i - 5]), C.push(this.ToffsetWires1C1[i - 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 && (
|
|
2289
|
+
case A.四分裂:
|
|
2290
|
+
this.ToffsetWires1C1.length >= 8 && (t.push(this.ToffsetWires1C1[i - 8]), t.push(this.ToffsetWires1C1[i - 4]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 7]), l.push(this.ToffsetWires1C1[i - 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[i - 6]), u.push(this.ToffsetWires1C1[i - 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[i - 5]), C.push(this.ToffsetWires1C1[i - 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 && (d.push(this.ToffsetWires1C2[i - 8]), d.push(this.ToffsetWires1C2[i - 4]), this.ToffsetArcWires2C = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 7]), P.push(this.ToffsetWires1C2[i - 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[i - 6]), g.push(this.ToffsetWires1C2[i - 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[i - 5]), y.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2291
2291
|
break;
|
|
2292
|
-
case
|
|
2293
|
-
this.ToffsetWires1C1.length >= 12 && (t.push(this.ToffsetWires1C1[i - 12]), t.push(this.ToffsetWires1C1[i - 6]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 11]), l.push(this.ToffsetWires1C1[i - 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[i - 10]), u.push(this.ToffsetWires1C1[i - 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[i - 9]), C.push(this.ToffsetWires1C1[i - 3]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2292
|
+
case A.六分裂:
|
|
2293
|
+
this.ToffsetWires1C1.length >= 12 && (t.push(this.ToffsetWires1C1[i - 12]), t.push(this.ToffsetWires1C1[i - 6]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 11]), l.push(this.ToffsetWires1C1[i - 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[i - 10]), u.push(this.ToffsetWires1C1[i - 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[i - 9]), C.push(this.ToffsetWires1C1[i - 3]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires1C1[i - 8]), e.push(this.ToffsetWires1C1[i - 2]), this.ToffsetArcWires1C = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[i - 7]), T.push(this.ToffsetWires1C1[i - 1]), this.ToffsetArcWires1C = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (d.push(this.ToffsetWires1C2[i - 12]), d.push(this.ToffsetWires1C2[i - 6]), this.ToffsetArcWires2C = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 11]), P.push(this.ToffsetWires1C2[i - 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[i - 10]), g.push(this.ToffsetWires1C2[i - 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[i - 9]), y.push(this.ToffsetWires1C2[i - 3]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[i - 8]), v.push(this.ToffsetWires1C2[i - 2]), this.ToffsetArcWires2C = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[i - 7]), _.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2294
2294
|
break;
|
|
2295
|
-
case
|
|
2296
|
-
this.ToffsetWires1C1.length >= 16 && (t.push(this.ToffsetWires1C1[i - 16]), t.push(this.ToffsetWires1C1[i - 8]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 15]), l.push(this.ToffsetWires1C1[i - 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[i - 14]), u.push(this.ToffsetWires1C1[i - 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[i - 13]), C.push(this.ToffsetWires1C1[i - 5]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2295
|
+
case A.八分裂:
|
|
2296
|
+
this.ToffsetWires1C1.length >= 16 && (t.push(this.ToffsetWires1C1[i - 16]), t.push(this.ToffsetWires1C1[i - 8]), this.ToffsetArcWires1C = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[i - 15]), l.push(this.ToffsetWires1C1[i - 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[i - 14]), u.push(this.ToffsetWires1C1[i - 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[i - 13]), C.push(this.ToffsetWires1C1[i - 5]), this.ToffsetArcWires1C = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires1C1[i - 12]), e.push(this.ToffsetWires1C1[i - 4]), this.ToffsetArcWires1C = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[i - 11]), T.push(this.ToffsetWires1C1[i - 3]), this.ToffsetArcWires1C = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C, "1C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C1[i - 10]), m.push(this.ToffsetWires1C1[i - 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[i - 9]), b.push(this.ToffsetWires1C1[i - 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 && (d.push(this.ToffsetWires1C2[i - 16]), d.push(this.ToffsetWires1C2[i - 8]), this.ToffsetArcWires2C = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires1C2[i - 15]), P.push(this.ToffsetWires1C2[i - 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[i - 14]), g.push(this.ToffsetWires1C2[i - 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[i - 13]), y.push(this.ToffsetWires1C2[i - 5]), this.ToffsetArcWires2C = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[i - 12]), v.push(this.ToffsetWires1C2[i - 4]), this.ToffsetArcWires2C = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[i - 11]), _.push(this.ToffsetWires1C2[i - 3]), this.ToffsetArcWires2C = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires1C2[i - 10]), S.push(this.ToffsetWires1C2[i - 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[i - 9]), M.push(this.ToffsetWires1C2[i - 1]), this.ToffsetArcWires2C = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C, "1C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2297
2297
|
break;
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
2300
|
if (this.ToffsetWires2A1.length > 1 && this.ToffsetWires2A2.length > 1) {
|
|
2301
|
-
const t = [], l = [], u = [], C = [],
|
|
2301
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [], d = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2302
2302
|
switch (this.LineInfo.Wairnum) {
|
|
2303
|
-
case
|
|
2304
|
-
this.ToffsetWires2A1.length >= 2 && (t.push(this.ToffsetWires2A1[i - 2]), t.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (
|
|
2303
|
+
case A.单分裂:
|
|
2304
|
+
this.ToffsetWires2A1.length >= 2 && (t.push(this.ToffsetWires2A1[i - 2]), t.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (d.push(this.ToffsetWires2A2[i - 2]), d.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2305
2305
|
break;
|
|
2306
|
-
case
|
|
2307
|
-
this.ToffsetWires2A1.length >= 4 && (t.push(this.ToffsetWires2A1[i - 4]), t.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 3]), l.push(this.ToffsetWires2A1[i - 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 && (
|
|
2306
|
+
case A.双分裂:
|
|
2307
|
+
this.ToffsetWires2A1.length >= 4 && (t.push(this.ToffsetWires2A1[i - 4]), t.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 3]), l.push(this.ToffsetWires2A1[i - 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 && (d.push(this.ToffsetWires2A2[i - 4]), d.push(this.ToffsetWires2A2[i - 2]), this.ToffsetArcWires2A2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 3]), P.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2308
2308
|
break;
|
|
2309
|
-
case
|
|
2310
|
-
this.ToffsetWires2A1.length >= 8 && (t.push(this.ToffsetWires2A1[i - 8]), t.push(this.ToffsetWires2A1[i - 4]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 7]), l.push(this.ToffsetWires2A1[i - 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[i - 6]), u.push(this.ToffsetWires2A1[i - 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[i - 5]), C.push(this.ToffsetWires2A1[i - 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 && (
|
|
2309
|
+
case A.四分裂:
|
|
2310
|
+
this.ToffsetWires2A1.length >= 8 && (t.push(this.ToffsetWires2A1[i - 8]), t.push(this.ToffsetWires2A1[i - 4]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 7]), l.push(this.ToffsetWires2A1[i - 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[i - 6]), u.push(this.ToffsetWires2A1[i - 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[i - 5]), C.push(this.ToffsetWires2A1[i - 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 && (d.push(this.ToffsetWires2A2[i - 8]), d.push(this.ToffsetWires2A2[i - 4]), this.ToffsetArcWires2A2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 7]), P.push(this.ToffsetWires2A2[i - 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[i - 6]), g.push(this.ToffsetWires2A2[i - 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[i - 5]), y.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2311
2311
|
break;
|
|
2312
|
-
case
|
|
2313
|
-
this.ToffsetWires2A1.length >= 12 && (t.push(this.ToffsetWires2A1[i - 12]), t.push(this.ToffsetWires2A1[i - 6]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 11]), l.push(this.ToffsetWires2A1[i - 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[i - 10]), u.push(this.ToffsetWires2A1[i - 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[i - 9]), C.push(this.ToffsetWires2A1[i - 3]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2312
|
+
case A.六分裂:
|
|
2313
|
+
this.ToffsetWires2A1.length >= 12 && (t.push(this.ToffsetWires2A1[i - 12]), t.push(this.ToffsetWires2A1[i - 6]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 11]), l.push(this.ToffsetWires2A1[i - 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[i - 10]), u.push(this.ToffsetWires2A1[i - 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[i - 9]), C.push(this.ToffsetWires2A1[i - 3]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires2A1[i - 8]), e.push(this.ToffsetWires2A1[i - 2]), this.ToffsetArcWires1A2 = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[i - 7]), T.push(this.ToffsetWires2A1[i - 1]), this.ToffsetArcWires1A2 = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (d.push(this.ToffsetWires2A2[i - 12]), d.push(this.ToffsetWires2A2[i - 6]), this.ToffsetArcWires2A2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 11]), P.push(this.ToffsetWires2A2[i - 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[i - 10]), g.push(this.ToffsetWires2A2[i - 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[i - 9]), y.push(this.ToffsetWires2A2[i - 3]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[i - 8]), v.push(this.ToffsetWires2A2[i - 2]), this.ToffsetArcWires2A2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[i - 7]), _.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2314
2314
|
break;
|
|
2315
|
-
case
|
|
2316
|
-
this.ToffsetWires2A1.length >= 16 && (t.push(this.ToffsetWires2A1[i - 16]), t.push(this.ToffsetWires2A1[i - 8]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 15]), l.push(this.ToffsetWires2A1[i - 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[i - 14]), u.push(this.ToffsetWires2A1[i - 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[i - 13]), C.push(this.ToffsetWires2A1[i - 5]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2315
|
+
case A.八分裂:
|
|
2316
|
+
this.ToffsetWires2A1.length >= 16 && (t.push(this.ToffsetWires2A1[i - 16]), t.push(this.ToffsetWires2A1[i - 8]), this.ToffsetArcWires1A2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[i - 15]), l.push(this.ToffsetWires2A1[i - 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[i - 14]), u.push(this.ToffsetWires2A1[i - 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[i - 13]), C.push(this.ToffsetWires2A1[i - 5]), this.ToffsetArcWires1A2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires2A1[i - 12]), e.push(this.ToffsetWires2A1[i - 4]), this.ToffsetArcWires1A2 = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[i - 11]), T.push(this.ToffsetWires2A1[i - 3]), this.ToffsetArcWires1A2 = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1A2, "2A1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A1[i - 10]), m.push(this.ToffsetWires2A1[i - 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[i - 9]), b.push(this.ToffsetWires2A1[i - 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 && (d.push(this.ToffsetWires2A2[i - 16]), d.push(this.ToffsetWires2A2[i - 8]), this.ToffsetArcWires2A2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2A2[i - 15]), P.push(this.ToffsetWires2A2[i - 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[i - 14]), g.push(this.ToffsetWires2A2[i - 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[i - 13]), y.push(this.ToffsetWires2A2[i - 5]), this.ToffsetArcWires2A2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[i - 12]), v.push(this.ToffsetWires2A2[i - 4]), this.ToffsetArcWires2A2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[i - 11]), _.push(this.ToffsetWires2A2[i - 3]), this.ToffsetArcWires2A2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2A2[i - 10]), S.push(this.ToffsetWires2A2[i - 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[i - 9]), M.push(this.ToffsetWires2A2[i - 1]), this.ToffsetArcWires2A2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2A2, "2A2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2317
2317
|
break;
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
2320
|
if (this.ToffsetWires2B1.length > 1 && this.ToffsetWires2B2.length > 1) {
|
|
2321
|
-
const t = [], l = [], u = [], C = [],
|
|
2321
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [], d = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2322
2322
|
switch (this.LineInfo.Wairnum) {
|
|
2323
|
-
case
|
|
2324
|
-
this.ToffsetWires2B1.length >= 2 && (t.push(this.ToffsetWires2B1[i - 2]), t.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (
|
|
2323
|
+
case A.单分裂:
|
|
2324
|
+
this.ToffsetWires2B1.length >= 2 && (t.push(this.ToffsetWires2B1[i - 2]), t.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (d.push(this.ToffsetWires2B2[i - 2]), d.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2325
2325
|
break;
|
|
2326
|
-
case
|
|
2327
|
-
this.ToffsetWires2B1.length >= 4 && (t.push(this.ToffsetWires2B1[i - 4]), t.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 3]), l.push(this.ToffsetWires2B1[i - 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 && (
|
|
2326
|
+
case A.双分裂:
|
|
2327
|
+
this.ToffsetWires2B1.length >= 4 && (t.push(this.ToffsetWires2B1[i - 4]), t.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 3]), l.push(this.ToffsetWires2B1[i - 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 && (d.push(this.ToffsetWires2B2[i - 4]), d.push(this.ToffsetWires2B2[i - 2]), this.ToffsetArcWires2B2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 3]), P.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2328
2328
|
break;
|
|
2329
|
-
case
|
|
2330
|
-
this.ToffsetWires2B1.length >= 8 && (t.push(this.ToffsetWires2B1[i - 8]), t.push(this.ToffsetWires2B1[i - 4]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 7]), l.push(this.ToffsetWires2B1[i - 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[i - 6]), u.push(this.ToffsetWires2B1[i - 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[i - 5]), C.push(this.ToffsetWires2B1[i - 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 && (
|
|
2329
|
+
case A.四分裂:
|
|
2330
|
+
this.ToffsetWires2B1.length >= 8 && (t.push(this.ToffsetWires2B1[i - 8]), t.push(this.ToffsetWires2B1[i - 4]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 7]), l.push(this.ToffsetWires2B1[i - 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[i - 6]), u.push(this.ToffsetWires2B1[i - 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[i - 5]), C.push(this.ToffsetWires2B1[i - 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 && (d.push(this.ToffsetWires2B2[i - 8]), d.push(this.ToffsetWires2B2[i - 4]), this.ToffsetArcWires2B2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 7]), P.push(this.ToffsetWires2B2[i - 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[i - 6]), g.push(this.ToffsetWires2B2[i - 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[i - 5]), y.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2331
2331
|
break;
|
|
2332
|
-
case
|
|
2333
|
-
this.ToffsetWires2B1.length >= 12 && (t.push(this.ToffsetWires2B1[i - 12]), t.push(this.ToffsetWires2B1[i - 6]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 11]), l.push(this.ToffsetWires2B1[i - 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[i - 10]), u.push(this.ToffsetWires2B1[i - 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[i - 9]), C.push(this.ToffsetWires2B1[i - 3]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2332
|
+
case A.六分裂:
|
|
2333
|
+
this.ToffsetWires2B1.length >= 12 && (t.push(this.ToffsetWires2B1[i - 12]), t.push(this.ToffsetWires2B1[i - 6]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 11]), l.push(this.ToffsetWires2B1[i - 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[i - 10]), u.push(this.ToffsetWires2B1[i - 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[i - 9]), C.push(this.ToffsetWires2B1[i - 3]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires2B1[i - 8]), e.push(this.ToffsetWires2B1[i - 2]), this.ToffsetArcWires1B2 = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[i - 7]), T.push(this.ToffsetWires2B1[i - 1]), this.ToffsetArcWires1B2 = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (d.push(this.ToffsetWires2B2[i - 12]), d.push(this.ToffsetWires2B2[i - 6]), this.ToffsetArcWires2B2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 11]), P.push(this.ToffsetWires2B2[i - 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[i - 10]), g.push(this.ToffsetWires2B2[i - 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[i - 9]), y.push(this.ToffsetWires2B2[i - 3]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[i - 8]), v.push(this.ToffsetWires2B2[i - 2]), this.ToffsetArcWires2B2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[i - 7]), _.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2334
2334
|
break;
|
|
2335
|
-
case
|
|
2336
|
-
this.ToffsetWires2B1.length >= 16 && (t.push(this.ToffsetWires2B1[i - 16]), t.push(this.ToffsetWires2B1[i - 8]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 15]), l.push(this.ToffsetWires2B1[i - 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[i - 14]), u.push(this.ToffsetWires2B1[i - 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[i - 13]), C.push(this.ToffsetWires2B1[i - 5]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2335
|
+
case A.八分裂:
|
|
2336
|
+
this.ToffsetWires2B1.length >= 16 && (t.push(this.ToffsetWires2B1[i - 16]), t.push(this.ToffsetWires2B1[i - 8]), this.ToffsetArcWires1B2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[i - 15]), l.push(this.ToffsetWires2B1[i - 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[i - 14]), u.push(this.ToffsetWires2B1[i - 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[i - 13]), C.push(this.ToffsetWires2B1[i - 5]), this.ToffsetArcWires1B2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires2B1[i - 12]), e.push(this.ToffsetWires2B1[i - 4]), this.ToffsetArcWires1B2 = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[i - 11]), T.push(this.ToffsetWires2B1[i - 3]), this.ToffsetArcWires1B2 = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1B2, "2B1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B1[i - 10]), m.push(this.ToffsetWires2B1[i - 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[i - 9]), b.push(this.ToffsetWires2B1[i - 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 && (d.push(this.ToffsetWires2B2[i - 16]), d.push(this.ToffsetWires2B2[i - 8]), this.ToffsetArcWires2B2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2B2[i - 15]), P.push(this.ToffsetWires2B2[i - 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[i - 14]), g.push(this.ToffsetWires2B2[i - 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[i - 13]), y.push(this.ToffsetWires2B2[i - 5]), this.ToffsetArcWires2B2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[i - 12]), v.push(this.ToffsetWires2B2[i - 4]), this.ToffsetArcWires2B2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[i - 11]), _.push(this.ToffsetWires2B2[i - 3]), this.ToffsetArcWires2B2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2B2[i - 10]), S.push(this.ToffsetWires2B2[i - 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[i - 9]), M.push(this.ToffsetWires2B2[i - 1]), this.ToffsetArcWires2B2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2B2, "2B2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2337
2337
|
break;
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
if (this.ToffsetWires2C1.length > 1 && this.ToffsetWires2C2.length > 1) {
|
|
2341
|
-
const t = [], l = [], u = [], C = [],
|
|
2341
|
+
const t = [], l = [], u = [], C = [], e = [], T = [], m = [], b = [], d = [], P = [], g = [], y = [], v = [], _ = [], S = [], M = [];
|
|
2342
2342
|
switch (this.LineInfo.Wairnum) {
|
|
2343
|
-
case
|
|
2344
|
-
this.ToffsetWires2C1.length >= 2 && (t.push(this.ToffsetWires2C1[i - 2]), t.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (
|
|
2343
|
+
case A.单分裂:
|
|
2344
|
+
this.ToffsetWires2C1.length >= 2 && (t.push(this.ToffsetWires2C1[i - 2]), t.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (d.push(this.ToffsetWires2C2[i - 2]), d.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2345
2345
|
break;
|
|
2346
|
-
case
|
|
2347
|
-
this.ToffsetWires2C1.length >= 4 && (t.push(this.ToffsetWires2C1[i - 4]), t.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 3]), l.push(this.ToffsetWires2C1[i - 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 && (
|
|
2346
|
+
case A.双分裂:
|
|
2347
|
+
this.ToffsetWires2C1.length >= 4 && (t.push(this.ToffsetWires2C1[i - 4]), t.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 3]), l.push(this.ToffsetWires2C1[i - 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 && (d.push(this.ToffsetWires2C2[i - 4]), d.push(this.ToffsetWires2C2[i - 2]), this.ToffsetArcWires2C2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 3]), P.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(P, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2348
2348
|
break;
|
|
2349
|
-
case
|
|
2350
|
-
this.ToffsetWires2C1.length >= 8 && (t.push(this.ToffsetWires2C1[i - 8]), t.push(this.ToffsetWires2C1[i - 4]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 7]), l.push(this.ToffsetWires2C1[i - 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[i - 6]), u.push(this.ToffsetWires2C1[i - 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[i - 5]), C.push(this.ToffsetWires2C1[i - 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 && (
|
|
2349
|
+
case A.四分裂:
|
|
2350
|
+
this.ToffsetWires2C1.length >= 8 && (t.push(this.ToffsetWires2C1[i - 8]), t.push(this.ToffsetWires2C1[i - 4]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 7]), l.push(this.ToffsetWires2C1[i - 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[i - 6]), u.push(this.ToffsetWires2C1[i - 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[i - 5]), C.push(this.ToffsetWires2C1[i - 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 && (d.push(this.ToffsetWires2C2[i - 8]), d.push(this.ToffsetWires2C2[i - 4]), this.ToffsetArcWires2C2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 7]), P.push(this.ToffsetWires2C2[i - 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[i - 6]), g.push(this.ToffsetWires2C2[i - 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[i - 5]), y.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2351
2351
|
break;
|
|
2352
|
-
case
|
|
2353
|
-
this.ToffsetWires2C1.length >= 12 && (t.push(this.ToffsetWires2C1[i - 12]), t.push(this.ToffsetWires2C1[i - 6]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 11]), l.push(this.ToffsetWires2C1[i - 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[i - 10]), u.push(this.ToffsetWires2C1[i - 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[i - 9]), C.push(this.ToffsetWires2C1[i - 3]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2352
|
+
case A.六分裂:
|
|
2353
|
+
this.ToffsetWires2C1.length >= 12 && (t.push(this.ToffsetWires2C1[i - 12]), t.push(this.ToffsetWires2C1[i - 6]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 11]), l.push(this.ToffsetWires2C1[i - 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[i - 10]), u.push(this.ToffsetWires2C1[i - 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[i - 9]), C.push(this.ToffsetWires2C1[i - 3]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires2C1[i - 8]), e.push(this.ToffsetWires2C1[i - 2]), this.ToffsetArcWires1C2 = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[i - 7]), T.push(this.ToffsetWires2C1[i - 1]), this.ToffsetArcWires1C2 = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (d.push(this.ToffsetWires2C2[i - 12]), d.push(this.ToffsetWires2C2[i - 6]), this.ToffsetArcWires2C2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 11]), P.push(this.ToffsetWires2C2[i - 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[i - 10]), g.push(this.ToffsetWires2C2[i - 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[i - 9]), y.push(this.ToffsetWires2C2[i - 3]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[i - 8]), v.push(this.ToffsetWires2C2[i - 2]), this.ToffsetArcWires2C2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[i - 7]), _.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2354
2354
|
break;
|
|
2355
|
-
case
|
|
2356
|
-
this.ToffsetWires2C1.length >= 16 && (t.push(this.ToffsetWires2C1[i - 16]), t.push(this.ToffsetWires2C1[i - 8]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 15]), l.push(this.ToffsetWires2C1[i - 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[i - 14]), u.push(this.ToffsetWires2C1[i - 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[i - 13]), C.push(this.ToffsetWires2C1[i - 5]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2355
|
+
case A.八分裂:
|
|
2356
|
+
this.ToffsetWires2C1.length >= 16 && (t.push(this.ToffsetWires2C1[i - 16]), t.push(this.ToffsetWires2C1[i - 8]), this.ToffsetArcWires1C2 = f(t, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[i - 15]), l.push(this.ToffsetWires2C1[i - 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[i - 14]), u.push(this.ToffsetWires2C1[i - 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[i - 13]), C.push(this.ToffsetWires2C1[i - 5]), this.ToffsetArcWires1C2 = f(C, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), e.push(this.ToffsetWires2C1[i - 12]), e.push(this.ToffsetWires2C1[i - 4]), this.ToffsetArcWires1C2 = f(e, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[i - 11]), T.push(this.ToffsetWires2C1[i - 3]), this.ToffsetArcWires1C2 = f(T, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires1C2, "2C1跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C1[i - 10]), m.push(this.ToffsetWires2C1[i - 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[i - 9]), b.push(this.ToffsetWires2C1[i - 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 && (d.push(this.ToffsetWires2C2[i - 16]), d.push(this.ToffsetWires2C2[i - 8]), this.ToffsetArcWires2C2 = f(d, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), P.push(this.ToffsetWires2C2[i - 15]), P.push(this.ToffsetWires2C2[i - 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[i - 14]), g.push(this.ToffsetWires2C2[i - 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[i - 13]), y.push(this.ToffsetWires2C2[i - 5]), this.ToffsetArcWires2C2 = f(y, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线4" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[i - 12]), v.push(this.ToffsetWires2C2[i - 4]), this.ToffsetArcWires2C2 = f(v, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线5" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[i - 11]), _.push(this.ToffsetWires2C2[i - 3]), this.ToffsetArcWires2C2 = f(_, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线6" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), S.push(this.ToffsetWires2C2[i - 10]), S.push(this.ToffsetWires2C2[i - 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[i - 9]), M.push(this.ToffsetWires2C2[i - 1]), this.ToffsetArcWires2C2 = f(M, 15), this.LineentityCollection2.add(h(this.ToffsetArcWires2C2, "2C2跳线8" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2357
2357
|
break;
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
2360
|
} else
|
|
2361
2361
|
switch (this.LineInfo.Wairnum) {
|
|
2362
|
-
case
|
|
2363
|
-
|
|
2362
|
+
case A.单分裂:
|
|
2363
|
+
o = o + 1;
|
|
2364
2364
|
break;
|
|
2365
|
-
case
|
|
2366
|
-
|
|
2365
|
+
case A.双分裂:
|
|
2366
|
+
o = o + 2;
|
|
2367
2367
|
break;
|
|
2368
|
-
case
|
|
2369
|
-
|
|
2368
|
+
case A.四分裂:
|
|
2369
|
+
o = o + 4;
|
|
2370
2370
|
break;
|
|
2371
|
-
case
|
|
2372
|
-
|
|
2371
|
+
case A.六分裂:
|
|
2372
|
+
o = o + 6;
|
|
2373
2373
|
break;
|
|
2374
|
-
case
|
|
2375
|
-
|
|
2374
|
+
case A.八分裂:
|
|
2375
|
+
o = o + 8;
|
|
2376
2376
|
break;
|
|
2377
2377
|
}
|
|
2378
2378
|
});
|
|
2379
2379
|
}
|
|
2380
|
-
addTreeData(
|
|
2381
|
-
this.LineInfo.Trees.push(
|
|
2380
|
+
addTreeData(o) {
|
|
2381
|
+
this.LineInfo.Trees.push(o);
|
|
2382
2382
|
}
|
|
2383
2383
|
//加载数模型
|
|
2384
2384
|
/**
|
|
2385
2385
|
* 初始化树木数据并设置动态加载(如果启用)
|
|
2386
2386
|
*/
|
|
2387
2387
|
loadTree() {
|
|
2388
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.Trees.forEach((
|
|
2389
|
-
this.offsetTrees.push(n.Cartesian3.fromDegrees(
|
|
2390
|
-
}), this.viewer.dataSources.contains(this.dataSourcetree) ||
|
|
2388
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.Trees.forEach((o) => {
|
|
2389
|
+
this.offsetTrees.push(n.Cartesian3.fromDegrees(o.lon, o.lat, o.alt));
|
|
2390
|
+
}), this.viewer.dataSources.contains(this.dataSourcetree) || this.viewer.dataSources.add(this.dataSourcetree), this.entityCollectiontree.show = !0, this.isDynamicLoadingEnabled ? (this.setupTreeCameraMoveListener(), this.updateVisibleTrees()) : this.loadAllTreesAtOnce());
|
|
2391
2391
|
}
|
|
2392
2392
|
/**
|
|
2393
2393
|
* 一次性加载所有树木(静态加载模式)
|
|
@@ -2396,26 +2396,24 @@ const es = class es {
|
|
|
2396
2396
|
this.LineInfo.Trees.length !== this.offsetTrees.length && console.warn(
|
|
2397
2397
|
`树木数据长度 (${this.LineInfo.Trees.length}) 与位置数据长度 (${this.offsetTrees.length}) 不匹配`
|
|
2398
2398
|
);
|
|
2399
|
-
const
|
|
2400
|
-
for (let i = 0; i <
|
|
2399
|
+
const o = Math.min(this.LineInfo.Trees.length, this.offsetTrees.length);
|
|
2400
|
+
for (let i = 0; i < o; i++) {
|
|
2401
2401
|
const r = this.LineInfo.Trees[i], s = this.offsetTrees[i];
|
|
2402
2402
|
r && s ? this.loadTreeAtIndex(i, s) : console.warn(`跳过无效的树木数据,索引: ${i}`);
|
|
2403
2403
|
}
|
|
2404
|
-
console.log(`完成加载 ${e} 棵树木`);
|
|
2405
2404
|
}
|
|
2406
2405
|
/**
|
|
2407
2406
|
* 加载指定索引的树木
|
|
2408
2407
|
*/
|
|
2409
|
-
loadTreeAtIndex(
|
|
2410
|
-
const r = this.LineInfo.Trees[
|
|
2408
|
+
loadTreeAtIndex(o, i) {
|
|
2409
|
+
const r = this.LineInfo.Trees[o];
|
|
2411
2410
|
if (!r.modelurl || r.modelurl.trim() === "") {
|
|
2412
|
-
console.warn(`Tree ${
|
|
2411
|
+
console.warn(`Tree ${o} has invalid model URL: ${r.modelurl}. Skipping...`);
|
|
2413
2412
|
return;
|
|
2414
2413
|
}
|
|
2415
|
-
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}`);
|
|
2416
2414
|
let s = 1;
|
|
2417
|
-
r.treeScale > 0 && r.treeH > 0 ? (s = r.treeH / r.treeScale, s <= 0 && (s = 1)) : r.treeH > 0 && (s = r.treeH)
|
|
2418
|
-
const
|
|
2415
|
+
r.treeScale > 0 && r.treeH > 0 ? (s = r.treeH / r.treeScale, s <= 0 && (s = 1)) : r.treeH > 0 && (s = r.treeH);
|
|
2416
|
+
const c = this.getCachedModelConfig(
|
|
2419
2417
|
r.modelurl,
|
|
2420
2418
|
s,
|
|
2421
2419
|
0,
|
|
@@ -2428,24 +2426,24 @@ const es = class es {
|
|
|
2428
2426
|
"tree-" + r.id,
|
|
2429
2427
|
i,
|
|
2430
2428
|
"tree-" + r.id,
|
|
2431
|
-
|
|
2429
|
+
c.uri,
|
|
2432
2430
|
new n.HeadingPitchRoll(0, 0, 0),
|
|
2433
2431
|
// 树木通常不需要旋转
|
|
2434
|
-
|
|
2435
|
-
|
|
2432
|
+
c.scale,
|
|
2433
|
+
c.distanceDisplayCondition
|
|
2436
2434
|
)
|
|
2437
|
-
)
|
|
2435
|
+
);
|
|
2438
2436
|
}
|
|
2439
2437
|
/**
|
|
2440
2438
|
* 飞到指定索引的树木位置
|
|
2441
2439
|
* @param treeIndex 树木索引(从0开始)
|
|
2442
2440
|
*/
|
|
2443
|
-
flyToTree(
|
|
2444
|
-
if (
|
|
2445
|
-
console.warn(`Invalid tree index: ${
|
|
2441
|
+
flyToTree(o) {
|
|
2442
|
+
if (o < 0 || o >= this.LineInfo.Trees.length) {
|
|
2443
|
+
console.warn(`Invalid tree index: ${o}. Valid range: 0-${this.LineInfo.Trees.length - 1}`);
|
|
2446
2444
|
return;
|
|
2447
2445
|
}
|
|
2448
|
-
const i = this.LineInfo.Trees[
|
|
2446
|
+
const i = this.LineInfo.Trees[o], r = n.Cartesian3.fromDegrees(i.lon, i.lat, i.alt + (i.treeH || 0));
|
|
2449
2447
|
this.viewer.camera.flyTo({
|
|
2450
2448
|
destination: r,
|
|
2451
2449
|
duration: 2,
|
|
@@ -2454,53 +2452,52 @@ const es = class es {
|
|
|
2454
2452
|
pitch: n.Math.toRadians(-60),
|
|
2455
2453
|
roll: n.Math.toRadians(0)
|
|
2456
2454
|
}
|
|
2457
|
-
})
|
|
2455
|
+
});
|
|
2458
2456
|
}
|
|
2459
2457
|
/**
|
|
2460
2458
|
* 显示计算结果
|
|
2461
2459
|
* @param point 树木坐标点 [经度, 纬度, 高度]
|
|
2462
2460
|
*/
|
|
2463
|
-
calcResult(
|
|
2461
|
+
calcResult(o) {
|
|
2464
2462
|
const i = Qs(
|
|
2465
|
-
|
|
2463
|
+
o,
|
|
2466
2464
|
this.arcLine1A1,
|
|
2467
2465
|
this.arcLine1B1,
|
|
2468
2466
|
this.arcLine1D1
|
|
2469
2467
|
);
|
|
2470
|
-
js(
|
|
2468
|
+
js(o, i, this.entityCollectionplotting);
|
|
2471
2469
|
}
|
|
2472
2470
|
/**
|
|
2473
2471
|
* 加载树木点击监听功能
|
|
2474
2472
|
*/
|
|
2475
2473
|
loadTreeListen() {
|
|
2476
2474
|
this.treeHandler && this.removeTreeListen();
|
|
2477
|
-
const
|
|
2478
|
-
var T;
|
|
2475
|
+
const o = (i, r) => {
|
|
2479
2476
|
const s = i.scene.pick(r);
|
|
2480
2477
|
if (n.defined(s)) {
|
|
2481
|
-
|
|
2482
|
-
if (
|
|
2483
|
-
return
|
|
2478
|
+
let c = s.id;
|
|
2479
|
+
if (c === void 0 && s.primitive && (c = s.primitive.id), c instanceof n.Entity)
|
|
2480
|
+
return c;
|
|
2484
2481
|
}
|
|
2485
2482
|
};
|
|
2486
|
-
this.ensurePlottingDataSourceAdded(), this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((i) => {
|
|
2487
|
-
var s;
|
|
2488
|
-
const r =
|
|
2483
|
+
this.ensurePlottingDataSourceAdded(), this.ensureTreeDataSourceAdded(), this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((i) => {
|
|
2484
|
+
var s, c;
|
|
2485
|
+
const r = o(this.viewer, i.position);
|
|
2489
2486
|
if (r && r.id) {
|
|
2490
|
-
const
|
|
2491
|
-
if (
|
|
2492
|
-
const
|
|
2493
|
-
(
|
|
2487
|
+
const W = String(r.id);
|
|
2488
|
+
if (W.startsWith(es.TREE_ENTITY_PREFIX)) {
|
|
2489
|
+
const L = W.substring(es.TREE_ENTITY_PREFIX.length), p = (s = this.LineInfo.Trees) == null ? void 0 : s.find(
|
|
2490
|
+
(w) => w && w.id && String(w.id) === L
|
|
2494
2491
|
);
|
|
2495
|
-
if (
|
|
2496
|
-
const
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
Number(
|
|
2492
|
+
if (p) {
|
|
2493
|
+
const w = [
|
|
2494
|
+
p.lon,
|
|
2495
|
+
p.lat,
|
|
2496
|
+
Number(p.alt || 0) + Number(p.treeH || 0)
|
|
2500
2497
|
];
|
|
2501
|
-
|
|
2498
|
+
this.calcResult(w);
|
|
2502
2499
|
} else
|
|
2503
|
-
console.warn(`未找到ID为 ${
|
|
2500
|
+
console.warn(`未找到ID为 ${L} 的树木,可用的树木ID:`, (c = this.LineInfo.Trees) == null ? void 0 : c.map((w) => w == null ? void 0 : w.id));
|
|
2504
2501
|
}
|
|
2505
2502
|
}
|
|
2506
2503
|
}, n.ScreenSpaceEventType.LEFT_CLICK);
|
|
@@ -2511,6 +2508,12 @@ const es = class es {
|
|
|
2511
2508
|
ensurePlottingDataSourceAdded() {
|
|
2512
2509
|
this.viewer.dataSources.contains(this.dataSourceplotting) || this.viewer.dataSources.add(this.dataSourceplotting), this.entityCollectionplotting.show = !0;
|
|
2513
2510
|
}
|
|
2511
|
+
/**
|
|
2512
|
+
* 确保树木数据源已添加到viewer并显示
|
|
2513
|
+
*/
|
|
2514
|
+
ensureTreeDataSourceAdded() {
|
|
2515
|
+
this.viewer.dataSources.contains(this.dataSourcetree) || this.viewer.dataSources.add(this.dataSourcetree), this.entityCollectiontree.show = !0;
|
|
2516
|
+
}
|
|
2514
2517
|
/**
|
|
2515
2518
|
* 移除树木点击监听及清理相关资源
|
|
2516
2519
|
*/
|
|
@@ -2518,12 +2521,12 @@ const es = class es {
|
|
|
2518
2521
|
this.treeHandler && (this.treeHandler.destroy(), this.treeHandler = null), this.dataSourceplotting && (this.entityCollectionplotting.removeAll(), this.entityCollectionplotting.show = !1);
|
|
2519
2522
|
}
|
|
2520
2523
|
LineChannelTerrainVerification() {
|
|
2521
|
-
this.ensurePlottingDataSourceAdded(), this.LineInfo.Trees.forEach((
|
|
2522
|
-
if (
|
|
2524
|
+
this.ensurePlottingDataSourceAdded(), this.LineInfo.Trees.forEach((o) => {
|
|
2525
|
+
if (o) {
|
|
2523
2526
|
const i = [
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
Number(
|
|
2527
|
+
o.lon,
|
|
2528
|
+
o.lat,
|
|
2529
|
+
Number(o.alt || 0) + Number(o.treeH || 0)
|
|
2527
2530
|
];
|
|
2528
2531
|
this.calcResult(i);
|
|
2529
2532
|
}
|
|
@@ -2541,7 +2544,7 @@ const es = class es {
|
|
|
2541
2544
|
}
|
|
2542
2545
|
//加载渲染树木
|
|
2543
2546
|
loadtreeModel() {
|
|
2544
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.contains(this.dataSourcetree) ||
|
|
2547
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.contains(this.dataSourcetree) || this.viewer.dataSources.add(this.dataSourcetree), this.entityCollectiontree.show = !0);
|
|
2545
2548
|
}
|
|
2546
2549
|
//移除树木
|
|
2547
2550
|
RemoveTreeModel() {
|
|
@@ -2591,12 +2594,12 @@ const es = class es {
|
|
|
2591
2594
|
);
|
|
2592
2595
|
}
|
|
2593
2596
|
//设置显隐
|
|
2594
|
-
setLineVisible(
|
|
2595
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show =
|
|
2597
|
+
setLineVisible(o) {
|
|
2598
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show = o, this.LineentityCollection2.show = o);
|
|
2596
2599
|
}
|
|
2597
2600
|
//设置显隐
|
|
2598
|
-
setTreeVisible(
|
|
2599
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollectiontree.show =
|
|
2601
|
+
setTreeVisible(o) {
|
|
2602
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollectiontree.show = o);
|
|
2600
2603
|
}
|
|
2601
2604
|
//移除渲染电力线路
|
|
2602
2605
|
RemoveLineModel() {
|
|
@@ -2606,110 +2609,110 @@ const es = class es {
|
|
|
2606
2609
|
* 清理所有动态加载相关资源
|
|
2607
2610
|
*/
|
|
2608
2611
|
cleanupDynamicLoadingResources() {
|
|
2609
|
-
this.cameraMoveHandler && (this.cameraMoveHandler(), this.cameraMoveHandler = null), this.loadedTowerIndices.clear(), this.loadedTreeIndices.clear(), this.modelCache.clear()
|
|
2612
|
+
this.cameraMoveHandler && (this.cameraMoveHandler(), this.cameraMoveHandler = null), this.loadedTowerIndices.clear(), this.loadedTreeIndices.clear(), this.modelCache.clear();
|
|
2610
2613
|
}
|
|
2611
2614
|
};
|
|
2612
2615
|
// 树木实体ID前缀常量
|
|
2613
|
-
|
|
2616
|
+
I(es, "TREE_ENTITY_PREFIX", "tree-");
|
|
2614
2617
|
let ws = es;
|
|
2615
2618
|
class Ai {
|
|
2616
2619
|
constructor() {
|
|
2617
2620
|
// 杆塔id
|
|
2618
|
-
|
|
2621
|
+
I(this, "id", "");
|
|
2619
2622
|
// 杆塔名称
|
|
2620
|
-
|
|
2623
|
+
I(this, "name", "");
|
|
2621
2624
|
//角钢和圆钢都是用线模拟
|
|
2622
2625
|
//单塔仿真文件
|
|
2623
|
-
|
|
2626
|
+
I(this, "towerFZinfo", "");
|
|
2624
2627
|
//位移文件
|
|
2625
|
-
|
|
2628
|
+
I(this, "towerDisFile", "");
|
|
2626
2629
|
//解析应力比文件
|
|
2627
|
-
|
|
2628
|
-
|
|
2630
|
+
I(this, "stressFileContent", "");
|
|
2631
|
+
I(this, "streesistrue", 0);
|
|
2629
2632
|
// 杆件颜色
|
|
2630
|
-
|
|
2633
|
+
I(this, "TowerMemberColor", "#FFFFFF");
|
|
2631
2634
|
// 杆件宽度
|
|
2632
|
-
|
|
2635
|
+
I(this, "TowerMembersWidth", 2);
|
|
2633
2636
|
// 经度
|
|
2634
|
-
|
|
2637
|
+
I(this, "Longitude", 0);
|
|
2635
2638
|
// 纬度
|
|
2636
|
-
|
|
2639
|
+
I(this, "Latitude", 0);
|
|
2637
2640
|
// 高程
|
|
2638
|
-
|
|
2641
|
+
I(this, "Altitude", 0);
|
|
2639
2642
|
// 转角
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
+
I(this, "RollX", 0);
|
|
2644
|
+
I(this, "RollY", 90);
|
|
2645
|
+
I(this, "RollZ", 0);
|
|
2643
2646
|
}
|
|
2644
2647
|
}
|
|
2645
2648
|
function ei(a) {
|
|
2646
2649
|
debugger;
|
|
2647
|
-
const
|
|
2648
|
-
`), i = [], r = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,
|
|
2649
|
-
for (const W of
|
|
2650
|
+
const o = a.split(`
|
|
2651
|
+
`), i = [], r = [], s = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/, c = /^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;
|
|
2652
|
+
for (const W of o) {
|
|
2650
2653
|
const L = W.trim();
|
|
2651
2654
|
if (!L) continue;
|
|
2652
|
-
const
|
|
2653
|
-
if (
|
|
2655
|
+
const p = L.match(s);
|
|
2656
|
+
if (p) {
|
|
2654
2657
|
i.push({
|
|
2655
|
-
id: parseInt(
|
|
2656
|
-
x: parseFloat(
|
|
2657
|
-
y: parseFloat(
|
|
2658
|
-
z: parseFloat(
|
|
2659
|
-
flag: parseInt(
|
|
2658
|
+
id: parseInt(p[1]),
|
|
2659
|
+
x: parseFloat(p[2]),
|
|
2660
|
+
y: parseFloat(p[3]),
|
|
2661
|
+
z: parseFloat(p[4]),
|
|
2662
|
+
flag: parseInt(p[5])
|
|
2660
2663
|
});
|
|
2661
2664
|
continue;
|
|
2662
2665
|
}
|
|
2663
|
-
const
|
|
2664
|
-
|
|
2665
|
-
from: parseInt(
|
|
2666
|
-
to: parseInt(
|
|
2667
|
-
type: parseInt(
|
|
2666
|
+
const w = L.match(c);
|
|
2667
|
+
w && r.push({
|
|
2668
|
+
from: parseInt(w[1]),
|
|
2669
|
+
to: parseInt(w[2]),
|
|
2670
|
+
type: parseInt(w[3])
|
|
2668
2671
|
});
|
|
2669
2672
|
}
|
|
2670
2673
|
return { TowerNodes: i, connections: r };
|
|
2671
2674
|
}
|
|
2672
2675
|
function oi(a) {
|
|
2673
|
-
const
|
|
2676
|
+
const o = a.split(`
|
|
2674
2677
|
`), i = [];
|
|
2675
|
-
for (const r of
|
|
2678
|
+
for (const r of o) {
|
|
2676
2679
|
if (!r.trim()) continue;
|
|
2677
|
-
const s = r.trim().split(/\s+/).filter((L) => L !== ""),
|
|
2678
|
-
if (isNaN(
|
|
2680
|
+
const s = r.trim().split(/\s+/).filter((L) => L !== ""), c = parseInt(s[0]);
|
|
2681
|
+
if (isNaN(c)) continue;
|
|
2679
2682
|
const W = [];
|
|
2680
2683
|
for (let L = 1; L < s.length; L += 3) {
|
|
2681
|
-
const
|
|
2682
|
-
if (!isNaN(
|
|
2684
|
+
const p = parseFloat(s[L]), w = parseFloat(s[L + 1]), t = parseFloat(s[L + 2]);
|
|
2685
|
+
if (!isNaN(p) && !isNaN(w) && !isNaN(t)) {
|
|
2683
2686
|
const l = Math.floor((L - 1) / 3) + 1;
|
|
2684
|
-
W.push({ timeStep: l, x:
|
|
2687
|
+
W.push({ timeStep: l, x: p, y: w, z: t });
|
|
2685
2688
|
}
|
|
2686
2689
|
}
|
|
2687
2690
|
i.push({
|
|
2688
|
-
nodeId:
|
|
2691
|
+
nodeId: c,
|
|
2689
2692
|
displacements: W
|
|
2690
2693
|
});
|
|
2691
2694
|
}
|
|
2692
2695
|
return i;
|
|
2693
2696
|
}
|
|
2694
2697
|
function Is(a) {
|
|
2695
|
-
const
|
|
2698
|
+
const o = {};
|
|
2696
2699
|
return a.forEach((i) => {
|
|
2697
2700
|
i.displacements.forEach((r) => {
|
|
2698
|
-
|
|
2701
|
+
o[r.timeStep] || (o[r.timeStep] = []), o[r.timeStep].push({
|
|
2699
2702
|
nodeId: i.nodeId,
|
|
2700
2703
|
...r
|
|
2701
2704
|
});
|
|
2702
2705
|
});
|
|
2703
|
-
}),
|
|
2706
|
+
}), o;
|
|
2704
2707
|
}
|
|
2705
2708
|
function ri(a) {
|
|
2706
|
-
const
|
|
2709
|
+
const o = a.split(`
|
|
2707
2710
|
`), i = [];
|
|
2708
|
-
for (const s of
|
|
2711
|
+
for (const s of o) {
|
|
2709
2712
|
if (!s.trim()) continue;
|
|
2710
|
-
const
|
|
2711
|
-
if (
|
|
2712
|
-
const W =
|
|
2713
|
+
const c = s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);
|
|
2714
|
+
if (c) {
|
|
2715
|
+
const W = c[1].replace(/\s+/g, ""), L = c[2].trim().split(/\s+/).map(Number);
|
|
2713
2716
|
i.push({
|
|
2714
2717
|
elementId: W,
|
|
2715
2718
|
stressRatios: L
|
|
@@ -2719,18 +2722,18 @@ function ri(a) {
|
|
|
2719
2722
|
const r = [];
|
|
2720
2723
|
if (i.length > 0) {
|
|
2721
2724
|
const s = i[0].stressRatios.length;
|
|
2722
|
-
for (let
|
|
2725
|
+
for (let c = 0; c < s; c++) {
|
|
2723
2726
|
const W = {
|
|
2724
|
-
timeIndex:
|
|
2727
|
+
timeIndex: c,
|
|
2725
2728
|
elements: []
|
|
2726
2729
|
};
|
|
2727
2730
|
for (const L of i) {
|
|
2728
|
-
let
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2731
|
+
let p;
|
|
2732
|
+
const w = L.stressRatios[c];
|
|
2733
|
+
w > 1 ? p = J.RED : w > 0.95 && w <= 1 ? p = J.PINK : w > 0.85 && w <= 0.95 ? p = J.YELLOW : w > 0.7 && w <= 0.85 ? p = J.GREEN : p = J.BLUE, W.elements.push({
|
|
2731
2734
|
elementId: L.elementId,
|
|
2732
|
-
stressRatio:
|
|
2733
|
-
ylbColor:
|
|
2735
|
+
stressRatio: w,
|
|
2736
|
+
ylbColor: p
|
|
2734
2737
|
});
|
|
2735
2738
|
}
|
|
2736
2739
|
r.push(W);
|
|
@@ -2739,22 +2742,22 @@ function ri(a) {
|
|
|
2739
2742
|
return { byElement: i, byTime: r };
|
|
2740
2743
|
}
|
|
2741
2744
|
class hi {
|
|
2742
|
-
constructor(
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
this.viewer =
|
|
2745
|
+
constructor(o) {
|
|
2746
|
+
I(this, "viewer");
|
|
2747
|
+
I(this, "lines", []);
|
|
2748
|
+
this.viewer = o;
|
|
2746
2749
|
}
|
|
2747
2750
|
/**
|
|
2748
2751
|
* 添加一条线
|
|
2749
2752
|
* @returns 生成的Entity对象
|
|
2750
2753
|
*/
|
|
2751
|
-
addLine(
|
|
2752
|
-
const r = Es(this.viewer,
|
|
2754
|
+
addLine(o, i) {
|
|
2755
|
+
const r = Es(this.viewer, o, i);
|
|
2753
2756
|
return this.lines.push(r), r;
|
|
2754
2757
|
}
|
|
2755
2758
|
/** 移除所有线 */
|
|
2756
2759
|
removeAll() {
|
|
2757
|
-
this.lines.forEach((
|
|
2760
|
+
this.lines.forEach((o) => this.viewer.entities.remove(o)), this.lines = [];
|
|
2758
2761
|
}
|
|
2759
2762
|
// /** 更新线坐标 */
|
|
2760
2763
|
// updateLinePositions(entity: Cesium.Entity, newPositions: Cartesian3[]) {
|
|
@@ -2772,97 +2775,97 @@ class hi {
|
|
|
2772
2775
|
// }
|
|
2773
2776
|
}
|
|
2774
2777
|
var Ms = { exports: {} };
|
|
2775
|
-
(function(a,
|
|
2778
|
+
(function(a, o) {
|
|
2776
2779
|
(function(i, r) {
|
|
2777
2780
|
r();
|
|
2778
2781
|
})(ts, function() {
|
|
2779
|
-
function i(
|
|
2780
|
-
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(
|
|
2782
|
+
function i(w, t) {
|
|
2783
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(w.type) ? new Blob(["\uFEFF", w], { type: w.type }) : w;
|
|
2781
2784
|
}
|
|
2782
|
-
function r(
|
|
2785
|
+
function r(w, t, l) {
|
|
2783
2786
|
var u = new XMLHttpRequest();
|
|
2784
|
-
u.open("GET",
|
|
2785
|
-
|
|
2787
|
+
u.open("GET", w), u.responseType = "blob", u.onload = function() {
|
|
2788
|
+
p(u.response, t, l);
|
|
2786
2789
|
}, u.onerror = function() {
|
|
2787
2790
|
console.error("could not download file");
|
|
2788
2791
|
}, u.send();
|
|
2789
2792
|
}
|
|
2790
|
-
function s(
|
|
2793
|
+
function s(w) {
|
|
2791
2794
|
var t = new XMLHttpRequest();
|
|
2792
|
-
t.open("HEAD",
|
|
2795
|
+
t.open("HEAD", w, !1);
|
|
2793
2796
|
try {
|
|
2794
2797
|
t.send();
|
|
2795
2798
|
} catch {
|
|
2796
2799
|
}
|
|
2797
2800
|
return 200 <= t.status && 299 >= t.status;
|
|
2798
2801
|
}
|
|
2799
|
-
function
|
|
2802
|
+
function c(w) {
|
|
2800
2803
|
try {
|
|
2801
|
-
|
|
2804
|
+
w.dispatchEvent(new MouseEvent("click"));
|
|
2802
2805
|
} catch {
|
|
2803
2806
|
var t = document.createEvent("MouseEvents");
|
|
2804
|
-
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null),
|
|
2807
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), w.dispatchEvent(t);
|
|
2805
2808
|
}
|
|
2806
2809
|
}
|
|
2807
|
-
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof ts == "object" && ts.global === ts ? ts : void 0, L = W.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent),
|
|
2808
|
-
} : "download" in HTMLAnchorElement.prototype && !L ? function(
|
|
2810
|
+
var W = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof ts == "object" && ts.global === ts ? ts : void 0, L = W.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), p = W.saveAs || (typeof window != "object" || window !== W ? function() {
|
|
2811
|
+
} : "download" in HTMLAnchorElement.prototype && !L ? function(w, t, l) {
|
|
2809
2812
|
var u = W.URL || W.webkitURL, C = document.createElement("a");
|
|
2810
|
-
t = t ||
|
|
2813
|
+
t = t || w.name || "download", C.download = t, C.rel = "noopener", typeof w == "string" ? (C.href = w, C.origin === location.origin ? c(C) : s(C.href) ? r(w, t, l) : c(C, C.target = "_blank")) : (C.href = u.createObjectURL(w), setTimeout(function() {
|
|
2811
2814
|
u.revokeObjectURL(C.href);
|
|
2812
2815
|
}, 4e4), setTimeout(function() {
|
|
2813
|
-
|
|
2816
|
+
c(C);
|
|
2814
2817
|
}, 0));
|
|
2815
|
-
} : "msSaveOrOpenBlob" in navigator ? function(
|
|
2816
|
-
if (t = t ||
|
|
2817
|
-
else if (s(
|
|
2818
|
+
} : "msSaveOrOpenBlob" in navigator ? function(w, t, l) {
|
|
2819
|
+
if (t = t || w.name || "download", typeof w != "string") navigator.msSaveOrOpenBlob(i(w, l), t);
|
|
2820
|
+
else if (s(w)) r(w, t, l);
|
|
2818
2821
|
else {
|
|
2819
2822
|
var u = document.createElement("a");
|
|
2820
|
-
u.href =
|
|
2821
|
-
|
|
2823
|
+
u.href = w, u.target = "_blank", setTimeout(function() {
|
|
2824
|
+
c(u);
|
|
2822
2825
|
});
|
|
2823
2826
|
}
|
|
2824
|
-
} : function(
|
|
2825
|
-
if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof
|
|
2826
|
-
var C =
|
|
2827
|
-
if ((
|
|
2827
|
+
} : function(w, t, l, u) {
|
|
2828
|
+
if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof w == "string") return r(w, t, l);
|
|
2829
|
+
var C = w.type === "application/octet-stream", e = /constructor/i.test(W.HTMLElement) || W.safari, T = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
2830
|
+
if ((T || C && e || L) && typeof FileReader < "u") {
|
|
2828
2831
|
var m = new FileReader();
|
|
2829
2832
|
m.onloadend = function() {
|
|
2830
2833
|
var P = m.result;
|
|
2831
|
-
P =
|
|
2832
|
-
}, m.readAsDataURL(
|
|
2834
|
+
P = T ? P : P.replace(/^data:[^;]*;/, "data:attachment/file;"), u ? u.location.href = P : location = P, u = null;
|
|
2835
|
+
}, m.readAsDataURL(w);
|
|
2833
2836
|
} else {
|
|
2834
|
-
var b = W.URL || W.webkitURL,
|
|
2835
|
-
u ? u.location =
|
|
2836
|
-
b.revokeObjectURL(
|
|
2837
|
+
var b = W.URL || W.webkitURL, d = b.createObjectURL(w);
|
|
2838
|
+
u ? u.location = d : location.href = d, u = null, setTimeout(function() {
|
|
2839
|
+
b.revokeObjectURL(d);
|
|
2837
2840
|
}, 4e4);
|
|
2838
2841
|
}
|
|
2839
2842
|
});
|
|
2840
|
-
W.saveAs =
|
|
2843
|
+
W.saveAs = p.saveAs = p, a.exports = p;
|
|
2841
2844
|
});
|
|
2842
2845
|
})(Ms);
|
|
2843
2846
|
var cs = Ms.exports;
|
|
2844
2847
|
const ds = require("shp-write");
|
|
2845
2848
|
class fi {
|
|
2846
2849
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
2847
|
-
constructor(
|
|
2850
|
+
constructor(o, i, r) {
|
|
2848
2851
|
// private viewer: Cesium.Viewer;
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
this.towerNodes =
|
|
2852
|
+
I(this, "towerNodes", []);
|
|
2853
|
+
I(this, "connections", []);
|
|
2854
|
+
I(this, "towerFZS");
|
|
2855
|
+
this.towerNodes = o, this.connections = i, this.towerFZS = r;
|
|
2853
2856
|
}
|
|
2854
2857
|
// 导出杆塔数据为SHP文件
|
|
2855
2858
|
async exportTowerToSHP() {
|
|
2856
2859
|
try {
|
|
2857
|
-
const
|
|
2858
|
-
await this.generateSHPFiles(
|
|
2859
|
-
} catch (
|
|
2860
|
-
console.error("导出SHP文件失败:",
|
|
2860
|
+
const o = await this.generatePointFeatures(), i = await this.generateLineFeatures();
|
|
2861
|
+
await this.generateSHPFiles(o, i), console.log("SHP文件导出成功");
|
|
2862
|
+
} catch (o) {
|
|
2863
|
+
console.error("导出SHP文件失败:", o);
|
|
2861
2864
|
}
|
|
2862
2865
|
}
|
|
2863
2866
|
// 生成点要素数据 - 修复坐标格式
|
|
2864
2867
|
async generatePointFeatures() {
|
|
2865
|
-
const
|
|
2868
|
+
const o = [], i = new n.HeadingPitchRoll(
|
|
2866
2869
|
n.Math.toRadians(this.towerFZS.RollX),
|
|
2867
2870
|
this.towerFZS.RollY,
|
|
2868
2871
|
this.towerFZS.RollZ
|
|
@@ -2872,11 +2875,11 @@ class fi {
|
|
|
2872
2875
|
this.towerFZS.Altitude
|
|
2873
2876
|
);
|
|
2874
2877
|
for (const s of this.towerNodes) {
|
|
2875
|
-
const
|
|
2878
|
+
const c = new n.Cartesian3(s.x, s.y, s.z), W = this.getPositionByHprAndOffset(r, c, i), L = n.Ellipsoid.WGS84.cartesianToCartographic(W), p = n.Math.toDegrees(L.longitude), w = n.Math.toDegrees(L.latitude), t = L.height, l = {
|
|
2876
2879
|
type: "Feature",
|
|
2877
2880
|
geometry: {
|
|
2878
2881
|
type: "Point",
|
|
2879
|
-
coordinates: [
|
|
2882
|
+
coordinates: [p, w]
|
|
2880
2883
|
// 只使用经度和纬度,高度放在属性中
|
|
2881
2884
|
},
|
|
2882
2885
|
properties: {
|
|
@@ -2885,21 +2888,21 @@ class fi {
|
|
|
2885
2888
|
x: s.x,
|
|
2886
2889
|
y: s.y,
|
|
2887
2890
|
z: s.z,
|
|
2888
|
-
longitude:
|
|
2889
|
-
latitude:
|
|
2891
|
+
longitude: p,
|
|
2892
|
+
latitude: w,
|
|
2890
2893
|
height: t,
|
|
2891
2894
|
// 高度作为属性存储
|
|
2892
2895
|
elevation: t,
|
|
2893
2896
|
type: "tower_node"
|
|
2894
2897
|
}
|
|
2895
2898
|
};
|
|
2896
|
-
|
|
2899
|
+
o.push(l);
|
|
2897
2900
|
}
|
|
2898
|
-
return
|
|
2901
|
+
return o;
|
|
2899
2902
|
}
|
|
2900
2903
|
// 生成线要素数据 - 修复坐标格式
|
|
2901
2904
|
async generateLineFeatures() {
|
|
2902
|
-
const
|
|
2905
|
+
const o = [], i = new n.HeadingPitchRoll(
|
|
2903
2906
|
n.Math.toRadians(this.towerFZS.RollX),
|
|
2904
2907
|
this.towerFZS.RollY,
|
|
2905
2908
|
this.towerFZS.RollZ
|
|
@@ -2909,14 +2912,14 @@ class fi {
|
|
|
2909
2912
|
this.towerFZS.Altitude
|
|
2910
2913
|
);
|
|
2911
2914
|
for (const s of this.connections) {
|
|
2912
|
-
const
|
|
2913
|
-
if (!
|
|
2914
|
-
const L = new n.Cartesian3(
|
|
2915
|
+
const c = this.towerNodes.find((g) => g.id === s.from), W = this.towerNodes.find((g) => g.id === s.to);
|
|
2916
|
+
if (!c || !W) continue;
|
|
2917
|
+
const L = new n.Cartesian3(c.x, c.y, c.z), p = new n.Cartesian3(W.x, W.y, W.z), w = this.getPositionByHprAndOffset(r, L, i), t = this.getPositionByHprAndOffset(r, p, i), l = n.Ellipsoid.WGS84.cartesianToCartographic(w), u = n.Ellipsoid.WGS84.cartesianToCartographic(t), C = n.Math.toDegrees(l.longitude), e = n.Math.toDegrees(l.latitude), T = l.height, m = n.Math.toDegrees(u.longitude), b = n.Math.toDegrees(u.latitude), d = u.height, P = {
|
|
2915
2918
|
type: "Feature",
|
|
2916
2919
|
geometry: {
|
|
2917
2920
|
type: "LineString",
|
|
2918
2921
|
coordinates: [
|
|
2919
|
-
[C,
|
|
2922
|
+
[C, e],
|
|
2920
2923
|
// 起点,二维坐标
|
|
2921
2924
|
[m, b]
|
|
2922
2925
|
// 终点,二维坐标
|
|
@@ -2926,32 +2929,32 @@ class fi {
|
|
|
2926
2929
|
id: `${s.from}-${s.to}`,
|
|
2927
2930
|
from_node: s.from,
|
|
2928
2931
|
to_node: s.to,
|
|
2929
|
-
from_height:
|
|
2932
|
+
from_height: T,
|
|
2930
2933
|
// 起点高度
|
|
2931
|
-
to_height:
|
|
2934
|
+
to_height: d,
|
|
2932
2935
|
// 终点高度
|
|
2933
|
-
avg_height: (
|
|
2936
|
+
avg_height: (T + d) / 2,
|
|
2934
2937
|
// 平均高度
|
|
2935
|
-
length: this.calculateDistance(
|
|
2938
|
+
length: this.calculateDistance(w, t),
|
|
2936
2939
|
type: "tower_member",
|
|
2937
2940
|
width: this.towerFZS.TowerMembersWidth,
|
|
2938
2941
|
from_longitude: C,
|
|
2939
|
-
from_latitude:
|
|
2942
|
+
from_latitude: e,
|
|
2940
2943
|
to_longitude: m,
|
|
2941
2944
|
to_latitude: b
|
|
2942
2945
|
}
|
|
2943
2946
|
};
|
|
2944
|
-
|
|
2947
|
+
o.push(P);
|
|
2945
2948
|
}
|
|
2946
|
-
return
|
|
2949
|
+
return o;
|
|
2947
2950
|
}
|
|
2948
2951
|
// 修复SHP文件生成方法
|
|
2949
|
-
async generateSHPFiles(
|
|
2952
|
+
async generateSHPFiles(o, i) {
|
|
2950
2953
|
try {
|
|
2951
|
-
if (
|
|
2954
|
+
if (o.length > 0) {
|
|
2952
2955
|
const r = {
|
|
2953
2956
|
type: "FeatureCollection",
|
|
2954
|
-
features:
|
|
2957
|
+
features: o
|
|
2955
2958
|
}, s = ds.point(r);
|
|
2956
2959
|
this.downloadSHPFiles(s, "tower_nodes");
|
|
2957
2960
|
}
|
|
@@ -2963,20 +2966,20 @@ class fi {
|
|
|
2963
2966
|
this.downloadSHPFiles(s, "tower_members");
|
|
2964
2967
|
}
|
|
2965
2968
|
} catch (r) {
|
|
2966
|
-
console.error("生成SHP文件时出错:", r), await this.alternativeExport(
|
|
2969
|
+
console.error("生成SHP文件时出错:", r), await this.alternativeExport(o, i);
|
|
2967
2970
|
}
|
|
2968
2971
|
}
|
|
2969
2972
|
// 下载SHP文件
|
|
2970
|
-
downloadSHPFiles(
|
|
2971
|
-
const r = new Blob([
|
|
2973
|
+
downloadSHPFiles(o, i) {
|
|
2974
|
+
const r = new Blob([o], { type: "application/zip" });
|
|
2972
2975
|
cs.saveAs(r, `${i}.zip`);
|
|
2973
2976
|
}
|
|
2974
2977
|
// 备用导出方案 - 导出为GeoJSON
|
|
2975
|
-
async alternativeExport(
|
|
2976
|
-
if (console.log("使用备用方案导出为GeoJSON格式"),
|
|
2978
|
+
async alternativeExport(o, i) {
|
|
2979
|
+
if (console.log("使用备用方案导出为GeoJSON格式"), o.length > 0) {
|
|
2977
2980
|
const r = {
|
|
2978
2981
|
type: "FeatureCollection",
|
|
2979
|
-
features:
|
|
2982
|
+
features: o
|
|
2980
2983
|
};
|
|
2981
2984
|
this.downloadJSON(r, "tower_nodes.geojson");
|
|
2982
2985
|
}
|
|
@@ -2989,51 +2992,51 @@ class fi {
|
|
|
2989
2992
|
}
|
|
2990
2993
|
}
|
|
2991
2994
|
// 下载JSON文件
|
|
2992
|
-
downloadJSON(
|
|
2993
|
-
const r = new Blob([JSON.stringify(
|
|
2995
|
+
downloadJSON(o, i) {
|
|
2996
|
+
const r = new Blob([JSON.stringify(o, null, 2)], {
|
|
2994
2997
|
type: "application/json"
|
|
2995
2998
|
});
|
|
2996
2999
|
cs.saveAs(r, i);
|
|
2997
3000
|
}
|
|
2998
3001
|
// 计算两点之间的距离
|
|
2999
|
-
calculateDistance(
|
|
3000
|
-
return n.Cartesian3.distance(
|
|
3002
|
+
calculateDistance(o, i) {
|
|
3003
|
+
return n.Cartesian3.distance(o, i);
|
|
3001
3004
|
}
|
|
3002
3005
|
// 根据朝向和偏移量计算位置
|
|
3003
|
-
getPositionByHprAndOffset(
|
|
3004
|
-
const s = n.Transforms.headingPitchRollToFixedFrame(
|
|
3006
|
+
getPositionByHprAndOffset(o, i, r) {
|
|
3007
|
+
const s = n.Transforms.headingPitchRollToFixedFrame(o, r);
|
|
3005
3008
|
return n.Matrix4.multiplyByPoint(s, i, new n.Cartesian3());
|
|
3006
3009
|
}
|
|
3007
3010
|
}
|
|
3008
3011
|
class ni {
|
|
3009
|
-
static async exportToCSV(
|
|
3010
|
-
const s = this.exportNodesToCSV(
|
|
3012
|
+
static async exportToCSV(o, i, r) {
|
|
3013
|
+
const s = this.exportNodesToCSV(o, r);
|
|
3011
3014
|
this.downloadCSV(s, "tower_nodes.csv");
|
|
3012
|
-
const
|
|
3013
|
-
this.downloadCSV(
|
|
3015
|
+
const c = this.exportConnectionsToCSV(i, o, r);
|
|
3016
|
+
this.downloadCSV(c, "tower_connections.csv");
|
|
3014
3017
|
}
|
|
3015
|
-
static exportNodesToCSV(
|
|
3018
|
+
static exportNodesToCSV(o, i) {
|
|
3016
3019
|
let r = `ID,X,Y,Z,Longitude,Latitude,Height
|
|
3017
3020
|
`;
|
|
3018
3021
|
const s = new n.HeadingPitchRoll(
|
|
3019
3022
|
n.Math.toRadians(i.RollX),
|
|
3020
3023
|
i.RollY,
|
|
3021
3024
|
i.RollZ
|
|
3022
|
-
),
|
|
3025
|
+
), c = n.Cartesian3.fromDegrees(
|
|
3023
3026
|
i.Longitude,
|
|
3024
3027
|
i.Latitude,
|
|
3025
3028
|
i.Altitude
|
|
3026
3029
|
);
|
|
3027
|
-
return
|
|
3028
|
-
const L = new n.Cartesian3(W.x, W.y, W.z),
|
|
3030
|
+
return o.forEach((W) => {
|
|
3031
|
+
const L = new n.Cartesian3(W.x, W.y, W.z), p = this.getPositionByHprAndOffset(c, L, s), w = n.Ellipsoid.WGS84.cartesianToCartographic(p), t = n.Math.toDegrees(w.longitude), l = n.Math.toDegrees(w.latitude), u = w.height;
|
|
3029
3032
|
r += `${W.id},${W.x},${W.y},${W.z},${t},${l},${u}
|
|
3030
3033
|
`;
|
|
3031
3034
|
}), r;
|
|
3032
3035
|
}
|
|
3033
|
-
static exportConnectionsToCSV(
|
|
3036
|
+
static exportConnectionsToCSV(o, i, r) {
|
|
3034
3037
|
let s = `FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
|
|
3035
3038
|
`;
|
|
3036
|
-
const
|
|
3039
|
+
const c = new n.HeadingPitchRoll(
|
|
3037
3040
|
n.Math.toRadians(r.RollX),
|
|
3038
3041
|
r.RollY,
|
|
3039
3042
|
r.RollZ
|
|
@@ -3042,47 +3045,47 @@ class ni {
|
|
|
3042
3045
|
r.Latitude,
|
|
3043
3046
|
r.Altitude
|
|
3044
3047
|
);
|
|
3045
|
-
return
|
|
3046
|
-
const
|
|
3047
|
-
if (!
|
|
3048
|
-
const t = new n.Cartesian3(
|
|
3049
|
-
s += `${L.from},${L.to},${
|
|
3048
|
+
return o.forEach((L) => {
|
|
3049
|
+
const p = i.find((T) => T.id === L.from), w = i.find((T) => T.id === L.to);
|
|
3050
|
+
if (!p || !w) return;
|
|
3051
|
+
const t = new n.Cartesian3(p.x, p.y, p.z), l = new n.Cartesian3(w.x, w.y, w.z), u = this.getPositionByHprAndOffset(W, t, c), C = this.getPositionByHprAndOffset(W, l, c), e = n.Cartesian3.distance(u, C);
|
|
3052
|
+
s += `${L.from},${L.to},${p.x},${p.y},${p.z},${w.x},${w.y},${w.z},${e}
|
|
3050
3053
|
`;
|
|
3051
3054
|
}), s;
|
|
3052
3055
|
}
|
|
3053
|
-
static downloadCSV(
|
|
3054
|
-
const r = new Blob([
|
|
3056
|
+
static downloadCSV(o, i) {
|
|
3057
|
+
const r = new Blob([o], { type: "text/csv;charset=utf-8;" });
|
|
3055
3058
|
cs.saveAs(r, i);
|
|
3056
3059
|
}
|
|
3057
|
-
static getPositionByHprAndOffset(
|
|
3058
|
-
const s = n.Transforms.headingPitchRollToFixedFrame(
|
|
3060
|
+
static getPositionByHprAndOffset(o, i, r) {
|
|
3061
|
+
const s = n.Transforms.headingPitchRollToFixedFrame(o, r);
|
|
3059
3062
|
return n.Matrix4.multiplyByPoint(s, i, new n.Cartesian3());
|
|
3060
3063
|
}
|
|
3061
3064
|
}
|
|
3062
3065
|
class pi {
|
|
3063
|
-
constructor(
|
|
3066
|
+
constructor(o, i, r) {
|
|
3064
3067
|
//三维场景
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
+
I(this, "viewer");
|
|
3069
|
+
I(this, "TowerFZS");
|
|
3070
|
+
I(this, "Keym", "");
|
|
3068
3071
|
// 模型模型集合
|
|
3069
|
-
|
|
3070
|
-
|
|
3072
|
+
I(this, "dataSource2");
|
|
3073
|
+
I(this, "entityCollection2");
|
|
3071
3074
|
// 创建一个数组来存储所有点实体
|
|
3072
|
-
|
|
3075
|
+
I(this, "pointEntities", []);
|
|
3073
3076
|
//杆件管理对象
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3077
|
+
I(this, "TowerLineManager");
|
|
3078
|
+
I(this, "TowerNodes", []);
|
|
3079
|
+
I(this, "connections", []);
|
|
3080
|
+
I(this, "displacementData", []);
|
|
3078
3081
|
// 在类属性中添加(浏览器环境)
|
|
3079
3082
|
// private _animationInterval: number | null = null;
|
|
3080
3083
|
// 该字段已废弃,后续如需按单元查询应力比可启用
|
|
3081
3084
|
// private byElemens: ElementStressData[] = [];
|
|
3082
|
-
|
|
3085
|
+
I(this, "byTimes", []);
|
|
3083
3086
|
// 或者如果是Node.js环境:
|
|
3084
|
-
|
|
3085
|
-
this.Keym = r, this.viewer =
|
|
3087
|
+
I(this, "_animationInterval", null);
|
|
3088
|
+
this.Keym = r, this.viewer = o, this.TowerFZS = i, this.dataSource2 = new n.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new hi(this.viewer);
|
|
3086
3089
|
}
|
|
3087
3090
|
// 类的构造函数,用于初始化属性
|
|
3088
3091
|
// private shpExporter: TowerSHPExporter;
|
|
@@ -3092,8 +3095,8 @@ class pi {
|
|
|
3092
3095
|
loadfile() {
|
|
3093
3096
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3094
3097
|
return;
|
|
3095
|
-
const { TowerNodes:
|
|
3096
|
-
this.TowerNodes =
|
|
3098
|
+
const { TowerNodes: o, connections: i } = ei(this.TowerFZS.towerFZinfo);
|
|
3099
|
+
this.TowerNodes = o, this.connections = i, this.displacementData = oi(this.TowerFZS.towerDisFile);
|
|
3097
3100
|
const { byTime: r } = ri(this.TowerFZS.stressFileContent);
|
|
3098
3101
|
this.byTimes = r;
|
|
3099
3102
|
debugger;
|
|
@@ -3102,12 +3105,12 @@ class pi {
|
|
|
3102
3105
|
loadFZTower() {
|
|
3103
3106
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3104
3107
|
return;
|
|
3105
|
-
let
|
|
3108
|
+
let o = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
3106
3109
|
const i = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
3107
3110
|
this.connections.forEach((r) => {
|
|
3108
|
-
const s = this.TowerNodes.find((l) => l.id === r.from),
|
|
3109
|
-
W.push(B(i, L,
|
|
3110
|
-
const
|
|
3111
|
+
const s = this.TowerNodes.find((l) => l.id === r.from), c = 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);
|
|
3112
|
+
W.push(B(i, L, o));
|
|
3113
|
+
const p = os(
|
|
3111
3114
|
this.viewer,
|
|
3112
3115
|
W[0],
|
|
3113
3116
|
(s == null ? void 0 : s.id) + "",
|
|
@@ -3118,9 +3121,9 @@ class pi {
|
|
|
3118
3121
|
pixelOffset: [0, -30]
|
|
3119
3122
|
}
|
|
3120
3123
|
);
|
|
3121
|
-
this.pointEntities.push(
|
|
3122
|
-
const
|
|
3123
|
-
W.push(B(i,
|
|
3124
|
+
this.pointEntities.push(p);
|
|
3125
|
+
const w = new n.Cartesian3(c == null ? void 0 : c.x, c == null ? void 0 : c.y, c == null ? void 0 : c.z);
|
|
3126
|
+
W.push(B(i, w, o));
|
|
3124
3127
|
const t = os(
|
|
3125
3128
|
this.viewer,
|
|
3126
3129
|
W[1],
|
|
@@ -3155,16 +3158,16 @@ class pi {
|
|
|
3155
3158
|
* 加载指定时间步的位移塔架模型
|
|
3156
3159
|
* @param timedis 时间步索引
|
|
3157
3160
|
*/
|
|
3158
|
-
loadFZDISTower(
|
|
3161
|
+
loadFZDISTower(o) {
|
|
3159
3162
|
if (this.Keym !== "OW_JPS_EEngin_001")
|
|
3160
3163
|
return;
|
|
3161
|
-
const r = Is(this.displacementData)[
|
|
3164
|
+
const r = Is(this.displacementData)[o], s = this.byTimes.find((L) => L.timeIndex === o);
|
|
3162
3165
|
debugger;
|
|
3163
3166
|
if (!r) {
|
|
3164
|
-
console.warn(`未找到时间步 ${
|
|
3167
|
+
console.warn(`未找到时间步 ${o} 的位移数据`);
|
|
3165
3168
|
return;
|
|
3166
3169
|
}
|
|
3167
|
-
const
|
|
3170
|
+
const c = new n.HeadingPitchRoll(
|
|
3168
3171
|
n.Math.toRadians(this.TowerFZS.RollX),
|
|
3169
3172
|
this.TowerFZS.RollY,
|
|
3170
3173
|
this.TowerFZS.RollZ
|
|
@@ -3174,8 +3177,8 @@ class pi {
|
|
|
3174
3177
|
this.TowerFZS.Altitude
|
|
3175
3178
|
);
|
|
3176
3179
|
this.connections.forEach((L) => {
|
|
3177
|
-
const
|
|
3178
|
-
if (!
|
|
3180
|
+
const p = this.TowerNodes.find((y) => y.id === L.from), w = this.TowerNodes.find((y) => y.id === L.to);
|
|
3181
|
+
if (!p || !w) {
|
|
3179
3182
|
console.warn(`找不到连接 ${L.from}->${L.to} 的节点`);
|
|
3180
3183
|
return;
|
|
3181
3184
|
}
|
|
@@ -3186,16 +3189,16 @@ class pi {
|
|
|
3186
3189
|
return;
|
|
3187
3190
|
}
|
|
3188
3191
|
const u = new n.Cartesian3(
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
+
p.x - t.x,
|
|
3193
|
+
p.y - t.y,
|
|
3194
|
+
p.z - t.z
|
|
3192
3195
|
), C = new n.Cartesian3(
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
),
|
|
3196
|
+
w.x - l.x,
|
|
3197
|
+
w.y - l.y,
|
|
3198
|
+
w.z - l.z
|
|
3199
|
+
), e = B(W, u, c), T = os(
|
|
3197
3200
|
this.viewer,
|
|
3198
|
-
|
|
3201
|
+
e,
|
|
3199
3202
|
L.from + "",
|
|
3200
3203
|
{
|
|
3201
3204
|
pointColor: n.Color.RED,
|
|
@@ -3204,8 +3207,8 @@ class pi {
|
|
|
3204
3207
|
pixelOffset: [0, -30]
|
|
3205
3208
|
}
|
|
3206
3209
|
);
|
|
3207
|
-
this.pointEntities.push(
|
|
3208
|
-
const m = B(W, C,
|
|
3210
|
+
this.pointEntities.push(T);
|
|
3211
|
+
const m = B(W, C, c), b = os(
|
|
3209
3212
|
this.viewer,
|
|
3210
3213
|
m,
|
|
3211
3214
|
L.to + "",
|
|
@@ -3217,9 +3220,9 @@ class pi {
|
|
|
3217
3220
|
}
|
|
3218
3221
|
);
|
|
3219
3222
|
this.pointEntities.push(b);
|
|
3220
|
-
const
|
|
3223
|
+
const d = [e, m], P = L.from + "-" + L.to, g = s == null ? void 0 : s.elements.find((y) => y.elementId === P);
|
|
3221
3224
|
debugger;
|
|
3222
|
-
this.TowerLineManager.addLine(
|
|
3225
|
+
this.TowerLineManager.addLine(d, {
|
|
3223
3226
|
color: g == null ? void 0 : g.ylbColor,
|
|
3224
3227
|
width: 3,
|
|
3225
3228
|
clampToGround: !1,
|
|
@@ -3230,19 +3233,19 @@ class pi {
|
|
|
3230
3233
|
});
|
|
3231
3234
|
}
|
|
3232
3235
|
//加载指定位移
|
|
3233
|
-
loadFZDISTower1(
|
|
3236
|
+
loadFZDISTower1(o) {
|
|
3234
3237
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
3235
3238
|
return;
|
|
3236
3239
|
const i = Is(this.displacementData);
|
|
3237
3240
|
let r = new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX), this.TowerFZS.RollY, this.TowerFZS.RollZ);
|
|
3238
3241
|
const s = n.Cartesian3.fromDegrees(this.TowerFZS.Longitude, this.TowerFZS.Latitude, this.TowerFZS.Altitude);
|
|
3239
|
-
this.connections.forEach((
|
|
3240
|
-
const W = this.TowerNodes.find((C) => C.id ===
|
|
3242
|
+
this.connections.forEach((c) => {
|
|
3243
|
+
const W = this.TowerNodes.find((C) => C.id === c.from), L = i[o].find((C) => C.nodeId === c.from), p = this.TowerNodes.find((C) => C.id === c.to), w = i[o].find((C) => C.nodeId === c.to), t = [], l = new n.Cartesian3(W.x - L.x, W.y - L.y, W.z - L.z);
|
|
3241
3244
|
t.push(B(s, l, r));
|
|
3242
|
-
const u = new n.Cartesian3(
|
|
3245
|
+
const u = new n.Cartesian3(p.x - w.x, p.y - w.y, p.z - w.z);
|
|
3243
3246
|
t.push(B(s, u, r));
|
|
3244
3247
|
debugger;
|
|
3245
|
-
this.entityCollection2.add(h(t,
|
|
3248
|
+
this.entityCollection2.add(h(t, c.from + "" + c.to, this.TowerFZS.TowerMembersWidth, this.TowerFZS.TowerMemberColor));
|
|
3246
3249
|
});
|
|
3247
3250
|
}
|
|
3248
3251
|
/**
|
|
@@ -3255,17 +3258,17 @@ class pi {
|
|
|
3255
3258
|
console.warn("没有可用的位移数据");
|
|
3256
3259
|
return;
|
|
3257
3260
|
}
|
|
3258
|
-
let
|
|
3261
|
+
let o = 1;
|
|
3259
3262
|
const i = this.displacementData.length;
|
|
3260
3263
|
this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3261
3264
|
const r = () => {
|
|
3262
|
-
if (this.viewer.dataSources.contains(this.dataSource2) && this.viewer.dataSources.remove(this.dataSource2, !0),
|
|
3263
|
-
|
|
3265
|
+
if (this.viewer.dataSources.contains(this.dataSource2) && this.viewer.dataSources.remove(this.dataSource2, !0), o > i) {
|
|
3266
|
+
o = 1;
|
|
3264
3267
|
return;
|
|
3265
3268
|
}
|
|
3266
3269
|
this.dataSource2 = new n.CustomDataSource("fztower"), this.entityCollection2 = this.dataSource2.entities;
|
|
3267
3270
|
try {
|
|
3268
|
-
this.loadFZDISTower(
|
|
3271
|
+
this.loadFZDISTower(o), this.loadFZModel(), console.log(`正在显示位移帧: ${o}/${i}`), o++;
|
|
3269
3272
|
} catch (s) {
|
|
3270
3273
|
console.error("加载位移帧时出错:", s), this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3271
3274
|
}
|
|
@@ -3277,20 +3280,20 @@ class pi {
|
|
|
3277
3280
|
this._animationInterval && (clearInterval(this._animationInterval), this._animationInterval = null);
|
|
3278
3281
|
}
|
|
3279
3282
|
// 暂停/继续动画
|
|
3280
|
-
toggleAnimation(
|
|
3281
|
-
|
|
3283
|
+
toggleAnimation(o) {
|
|
3284
|
+
o ? this.stopDisplacementAnimation() : this.loadAllFZDisTower();
|
|
3282
3285
|
}
|
|
3283
3286
|
//加载仿真模型
|
|
3284
3287
|
loadFZModel() {
|
|
3285
3288
|
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSource2), this.viewer.entities.show);
|
|
3286
3289
|
}
|
|
3287
3290
|
//设置显隐
|
|
3288
|
-
setFZModelVisible(
|
|
3289
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show =
|
|
3291
|
+
setFZModelVisible(o) {
|
|
3292
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.entityCollection2.show = o);
|
|
3290
3293
|
}
|
|
3291
3294
|
//移除渲染电力线路
|
|
3292
3295
|
RemoveFZModel() {
|
|
3293
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.TowerLineManager.removeAll(), this.pointEntities.forEach((
|
|
3296
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.TowerLineManager.removeAll(), this.pointEntities.forEach((o) => this.viewer.entities.remove(o)), this.pointEntities.length = 0);
|
|
3294
3297
|
}
|
|
3295
3298
|
}
|
|
3296
3299
|
export {
|
|
@@ -3302,12 +3305,12 @@ export {
|
|
|
3302
3305
|
ti as LineType,
|
|
3303
3306
|
pi as OWEEgineFZManager,
|
|
3304
3307
|
ws as OWEEgineManager,
|
|
3305
|
-
|
|
3308
|
+
$ as PhaseSType,
|
|
3306
3309
|
Ai as TowerFZInfo,
|
|
3307
3310
|
ci as TowerInfo,
|
|
3308
3311
|
li as TowerLineInfo,
|
|
3309
3312
|
V as TowerType,
|
|
3310
3313
|
ui as TreeType,
|
|
3311
|
-
|
|
3314
|
+
A as WairnumType,
|
|
3312
3315
|
Cs as drawModel
|
|
3313
3316
|
};
|