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