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