ow-eengine-power 2.8.1 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OW_EEngine_Power.js +616 -625
- package/dist/OW_EEngine_Power.umd.cjs +4 -6
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -171,7 +171,7 @@ function Me(h, t, s) {
|
|
|
171
171
|
};
|
|
172
172
|
return Ct(W, t, s);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function J(h, t, s) {
|
|
175
175
|
if (s === void 0 && (s = {}), h.length < 2)
|
|
176
176
|
throw new Error("coordinates must be an array of two or more positions");
|
|
177
177
|
var r = {
|
|
@@ -207,14 +207,14 @@ function Qt(h, t) {
|
|
|
207
207
|
throw new Error(t + " units is invalid");
|
|
208
208
|
return h / s;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function _e(h, t) {
|
|
211
211
|
return Mt(Qt(h, t));
|
|
212
212
|
}
|
|
213
213
|
function Mt(h) {
|
|
214
214
|
var t = h % (2 * Math.PI);
|
|
215
215
|
return t * 180 / Math.PI;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function ot(h) {
|
|
218
218
|
var t = h % 360;
|
|
219
219
|
return t * Math.PI / 180;
|
|
220
220
|
}
|
|
@@ -234,7 +234,7 @@ function de(h, t, s) {
|
|
|
234
234
|
for (var r, e, a, n, W, u, c, i = 0, l = 0, T, p = h.type, o = p === "FeatureCollection", A = p === "Feature", g = o ? h.features.length : 1, y = 0; y < g; y++) {
|
|
235
235
|
c = o ? h.features[y].geometry : A ? h.geometry : h, T = c ? c.type === "GeometryCollection" : !1, W = T ? c.geometries.length : 1;
|
|
236
236
|
for (var L = 0; L < W; L++) {
|
|
237
|
-
var
|
|
237
|
+
var m = 0, B = 0;
|
|
238
238
|
if (n = T ? c.geometries[L] : c, n !== null) {
|
|
239
239
|
u = n.coordinates;
|
|
240
240
|
var v = n.type;
|
|
@@ -246,11 +246,11 @@ function de(h, t, s) {
|
|
|
246
246
|
u,
|
|
247
247
|
l,
|
|
248
248
|
y,
|
|
249
|
-
|
|
249
|
+
m,
|
|
250
250
|
B
|
|
251
251
|
) === !1)
|
|
252
252
|
return !1;
|
|
253
|
-
l++,
|
|
253
|
+
l++, m++;
|
|
254
254
|
break;
|
|
255
255
|
case "LineString":
|
|
256
256
|
case "MultiPoint":
|
|
@@ -259,13 +259,13 @@ function de(h, t, s) {
|
|
|
259
259
|
u[r],
|
|
260
260
|
l,
|
|
261
261
|
y,
|
|
262
|
-
|
|
262
|
+
m,
|
|
263
263
|
B
|
|
264
264
|
) === !1)
|
|
265
265
|
return !1;
|
|
266
|
-
l++, v === "MultiPoint" &&
|
|
266
|
+
l++, v === "MultiPoint" && m++;
|
|
267
267
|
}
|
|
268
|
-
v === "LineString" &&
|
|
268
|
+
v === "LineString" && m++;
|
|
269
269
|
break;
|
|
270
270
|
case "Polygon":
|
|
271
271
|
case "MultiLineString":
|
|
@@ -275,15 +275,15 @@ function de(h, t, s) {
|
|
|
275
275
|
u[r][e],
|
|
276
276
|
l,
|
|
277
277
|
y,
|
|
278
|
-
|
|
278
|
+
m,
|
|
279
279
|
B
|
|
280
280
|
) === !1)
|
|
281
281
|
return !1;
|
|
282
282
|
l++;
|
|
283
283
|
}
|
|
284
|
-
v === "MultiLineString" &&
|
|
284
|
+
v === "MultiLineString" && m++, v === "Polygon" && B++;
|
|
285
285
|
}
|
|
286
|
-
v === "Polygon" &&
|
|
286
|
+
v === "Polygon" && m++;
|
|
287
287
|
break;
|
|
288
288
|
case "MultiPolygon":
|
|
289
289
|
for (r = 0; r < u.length; r++) {
|
|
@@ -293,7 +293,7 @@ function de(h, t, s) {
|
|
|
293
293
|
u[r][e][a],
|
|
294
294
|
l,
|
|
295
295
|
y,
|
|
296
|
-
|
|
296
|
+
m,
|
|
297
297
|
B
|
|
298
298
|
) === !1)
|
|
299
299
|
return !1;
|
|
@@ -301,7 +301,7 @@ function de(h, t, s) {
|
|
|
301
301
|
}
|
|
302
302
|
B++;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
m++;
|
|
305
305
|
}
|
|
306
306
|
break;
|
|
307
307
|
case "GeometryCollection":
|
|
@@ -316,7 +316,7 @@ function de(h, t, s) {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Se(h, t) {
|
|
320
320
|
if (h.type === "Feature")
|
|
321
321
|
t(h, 0);
|
|
322
322
|
else if (h.type === "FeatureCollection")
|
|
@@ -424,7 +424,7 @@ function Fe(h, t) {
|
|
|
424
424
|
W = l, u = r, c = o, i = A, a = 0;
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
|
-
var g =
|
|
427
|
+
var g = J(
|
|
428
428
|
[W, l],
|
|
429
429
|
s.properties
|
|
430
430
|
);
|
|
@@ -477,20 +477,20 @@ function ee(h, t, s) {
|
|
|
477
477
|
if (!h.geometry || h.geometry.type !== t)
|
|
478
478
|
throw new Error("Invalid input to " + s + ": must be a " + t + ", given " + h.geometry.type);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Ze(h) {
|
|
481
481
|
return h.type === "Feature" ? h.geometry : h;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Xe(h, t) {
|
|
484
484
|
return h.type === "FeatureCollection" ? "FeatureCollection" : h.type === "GeometryCollection" ? "GeometryCollection" : h.type === "Feature" && h.geometry !== null ? h.geometry.type : h.type;
|
|
485
485
|
}
|
|
486
|
-
var
|
|
487
|
-
function
|
|
486
|
+
var It = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
487
|
+
function $e(h, t, s) {
|
|
488
488
|
if (s === void 0 && (s = {}), !h)
|
|
489
489
|
throw new Error("point is required");
|
|
490
490
|
if (!t)
|
|
491
491
|
throw new Error("polygon is required");
|
|
492
|
-
var r = dt(h), e =
|
|
493
|
-
if (n &&
|
|
492
|
+
var r = dt(h), e = Ze(t), a = e.type, n = t.bbox, W = e.coordinates;
|
|
493
|
+
if (n && Ve(r, n) === !1)
|
|
494
494
|
return !1;
|
|
495
495
|
a === "Polygon" && (W = [W]);
|
|
496
496
|
for (var u = !1, c = 0; c < W.length && !u; c++)
|
|
@@ -513,15 +513,15 @@ function se(h, t, s) {
|
|
|
513
513
|
}
|
|
514
514
|
return r;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ve(h, t) {
|
|
517
517
|
return t[0] <= h[0] && t[1] <= h[1] && t[2] >= h[0] && t[3] >= h[1];
|
|
518
518
|
}
|
|
519
519
|
function ct(h, t, s) {
|
|
520
520
|
s === void 0 && (s = {});
|
|
521
|
-
var r = dt(h), e = dt(t), a =
|
|
521
|
+
var r = dt(h), e = dt(t), a = ot(e[1] - r[1]), n = ot(e[0] - r[0]), W = ot(r[1]), u = ot(e[1]), c = Math.pow(Math.sin(a / 2), 2) + Math.pow(Math.sin(n / 2), 2) * Math.cos(W) * Math.cos(u);
|
|
522
522
|
return ue(2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)), s.units);
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Ye(h) {
|
|
525
525
|
if (!h)
|
|
526
526
|
throw new Error("geojson is required");
|
|
527
527
|
switch (h.type) {
|
|
@@ -591,20 +591,20 @@ function we(h) {
|
|
|
591
591
|
}
|
|
592
592
|
function zt(h, t, s, r) {
|
|
593
593
|
r === void 0 && (r = {});
|
|
594
|
-
var e = dt(h), a =
|
|
594
|
+
var e = dt(h), a = ot(e[0]), n = ot(e[1]), W = ot(s), u = Qt(t, r.units), c = Math.asin(Math.sin(n) * Math.cos(u) + Math.cos(n) * Math.sin(u) * Math.cos(W)), i = a + Math.atan2(Math.sin(W) * Math.sin(u) * Math.cos(n), Math.cos(u) - Math.sin(n) * Math.sin(c)), l = Mt(i), T = Mt(c);
|
|
595
595
|
return st([l, T], r.properties);
|
|
596
596
|
}
|
|
597
597
|
function Et(h, t, s) {
|
|
598
598
|
if (s === void 0 && (s = {}), s.final === !0)
|
|
599
|
-
return
|
|
600
|
-
var r = dt(h), e = dt(t), a =
|
|
599
|
+
return Oe(h, t);
|
|
600
|
+
var r = dt(h), e = dt(t), a = ot(r[0]), n = ot(e[0]), W = ot(r[1]), u = ot(e[1]), c = Math.sin(n - a) * Math.cos(u), i = Math.cos(W) * Math.sin(u) - Math.sin(W) * Math.cos(u) * Math.cos(n - a);
|
|
601
601
|
return Mt(Math.atan2(c, i));
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Oe(h, t) {
|
|
604
604
|
var s = Et(t, h);
|
|
605
605
|
return s = (s + 180) % 360, s;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Ne(h, t) {
|
|
608
608
|
var s = ct(h, t), r = Et(h, t), e = zt(h, s / 2, r);
|
|
609
609
|
return e;
|
|
610
610
|
}
|
|
@@ -614,10 +614,10 @@ function Ge(h, t) {
|
|
|
614
614
|
if (!t)
|
|
615
615
|
throw new Error("points is required");
|
|
616
616
|
var s, r = 1 / 0, e = 0;
|
|
617
|
-
return
|
|
617
|
+
return Se(t, function(a, n) {
|
|
618
618
|
var W = ct(h, a);
|
|
619
619
|
W < r && (e = n, r = W);
|
|
620
|
-
}), s =
|
|
620
|
+
}), s = Ye(t.features[e]), s.properties.featureIndex = e, s.properties.distanceToPoint = r, s;
|
|
621
621
|
}
|
|
622
622
|
function ze(h, t, s) {
|
|
623
623
|
s === void 0 && (s = {});
|
|
@@ -633,12 +633,12 @@ function Ke(h, t, s) {
|
|
|
633
633
|
var u = Math.log(Math.tan(a / 2 + Math.PI / 4) / Math.tan(e / 2 + Math.PI / 4)), c = Math.abs(u) > 1e-11 ? n / u : Math.cos(e), i = Math.sqrt(n * n + c * c * W * W), l = i * r;
|
|
634
634
|
return l;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function At(h, t, s) {
|
|
637
637
|
if (s === void 0 && (s = {}), s.method || (s.method = "geodesic"), s.units || (s.units = "kilometers"), !h)
|
|
638
638
|
throw new Error("pt is required");
|
|
639
639
|
if (Array.isArray(h) ? h = st(h) : h.type === "Point" ? h = Ct(h) : ee(h, "Point", "point"), !t)
|
|
640
640
|
throw new Error("line is required");
|
|
641
|
-
Array.isArray(t) ? t =
|
|
641
|
+
Array.isArray(t) ? t = J(t) : t.type === "LineString" ? t = Ct(t) : ee(t, "LineString", "line");
|
|
642
642
|
var r = 1 / 0, e = h.geometry.coordinates;
|
|
643
643
|
return Fe(t, function(a) {
|
|
644
644
|
var n = a.geometry.coordinates[0], W = a.geometry.coordinates[1], u = qe(e, n, W, s);
|
|
@@ -648,17 +648,17 @@ function wt(h, t, s) {
|
|
|
648
648
|
function qe(h, t, s, r) {
|
|
649
649
|
var e = [s[0] - t[0], s[1] - t[1]], a = [h[0] - t[0], h[1] - t[1]], n = ie(a, e);
|
|
650
650
|
if (n <= 0)
|
|
651
|
-
return
|
|
651
|
+
return Vt(h, t, { method: r.method, units: "degrees" });
|
|
652
652
|
var W = ie(e, e);
|
|
653
653
|
if (W <= n)
|
|
654
|
-
return
|
|
654
|
+
return Vt(h, s, { method: r.method, units: "degrees" });
|
|
655
655
|
var u = n / W, c = [t[0] + u * e[0], t[1] + u * e[1]];
|
|
656
|
-
return
|
|
656
|
+
return Vt(h, c, { method: r.method, units: "degrees" });
|
|
657
657
|
}
|
|
658
658
|
function ie(h, t) {
|
|
659
659
|
return h[0] * t[0] + h[1] * t[1];
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Vt(h, t, s) {
|
|
662
662
|
return s.method === "planar" ? ze(h, t, s) : ct(h, t, s);
|
|
663
663
|
}
|
|
664
664
|
function Le(h, t, s, r) {
|
|
@@ -670,19 +670,19 @@ function Le(h, t, s, r) {
|
|
|
670
670
|
for (var n = e.length, W = 0, u, c, i, l = 0; l < e.length && !(t >= W && l === e.length - 1); l++) {
|
|
671
671
|
if (W > t && a.length === 0) {
|
|
672
672
|
if (u = t - W, !u)
|
|
673
|
-
return a.push(e[l]),
|
|
673
|
+
return a.push(e[l]), J(a);
|
|
674
674
|
c = Et(e[l], e[l - 1]) - 180, i = zt(e[l], u, c, r), a.push(i.geometry.coordinates);
|
|
675
675
|
}
|
|
676
676
|
if (W >= s)
|
|
677
|
-
return u = s - W, u ? (c = Et(e[l], e[l - 1]) - 180, i = zt(e[l], u, c, r), a.push(i.geometry.coordinates),
|
|
677
|
+
return u = s - W, u ? (c = Et(e[l], e[l - 1]) - 180, i = zt(e[l], u, c, r), a.push(i.geometry.coordinates), J(a)) : (a.push(e[l]), J(a));
|
|
678
678
|
if (W >= t && a.push(e[l]), l === e.length - 1)
|
|
679
|
-
return
|
|
679
|
+
return J(a);
|
|
680
680
|
W += ct(e[l], e[l + 1], r);
|
|
681
681
|
}
|
|
682
682
|
if (W < t && e.length === n)
|
|
683
683
|
throw new Error("Start position is beyond line");
|
|
684
684
|
var T = e[e.length - 1];
|
|
685
|
-
return
|
|
685
|
+
return J([T, T]);
|
|
686
686
|
}
|
|
687
687
|
function Rt(h) {
|
|
688
688
|
var t = h[0], s = h[1];
|
|
@@ -717,7 +717,7 @@ function qt(h, t, s) {
|
|
|
717
717
|
if (!h) throw new Error("geojson is required");
|
|
718
718
|
if (t == null || isNaN(t))
|
|
719
719
|
throw new Error("distance is required");
|
|
720
|
-
var e =
|
|
720
|
+
var e = Xe(h), a = h.properties;
|
|
721
721
|
switch (e) {
|
|
722
722
|
case "LineString":
|
|
723
723
|
return oe(h, t, r);
|
|
@@ -733,7 +733,7 @@ function qt(h, t, s) {
|
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
function oe(h, t, s) {
|
|
736
|
-
var r = [], e =
|
|
736
|
+
var r = [], e = _e(t, s), a = Gt(h), n = [];
|
|
737
737
|
return a.forEach(function(W, u) {
|
|
738
738
|
if (u !== a.length - 1) {
|
|
739
739
|
var c = es(
|
|
@@ -747,7 +747,7 @@ function oe(h, t, s) {
|
|
|
747
747
|
}
|
|
748
748
|
a.length === 2 && (n.push(c[0]), n.push(c[1]));
|
|
749
749
|
}
|
|
750
|
-
}),
|
|
750
|
+
}), J(n, h.properties);
|
|
751
751
|
}
|
|
752
752
|
function es(h, t, s) {
|
|
753
753
|
var r = Math.sqrt(
|
|
@@ -799,7 +799,7 @@ class zs {
|
|
|
799
799
|
w(this, "modelbox", "");
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
var
|
|
802
|
+
var U = /* @__PURE__ */ ((h) => (h[h.树木 = 0] = "树木", h[h.房屋 = 1] = "房屋", h[h.高速公路 = 2] = "高速公路", h[h.电力线 = 3] = "电力线", h[h.导线 = 4] = "导线", h[h.地面 = 5] = "地面", h[h.其他地物 = 6] = "其他地物", h))(U || {});
|
|
803
803
|
class Ks {
|
|
804
804
|
constructor() {
|
|
805
805
|
// 杆塔id
|
|
@@ -894,7 +894,7 @@ class Js {
|
|
|
894
894
|
w(this, "Z", 0);
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
var x = /* @__PURE__ */ ((h) => (h[h.A相 = 0] = "A相", h[h.B相 = 1] = "B相", h[h.C相 = 2] = "C相", h[h.地线1 = 3] = "地线1", h[h.地线2 = 4] = "地线2", h))(x || {}),
|
|
897
|
+
var x = /* @__PURE__ */ ((h) => (h[h.A相 = 0] = "A相", h[h.B相 = 1] = "B相", h[h.C相 = 2] = "C相", h[h.地线1 = 3] = "地线1", h[h.地线2 = 4] = "地线2", h))(x || {}), it = /* @__PURE__ */ ((h) => (h[h.直线塔 = 0] = "直线塔", h[h.耐张塔 = 1] = "耐张塔", h[h.门架塔 = 2] = "门架塔", h[h.换位塔 = 3] = "换位塔", h))(it || {}), ss = /* @__PURE__ */ ((h) => (h[h.交流单回路 = 0] = "交流单回路", h[h.交流双回路 = 1] = "交流双回路", h[h.直流单回路 = 2] = "直流单回路", h[h.直流双回路 = 3] = "直流双回路", h[h.交流四回路 = 4] = "交流四回路", h))(ss || {}), Dt = /* @__PURE__ */ ((h) => (h[h.地线 = 0] = "地线", h[h.回路一 = 1] = "回路一", h[h.回路二 = 2] = "回路二", h[h.回路三 = 3] = "回路三", h[h.回路四 = 4] = "回路四", h))(Dt || {}), z = /* @__PURE__ */ ((h) => (h[h.悬垂串 = 0] = "悬垂串", h[h.耐张串 = 1] = "耐张串", h[h.跳线串 = 2] = "跳线串", h[h.硬跳串 = 3] = "硬跳串", h[h.V串 = 4] = "V串", h[h.地线串 = 5] = "地线串", h[h.绕跳临时 = 6] = "绕跳临时", h))(z || {}), I = /* @__PURE__ */ ((h) => (h[h.单分裂 = 0] = "单分裂", h[h.双分裂 = 1] = "双分裂", h[h.四分裂 = 2] = "四分裂", h[h.六分裂 = 3] = "六分裂", h[h.八分裂 = 4] = "八分裂", h))(I || {}), q = /* @__PURE__ */ ((h) => (h[h.直线距离 = 0] = "直线距离", h[h.水平距离 = 1] = "水平距离", h[h.垂直距离 = 2] = "垂直距离", h[h.净空距离 = 3] = "净空距离", h[h.安全距离 = 4] = "安全距离", h[h.线间距离测量 = 5] = "线间距离测量", h))(q || {});
|
|
898
898
|
class ge {
|
|
899
899
|
constructor() {
|
|
900
900
|
// 水平距离规则配置
|
|
@@ -915,8 +915,8 @@ class Ie {
|
|
|
915
915
|
w(this, "typeRules", /* @__PURE__ */ new Map());
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
var
|
|
919
|
-
class
|
|
918
|
+
var N = /* @__PURE__ */ ((h) => (h[h.A相 = 0] = "A相", h[h.B相 = 1] = "B相", h[h.C相 = 2] = "C相", h[h.地线1 = 3] = "地线1", h[h.地线2 = 4] = "地线2", h[h.全部 = 5] = "全部", h))(N || {});
|
|
919
|
+
class Yt {
|
|
920
920
|
constructor() {
|
|
921
921
|
// 按相序组合存储的距离规则配置
|
|
922
922
|
// key格式: "A-B", "A-C", "B-C", "A-地线1", "B-地线2", 等
|
|
@@ -968,44 +968,43 @@ function Pt(h, t, s, r) {
|
|
|
968
968
|
}
|
|
969
969
|
function Ht(h, t) {
|
|
970
970
|
if (!t || t.length === 0)
|
|
971
|
-
return
|
|
971
|
+
return 1 / 0;
|
|
972
972
|
let s = 1 / 0;
|
|
973
973
|
for (let e = 0; e < t.length; e++) {
|
|
974
974
|
const a = t[e], n = h[0] - a[0], W = h[1] - a[1], u = n * n + W * W;
|
|
975
975
|
u < s && (s = u);
|
|
976
976
|
}
|
|
977
|
-
|
|
978
|
-
return console.log(`fastPointToLineDistance result: ${r}`), r;
|
|
977
|
+
return Math.sqrt(s);
|
|
979
978
|
}
|
|
980
979
|
const vt = () => ({
|
|
981
980
|
horizontalLevels: [
|
|
982
|
-
{ name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
983
|
-
{ name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
984
|
-
{ name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
985
|
-
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
981
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
982
|
+
{ id: "danger", name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
983
|
+
{ id: "warning", name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
984
|
+
{ id: "safe", name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
986
985
|
],
|
|
987
986
|
verticalLevels: [
|
|
988
|
-
{ name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
989
|
-
{ name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
990
|
-
{ name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
991
|
-
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
987
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
988
|
+
{ id: "danger", name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
989
|
+
{ id: "warning", name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
990
|
+
{ id: "safe", name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
992
991
|
],
|
|
993
992
|
straightLineLevels: [
|
|
994
|
-
{ name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
995
|
-
{ name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
996
|
-
{ name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
997
|
-
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
993
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
994
|
+
{ id: "danger", name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
995
|
+
{ id: "warning", name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
996
|
+
{ id: "safe", name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
998
997
|
],
|
|
999
998
|
clearanceLevels: [
|
|
1000
|
-
{ name: "critical", minDistance: 0, maxDistance: 10, color: "#ff0000" },
|
|
1001
|
-
{ name: "danger", minDistance: 10, maxDistance: 15, color: "#ff6600" },
|
|
1002
|
-
{ name: "warning", minDistance: 15, maxDistance: 20, color: "#ffa500" },
|
|
1003
|
-
{ name: "safe", minDistance: 20, maxDistance: 1 / 0, color: "#00ff00" }
|
|
999
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 10, color: "#ff0000" },
|
|
1000
|
+
{ id: "danger", name: "danger", minDistance: 10, maxDistance: 15, color: "#ff6600" },
|
|
1001
|
+
{ id: "warning", name: "warning", minDistance: 15, maxDistance: 20, color: "#ffa500" },
|
|
1002
|
+
{ id: "safe", name: "safe", minDistance: 20, maxDistance: 1 / 0, color: "#00ff00" }
|
|
1004
1003
|
]
|
|
1005
1004
|
}), os = () => {
|
|
1006
1005
|
const h = new Ie();
|
|
1007
|
-
return h.typeRules.set(
|
|
1008
|
-
}, re = os(), rs = (h, t) => h.typeRules.get(t) || new ge(), Wt = (h, t, s, r = re, e, a =
|
|
1006
|
+
return h.typeRules.set(U.树木, vt()), h.typeRules.set(U.房屋, vt()), h.typeRules.set(U.高速公路, vt()), h.typeRules.set(U.电力线, vt()), h;
|
|
1007
|
+
}, re = os(), rs = (h, t) => h.typeRules.get(t) || new ge(), Wt = (h, t, s, r = re, e, a = U.树木) => {
|
|
1009
1008
|
const W = rs(r || re, a), u = st(h.slice(0, 2)), { nearestCoord: c } = me(h, t), i = t.findIndex(
|
|
1010
1009
|
(H) => H[0] == c[0] && H[1] == c[1]
|
|
1011
1010
|
);
|
|
@@ -1015,51 +1014,46 @@ const vt = () => ({
|
|
|
1015
1014
|
else if (i == t.length - 1)
|
|
1016
1015
|
l.push(t[t.length - 2], t[t.length - 1]);
|
|
1017
1016
|
else {
|
|
1018
|
-
const H = [t[i], t[i + 1]],
|
|
1019
|
-
var T =
|
|
1020
|
-
l = T > p ?
|
|
1017
|
+
const H = [t[i], t[i + 1]], K = [t[i - 1], t[i]];
|
|
1018
|
+
var T = At(u, J(H), et), p = At(u, J(K), et);
|
|
1019
|
+
l = T > p ? K : H;
|
|
1021
1020
|
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
var y = wt(u, o, et), L = ct(u, A, et) || 0, I = Math.sqrt(L * L - y * y) || 0;
|
|
1021
|
+
const o = J([l[0].slice(0, 2), l[1].slice(0, 2)]), A = st(l[0].slice(0, 2)), g = st(l[1].slice(0, 2));
|
|
1022
|
+
var y = At(u, o, et), L = ct(u, A, et) || 0, m = Math.sqrt(L * L - y * y) || 0;
|
|
1025
1023
|
let B = l[0].slice(0, 2);
|
|
1026
|
-
|
|
1027
|
-
const v = ct(A, g, et), b = Math.abs(l[0][2] - l[1][2]), M = Math.min(l[0][2], l[1][2]),
|
|
1028
|
-
console.log("高度差>>>>", b), console.log("最小高度>>>>", M), console.log("最大高度>>>>", S);
|
|
1029
|
-
const E = R - h[2], D = y * 1e3, $ = Math.sqrt(D * D + E * E);
|
|
1030
|
-
console.log("水平距离>>>>", D), console.log("竖直距离>>>>", E), console.log("直线距离>>>>", $);
|
|
1024
|
+
m > 0 && (B = Le(o, 0, m, et).geometry.coordinates[1]);
|
|
1025
|
+
const v = ct(A, g, et), b = Math.abs(l[0][2] - l[1][2]), M = Math.min(l[0][2], l[1][2]), _ = Math.max(l[0][2], l[1][2]), R = l[0][2] > l[1][2] ? _ - m / v * b : m / v * b + M, E = R - h[2], D = y * 1e3, Z = Math.sqrt(D * D + E * E);
|
|
1031
1026
|
let k = "#eff819", F = f.Color.RED;
|
|
1032
|
-
const
|
|
1027
|
+
const X = f.Cartesian3.fromDegrees(
|
|
1033
1028
|
h[0],
|
|
1034
1029
|
h[1],
|
|
1035
1030
|
h[2]
|
|
1036
|
-
),
|
|
1037
|
-
|
|
1038
|
-
var V = Oe(
|
|
1031
|
+
), $ = f.Cartesian3.fromDegrees(B[0], B[1], h[2]), Y = f.Cartesian3.fromDegrees(B[0], B[1], R);
|
|
1032
|
+
var V = Ne(
|
|
1039
1033
|
st([h[0], h[1]]),
|
|
1040
1034
|
st([B[0], B[1]])
|
|
1041
1035
|
).geometry.coordinates;
|
|
1042
|
-
const
|
|
1036
|
+
const O = f.Cartesian3.fromDegrees(
|
|
1043
1037
|
V[0],
|
|
1044
1038
|
V[1],
|
|
1045
1039
|
h[2]
|
|
1046
|
-
),
|
|
1040
|
+
), wt = f.Cartesian3.fromDegrees(
|
|
1047
1041
|
V[0],
|
|
1048
1042
|
V[1],
|
|
1049
1043
|
R - E / 2
|
|
1050
|
-
),
|
|
1044
|
+
), Lt = f.Cartesian3.fromDegrees(
|
|
1051
1045
|
B[0],
|
|
1052
1046
|
B[1],
|
|
1053
1047
|
R - E / 2
|
|
1054
1048
|
);
|
|
1055
|
-
let
|
|
1056
|
-
if (e.includes(
|
|
1049
|
+
let G;
|
|
1050
|
+
if (e.includes(q.水平距离) && (W.horizontalLevels && (G = W.horizontalLevels.find(
|
|
1057
1051
|
(H) => D >= H.minDistance && D <= H.maxDistance
|
|
1058
|
-
)),
|
|
1059
|
-
k =
|
|
1052
|
+
)), G)) {
|
|
1053
|
+
k = G.color, F = f.Color.fromCssColorString(G.color);
|
|
1060
1054
|
const H = {
|
|
1061
|
-
position:
|
|
1062
|
-
name:
|
|
1055
|
+
position: O,
|
|
1056
|
+
name: G.id,
|
|
1063
1057
|
label: {
|
|
1064
1058
|
text: `水平距离${D.toFixed(1)}米`,
|
|
1065
1059
|
fillColor: f.Color.fromCssColorString(k),
|
|
@@ -1068,13 +1062,14 @@ const vt = () => ({
|
|
|
1068
1062
|
scaleByDistance: new f.NearFarScalar(1e3, 1.5, 2e3, 1),
|
|
1069
1063
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
1070
1064
|
}
|
|
1071
|
-
},
|
|
1072
|
-
|
|
1073
|
-
var
|
|
1065
|
+
}, K = [];
|
|
1066
|
+
K.push(X), K.push($);
|
|
1067
|
+
var mt = {
|
|
1068
|
+
name: G.id,
|
|
1074
1069
|
polyline: {
|
|
1075
1070
|
show: !0,
|
|
1076
1071
|
// 定义线条的 Cartesian3 位置的数组
|
|
1077
|
-
positions:
|
|
1072
|
+
positions: K,
|
|
1078
1073
|
clampToGround: !1,
|
|
1079
1074
|
// 是否贴地
|
|
1080
1075
|
width: 2,
|
|
@@ -1083,15 +1078,15 @@ const vt = () => ({
|
|
|
1083
1078
|
// 折线是投射还是接收光源的阴影
|
|
1084
1079
|
}
|
|
1085
1080
|
};
|
|
1086
|
-
s.add(H), s.add(
|
|
1081
|
+
s.add(H), s.add(mt);
|
|
1087
1082
|
}
|
|
1088
|
-
if (e.includes(
|
|
1083
|
+
if (e.includes(q.垂直距离) && (W.verticalLevels && (G = W.verticalLevels.find(
|
|
1089
1084
|
(H) => E >= H.minDistance && E <= H.maxDistance
|
|
1090
|
-
)),
|
|
1091
|
-
k =
|
|
1085
|
+
)), G)) {
|
|
1086
|
+
k = G.color, F = f.Color.fromCssColorString(G.color);
|
|
1092
1087
|
const H = {
|
|
1093
|
-
position:
|
|
1094
|
-
name:
|
|
1088
|
+
position: Lt,
|
|
1089
|
+
name: G.id,
|
|
1095
1090
|
label: {
|
|
1096
1091
|
text: `垂直距离${E.toFixed(1)}米`,
|
|
1097
1092
|
fillColor: f.Color.fromCssColorString(k),
|
|
@@ -1100,13 +1095,14 @@ const vt = () => ({
|
|
|
1100
1095
|
scaleByDistance: new f.NearFarScalar(1e3, 1.5, 2e3, 1),
|
|
1101
1096
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
1102
1097
|
}
|
|
1103
|
-
},
|
|
1104
|
-
|
|
1098
|
+
}, K = [];
|
|
1099
|
+
K.push($), K.push(Y);
|
|
1105
1100
|
var kt = {
|
|
1101
|
+
name: G.id,
|
|
1106
1102
|
polyline: {
|
|
1107
1103
|
show: !0,
|
|
1108
1104
|
// 定义线条的 Cartesian3 位置的数组
|
|
1109
|
-
positions:
|
|
1105
|
+
positions: K,
|
|
1110
1106
|
clampToGround: !1,
|
|
1111
1107
|
// 是否贴地
|
|
1112
1108
|
width: 2,
|
|
@@ -1116,28 +1112,29 @@ const vt = () => ({
|
|
|
1116
1112
|
};
|
|
1117
1113
|
s.add(H), s.add(kt);
|
|
1118
1114
|
}
|
|
1119
|
-
if (e.includes(
|
|
1120
|
-
(H) =>
|
|
1121
|
-
)),
|
|
1122
|
-
k =
|
|
1115
|
+
if (e.includes(q.直线距离) && (W.straightLineLevels && (G = W.straightLineLevels.find(
|
|
1116
|
+
(H) => Z >= H.minDistance && Z <= H.maxDistance
|
|
1117
|
+
)), G)) {
|
|
1118
|
+
k = G.color, F = f.Color.fromCssColorString(G.color);
|
|
1123
1119
|
const H = {
|
|
1124
|
-
position:
|
|
1125
|
-
name:
|
|
1120
|
+
position: wt,
|
|
1121
|
+
name: G.id,
|
|
1126
1122
|
label: {
|
|
1127
|
-
text: `直线距离${
|
|
1123
|
+
text: `直线距离${Z.toFixed(1)}米`,
|
|
1128
1124
|
fillColor: f.Color.fromCssColorString(k),
|
|
1129
1125
|
font: "12px sans-serif",
|
|
1130
1126
|
pixelOffset: new f.Cartesian2(0, 0),
|
|
1131
1127
|
scaleByDistance: new f.NearFarScalar(1e3, 1.5, 2e3, 1),
|
|
1132
1128
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
1133
1129
|
}
|
|
1134
|
-
},
|
|
1135
|
-
|
|
1130
|
+
}, K = [];
|
|
1131
|
+
K.push(X), K.push(Y);
|
|
1136
1132
|
var gt = {
|
|
1133
|
+
name: G.id,
|
|
1137
1134
|
polyline: {
|
|
1138
1135
|
show: !0,
|
|
1139
1136
|
// 定义线条的 Cartesian3 位置的数组
|
|
1140
|
-
positions:
|
|
1137
|
+
positions: K,
|
|
1141
1138
|
clampToGround: !1,
|
|
1142
1139
|
// 是否贴地
|
|
1143
1140
|
width: 2,
|
|
@@ -1159,14 +1156,14 @@ const vt = () => ({
|
|
|
1159
1156
|
n.push(t[t.length - 2], t[t.length - 1]);
|
|
1160
1157
|
else {
|
|
1161
1158
|
const E = [t[a], t[a + 1]], D = [t[a - 1], t[a]];
|
|
1162
|
-
var W =
|
|
1159
|
+
var W = At(r, J(E), et), u = At(r, J(D), et);
|
|
1163
1160
|
n = W > u ? D : E;
|
|
1164
1161
|
}
|
|
1165
|
-
const c =
|
|
1166
|
-
var T =
|
|
1162
|
+
const c = J([n[0].slice(0, 2), n[1].slice(0, 2)]), i = st(n[0].slice(0, 2)), l = st(n[1].slice(0, 2));
|
|
1163
|
+
var T = At(r, c, et), p = ct(r, i, et) || 0, o = Math.sqrt(p * p - T * T) || 0;
|
|
1167
1164
|
let A = n[0].slice(0, 2);
|
|
1168
1165
|
o > 0 && (A = Le(c, 0, o, et).geometry.coordinates[1]);
|
|
1169
|
-
const g = ct(i, l, et), y = Math.abs(n[0][2] - n[1][2]), L = Math.min(n[0][2], n[1][2]),
|
|
1166
|
+
const g = ct(i, l, et), y = Math.abs(n[0][2] - n[1][2]), L = Math.min(n[0][2], n[1][2]), m = Math.max(n[0][2], n[1][2]), B = n[0][2] > n[1][2] ? m - o / g * y : o / g * y + L, v = B - h[2], b = T * 1e3, M = Math.sqrt(b * b + v * v), _ = parseFloat(B.toFixed(1));
|
|
1170
1167
|
return {
|
|
1171
1168
|
treeId: s,
|
|
1172
1169
|
treeCoordinates: [h[0], h[1], h[2]],
|
|
@@ -1174,7 +1171,7 @@ const vt = () => ({
|
|
|
1174
1171
|
horizontalDistance: parseFloat(b.toFixed(1)),
|
|
1175
1172
|
verticalDistance: parseFloat(v.toFixed(1)),
|
|
1176
1173
|
straightLineDistance: parseFloat(M.toFixed(1)),
|
|
1177
|
-
clearanceDistance:
|
|
1174
|
+
clearanceDistance: _,
|
|
1178
1175
|
timestamp: Date.now()
|
|
1179
1176
|
};
|
|
1180
1177
|
};
|
|
@@ -1238,19 +1235,19 @@ function ns(h, t, s, r) {
|
|
|
1238
1235
|
var y = f.Cartesian3.angleBetween(p, o);
|
|
1239
1236
|
e.push(h);
|
|
1240
1237
|
for (var L = 1; L < r - 1; L++) {
|
|
1241
|
-
var
|
|
1238
|
+
var m = L * 1 / (r - 1), B = 1 - m, v = Math.sin(B * y) / Math.sin(y), b = Math.sin(m * y) / Math.sin(y), M = f.Cartesian3.multiplyByScalar(
|
|
1242
1239
|
p,
|
|
1243
1240
|
v,
|
|
1244
1241
|
new f.Cartesian3()
|
|
1245
|
-
),
|
|
1242
|
+
), _ = f.Cartesian3.multiplyByScalar(
|
|
1246
1243
|
o,
|
|
1247
1244
|
b,
|
|
1248
1245
|
new f.Cartesian3()
|
|
1249
1246
|
), R = f.Cartesian3.add(
|
|
1250
1247
|
M,
|
|
1251
|
-
|
|
1248
|
+
_,
|
|
1252
1249
|
new f.Cartesian3()
|
|
1253
|
-
), E =
|
|
1250
|
+
), E = m * Math.PI, D = A * B + g * m + Math.sin(E) * T;
|
|
1254
1251
|
R = f.Cartesian3.multiplyByScalar(
|
|
1255
1252
|
R,
|
|
1256
1253
|
D,
|
|
@@ -1277,7 +1274,7 @@ function hs(h, t, s = 30) {
|
|
|
1277
1274
|
) - e;
|
|
1278
1275
|
return n > 180 && (n -= 360), n < -180 && (n += 360), Math.abs(n) >= s;
|
|
1279
1276
|
}
|
|
1280
|
-
function
|
|
1277
|
+
function Ot(h, t, s = 2) {
|
|
1281
1278
|
const r = h.length;
|
|
1282
1279
|
if (r <= 1)
|
|
1283
1280
|
return 0;
|
|
@@ -1336,18 +1333,15 @@ function as(h, t) {
|
|
|
1336
1333
|
if (!t || t.length < 2)
|
|
1337
1334
|
return !1;
|
|
1338
1335
|
const s = st(h), r = Me([t]);
|
|
1339
|
-
return
|
|
1336
|
+
return $e(s, r);
|
|
1340
1337
|
}
|
|
1341
1338
|
function ls(h, t = []) {
|
|
1342
|
-
|
|
1343
|
-
return console.log("filterTreesInCorridor: invalid input parameters"), [];
|
|
1344
|
-
const s = h.filter((r) => {
|
|
1339
|
+
return !h || !t || t.length < 2 ? [] : h.filter((r) => {
|
|
1345
1340
|
if (r.lon === void 0 || r.lat === void 0)
|
|
1346
1341
|
return console.warn("filterTreesInCorridor: tree missing lon/lat properties", r), !1;
|
|
1347
1342
|
const e = [r.lon, r.lat], a = as(e, t);
|
|
1348
|
-
return h.indexOf(r) < 5
|
|
1343
|
+
return h.indexOf(r) < 5, a;
|
|
1349
1344
|
});
|
|
1350
|
-
return console.log(`filterTreesInCorridor: found ${s.length} trees in corridor`), s;
|
|
1351
1345
|
}
|
|
1352
1346
|
function cs(h, t = 2e3) {
|
|
1353
1347
|
if (!h || h.length < 2)
|
|
@@ -1355,7 +1349,7 @@ function cs(h, t = 2e3) {
|
|
|
1355
1349
|
const s = h.map((e) => [
|
|
1356
1350
|
e.Longitude,
|
|
1357
1351
|
e.Latitude
|
|
1358
|
-
]), r =
|
|
1352
|
+
]), r = J(s);
|
|
1359
1353
|
try {
|
|
1360
1354
|
const e = t / 1e3, a = qt(r, e, { units: "kilometers" }), n = qt(r, -e, { units: "kilometers" }), W = Gt(a), u = Gt(n);
|
|
1361
1355
|
return [
|
|
@@ -1600,11 +1594,11 @@ class us {
|
|
|
1600
1594
|
}
|
|
1601
1595
|
for (let s = 0; s < t; s++) {
|
|
1602
1596
|
let r = 0;
|
|
1603
|
-
if (this.LineInfo.towers[s].type ===
|
|
1597
|
+
if (this.LineInfo.towers[s].type === it.耐张塔)
|
|
1604
1598
|
if (s === 0)
|
|
1605
|
-
r = (
|
|
1599
|
+
r = (Ot(this.LineInfo.towers, s, 3) - 90 + 360) % 360;
|
|
1606
1600
|
else if (s === t - 1)
|
|
1607
|
-
r = (
|
|
1601
|
+
r = (Ot(this.LineInfo.towers, s, 3) - 90 + 360) % 360;
|
|
1608
1602
|
else {
|
|
1609
1603
|
const e = this.LineInfo.towers[s - 1], a = this.LineInfo.towers[s], n = this.LineInfo.towers[s + 1], W = lt(
|
|
1610
1604
|
e.Longitude,
|
|
@@ -1620,7 +1614,7 @@ class us {
|
|
|
1620
1614
|
r = (fs(W, u) - 90 + 360) % 360;
|
|
1621
1615
|
}
|
|
1622
1616
|
else
|
|
1623
|
-
r = (
|
|
1617
|
+
r = (Ot(this.LineInfo.towers, s, 2) - 90 + 360) % 360;
|
|
1624
1618
|
this.LineInfo.towers[s].RollX = r;
|
|
1625
1619
|
}
|
|
1626
1620
|
}
|
|
@@ -1668,22 +1662,22 @@ class us {
|
|
|
1668
1662
|
this.LineInfo.towers[t].towerPoint[n].Y,
|
|
1669
1663
|
this.LineInfo.towers[t].towerPoint[n].Z
|
|
1670
1664
|
),
|
|
1671
|
-
this.LineInfo.towers[t].type ===
|
|
1665
|
+
this.LineInfo.towers[t].type === it.耐张塔 ? a : e
|
|
1672
1666
|
);
|
|
1673
1667
|
let i, l;
|
|
1674
|
-
if (this.autoCalculateRollX ? l = this.LineInfo.towers[t].RollX : l = u.RollX, this.LineInfo.towers[t].type ===
|
|
1668
|
+
if (this.autoCalculateRollX ? l = this.LineInfo.towers[t].RollX : l = u.RollX, this.LineInfo.towers[t].type === it.耐张塔)
|
|
1675
1669
|
switch (u.type) {
|
|
1676
|
-
case
|
|
1670
|
+
case z.耐张串:
|
|
1677
1671
|
i = u.WairFX === "进" ? new f.HeadingPitchRoll(f.Math.toRadians(l), f.Math.toRadians(-180), f.Math.toRadians(180)) : new f.HeadingPitchRoll(f.Math.toRadians(l), f.Math.toRadians(0), f.Math.toRadians(0));
|
|
1678
1672
|
break;
|
|
1679
|
-
case
|
|
1673
|
+
case z.跳线串:
|
|
1680
1674
|
i = new f.HeadingPitchRoll(
|
|
1681
1675
|
f.Math.toRadians(l),
|
|
1682
1676
|
f.Math.toRadians(u.RollY),
|
|
1683
1677
|
f.Math.toRadians(u.RollZ)
|
|
1684
1678
|
);
|
|
1685
1679
|
break;
|
|
1686
|
-
case
|
|
1680
|
+
case z.地线串:
|
|
1687
1681
|
i = new f.HeadingPitchRoll(
|
|
1688
1682
|
f.Math.toRadians(l),
|
|
1689
1683
|
f.Math.toRadians(u.RollY),
|
|
@@ -1785,22 +1779,22 @@ class us {
|
|
|
1785
1779
|
this.LineInfo.towers[e].towerPoint[u].Y,
|
|
1786
1780
|
this.LineInfo.towers[e].towerPoint[u].Z
|
|
1787
1781
|
),
|
|
1788
|
-
this.LineInfo.towers[e].type ===
|
|
1782
|
+
this.LineInfo.towers[e].type === it.耐张塔 ? W : n
|
|
1789
1783
|
);
|
|
1790
1784
|
let T, p;
|
|
1791
|
-
if (this.autoCalculateRollX ? p = this.LineInfo.towers[e].RollX : p = i.RollX, this.LineInfo.towers[e].type ===
|
|
1785
|
+
if (this.autoCalculateRollX ? p = this.LineInfo.towers[e].RollX : p = i.RollX, this.LineInfo.towers[e].type === it.耐张塔)
|
|
1792
1786
|
switch (i.type) {
|
|
1793
|
-
case
|
|
1787
|
+
case z.耐张串:
|
|
1794
1788
|
T = i.WairFX === "进" ? new f.HeadingPitchRoll(f.Math.toRadians(p), f.Math.toRadians(-180), f.Math.toRadians(180)) : new f.HeadingPitchRoll(f.Math.toRadians(p), f.Math.toRadians(0), f.Math.toRadians(0));
|
|
1795
1789
|
break;
|
|
1796
|
-
case
|
|
1790
|
+
case z.跳线串:
|
|
1797
1791
|
T = new f.HeadingPitchRoll(
|
|
1798
1792
|
f.Math.toRadians(p),
|
|
1799
1793
|
f.Math.toRadians(i.RollY),
|
|
1800
1794
|
f.Math.toRadians(i.RollZ)
|
|
1801
1795
|
);
|
|
1802
1796
|
break;
|
|
1803
|
-
case
|
|
1797
|
+
case z.地线串:
|
|
1804
1798
|
T = new f.HeadingPitchRoll(
|
|
1805
1799
|
f.Math.toRadians(p),
|
|
1806
1800
|
f.Math.toRadians(i.RollY),
|
|
@@ -1835,190 +1829,190 @@ class us {
|
|
|
1835
1829
|
}), i.linenum) {
|
|
1836
1830
|
case Dt.回路一:
|
|
1837
1831
|
if (this.LineInfo.ISPhaseSequence)
|
|
1838
|
-
if (this.LineInfo.towers[e].type ==
|
|
1832
|
+
if (this.LineInfo.towers[e].type == it.耐张塔)
|
|
1839
1833
|
switch (i.PhaseSequence) {
|
|
1840
1834
|
case x.A相:
|
|
1841
|
-
if (i.type ==
|
|
1835
|
+
if (i.type == z.耐张串)
|
|
1842
1836
|
if (i.WairFX == "进")
|
|
1843
1837
|
switch (this.LineInfo.Wairnum) {
|
|
1844
|
-
case
|
|
1838
|
+
case I.单分裂:
|
|
1845
1839
|
this.offsetWires11.push(o[0]), this.ToffsetWires1A1.push(o[0]);
|
|
1846
1840
|
break;
|
|
1847
|
-
case
|
|
1841
|
+
case I.双分裂:
|
|
1848
1842
|
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]);
|
|
1849
1843
|
break;
|
|
1850
|
-
case
|
|
1844
|
+
case I.四分裂:
|
|
1851
1845
|
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.offsetWires11.push(o[2]), this.offsetWires11.push(o[3]), this.ToffsetWires1A1.push(o[4]), this.ToffsetWires1A1.push(o[5]), this.ToffsetWires1A1.push(o[6]), this.ToffsetWires1A1.push(o[7]);
|
|
1852
1846
|
break;
|
|
1853
|
-
case
|
|
1847
|
+
case I.六分裂:
|
|
1854
1848
|
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.offsetWires11.push(o[2]), this.offsetWires11.push(o[3]), this.offsetWires11.push(o[4]), this.offsetWires11.push(o[5]), this.ToffsetWires1A1.push(o[6]), this.ToffsetWires1A1.push(o[7]), this.ToffsetWires1A1.push(o[8]), this.ToffsetWires1A1.push(o[9]), this.ToffsetWires1A1.push(o[10]), this.ToffsetWires1A1.push(o[11]);
|
|
1855
1849
|
break;
|
|
1856
|
-
case
|
|
1850
|
+
case I.八分裂:
|
|
1857
1851
|
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.offsetWires11.push(o[2]), this.offsetWires11.push(o[3]), this.offsetWires11.push(o[4]), this.offsetWires11.push(o[5]), this.offsetWires11.push(o[6]), this.offsetWires11.push(o[7]), this.ToffsetWires1A1.push(o[8]), this.ToffsetWires1A1.push(o[9]), this.ToffsetWires1A1.push(o[10]), this.ToffsetWires1A1.push(o[11]), this.ToffsetWires1A1.push(o[12]), this.ToffsetWires1A1.push(o[13]), this.ToffsetWires1A1.push(o[14]), this.ToffsetWires1A1.push(o[15]);
|
|
1858
1852
|
break;
|
|
1859
1853
|
}
|
|
1860
1854
|
else
|
|
1861
1855
|
switch (this.LineInfo.Wairnum) {
|
|
1862
|
-
case
|
|
1856
|
+
case I.单分裂:
|
|
1863
1857
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
1864
1858
|
this.offsetWires11.push(A), this.ToffsetWires1A2.push(A);
|
|
1865
1859
|
break;
|
|
1866
|
-
case
|
|
1860
|
+
case I.双分裂:
|
|
1867
1861
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
1868
1862
|
this.offsetWires11.push(g), this.offsetWires11.push(y), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(y);
|
|
1869
1863
|
break;
|
|
1870
|
-
case
|
|
1871
|
-
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n),
|
|
1872
|
-
this.offsetWires11.push(L), this.offsetWires11.push(
|
|
1864
|
+
case I.四分裂:
|
|
1865
|
+
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), m = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), B = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), v = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n);
|
|
1866
|
+
this.offsetWires11.push(L), this.offsetWires11.push(m), this.offsetWires11.push(B), this.offsetWires11.push(v), this.ToffsetWires1A2.push(L), this.ToffsetWires1A2.push(m), this.ToffsetWires1A2.push(B), this.ToffsetWires1A2.push(v);
|
|
1873
1867
|
break;
|
|
1874
|
-
case
|
|
1875
|
-
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n),
|
|
1876
|
-
this.offsetWires11.push(b), this.offsetWires11.push(M), this.offsetWires11.push(
|
|
1868
|
+
case I.六分裂:
|
|
1869
|
+
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), _ = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), R = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), E = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), D = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n);
|
|
1870
|
+
this.offsetWires11.push(b), this.offsetWires11.push(M), this.offsetWires11.push(_), this.offsetWires11.push(R), this.offsetWires11.push(E), this.offsetWires11.push(D), this.ToffsetWires1A2.push(b), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(_), this.ToffsetWires1A2.push(R), this.ToffsetWires1A2.push(E), this.ToffsetWires1A2.push(D);
|
|
1877
1871
|
break;
|
|
1878
|
-
case
|
|
1879
|
-
const
|
|
1880
|
-
this.offsetWires11.push(
|
|
1872
|
+
case I.八分裂:
|
|
1873
|
+
const Z = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), $ = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
|
|
1874
|
+
this.offsetWires11.push(Z), this.offsetWires11.push(k), this.offsetWires11.push(F), this.offsetWires11.push(X), this.offsetWires11.push($), this.offsetWires11.push(Y), this.offsetWires11.push(V), this.offsetWires11.push(O), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push($), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(V), this.ToffsetWires1A2.push(O);
|
|
1881
1875
|
break;
|
|
1882
1876
|
}
|
|
1883
|
-
else if (i.type ==
|
|
1877
|
+
else if (i.type == z.跳线串)
|
|
1884
1878
|
switch (this.LineInfo.Wairnum) {
|
|
1885
|
-
case
|
|
1879
|
+
case I.单分裂:
|
|
1886
1880
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A2.push(o[1]);
|
|
1887
1881
|
break;
|
|
1888
|
-
case
|
|
1882
|
+
case I.双分裂:
|
|
1889
1883
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A2.push(o[2]), this.ToffsetWires1A2.push(o[3]);
|
|
1890
1884
|
break;
|
|
1891
|
-
case
|
|
1885
|
+
case I.四分裂:
|
|
1892
1886
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]), this.ToffsetWires1A2.push(o[4]), this.ToffsetWires1A2.push(o[5]), this.ToffsetWires1A2.push(o[6]), this.ToffsetWires1A2.push(o[7]);
|
|
1893
1887
|
break;
|
|
1894
|
-
case
|
|
1888
|
+
case I.六分裂:
|
|
1895
1889
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]), this.ToffsetWires1A1.push(o[4]), this.ToffsetWires1A1.push(o[5]), this.ToffsetWires1A2.push(o[6]), this.ToffsetWires1A2.push(o[7]), this.ToffsetWires1A2.push(o[8]), this.ToffsetWires1A2.push(o[9]), this.ToffsetWires1A2.push(o[10]), this.ToffsetWires1A2.push(o[11]);
|
|
1896
1890
|
break;
|
|
1897
|
-
case
|
|
1891
|
+
case I.八分裂:
|
|
1898
1892
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]), this.ToffsetWires1A1.push(o[4]), this.ToffsetWires1A1.push(o[5]), this.ToffsetWires1A1.push(o[6]), this.ToffsetWires1A1.push(o[7]), this.ToffsetWires1A2.push(o[8]), this.ToffsetWires1A2.push(o[9]), this.ToffsetWires1A2.push(o[10]), this.ToffsetWires1A2.push(o[11]), this.ToffsetWires1A2.push(o[12]), this.ToffsetWires1A2.push(o[13]), this.ToffsetWires1A2.push(o[14]), this.ToffsetWires1A2.push(o[15]);
|
|
1899
1893
|
break;
|
|
1900
1894
|
}
|
|
1901
1895
|
break;
|
|
1902
1896
|
case x.B相:
|
|
1903
|
-
if (i.type ==
|
|
1897
|
+
if (i.type == z.耐张串)
|
|
1904
1898
|
if (i.WairFX == "进")
|
|
1905
1899
|
switch (this.LineInfo.Wairnum) {
|
|
1906
|
-
case
|
|
1900
|
+
case I.单分裂:
|
|
1907
1901
|
this.offsetWires12.push(o[0]), this.ToffsetWires1B1.push(o[1]);
|
|
1908
1902
|
break;
|
|
1909
|
-
case
|
|
1903
|
+
case I.双分裂:
|
|
1910
1904
|
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]);
|
|
1911
1905
|
break;
|
|
1912
|
-
case
|
|
1906
|
+
case I.四分裂:
|
|
1913
1907
|
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.offsetWires12.push(o[2]), this.offsetWires12.push(o[3]), this.ToffsetWires1B1.push(o[4]), this.ToffsetWires1B1.push(o[5]), this.ToffsetWires1B1.push(o[6]), this.ToffsetWires1B1.push(o[7]);
|
|
1914
1908
|
break;
|
|
1915
|
-
case
|
|
1909
|
+
case I.六分裂:
|
|
1916
1910
|
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.offsetWires12.push(o[2]), this.offsetWires12.push(o[3]), this.offsetWires12.push(o[4]), this.offsetWires12.push(o[5]), this.ToffsetWires1B1.push(o[6]), this.ToffsetWires1B1.push(o[7]), this.ToffsetWires1B1.push(o[8]), this.ToffsetWires1B1.push(o[9]), this.ToffsetWires1B1.push(o[10]), this.ToffsetWires1B1.push(o[11]);
|
|
1917
1911
|
break;
|
|
1918
|
-
case
|
|
1912
|
+
case I.八分裂:
|
|
1919
1913
|
this.offsetWires12.push(o[0]), this.offsetWires12.push(o[1]), this.offsetWires12.push(o[2]), this.offsetWires12.push(o[3]), this.offsetWires12.push(o[4]), this.offsetWires12.push(o[5]), this.offsetWires12.push(o[6]), this.offsetWires12.push(o[7]), this.ToffsetWires1B1.push(o[8]), this.ToffsetWires1B1.push(o[9]), this.ToffsetWires1B1.push(o[10]), this.ToffsetWires1B1.push(o[11]), this.ToffsetWires1B1.push(o[12]), this.ToffsetWires1B1.push(o[13]), this.ToffsetWires1B1.push(o[14]), this.ToffsetWires1B1.push(o[15]);
|
|
1920
1914
|
break;
|
|
1921
1915
|
}
|
|
1922
1916
|
else
|
|
1923
1917
|
switch (this.LineInfo.Wairnum) {
|
|
1924
|
-
case
|
|
1918
|
+
case I.单分裂:
|
|
1925
1919
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
1926
1920
|
this.offsetWires12.push(A), this.ToffsetWires1B2.push(A);
|
|
1927
1921
|
break;
|
|
1928
|
-
case
|
|
1922
|
+
case I.双分裂:
|
|
1929
1923
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
1930
1924
|
this.offsetWires12.push(g), this.offsetWires12.push(y), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(y);
|
|
1931
1925
|
break;
|
|
1932
|
-
case
|
|
1933
|
-
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n),
|
|
1934
|
-
this.offsetWires12.push(L), this.offsetWires12.push(
|
|
1926
|
+
case I.四分裂:
|
|
1927
|
+
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), m = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), B = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), v = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n);
|
|
1928
|
+
this.offsetWires12.push(L), this.offsetWires12.push(m), this.offsetWires12.push(B), this.offsetWires12.push(v), this.ToffsetWires1B2.push(L), this.ToffsetWires1B2.push(m), this.ToffsetWires1B2.push(B), this.ToffsetWires1B2.push(v);
|
|
1935
1929
|
break;
|
|
1936
|
-
case
|
|
1937
|
-
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n),
|
|
1938
|
-
this.offsetWires12.push(b), this.offsetWires12.push(M), this.offsetWires12.push(
|
|
1930
|
+
case I.六分裂:
|
|
1931
|
+
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), _ = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), R = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), E = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), D = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n);
|
|
1932
|
+
this.offsetWires12.push(b), this.offsetWires12.push(M), this.offsetWires12.push(_), this.offsetWires12.push(R), this.offsetWires12.push(E), this.offsetWires12.push(D), this.ToffsetWires1B2.push(b), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(_), this.ToffsetWires1B2.push(R), this.ToffsetWires1B2.push(E), this.ToffsetWires1B2.push(D);
|
|
1939
1933
|
break;
|
|
1940
|
-
case
|
|
1941
|
-
const
|
|
1942
|
-
this.offsetWires12.push(
|
|
1934
|
+
case I.八分裂:
|
|
1935
|
+
const Z = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), $ = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
|
|
1936
|
+
this.offsetWires12.push(Z), this.offsetWires12.push(k), this.offsetWires12.push(F), this.offsetWires12.push(X), this.offsetWires12.push($), this.offsetWires12.push(Y), this.offsetWires12.push(V), this.offsetWires12.push(O), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push($), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(V), this.ToffsetWires1B2.push(O);
|
|
1943
1937
|
break;
|
|
1944
1938
|
}
|
|
1945
|
-
else if (i.type ==
|
|
1939
|
+
else if (i.type == z.跳线串)
|
|
1946
1940
|
switch (this.LineInfo.Wairnum) {
|
|
1947
|
-
case
|
|
1941
|
+
case I.单分裂:
|
|
1948
1942
|
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B2.push(o[0]);
|
|
1949
1943
|
break;
|
|
1950
|
-
case
|
|
1944
|
+
case I.双分裂:
|
|
1951
1945
|
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B2.push(o[2]), this.ToffsetWires1B2.push(o[3]);
|
|
1952
1946
|
break;
|
|
1953
|
-
case
|
|
1947
|
+
case I.四分裂:
|
|
1954
1948
|
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]), this.ToffsetWires1B2.push(o[4]), this.ToffsetWires1B2.push(o[5]), this.ToffsetWires1B2.push(o[6]), this.ToffsetWires1B2.push(o[7]);
|
|
1955
1949
|
break;
|
|
1956
|
-
case
|
|
1950
|
+
case I.六分裂:
|
|
1957
1951
|
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]), this.ToffsetWires1B1.push(o[4]), this.ToffsetWires1B1.push(o[5]), this.ToffsetWires1B2.push(o[6]), this.ToffsetWires1B2.push(o[7]), this.ToffsetWires1B2.push(o[8]), this.ToffsetWires1B2.push(o[9]), this.ToffsetWires1B2.push(o[10]), this.ToffsetWires1B2.push(o[11]);
|
|
1958
1952
|
break;
|
|
1959
|
-
case
|
|
1953
|
+
case I.八分裂:
|
|
1960
1954
|
this.ToffsetWires1B1.push(o[0]), this.ToffsetWires1B1.push(o[1]), this.ToffsetWires1B1.push(o[2]), this.ToffsetWires1B1.push(o[3]), this.ToffsetWires1B1.push(o[4]), this.ToffsetWires1B1.push(o[5]), this.ToffsetWires1B1.push(o[6]), this.ToffsetWires1B1.push(o[7]), this.ToffsetWires1B2.push(o[8]), this.ToffsetWires1B2.push(o[9]), this.ToffsetWires1B2.push(o[10]), this.ToffsetWires1B2.push(o[11]), this.ToffsetWires1B2.push(o[12]), this.ToffsetWires1B2.push(o[13]), this.ToffsetWires1B2.push(o[14]), this.ToffsetWires1B2.push(o[15]);
|
|
1961
1955
|
break;
|
|
1962
1956
|
}
|
|
1963
1957
|
break;
|
|
1964
1958
|
case x.C相:
|
|
1965
|
-
if (i.type ==
|
|
1959
|
+
if (i.type == z.耐张串)
|
|
1966
1960
|
if (i.WairFX == "进")
|
|
1967
1961
|
switch (this.LineInfo.Wairnum) {
|
|
1968
|
-
case
|
|
1962
|
+
case I.单分裂:
|
|
1969
1963
|
this.offsetWires13.push(o[0]), this.ToffsetWires1C1.push(o[1]);
|
|
1970
1964
|
break;
|
|
1971
|
-
case
|
|
1965
|
+
case I.双分裂:
|
|
1972
1966
|
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]);
|
|
1973
1967
|
break;
|
|
1974
|
-
case
|
|
1968
|
+
case I.四分裂:
|
|
1975
1969
|
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.offsetWires13.push(o[2]), this.offsetWires13.push(o[3]), this.ToffsetWires1C1.push(o[4]), this.ToffsetWires1C1.push(o[5]), this.ToffsetWires1C1.push(o[6]), this.ToffsetWires1C1.push(o[7]);
|
|
1976
1970
|
break;
|
|
1977
|
-
case
|
|
1971
|
+
case I.六分裂:
|
|
1978
1972
|
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.offsetWires13.push(o[2]), this.offsetWires13.push(o[3]), this.offsetWires13.push(o[4]), this.offsetWires13.push(o[5]), this.ToffsetWires1C1.push(o[6]), this.ToffsetWires1C1.push(o[7]), this.ToffsetWires1C1.push(o[8]), this.ToffsetWires1C1.push(o[9]), this.ToffsetWires1C1.push(o[10]), this.ToffsetWires1C1.push(o[11]);
|
|
1979
1973
|
break;
|
|
1980
|
-
case
|
|
1974
|
+
case I.八分裂:
|
|
1981
1975
|
this.offsetWires13.push(o[0]), this.offsetWires13.push(o[1]), this.offsetWires13.push(o[2]), this.offsetWires13.push(o[3]), this.offsetWires13.push(o[4]), this.offsetWires13.push(o[5]), this.offsetWires13.push(o[6]), this.offsetWires13.push(o[7]), this.ToffsetWires1C1.push(o[8]), this.ToffsetWires1C1.push(o[9]), this.ToffsetWires1C1.push(o[10]), this.ToffsetWires1C1.push(o[11]), this.ToffsetWires1C1.push(o[12]), this.ToffsetWires1C1.push(o[13]), this.ToffsetWires1C1.push(o[14]), this.ToffsetWires1C1.push(o[15]);
|
|
1982
1976
|
break;
|
|
1983
1977
|
}
|
|
1984
1978
|
else
|
|
1985
1979
|
switch (this.LineInfo.Wairnum) {
|
|
1986
|
-
case
|
|
1980
|
+
case I.单分裂:
|
|
1987
1981
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
1988
1982
|
this.offsetWires13.push(A), this.ToffsetWires1C2.push(A);
|
|
1989
1983
|
break;
|
|
1990
|
-
case
|
|
1984
|
+
case I.双分裂:
|
|
1991
1985
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
1992
1986
|
this.offsetWires13.push(g), this.offsetWires13.push(y), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(y);
|
|
1993
1987
|
break;
|
|
1994
|
-
case
|
|
1995
|
-
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n),
|
|
1996
|
-
this.offsetWires13.push(L), this.offsetWires13.push(
|
|
1988
|
+
case I.四分裂:
|
|
1989
|
+
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), m = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), B = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), v = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n);
|
|
1990
|
+
this.offsetWires13.push(L), this.offsetWires13.push(m), this.offsetWires13.push(B), this.offsetWires13.push(v), this.ToffsetWires1C2.push(L), this.ToffsetWires1C2.push(m), this.ToffsetWires1C2.push(B), this.ToffsetWires1C2.push(v);
|
|
1997
1991
|
break;
|
|
1998
|
-
case
|
|
1999
|
-
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n),
|
|
2000
|
-
this.offsetWires13.push(b), this.offsetWires13.push(M), this.offsetWires13.push(
|
|
1992
|
+
case I.六分裂:
|
|
1993
|
+
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), _ = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), R = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), E = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), D = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n);
|
|
1994
|
+
this.offsetWires13.push(b), this.offsetWires13.push(M), this.offsetWires13.push(_), this.offsetWires13.push(R), this.offsetWires13.push(E), this.offsetWires13.push(D), this.ToffsetWires1C2.push(b), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(_), this.ToffsetWires1C2.push(R), this.ToffsetWires1C2.push(E), this.ToffsetWires1C2.push(D);
|
|
2001
1995
|
break;
|
|
2002
|
-
case
|
|
2003
|
-
const
|
|
2004
|
-
this.offsetWires13.push(
|
|
1996
|
+
case I.八分裂:
|
|
1997
|
+
const Z = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), $ = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
|
|
1998
|
+
this.offsetWires13.push(Z), this.offsetWires13.push(k), this.offsetWires13.push(F), this.offsetWires13.push(X), this.offsetWires13.push($), this.offsetWires13.push(Y), this.offsetWires13.push(V), this.offsetWires13.push(O), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push($), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(V), this.ToffsetWires1C2.push(O);
|
|
2005
1999
|
break;
|
|
2006
2000
|
}
|
|
2007
|
-
else if (i.type ==
|
|
2001
|
+
else if (i.type == z.跳线串)
|
|
2008
2002
|
switch (this.LineInfo.Wairnum) {
|
|
2009
|
-
case
|
|
2003
|
+
case I.单分裂:
|
|
2010
2004
|
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C2.push(o[0]);
|
|
2011
2005
|
break;
|
|
2012
|
-
case
|
|
2006
|
+
case I.双分裂:
|
|
2013
2007
|
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C2.push(o[2]), this.ToffsetWires1C2.push(o[3]);
|
|
2014
2008
|
break;
|
|
2015
|
-
case
|
|
2009
|
+
case I.四分裂:
|
|
2016
2010
|
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]), this.ToffsetWires1C2.push(o[4]), this.ToffsetWires1C2.push(o[5]), this.ToffsetWires1C2.push(o[6]), this.ToffsetWires1C2.push(o[7]);
|
|
2017
2011
|
break;
|
|
2018
|
-
case
|
|
2012
|
+
case I.六分裂:
|
|
2019
2013
|
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]), this.ToffsetWires1C1.push(o[4]), this.ToffsetWires1C1.push(o[5]), this.ToffsetWires1C2.push(o[6]), this.ToffsetWires1C2.push(o[7]), this.ToffsetWires1C2.push(o[8]), this.ToffsetWires1C2.push(o[9]), this.ToffsetWires1C2.push(o[10]), this.ToffsetWires1C2.push(o[11]);
|
|
2020
2014
|
break;
|
|
2021
|
-
case
|
|
2015
|
+
case I.八分裂:
|
|
2022
2016
|
this.ToffsetWires1C1.push(o[0]), this.ToffsetWires1C1.push(o[1]), this.ToffsetWires1C1.push(o[2]), this.ToffsetWires1C1.push(o[3]), this.ToffsetWires1C1.push(o[4]), this.ToffsetWires1C1.push(o[5]), this.ToffsetWires1C1.push(o[6]), this.ToffsetWires1C1.push(o[7]), this.ToffsetWires1C2.push(o[8]), this.ToffsetWires1C2.push(o[9]), this.ToffsetWires1C2.push(o[10]), this.ToffsetWires1C2.push(o[11]), this.ToffsetWires1C2.push(o[12]), this.ToffsetWires1C2.push(o[13]), this.ToffsetWires1C2.push(o[14]), this.ToffsetWires1C2.push(o[15]);
|
|
2023
2017
|
break;
|
|
2024
2018
|
}
|
|
@@ -2042,35 +2036,35 @@ class us {
|
|
|
2042
2036
|
});
|
|
2043
2037
|
break;
|
|
2044
2038
|
}
|
|
2045
|
-
else if (this.LineInfo.towers[e].type ==
|
|
2039
|
+
else if (this.LineInfo.towers[e].type == it.耐张塔)
|
|
2046
2040
|
switch (u) {
|
|
2047
2041
|
case 2:
|
|
2048
2042
|
switch (this.LineInfo.Wairnum) {
|
|
2049
|
-
case
|
|
2043
|
+
case I.单分裂:
|
|
2050
2044
|
this.offsetWires11.push(o[0]), this.ToffsetWires1A1.push(o[0]);
|
|
2051
2045
|
break;
|
|
2052
|
-
case
|
|
2046
|
+
case I.双分裂:
|
|
2053
2047
|
this.offsetWires11.push(o[0]), this.offsetWires11.push(o[1]), this.ToffsetWires1A1.push(o[2]), this.ToffsetWires1A1.push(o[3]);
|
|
2054
2048
|
break;
|
|
2055
2049
|
}
|
|
2056
2050
|
break;
|
|
2057
2051
|
case 3:
|
|
2058
2052
|
switch (this.LineInfo.Wairnum) {
|
|
2059
|
-
case
|
|
2053
|
+
case I.单分裂:
|
|
2060
2054
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A2.push(o[0]);
|
|
2061
2055
|
break;
|
|
2062
|
-
case
|
|
2056
|
+
case I.双分裂:
|
|
2063
2057
|
this.ToffsetWires1A1.push(o[0]), this.ToffsetWires1A1.push(o[1]), this.ToffsetWires1A2.push(o[2]), this.ToffsetWires1A2.push(o[3]);
|
|
2064
2058
|
break;
|
|
2065
2059
|
}
|
|
2066
2060
|
break;
|
|
2067
2061
|
case 4:
|
|
2068
2062
|
switch (this.LineInfo.Wairnum) {
|
|
2069
|
-
case
|
|
2063
|
+
case I.单分裂:
|
|
2070
2064
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
2071
2065
|
this.offsetWires11.push(A), this.ToffsetWires1A2.push(A);
|
|
2072
2066
|
break;
|
|
2073
|
-
case
|
|
2067
|
+
case I.双分裂:
|
|
2074
2068
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
2075
2069
|
this.offsetWires11.push(g), this.offsetWires11.push(y), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(y);
|
|
2076
2070
|
break;
|
|
@@ -2130,190 +2124,190 @@ class us {
|
|
|
2130
2124
|
break;
|
|
2131
2125
|
case Dt.回路二:
|
|
2132
2126
|
if (this.LineInfo.ISPhaseSequence)
|
|
2133
|
-
if (this.LineInfo.towers[e].type ==
|
|
2127
|
+
if (this.LineInfo.towers[e].type == it.耐张塔)
|
|
2134
2128
|
switch (i.PhaseSequence) {
|
|
2135
2129
|
case x.A相:
|
|
2136
|
-
if (i.type ==
|
|
2130
|
+
if (i.type == z.耐张串)
|
|
2137
2131
|
if (i.WairFX == "进")
|
|
2138
2132
|
switch (this.LineInfo.Wairnum) {
|
|
2139
|
-
case
|
|
2133
|
+
case I.单分裂:
|
|
2140
2134
|
this.offsetWires21.push(o[0]), this.ToffsetWires2A1.push(o[0]);
|
|
2141
2135
|
break;
|
|
2142
|
-
case
|
|
2136
|
+
case I.双分裂:
|
|
2143
2137
|
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]);
|
|
2144
2138
|
break;
|
|
2145
|
-
case
|
|
2139
|
+
case I.四分裂:
|
|
2146
2140
|
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.offsetWires21.push(o[2]), this.offsetWires21.push(o[3]), this.ToffsetWires2A1.push(o[4]), this.ToffsetWires2A1.push(o[5]), this.ToffsetWires2A1.push(o[6]), this.ToffsetWires2A1.push(o[7]);
|
|
2147
2141
|
break;
|
|
2148
|
-
case
|
|
2142
|
+
case I.六分裂:
|
|
2149
2143
|
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.offsetWires21.push(o[2]), this.offsetWires21.push(o[3]), this.offsetWires21.push(o[4]), this.offsetWires21.push(o[5]), this.ToffsetWires2A1.push(o[6]), this.ToffsetWires2A1.push(o[7]), this.ToffsetWires2A1.push(o[8]), this.ToffsetWires2A1.push(o[9]), this.ToffsetWires2A1.push(o[10]), this.ToffsetWires2A1.push(o[11]);
|
|
2150
2144
|
break;
|
|
2151
|
-
case
|
|
2145
|
+
case I.八分裂:
|
|
2152
2146
|
this.offsetWires21.push(o[0]), this.offsetWires21.push(o[1]), this.offsetWires21.push(o[2]), this.offsetWires21.push(o[3]), this.offsetWires21.push(o[4]), this.offsetWires21.push(o[5]), this.offsetWires21.push(o[6]), this.offsetWires21.push(o[7]), this.ToffsetWires2A1.push(o[8]), this.ToffsetWires2A1.push(o[9]), this.ToffsetWires2A1.push(o[10]), this.ToffsetWires2A1.push(o[11]), this.ToffsetWires2A1.push(o[12]), this.ToffsetWires2A1.push(o[13]), this.ToffsetWires2A1.push(o[14]), this.ToffsetWires2A1.push(o[15]);
|
|
2153
2147
|
break;
|
|
2154
2148
|
}
|
|
2155
2149
|
else
|
|
2156
2150
|
switch (this.LineInfo.Wairnum) {
|
|
2157
|
-
case
|
|
2151
|
+
case I.单分裂:
|
|
2158
2152
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
2159
2153
|
this.offsetWires21.push(A), this.ToffsetWires2A2.push(A);
|
|
2160
2154
|
break;
|
|
2161
|
-
case
|
|
2155
|
+
case I.双分裂:
|
|
2162
2156
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
2163
2157
|
this.offsetWires21.push(g), this.offsetWires21.push(y), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(y);
|
|
2164
2158
|
break;
|
|
2165
|
-
case
|
|
2166
|
-
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n),
|
|
2167
|
-
this.offsetWires21.push(L), this.offsetWires21.push(
|
|
2159
|
+
case I.四分裂:
|
|
2160
|
+
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), m = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), B = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), v = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n);
|
|
2161
|
+
this.offsetWires21.push(L), this.offsetWires21.push(m), this.offsetWires21.push(B), this.offsetWires21.push(v), this.ToffsetWires2A2.push(L), this.ToffsetWires2A2.push(m), this.ToffsetWires2A2.push(B), this.ToffsetWires2A2.push(v);
|
|
2168
2162
|
break;
|
|
2169
|
-
case
|
|
2170
|
-
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n),
|
|
2171
|
-
this.offsetWires21.push(b), this.offsetWires21.push(M), this.offsetWires21.push(
|
|
2163
|
+
case I.六分裂:
|
|
2164
|
+
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), _ = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), R = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), E = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), D = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n);
|
|
2165
|
+
this.offsetWires21.push(b), this.offsetWires21.push(M), this.offsetWires21.push(_), this.offsetWires21.push(R), this.offsetWires21.push(E), this.offsetWires21.push(D), this.ToffsetWires2A2.push(b), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(_), this.ToffsetWires2A2.push(R), this.ToffsetWires2A2.push(E), this.ToffsetWires2A2.push(D);
|
|
2172
2166
|
break;
|
|
2173
|
-
case
|
|
2174
|
-
const
|
|
2175
|
-
this.offsetWires21.push(
|
|
2167
|
+
case I.八分裂:
|
|
2168
|
+
const Z = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), $ = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
|
|
2169
|
+
this.offsetWires21.push(Z), this.offsetWires21.push(k), this.offsetWires21.push(F), this.offsetWires21.push(X), this.offsetWires21.push($), this.offsetWires21.push(Y), this.offsetWires21.push(V), this.offsetWires21.push(O), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push($), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(V), this.ToffsetWires2A2.push(O);
|
|
2176
2170
|
break;
|
|
2177
2171
|
}
|
|
2178
|
-
else if (i.type ==
|
|
2172
|
+
else if (i.type == z.跳线串)
|
|
2179
2173
|
switch (this.LineInfo.Wairnum) {
|
|
2180
|
-
case
|
|
2174
|
+
case I.单分裂:
|
|
2181
2175
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A2.push(o[0]);
|
|
2182
2176
|
break;
|
|
2183
|
-
case
|
|
2177
|
+
case I.双分裂:
|
|
2184
2178
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A2.push(o[2]), this.ToffsetWires2A2.push(o[3]);
|
|
2185
2179
|
break;
|
|
2186
|
-
case
|
|
2180
|
+
case I.四分裂:
|
|
2187
2181
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]), this.ToffsetWires2A2.push(o[4]), this.ToffsetWires2A2.push(o[5]), this.ToffsetWires2A2.push(o[6]), this.ToffsetWires2A2.push(o[7]);
|
|
2188
2182
|
break;
|
|
2189
|
-
case
|
|
2183
|
+
case I.六分裂:
|
|
2190
2184
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]), this.ToffsetWires2A1.push(o[4]), this.ToffsetWires2A1.push(o[5]), this.ToffsetWires2A2.push(o[6]), this.ToffsetWires2A2.push(o[7]), this.ToffsetWires2A2.push(o[8]), this.ToffsetWires2A2.push(o[9]), this.ToffsetWires2A2.push(o[10]), this.ToffsetWires2A2.push(o[11]);
|
|
2191
2185
|
break;
|
|
2192
|
-
case
|
|
2186
|
+
case I.八分裂:
|
|
2193
2187
|
this.ToffsetWires2A1.push(o[0]), this.ToffsetWires2A1.push(o[1]), this.ToffsetWires2A1.push(o[2]), this.ToffsetWires2A1.push(o[3]), this.ToffsetWires2A1.push(o[4]), this.ToffsetWires2A1.push(o[5]), this.ToffsetWires2A1.push(o[6]), this.ToffsetWires2A1.push(o[7]), this.ToffsetWires2A2.push(o[8]), this.ToffsetWires2A2.push(o[9]), this.ToffsetWires2A2.push(o[10]), this.ToffsetWires2A2.push(o[11]), this.ToffsetWires2A2.push(o[12]), this.ToffsetWires2A2.push(o[13]), this.ToffsetWires2A2.push(o[14]), this.ToffsetWires2A2.push(o[15]);
|
|
2194
2188
|
break;
|
|
2195
2189
|
}
|
|
2196
2190
|
break;
|
|
2197
2191
|
case x.B相:
|
|
2198
|
-
if (i.type ==
|
|
2192
|
+
if (i.type == z.耐张串)
|
|
2199
2193
|
if (i.WairFX == "进")
|
|
2200
2194
|
switch (this.LineInfo.Wairnum) {
|
|
2201
|
-
case
|
|
2195
|
+
case I.单分裂:
|
|
2202
2196
|
this.offsetWires22.push(o[0]), this.ToffsetWires2B1.push(o[0]);
|
|
2203
2197
|
break;
|
|
2204
|
-
case
|
|
2198
|
+
case I.双分裂:
|
|
2205
2199
|
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]);
|
|
2206
2200
|
break;
|
|
2207
|
-
case
|
|
2201
|
+
case I.四分裂:
|
|
2208
2202
|
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.offsetWires22.push(o[2]), this.offsetWires22.push(o[3]), this.ToffsetWires2B1.push(o[4]), this.ToffsetWires2B1.push(o[5]), this.ToffsetWires2B1.push(o[6]), this.ToffsetWires2B1.push(o[7]);
|
|
2209
2203
|
break;
|
|
2210
|
-
case
|
|
2204
|
+
case I.六分裂:
|
|
2211
2205
|
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.offsetWires22.push(o[2]), this.offsetWires22.push(o[3]), this.offsetWires22.push(o[4]), this.offsetWires22.push(o[5]), this.ToffsetWires2B1.push(o[6]), this.ToffsetWires2B1.push(o[7]), this.ToffsetWires2B1.push(o[8]), this.ToffsetWires2B1.push(o[9]), this.ToffsetWires2B1.push(o[10]), this.ToffsetWires2B1.push(o[11]);
|
|
2212
2206
|
break;
|
|
2213
|
-
case
|
|
2207
|
+
case I.八分裂:
|
|
2214
2208
|
this.offsetWires22.push(o[0]), this.offsetWires22.push(o[1]), this.offsetWires22.push(o[2]), this.offsetWires22.push(o[3]), this.offsetWires22.push(o[4]), this.offsetWires22.push(o[5]), this.offsetWires22.push(o[6]), this.offsetWires22.push(o[7]), this.ToffsetWires2B1.push(o[8]), this.ToffsetWires2B1.push(o[9]), this.ToffsetWires2B1.push(o[10]), this.ToffsetWires2B1.push(o[11]), this.ToffsetWires2B1.push(o[12]), this.ToffsetWires2B1.push(o[13]), this.ToffsetWires2B1.push(o[14]), this.ToffsetWires2B1.push(o[15]);
|
|
2215
2209
|
break;
|
|
2216
2210
|
}
|
|
2217
2211
|
else
|
|
2218
2212
|
switch (this.LineInfo.Wairnum) {
|
|
2219
|
-
case
|
|
2213
|
+
case I.单分裂:
|
|
2220
2214
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
2221
2215
|
this.offsetWires22.push(A), this.ToffsetWires2B2.push(A);
|
|
2222
2216
|
break;
|
|
2223
|
-
case
|
|
2217
|
+
case I.双分裂:
|
|
2224
2218
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
2225
2219
|
this.offsetWires22.push(g), this.offsetWires22.push(y), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(y);
|
|
2226
2220
|
break;
|
|
2227
|
-
case
|
|
2228
|
-
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n),
|
|
2229
|
-
this.offsetWires22.push(L), this.offsetWires22.push(
|
|
2221
|
+
case I.四分裂:
|
|
2222
|
+
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), m = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), B = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), v = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n);
|
|
2223
|
+
this.offsetWires22.push(L), this.offsetWires22.push(m), this.offsetWires22.push(B), this.offsetWires22.push(v), this.ToffsetWires2B2.push(L), this.ToffsetWires2B2.push(m), this.ToffsetWires2B2.push(B), this.ToffsetWires2B2.push(v);
|
|
2230
2224
|
break;
|
|
2231
|
-
case
|
|
2232
|
-
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n),
|
|
2233
|
-
this.offsetWires22.push(b), this.offsetWires22.push(M), this.offsetWires22.push(
|
|
2225
|
+
case I.六分裂:
|
|
2226
|
+
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), _ = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), R = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), E = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), D = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n);
|
|
2227
|
+
this.offsetWires22.push(b), this.offsetWires22.push(M), this.offsetWires22.push(_), this.offsetWires22.push(R), this.offsetWires22.push(E), this.offsetWires22.push(D), this.ToffsetWires2B2.push(b), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(_), this.ToffsetWires2B2.push(R), this.ToffsetWires2B2.push(E), this.ToffsetWires2B2.push(D);
|
|
2234
2228
|
break;
|
|
2235
|
-
case
|
|
2236
|
-
const
|
|
2237
|
-
this.offsetWires22.push(
|
|
2229
|
+
case I.八分裂:
|
|
2230
|
+
const Z = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), $ = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
|
|
2231
|
+
this.offsetWires22.push(Z), this.offsetWires22.push(k), this.offsetWires22.push(F), this.offsetWires22.push(X), this.offsetWires22.push($), this.offsetWires22.push(Y), this.offsetWires22.push(V), this.offsetWires22.push(O), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push($), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(V), this.ToffsetWires2B2.push(O);
|
|
2238
2232
|
break;
|
|
2239
2233
|
}
|
|
2240
|
-
else if (i.type ==
|
|
2234
|
+
else if (i.type == z.跳线串)
|
|
2241
2235
|
switch (this.LineInfo.Wairnum) {
|
|
2242
|
-
case
|
|
2236
|
+
case I.单分裂:
|
|
2243
2237
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B2.push(o[0]);
|
|
2244
2238
|
break;
|
|
2245
|
-
case
|
|
2239
|
+
case I.双分裂:
|
|
2246
2240
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B2.push(o[2]), this.ToffsetWires2B2.push(o[3]);
|
|
2247
2241
|
break;
|
|
2248
|
-
case
|
|
2242
|
+
case I.四分裂:
|
|
2249
2243
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]), this.ToffsetWires2B2.push(o[4]), this.ToffsetWires2B2.push(o[5]), this.ToffsetWires2B2.push(o[6]), this.ToffsetWires2B2.push(o[7]);
|
|
2250
2244
|
break;
|
|
2251
|
-
case
|
|
2245
|
+
case I.六分裂:
|
|
2252
2246
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]), this.ToffsetWires2B1.push(o[4]), this.ToffsetWires2B1.push(o[5]), this.ToffsetWires2B2.push(o[6]), this.ToffsetWires2B2.push(o[7]), this.ToffsetWires2B2.push(o[8]), this.ToffsetWires2B2.push(o[9]), this.ToffsetWires2B2.push(o[10]), this.ToffsetWires2B2.push(o[11]);
|
|
2253
2247
|
break;
|
|
2254
|
-
case
|
|
2248
|
+
case I.八分裂:
|
|
2255
2249
|
this.ToffsetWires2B1.push(o[0]), this.ToffsetWires2B1.push(o[1]), this.ToffsetWires2B1.push(o[2]), this.ToffsetWires2B1.push(o[3]), this.ToffsetWires2B1.push(o[4]), this.ToffsetWires2B1.push(o[5]), this.ToffsetWires2B1.push(o[6]), this.ToffsetWires2B1.push(o[7]), this.ToffsetWires2B2.push(o[8]), this.ToffsetWires2B2.push(o[9]), this.ToffsetWires2B2.push(o[10]), this.ToffsetWires2B2.push(o[11]), this.ToffsetWires2B2.push(o[12]), this.ToffsetWires2B2.push(o[13]), this.ToffsetWires2B2.push(o[14]), this.ToffsetWires2B2.push(o[15]);
|
|
2256
2250
|
break;
|
|
2257
2251
|
}
|
|
2258
2252
|
break;
|
|
2259
2253
|
case x.C相:
|
|
2260
|
-
if (i.type ==
|
|
2254
|
+
if (i.type == z.耐张串)
|
|
2261
2255
|
if (i.WairFX == "进")
|
|
2262
2256
|
switch (this.LineInfo.Wairnum) {
|
|
2263
|
-
case
|
|
2257
|
+
case I.单分裂:
|
|
2264
2258
|
this.offsetWires23.push(o[0]), this.ToffsetWires2C1.push(o[0]);
|
|
2265
2259
|
break;
|
|
2266
|
-
case
|
|
2260
|
+
case I.双分裂:
|
|
2267
2261
|
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]);
|
|
2268
2262
|
break;
|
|
2269
|
-
case
|
|
2263
|
+
case I.四分裂:
|
|
2270
2264
|
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.offsetWires23.push(o[2]), this.offsetWires23.push(o[3]), this.ToffsetWires2C1.push(o[4]), this.ToffsetWires2C1.push(o[5]), this.ToffsetWires2C1.push(o[6]), this.ToffsetWires2C1.push(o[7]);
|
|
2271
2265
|
break;
|
|
2272
|
-
case
|
|
2266
|
+
case I.六分裂:
|
|
2273
2267
|
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.offsetWires23.push(o[2]), this.offsetWires23.push(o[3]), this.offsetWires23.push(o[4]), this.offsetWires23.push(o[5]), this.ToffsetWires2C1.push(o[6]), this.ToffsetWires2C1.push(o[7]), this.ToffsetWires2C1.push(o[8]), this.ToffsetWires2C1.push(o[9]), this.ToffsetWires2C1.push(o[10]), this.ToffsetWires2C1.push(o[11]);
|
|
2274
2268
|
break;
|
|
2275
|
-
case
|
|
2269
|
+
case I.八分裂:
|
|
2276
2270
|
this.offsetWires23.push(o[0]), this.offsetWires23.push(o[1]), this.offsetWires23.push(o[2]), this.offsetWires23.push(o[3]), this.offsetWires23.push(o[4]), this.offsetWires23.push(o[5]), this.offsetWires23.push(o[6]), this.offsetWires23.push(o[7]), this.ToffsetWires2C1.push(o[8]), this.ToffsetWires2C1.push(o[9]), this.ToffsetWires2C1.push(o[10]), this.ToffsetWires2C1.push(o[11]), this.ToffsetWires2C1.push(o[12]), this.ToffsetWires2C1.push(o[13]), this.ToffsetWires2C1.push(o[14]), this.ToffsetWires2C1.push(o[15]);
|
|
2277
2271
|
break;
|
|
2278
2272
|
}
|
|
2279
2273
|
else
|
|
2280
2274
|
switch (this.LineInfo.Wairnum) {
|
|
2281
|
-
case
|
|
2275
|
+
case I.单分裂:
|
|
2282
2276
|
const A = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n);
|
|
2283
2277
|
this.offsetWires23.push(A), this.ToffsetWires2C2.push(A);
|
|
2284
2278
|
break;
|
|
2285
|
-
case
|
|
2279
|
+
case I.双分裂:
|
|
2286
2280
|
const g = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), y = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n);
|
|
2287
2281
|
this.offsetWires23.push(g), this.offsetWires23.push(y), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(y);
|
|
2288
2282
|
break;
|
|
2289
|
-
case
|
|
2290
|
-
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n),
|
|
2291
|
-
this.offsetWires23.push(L), this.offsetWires23.push(
|
|
2283
|
+
case I.四分裂:
|
|
2284
|
+
const L = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), m = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), B = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), v = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n);
|
|
2285
|
+
this.offsetWires23.push(L), this.offsetWires23.push(m), this.offsetWires23.push(B), this.offsetWires23.push(v), this.ToffsetWires2C2.push(L), this.ToffsetWires2C2.push(m), this.ToffsetWires2C2.push(B), this.ToffsetWires2C2.push(v);
|
|
2292
2286
|
break;
|
|
2293
|
-
case
|
|
2294
|
-
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n),
|
|
2295
|
-
this.offsetWires23.push(b), this.offsetWires23.push(M), this.offsetWires23.push(
|
|
2287
|
+
case I.六分裂:
|
|
2288
|
+
const b = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), M = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), _ = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), R = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), E = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), D = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n);
|
|
2289
|
+
this.offsetWires23.push(b), this.offsetWires23.push(M), this.offsetWires23.push(_), this.offsetWires23.push(R), this.offsetWires23.push(E), this.offsetWires23.push(D), this.ToffsetWires2C2.push(b), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(_), this.ToffsetWires2C2.push(R), this.ToffsetWires2C2.push(E), this.ToffsetWires2C2.push(D);
|
|
2296
2290
|
break;
|
|
2297
|
-
case
|
|
2298
|
-
const
|
|
2299
|
-
this.offsetWires23.push(
|
|
2291
|
+
case I.八分裂:
|
|
2292
|
+
const Z = P(r, new f.Cartesian3(i.InsulatorPoint[0].X * -1, i.InsulatorPoint[0].Y, i.InsulatorPoint[0].Z), n), k = P(r, new f.Cartesian3(i.InsulatorPoint[1].X * -1, i.InsulatorPoint[1].Y, i.InsulatorPoint[1].Z), n), F = P(r, new f.Cartesian3(i.InsulatorPoint[2].X * -1, i.InsulatorPoint[2].Y, i.InsulatorPoint[2].Z), n), X = P(r, new f.Cartesian3(i.InsulatorPoint[3].X * -1, i.InsulatorPoint[3].Y, i.InsulatorPoint[3].Z), n), $ = P(r, new f.Cartesian3(i.InsulatorPoint[4].X * -1, i.InsulatorPoint[4].Y, i.InsulatorPoint[4].Z), n), Y = P(r, new f.Cartesian3(i.InsulatorPoint[5].X * -1, i.InsulatorPoint[5].Y, i.InsulatorPoint[5].Z), n), V = P(r, new f.Cartesian3(i.InsulatorPoint[6].X * -1, i.InsulatorPoint[6].Y, i.InsulatorPoint[6].Z), n), O = P(r, new f.Cartesian3(i.InsulatorPoint[7].X * -1, i.InsulatorPoint[7].Y, i.InsulatorPoint[7].Z), n);
|
|
2293
|
+
this.offsetWires23.push(Z), this.offsetWires23.push(k), this.offsetWires23.push(F), this.offsetWires23.push(X), this.offsetWires23.push($), this.offsetWires23.push(Y), this.offsetWires23.push(V), this.offsetWires23.push(O), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push($), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(V), this.ToffsetWires2C2.push(O);
|
|
2300
2294
|
break;
|
|
2301
2295
|
}
|
|
2302
|
-
else if (i.type ==
|
|
2296
|
+
else if (i.type == z.跳线串)
|
|
2303
2297
|
switch (this.LineInfo.Wairnum) {
|
|
2304
|
-
case
|
|
2298
|
+
case I.单分裂:
|
|
2305
2299
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C2.push(o[0]);
|
|
2306
2300
|
break;
|
|
2307
|
-
case
|
|
2301
|
+
case I.双分裂:
|
|
2308
2302
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C2.push(o[2]), this.ToffsetWires2C2.push(o[3]);
|
|
2309
2303
|
break;
|
|
2310
|
-
case
|
|
2304
|
+
case I.四分裂:
|
|
2311
2305
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]), this.ToffsetWires2C2.push(o[4]), this.ToffsetWires2C2.push(o[5]), this.ToffsetWires2C2.push(o[6]), this.ToffsetWires2C2.push(o[7]);
|
|
2312
2306
|
break;
|
|
2313
|
-
case
|
|
2307
|
+
case I.六分裂:
|
|
2314
2308
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]), this.ToffsetWires2C1.push(o[4]), this.ToffsetWires2C1.push(o[5]), this.ToffsetWires2C2.push(o[6]), this.ToffsetWires2C2.push(o[7]), this.ToffsetWires2C2.push(o[8]), this.ToffsetWires2C2.push(o[9]), this.ToffsetWires2C2.push(o[10]), this.ToffsetWires2C2.push(o[11]);
|
|
2315
2309
|
break;
|
|
2316
|
-
case
|
|
2310
|
+
case I.八分裂:
|
|
2317
2311
|
this.ToffsetWires2C1.push(o[0]), this.ToffsetWires2C1.push(o[1]), this.ToffsetWires2C1.push(o[2]), this.ToffsetWires2C1.push(o[3]), this.ToffsetWires2C1.push(o[4]), this.ToffsetWires2C1.push(o[5]), this.ToffsetWires2C1.push(o[6]), this.ToffsetWires2C1.push(o[7]), this.ToffsetWires2C2.push(o[8]), this.ToffsetWires2C2.push(o[9]), this.ToffsetWires2C2.push(o[10]), this.ToffsetWires2C2.push(o[11]), this.ToffsetWires2C2.push(o[12]), this.ToffsetWires2C2.push(o[13]), this.ToffsetWires2C2.push(o[14]), this.ToffsetWires2C2.push(o[15]);
|
|
2318
2312
|
break;
|
|
2319
2313
|
}
|
|
@@ -2337,7 +2331,7 @@ class us {
|
|
|
2337
2331
|
});
|
|
2338
2332
|
break;
|
|
2339
2333
|
}
|
|
2340
|
-
else if (this.LineInfo.towers[e].type ==
|
|
2334
|
+
else if (this.LineInfo.towers[e].type == it.耐张塔)
|
|
2341
2335
|
switch (u) {
|
|
2342
2336
|
case 11:
|
|
2343
2337
|
this.offsetWires21.push(o[0]), this.ToffsetWires2A1.push(o[0]);
|
|
@@ -2414,28 +2408,28 @@ class us {
|
|
|
2414
2408
|
}), this.offsetWires11.length > 0 && e > 0) {
|
|
2415
2409
|
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [];
|
|
2416
2410
|
switch (this.LineInfo.Wairnum) {
|
|
2417
|
-
case
|
|
2411
|
+
case I.单分裂:
|
|
2418
2412
|
this.offsetWires11.length >= 2 && (i.push(this.offsetWires11[t]), i.push(this.offsetWires11[t - 1]), this.offsetArcWires1A = d(i), this.offsetArcWires1A.forEach((L) => {
|
|
2419
|
-
const
|
|
2420
|
-
this.arcLine1A1.push(
|
|
2413
|
+
const m = Q(this.viewer.scene.globe.ellipsoid, L);
|
|
2414
|
+
this.arcLine1A1.push(m);
|
|
2421
2415
|
}), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2422
2416
|
break;
|
|
2423
|
-
case
|
|
2417
|
+
case I.双分裂:
|
|
2424
2418
|
this.offsetWires11.length >= 4 && (i.push(this.offsetWires11[t]), i.push(this.offsetWires11[t - 2]), this.offsetArcWires1A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((L) => {
|
|
2425
2419
|
this.arcLine1A1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2426
2420
|
}), l.push(this.offsetWires11[t + 1]), l.push(this.offsetWires11[t - 1]), this.offsetArcWires1A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2427
2421
|
break;
|
|
2428
|
-
case
|
|
2422
|
+
case I.四分裂:
|
|
2429
2423
|
this.offsetWires11.length >= 8 && (i.push(this.offsetWires11[t]), i.push(this.offsetWires11[t - 4]), this.offsetArcWires1A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((L) => {
|
|
2430
2424
|
this.arcLine1A1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2431
2425
|
}), l.push(this.offsetWires11[t + 1]), l.push(this.offsetWires11[t - 3]), this.offsetArcWires1A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[t + 2]), T.push(this.offsetWires11[t - 2]), this.offsetArcWires1A = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires11[t + 3]), p.push(this.offsetWires11[t - 1]), this.offsetArcWires1A = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2432
2426
|
break;
|
|
2433
|
-
case
|
|
2427
|
+
case I.六分裂:
|
|
2434
2428
|
this.offsetWires11.length >= 12 && (i.push(this.offsetWires11[t]), i.push(this.offsetWires11[t - 6]), this.offsetArcWires1A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((L) => {
|
|
2435
2429
|
this.arcLine1A1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2436
2430
|
}), l.push(this.offsetWires11[t + 1]), l.push(this.offsetWires11[t - 5]), this.offsetArcWires1A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[t + 2]), T.push(this.offsetWires11[t - 4]), this.offsetArcWires1A = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires11[t + 3]), p.push(this.offsetWires11[t - 3]), this.offsetArcWires1A = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires11[t + 4]), o.push(this.offsetWires11[t - 2]), this.offsetArcWires1A = d(o), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires11[t + 5]), A.push(this.offsetWires11[t - 1]), this.offsetArcWires1A = d(A), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2437
2431
|
break;
|
|
2438
|
-
case
|
|
2432
|
+
case I.八分裂:
|
|
2439
2433
|
this.offsetWires11.length >= 16 && (i.push(this.offsetWires11[t]), i.push(this.offsetWires11[t - 8]), this.offsetArcWires1A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((L) => {
|
|
2440
2434
|
this.arcLine1A1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2441
2435
|
}), l.push(this.offsetWires11[t + 1]), l.push(this.offsetWires11[t - 7]), this.offsetArcWires1A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[t + 2]), T.push(this.offsetWires11[t - 6]), this.offsetArcWires1A = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires11[t + 3]), p.push(this.offsetWires11[t - 5]), this.offsetArcWires1A = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires11[t + 4]), o.push(this.offsetWires11[t - 4]), this.offsetArcWires1A = d(o), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires11[t + 5]), A.push(this.offsetWires11[t - 3]), this.offsetArcWires1A = d(A), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires11[t + 6]), g.push(this.offsetWires11[t - 2]), this.offsetArcWires1A = d(g), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), y.push(this.offsetWires11[t + 7]), y.push(this.offsetWires11[t - 1]), this.offsetArcWires1A = d(y), this.LineentityCollection2.add(C(this.offsetArcWires1A, "导线1_A8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
@@ -2445,27 +2439,27 @@ class us {
|
|
|
2445
2439
|
if (this.offsetWires12.length > 0 && e > 0) {
|
|
2446
2440
|
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [];
|
|
2447
2441
|
switch (this.LineInfo.Wairnum) {
|
|
2448
|
-
case
|
|
2442
|
+
case I.单分裂:
|
|
2449
2443
|
i.push(this.offsetWires12[t]), i.push(this.offsetWires12[t - 1]), this.offsetArcWires1B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((L) => {
|
|
2450
2444
|
this.arcLine1B1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2451
2445
|
});
|
|
2452
2446
|
break;
|
|
2453
|
-
case
|
|
2447
|
+
case I.双分裂:
|
|
2454
2448
|
i.push(this.offsetWires12[t]), i.push(this.offsetWires12[t - 2]), this.offsetArcWires1B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((L) => {
|
|
2455
2449
|
this.arcLine1B1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2456
2450
|
}), l.push(this.offsetWires12[t + 1]), l.push(this.offsetWires12[t - 1]), this.offsetArcWires1B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2457
2451
|
break;
|
|
2458
|
-
case
|
|
2452
|
+
case I.四分裂:
|
|
2459
2453
|
i.push(this.offsetWires12[t]), i.push(this.offsetWires12[t - 4]), this.offsetArcWires1B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((L) => {
|
|
2460
2454
|
this.arcLine1B1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2461
2455
|
}), l.push(this.offsetWires12[t + 1]), l.push(this.offsetWires12[t - 3]), this.offsetArcWires1B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[t + 2]), T.push(this.offsetWires12[t - 2]), this.offsetArcWires1B = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires12[t + 3]), p.push(this.offsetWires12[t - 1]), this.offsetArcWires1B = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2462
2456
|
break;
|
|
2463
|
-
case
|
|
2457
|
+
case I.六分裂:
|
|
2464
2458
|
i.push(this.offsetWires12[t]), i.push(this.offsetWires12[t - 6]), this.offsetArcWires1B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((L) => {
|
|
2465
2459
|
this.arcLine1B1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2466
2460
|
}), l.push(this.offsetWires12[t + 1]), l.push(this.offsetWires12[t - 5]), this.offsetArcWires1B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[t + 2]), T.push(this.offsetWires12[t - 4]), this.offsetArcWires1B = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires12[t + 3]), p.push(this.offsetWires12[t - 3]), this.offsetArcWires1B = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires12[t + 4]), o.push(this.offsetWires12[t - 2]), this.offsetArcWires1B = d(o), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires12[t + 5]), A.push(this.offsetWires12[t - 1]), this.offsetArcWires1B = d(A), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2467
2461
|
break;
|
|
2468
|
-
case
|
|
2462
|
+
case I.八分裂:
|
|
2469
2463
|
i.push(this.offsetWires12[t]), i.push(this.offsetWires12[t - 8]), this.offsetArcWires1B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((L) => {
|
|
2470
2464
|
this.arcLine1B1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2471
2465
|
}), l.push(this.offsetWires12[t + 1]), l.push(this.offsetWires12[t - 7]), this.offsetArcWires1B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[t + 2]), T.push(this.offsetWires12[t - 6]), this.offsetArcWires1B = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires12[t + 3]), p.push(this.offsetWires12[t - 5]), this.offsetArcWires1B = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires12[t + 4]), o.push(this.offsetWires12[t - 4]), this.offsetArcWires1B = d(o), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires12[t + 5]), A.push(this.offsetWires12[t - 3]), this.offsetArcWires1B = d(A), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires12[t + 6]), g.push(this.offsetWires12[t - 2]), this.offsetArcWires1B = d(g), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), y.push(this.offsetWires12[t + 7]), y.push(this.offsetWires12[t - 1]), this.offsetArcWires1B = d(y), this.LineentityCollection2.add(C(this.offsetArcWires1B, "导线1_B8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
@@ -2475,27 +2469,27 @@ class us {
|
|
|
2475
2469
|
if (this.offsetWires13.length > 0 && e > 0) {
|
|
2476
2470
|
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [];
|
|
2477
2471
|
switch (this.LineInfo.Wairnum) {
|
|
2478
|
-
case
|
|
2472
|
+
case I.单分裂:
|
|
2479
2473
|
i.push(this.offsetWires13[t]), i.push(this.offsetWires13[t - 1]), this.offsetArcWires1C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1C.forEach((L) => {
|
|
2480
2474
|
this.arcLine1C1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2481
2475
|
});
|
|
2482
2476
|
break;
|
|
2483
|
-
case
|
|
2477
|
+
case I.双分裂:
|
|
2484
2478
|
i.push(this.offsetWires13[t]), i.push(this.offsetWires13[t - 2]), this.offsetArcWires1C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[t + 1]), l.push(this.offsetWires13[t - 1]), this.offsetArcWires1C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1C.forEach((L) => {
|
|
2485
2479
|
this.arcLine1C1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2486
2480
|
});
|
|
2487
2481
|
break;
|
|
2488
|
-
case
|
|
2482
|
+
case I.四分裂:
|
|
2489
2483
|
i.push(this.offsetWires13[t]), i.push(this.offsetWires13[t - 4]), this.offsetArcWires1C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[t + 1]), l.push(this.offsetWires13[t - 3]), this.offsetArcWires1C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires13[t + 2]), T.push(this.offsetWires13[t - 2]), this.offsetArcWires1C = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires13[t + 3]), p.push(this.offsetWires13[t - 1]), this.offsetArcWires1C = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1C.forEach((L) => {
|
|
2490
2484
|
this.arcLine1C1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2491
2485
|
});
|
|
2492
2486
|
break;
|
|
2493
|
-
case
|
|
2487
|
+
case I.六分裂:
|
|
2494
2488
|
i.push(this.offsetWires13[t]), i.push(this.offsetWires13[t - 6]), this.offsetArcWires1C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[t + 1]), l.push(this.offsetWires13[t - 5]), this.offsetArcWires1C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires13[t + 2]), T.push(this.offsetWires13[t - 4]), this.offsetArcWires1C = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires13[t + 3]), p.push(this.offsetWires13[t - 3]), this.offsetArcWires1C = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires13[t + 4]), o.push(this.offsetWires13[t - 2]), this.offsetArcWires1C = d(o), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires13[t + 5]), A.push(this.offsetWires13[t - 1]), this.offsetArcWires1C = d(A), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1C.forEach((L) => {
|
|
2495
2489
|
this.arcLine1C1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2496
2490
|
});
|
|
2497
2491
|
break;
|
|
2498
|
-
case
|
|
2492
|
+
case I.八分裂:
|
|
2499
2493
|
i.push(this.offsetWires13[t]), i.push(this.offsetWires13[t - 8]), this.offsetArcWires1C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires13[t + 1]), l.push(this.offsetWires13[t - 7]), this.offsetArcWires1C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires13[t + 2]), T.push(this.offsetWires13[t - 6]), this.offsetArcWires1C = d(T), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires13[t + 3]), p.push(this.offsetWires13[t - 5]), this.offsetArcWires1C = d(p), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires13[t + 4]), o.push(this.offsetWires13[t - 4]), this.offsetArcWires1C = d(o), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires13[t + 5]), A.push(this.offsetWires13[t - 3]), this.offsetArcWires1C = d(A), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires13[t + 6]), g.push(this.offsetWires13[t - 2]), this.offsetArcWires1C = d(g), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), y.push(this.offsetWires13[t + 7]), y.push(this.offsetWires13[t - 1]), this.offsetArcWires1C = d(y), this.LineentityCollection2.add(C(this.offsetArcWires1C, "导线1_C8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1C.forEach((L) => {
|
|
2500
2494
|
this.arcLine1C1.push(Q(this.viewer.scene.globe.ellipsoid, L));
|
|
2501
2495
|
});
|
|
@@ -2505,19 +2499,19 @@ class us {
|
|
|
2505
2499
|
if (this.offsetWires21.length > 0 && e > 0) {
|
|
2506
2500
|
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [];
|
|
2507
2501
|
switch (this.LineInfo.Wairnum) {
|
|
2508
|
-
case
|
|
2502
|
+
case I.单分裂:
|
|
2509
2503
|
i.push(this.offsetWires21[t]), i.push(this.offsetWires21[t - 1]), this.offsetArcWires2A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2510
2504
|
break;
|
|
2511
|
-
case
|
|
2505
|
+
case I.双分裂:
|
|
2512
2506
|
i.push(this.offsetWires21[t]), i.push(this.offsetWires21[t - 2]), this.offsetArcWires2A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[t + 1]), l.push(this.offsetWires21[t - 1]), this.offsetArcWires2A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2513
2507
|
break;
|
|
2514
|
-
case
|
|
2508
|
+
case I.四分裂:
|
|
2515
2509
|
i.push(this.offsetWires21[t]), i.push(this.offsetWires21[t - 4]), this.offsetArcWires2A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[t + 1]), l.push(this.offsetWires21[t - 3]), this.offsetArcWires2A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires21[t + 2]), T.push(this.offsetWires21[t - 2]), this.offsetArcWires2A = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires21[t + 3]), p.push(this.offsetWires21[t - 1]), this.offsetArcWires2A = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2516
2510
|
break;
|
|
2517
|
-
case
|
|
2511
|
+
case I.六分裂:
|
|
2518
2512
|
i.push(this.offsetWires21[t]), i.push(this.offsetWires21[t - 6]), this.offsetArcWires2A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[t + 1]), l.push(this.offsetWires21[t - 5]), this.offsetArcWires2A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires21[t + 2]), T.push(this.offsetWires21[t - 4]), this.offsetArcWires2A = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires21[t + 3]), p.push(this.offsetWires21[t - 3]), this.offsetArcWires2A = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires21[t + 4]), o.push(this.offsetWires21[t - 2]), this.offsetArcWires2A = d(o), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires21[t + 5]), A.push(this.offsetWires21[t - 1]), this.offsetArcWires2A = d(A), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2519
2513
|
break;
|
|
2520
|
-
case
|
|
2514
|
+
case I.八分裂:
|
|
2521
2515
|
i.push(this.offsetWires21[t]), i.push(this.offsetWires21[t - 8]), this.offsetArcWires2A = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires21[t + 1]), l.push(this.offsetWires21[t - 7]), this.offsetArcWires2A = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires21[t + 2]), T.push(this.offsetWires21[t - 6]), this.offsetArcWires2A = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires21[t + 3]), p.push(this.offsetWires21[t - 5]), this.offsetArcWires2A = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires21[t + 4]), o.push(this.offsetWires21[t - 4]), this.offsetArcWires2A = d(o), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires21[t + 5]), A.push(this.offsetWires21[t - 3]), this.offsetArcWires2A = d(A), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires21[t + 6]), g.push(this.offsetWires21[t - 2]), this.offsetArcWires2A = d(g), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), y.push(this.offsetWires21[t + 7]), y.push(this.offsetWires21[t - 1]), this.offsetArcWires2A = d(y), this.LineentityCollection2.add(C(this.offsetArcWires2A, "导线2_A8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2522
2516
|
break;
|
|
2523
2517
|
}
|
|
@@ -2525,19 +2519,19 @@ class us {
|
|
|
2525
2519
|
if (this.offsetWires22.length > 0 && e > 0) {
|
|
2526
2520
|
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [];
|
|
2527
2521
|
switch (this.LineInfo.Wairnum) {
|
|
2528
|
-
case
|
|
2522
|
+
case I.单分裂:
|
|
2529
2523
|
i.push(this.offsetWires22[t]), i.push(this.offsetWires22[t - 1]), this.offsetArcWires2B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2530
2524
|
break;
|
|
2531
|
-
case
|
|
2525
|
+
case I.双分裂:
|
|
2532
2526
|
i.push(this.offsetWires22[t]), i.push(this.offsetWires22[t - 2]), this.offsetArcWires2B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[t + 1]), l.push(this.offsetWires22[t - 1]), this.offsetArcWires2B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2533
2527
|
break;
|
|
2534
|
-
case
|
|
2528
|
+
case I.四分裂:
|
|
2535
2529
|
i.push(this.offsetWires22[t]), i.push(this.offsetWires22[t - 4]), this.offsetArcWires2B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[t + 1]), l.push(this.offsetWires22[t - 3]), this.offsetArcWires2B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires22[t + 2]), T.push(this.offsetWires22[t - 2]), this.offsetArcWires2B = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires22[t + 3]), p.push(this.offsetWires22[t - 1]), this.offsetArcWires2B = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2536
2530
|
break;
|
|
2537
|
-
case
|
|
2531
|
+
case I.六分裂:
|
|
2538
2532
|
i.push(this.offsetWires22[t]), i.push(this.offsetWires22[t - 6]), this.offsetArcWires2B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[t + 1]), l.push(this.offsetWires22[t - 5]), this.offsetArcWires2B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires22[t + 2]), T.push(this.offsetWires22[t - 4]), this.offsetArcWires2B = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires22[t + 3]), p.push(this.offsetWires22[t - 3]), this.offsetArcWires2B = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires22[t + 4]), o.push(this.offsetWires22[t - 2]), this.offsetArcWires2B = d(o), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires22[t + 5]), A.push(this.offsetWires22[t - 1]), this.offsetArcWires2B = d(A), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2539
2533
|
break;
|
|
2540
|
-
case
|
|
2534
|
+
case I.八分裂:
|
|
2541
2535
|
i.push(this.offsetWires22[t]), i.push(this.offsetWires22[t - 8]), this.offsetArcWires2B = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires22[t + 1]), l.push(this.offsetWires22[t - 7]), this.offsetArcWires2B = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires22[t + 2]), T.push(this.offsetWires22[t - 6]), this.offsetArcWires2B = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires22[t + 3]), p.push(this.offsetWires22[t - 5]), this.offsetArcWires2B = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires22[t + 4]), o.push(this.offsetWires22[t - 4]), this.offsetArcWires2B = d(o), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires22[t + 5]), A.push(this.offsetWires22[t - 3]), this.offsetArcWires2B = d(A), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires22[t + 6]), g.push(this.offsetWires22[t - 2]), this.offsetArcWires2B = d(g), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), y.push(this.offsetWires22[t + 7]), y.push(this.offsetWires22[t - 1]), this.offsetArcWires2B = d(y), this.LineentityCollection2.add(C(this.offsetArcWires2B, "导线2_B8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2542
2536
|
break;
|
|
2543
2537
|
}
|
|
@@ -2545,19 +2539,19 @@ class us {
|
|
|
2545
2539
|
if (this.offsetWires23.length > 0 && e > 0) {
|
|
2546
2540
|
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [];
|
|
2547
2541
|
switch (this.LineInfo.Wairnum) {
|
|
2548
|
-
case
|
|
2542
|
+
case I.单分裂:
|
|
2549
2543
|
i.push(this.offsetWires23[t]), i.push(this.offsetWires23[t - 1]), this.offsetArcWires2C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2550
2544
|
break;
|
|
2551
|
-
case
|
|
2545
|
+
case I.双分裂:
|
|
2552
2546
|
i.push(this.offsetWires23[t]), i.push(this.offsetWires23[t - 2]), this.offsetArcWires2C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[t + 1]), l.push(this.offsetWires23[t - 1]), this.offsetArcWires2C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2553
2547
|
break;
|
|
2554
|
-
case
|
|
2548
|
+
case I.四分裂:
|
|
2555
2549
|
i.push(this.offsetWires23[t]), i.push(this.offsetWires23[t - 4]), this.offsetArcWires2C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[t + 1]), l.push(this.offsetWires23[t - 3]), this.offsetArcWires2C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires23[t + 2]), T.push(this.offsetWires23[t - 2]), this.offsetArcWires2C = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires23[t + 3]), p.push(this.offsetWires23[t - 1]), this.offsetArcWires2C = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2556
2550
|
break;
|
|
2557
|
-
case
|
|
2551
|
+
case I.六分裂:
|
|
2558
2552
|
i.push(this.offsetWires23[t]), i.push(this.offsetWires23[t - 6]), this.offsetArcWires2C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[t + 1]), l.push(this.offsetWires23[t - 5]), this.offsetArcWires2C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires23[t + 2]), T.push(this.offsetWires23[t - 4]), this.offsetArcWires2C = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires23[t + 3]), p.push(this.offsetWires23[t - 3]), this.offsetArcWires2C = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires23[t + 4]), o.push(this.offsetWires23[t - 2]), this.offsetArcWires2C = d(o), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires23[t + 5]), A.push(this.offsetWires23[t - 1]), this.offsetArcWires2C = d(A), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2559
2553
|
break;
|
|
2560
|
-
case
|
|
2554
|
+
case I.八分裂:
|
|
2561
2555
|
i.push(this.offsetWires23[t]), i.push(this.offsetWires23[t - 8]), this.offsetArcWires2C = d(i), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), l.push(this.offsetWires23[t + 1]), l.push(this.offsetWires23[t - 7]), this.offsetArcWires2C = d(l), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires23[t + 2]), T.push(this.offsetWires23[t - 6]), this.offsetArcWires2C = d(T), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), p.push(this.offsetWires23[t + 3]), p.push(this.offsetWires23[t - 5]), this.offsetArcWires2C = d(p), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), o.push(this.offsetWires23[t + 4]), o.push(this.offsetWires23[t - 4]), this.offsetArcWires2C = d(o), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), A.push(this.offsetWires23[t + 5]), A.push(this.offsetWires23[t - 3]), this.offsetArcWires2C = d(A), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), g.push(this.offsetWires23[t + 6]), g.push(this.offsetWires23[t - 2]), this.offsetArcWires2C = d(g), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), y.push(this.offsetWires23[t + 7]), y.push(this.offsetWires23[t - 1]), this.offsetArcWires2C = d(y), this.LineentityCollection2.add(C(this.offsetArcWires2C, "导线2_C8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2562
2556
|
break;
|
|
2563
2557
|
}
|
|
@@ -2569,159 +2563,159 @@ class us {
|
|
|
2569
2563
|
l.push(this.offsetGrouundWires12[e]), l.push(this.offsetGrouundWires12[e - 1]), this.offsetGrouundWires1 = d(i, 2), this.offsetGrouundWires2 = d(l, 2), this.LineentityCollection2.add(C(this.offsetGrouundWires1, "地线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireD1Color)), this.LineentityCollection2.add(C(this.offsetGrouundWires2, "地线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireD2Color));
|
|
2570
2564
|
}
|
|
2571
2565
|
let c = 2;
|
|
2572
|
-
if (this.LineInfo.towers[e].type ==
|
|
2566
|
+
if (this.LineInfo.towers[e].type == it.耐张塔) {
|
|
2573
2567
|
switch (this.LineInfo.Wairnum) {
|
|
2574
|
-
case
|
|
2568
|
+
case I.单分裂:
|
|
2575
2569
|
t = t + c, s = s + c;
|
|
2576
2570
|
break;
|
|
2577
|
-
case
|
|
2571
|
+
case I.双分裂:
|
|
2578
2572
|
t = t + c * 2, s = s + c * 2;
|
|
2579
2573
|
break;
|
|
2580
|
-
case
|
|
2574
|
+
case I.四分裂:
|
|
2581
2575
|
t = t + c * 4, s = s + c * 4;
|
|
2582
2576
|
break;
|
|
2583
|
-
case
|
|
2577
|
+
case I.六分裂:
|
|
2584
2578
|
t = t + c * 6, s = s + c * 6;
|
|
2585
2579
|
break;
|
|
2586
|
-
case
|
|
2580
|
+
case I.八分裂:
|
|
2587
2581
|
t = t + c * 8, s = s + c * 8;
|
|
2588
2582
|
break;
|
|
2589
2583
|
}
|
|
2590
2584
|
if (this.ToffsetWires1A1.length > 1 && this.ToffsetWires1A2.length > 1) {
|
|
2591
|
-
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [],
|
|
2585
|
+
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [], m = [], B = [], v = [], b = [], M = [], _ = [], R = [];
|
|
2592
2586
|
switch (this.LineInfo.Wairnum) {
|
|
2593
|
-
case
|
|
2587
|
+
case I.单分裂:
|
|
2594
2588
|
this.ToffsetWires1A1.length >= 2 && (i.push(this.ToffsetWires1A1[s - 2]), i.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 2 && (L.push(this.ToffsetWires1A2[s - 2]), L.push(this.ToffsetWires1A2[s - 1]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2595
2589
|
break;
|
|
2596
|
-
case
|
|
2597
|
-
this.ToffsetWires1A1.length >= 4 && (i.push(this.ToffsetWires1A1[s - 4]), i.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 3]), l.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 4 && (L.push(this.ToffsetWires1A2[s - 4]), L.push(this.ToffsetWires1A2[s - 2]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2590
|
+
case I.双分裂:
|
|
2591
|
+
this.ToffsetWires1A1.length >= 4 && (i.push(this.ToffsetWires1A1[s - 4]), i.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 3]), l.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 4 && (L.push(this.ToffsetWires1A2[s - 4]), L.push(this.ToffsetWires1A2[s - 2]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A2[s - 3]), m.push(this.ToffsetWires1A2[s - 1]), this.ToffsetArcWires2A = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2598
2592
|
break;
|
|
2599
|
-
case
|
|
2600
|
-
this.ToffsetWires1A1.length >= 8 && (i.push(this.ToffsetWires1A1[s - 8]), i.push(this.ToffsetWires1A1[s - 4]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 7]), l.push(this.ToffsetWires1A1[s - 3]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[s - 6]), T.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1A1[s - 5]), p.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 8 && (L.push(this.ToffsetWires1A2[s - 8]), L.push(this.ToffsetWires1A2[s - 4]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2593
|
+
case I.四分裂:
|
|
2594
|
+
this.ToffsetWires1A1.length >= 8 && (i.push(this.ToffsetWires1A1[s - 8]), i.push(this.ToffsetWires1A1[s - 4]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 7]), l.push(this.ToffsetWires1A1[s - 3]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[s - 6]), T.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1A1[s - 5]), p.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 8 && (L.push(this.ToffsetWires1A2[s - 8]), L.push(this.ToffsetWires1A2[s - 4]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A2[s - 7]), m.push(this.ToffsetWires1A2[s - 3]), this.ToffsetArcWires2A = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[s - 6]), B.push(this.ToffsetWires1A2[s - 2]), this.ToffsetArcWires2A = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[s - 5]), v.push(this.ToffsetWires1A2[s - 1]), this.ToffsetArcWires2A = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2601
2595
|
break;
|
|
2602
|
-
case
|
|
2603
|
-
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[s - 12]), i.push(this.ToffsetWires1A1[s - 6]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 11]), l.push(this.ToffsetWires1A1[s - 5]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[s - 10]), T.push(this.ToffsetWires1A1[s - 4]), this.ToffsetArcWires1A = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1A1[s - 9]), p.push(this.ToffsetWires1A1[s - 3]), this.ToffsetArcWires1A = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[s - 8]), o.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1A1[s - 7]), A.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (L.push(this.ToffsetWires1A2[s - 12]), L.push(this.ToffsetWires1A2[s - 6]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2596
|
+
case I.六分裂:
|
|
2597
|
+
this.ToffsetWires1A1.length >= 12 && (i.push(this.ToffsetWires1A1[s - 12]), i.push(this.ToffsetWires1A1[s - 6]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 11]), l.push(this.ToffsetWires1A1[s - 5]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[s - 10]), T.push(this.ToffsetWires1A1[s - 4]), this.ToffsetArcWires1A = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1A1[s - 9]), p.push(this.ToffsetWires1A1[s - 3]), this.ToffsetArcWires1A = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[s - 8]), o.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1A1[s - 7]), A.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 12 && (L.push(this.ToffsetWires1A2[s - 12]), L.push(this.ToffsetWires1A2[s - 6]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A2[s - 11]), m.push(this.ToffsetWires1A2[s - 5]), this.ToffsetArcWires2A = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[s - 10]), B.push(this.ToffsetWires1A2[s - 4]), this.ToffsetArcWires2A = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[s - 9]), v.push(this.ToffsetWires1A2[s - 3]), this.ToffsetArcWires2A = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A2[s - 8]), b.push(this.ToffsetWires1A2[s - 2]), this.ToffsetArcWires2A = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1A2[s - 7]), M.push(this.ToffsetWires1A2[s - 1]), this.ToffsetArcWires2A = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2604
2598
|
break;
|
|
2605
|
-
case
|
|
2606
|
-
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[s - 16]), i.push(this.ToffsetWires1A1[s - 8]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 15]), l.push(this.ToffsetWires1A1[s - 7]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[s - 14]), T.push(this.ToffsetWires1A1[s - 6]), this.ToffsetArcWires1A = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1A1[s - 13]), p.push(this.ToffsetWires1A1[s - 5]), this.ToffsetArcWires1A = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[s - 12]), o.push(this.ToffsetWires1A1[s - 4]), this.ToffsetArcWires1A = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1A1[s - 11]), A.push(this.ToffsetWires1A1[s - 3]), this.ToffsetArcWires1A = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A1[s - 10]), g.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A1[s - 9]), y.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 16 && (L.push(this.ToffsetWires1A2[s - 16]), L.push(this.ToffsetWires1A2[s - 8]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2599
|
+
case I.八分裂:
|
|
2600
|
+
this.ToffsetWires1A1.length >= 16 && (i.push(this.ToffsetWires1A1[s - 16]), i.push(this.ToffsetWires1A1[s - 8]), this.ToffsetArcWires1A = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1A1[s - 15]), l.push(this.ToffsetWires1A1[s - 7]), this.ToffsetArcWires1A = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1A1[s - 14]), T.push(this.ToffsetWires1A1[s - 6]), this.ToffsetArcWires1A = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1A1[s - 13]), p.push(this.ToffsetWires1A1[s - 5]), this.ToffsetArcWires1A = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1A1[s - 12]), o.push(this.ToffsetWires1A1[s - 4]), this.ToffsetArcWires1A = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1A1[s - 11]), A.push(this.ToffsetWires1A1[s - 3]), this.ToffsetArcWires1A = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1A1[s - 10]), g.push(this.ToffsetWires1A1[s - 2]), this.ToffsetArcWires1A = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1A1[s - 9]), y.push(this.ToffsetWires1A1[s - 1]), this.ToffsetArcWires1A = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A, "1A1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1A2.length >= 16 && (L.push(this.ToffsetWires1A2[s - 16]), L.push(this.ToffsetWires1A2[s - 8]), this.ToffsetArcWires2A = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1A2[s - 15]), m.push(this.ToffsetWires1A2[s - 7]), this.ToffsetArcWires2A = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1A2[s - 14]), B.push(this.ToffsetWires1A2[s - 6]), this.ToffsetArcWires2A = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1A2[s - 13]), v.push(this.ToffsetWires1A2[s - 5]), this.ToffsetArcWires2A = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1A2[s - 12]), b.push(this.ToffsetWires1A2[s - 4]), this.ToffsetArcWires2A = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1A2[s - 11]), M.push(this.ToffsetWires1A2[s - 3]), this.ToffsetArcWires2A = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1A2[s - 10]), _.push(this.ToffsetWires1A2[s - 2]), this.ToffsetArcWires2A = d(_, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), R.push(this.ToffsetWires1A2[s - 9]), R.push(this.ToffsetWires1A2[s - 1]), this.ToffsetArcWires2A = d(R, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A, "1A2跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2607
2601
|
break;
|
|
2608
2602
|
}
|
|
2609
2603
|
}
|
|
2610
2604
|
if (this.ToffsetWires1B1.length > 1 && this.ToffsetWires1B2.length > 1) {
|
|
2611
|
-
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [],
|
|
2605
|
+
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [], m = [], B = [], v = [], b = [], M = [], _ = [], R = [];
|
|
2612
2606
|
switch (this.LineInfo.Wairnum) {
|
|
2613
|
-
case
|
|
2607
|
+
case I.单分裂:
|
|
2614
2608
|
this.ToffsetWires1B1.length >= 2 && (i.push(this.ToffsetWires1B1[s - 2]), i.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 2 && (L.push(this.ToffsetWires1B2[s - 2]), L.push(this.ToffsetWires1B2[s - 1]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2615
2609
|
break;
|
|
2616
|
-
case
|
|
2617
|
-
this.ToffsetWires1B1.length >= 4 && (i.push(this.ToffsetWires1B1[s - 4]), i.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 3]), l.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 4 && (L.push(this.ToffsetWires1B2[s - 4]), L.push(this.ToffsetWires1B2[s - 2]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2610
|
+
case I.双分裂:
|
|
2611
|
+
this.ToffsetWires1B1.length >= 4 && (i.push(this.ToffsetWires1B1[s - 4]), i.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 3]), l.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 4 && (L.push(this.ToffsetWires1B2[s - 4]), L.push(this.ToffsetWires1B2[s - 2]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B2[s - 3]), m.push(this.ToffsetWires1B2[s - 1]), this.ToffsetArcWires2B = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2618
2612
|
break;
|
|
2619
|
-
case
|
|
2620
|
-
this.ToffsetWires1B1.length >= 8 && (i.push(this.ToffsetWires1B1[s - 8]), i.push(this.ToffsetWires1B1[s - 4]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 7]), l.push(this.ToffsetWires1B1[s - 3]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[s - 6]), T.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1B1[s - 5]), p.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 8 && (L.push(this.ToffsetWires1B2[s - 8]), L.push(this.ToffsetWires1B2[s - 4]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2613
|
+
case I.四分裂:
|
|
2614
|
+
this.ToffsetWires1B1.length >= 8 && (i.push(this.ToffsetWires1B1[s - 8]), i.push(this.ToffsetWires1B1[s - 4]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 7]), l.push(this.ToffsetWires1B1[s - 3]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[s - 6]), T.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1B1[s - 5]), p.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 8 && (L.push(this.ToffsetWires1B2[s - 8]), L.push(this.ToffsetWires1B2[s - 4]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B2[s - 7]), m.push(this.ToffsetWires1B2[s - 3]), this.ToffsetArcWires2B = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[s - 6]), B.push(this.ToffsetWires1B2[s - 2]), this.ToffsetArcWires2B = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[s - 5]), v.push(this.ToffsetWires1B2[s - 1]), this.ToffsetArcWires2B = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2621
2615
|
break;
|
|
2622
|
-
case
|
|
2623
|
-
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[s - 12]), i.push(this.ToffsetWires1B1[s - 6]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 11]), l.push(this.ToffsetWires1B1[s - 5]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[s - 10]), T.push(this.ToffsetWires1B1[s - 4]), this.ToffsetArcWires1B = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1B1[s - 9]), p.push(this.ToffsetWires1B1[s - 3]), this.ToffsetArcWires1B = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[s - 8]), o.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1B1[s - 7]), A.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (L.push(this.ToffsetWires1B2[s - 12]), L.push(this.ToffsetWires1B2[s - 6]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2616
|
+
case I.六分裂:
|
|
2617
|
+
this.ToffsetWires1B1.length >= 12 && (i.push(this.ToffsetWires1B1[s - 12]), i.push(this.ToffsetWires1B1[s - 6]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 11]), l.push(this.ToffsetWires1B1[s - 5]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[s - 10]), T.push(this.ToffsetWires1B1[s - 4]), this.ToffsetArcWires1B = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1B1[s - 9]), p.push(this.ToffsetWires1B1[s - 3]), this.ToffsetArcWires1B = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[s - 8]), o.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1B1[s - 7]), A.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 12 && (L.push(this.ToffsetWires1B2[s - 12]), L.push(this.ToffsetWires1B2[s - 6]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B2[s - 11]), m.push(this.ToffsetWires1B2[s - 5]), this.ToffsetArcWires2B = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[s - 10]), B.push(this.ToffsetWires1B2[s - 4]), this.ToffsetArcWires2B = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[s - 9]), v.push(this.ToffsetWires1B2[s - 3]), this.ToffsetArcWires2B = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B2[s - 8]), b.push(this.ToffsetWires1B2[s - 2]), this.ToffsetArcWires2B = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1B2[s - 7]), M.push(this.ToffsetWires1B2[s - 1]), this.ToffsetArcWires2B = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2624
2618
|
break;
|
|
2625
|
-
case
|
|
2626
|
-
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[s - 16]), i.push(this.ToffsetWires1B1[s - 8]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 15]), l.push(this.ToffsetWires1B1[s - 7]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[s - 14]), T.push(this.ToffsetWires1B1[s - 6]), this.ToffsetArcWires1B = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1B1[s - 13]), p.push(this.ToffsetWires1B1[s - 5]), this.ToffsetArcWires1B = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[s - 12]), o.push(this.ToffsetWires1B1[s - 4]), this.ToffsetArcWires1B = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1B1[s - 11]), A.push(this.ToffsetWires1B1[s - 3]), this.ToffsetArcWires1B = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B1[s - 10]), g.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B1[s - 9]), y.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 16 && (L.push(this.ToffsetWires1B2[s - 16]), L.push(this.ToffsetWires1B2[s - 8]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2619
|
+
case I.八分裂:
|
|
2620
|
+
this.ToffsetWires1B1.length >= 16 && (i.push(this.ToffsetWires1B1[s - 16]), i.push(this.ToffsetWires1B1[s - 8]), this.ToffsetArcWires1B = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1B1[s - 15]), l.push(this.ToffsetWires1B1[s - 7]), this.ToffsetArcWires1B = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1B1[s - 14]), T.push(this.ToffsetWires1B1[s - 6]), this.ToffsetArcWires1B = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1B1[s - 13]), p.push(this.ToffsetWires1B1[s - 5]), this.ToffsetArcWires1B = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1B1[s - 12]), o.push(this.ToffsetWires1B1[s - 4]), this.ToffsetArcWires1B = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1B1[s - 11]), A.push(this.ToffsetWires1B1[s - 3]), this.ToffsetArcWires1B = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1B1[s - 10]), g.push(this.ToffsetWires1B1[s - 2]), this.ToffsetArcWires1B = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1B1[s - 9]), y.push(this.ToffsetWires1B1[s - 1]), this.ToffsetArcWires1B = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B, "1B1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1B2.length >= 16 && (L.push(this.ToffsetWires1B2[s - 16]), L.push(this.ToffsetWires1B2[s - 8]), this.ToffsetArcWires2B = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1B2[s - 15]), m.push(this.ToffsetWires1B2[s - 7]), this.ToffsetArcWires2B = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1B2[s - 14]), B.push(this.ToffsetWires1B2[s - 6]), this.ToffsetArcWires2B = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1B2[s - 13]), v.push(this.ToffsetWires1B2[s - 5]), this.ToffsetArcWires2B = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1B2[s - 12]), b.push(this.ToffsetWires1B2[s - 4]), this.ToffsetArcWires2B = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1B2[s - 11]), M.push(this.ToffsetWires1B2[s - 3]), this.ToffsetArcWires2B = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1B2[s - 10]), _.push(this.ToffsetWires1B2[s - 2]), this.ToffsetArcWires2B = d(_, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), R.push(this.ToffsetWires1B2[s - 9]), R.push(this.ToffsetWires1B2[s - 1]), this.ToffsetArcWires2B = d(R, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B, "1B2跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2627
2621
|
break;
|
|
2628
2622
|
}
|
|
2629
2623
|
}
|
|
2630
2624
|
if (this.ToffsetWires1C1.length > 1 && this.ToffsetWires1C2.length > 1) {
|
|
2631
|
-
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [],
|
|
2625
|
+
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [], m = [], B = [], v = [], b = [], M = [], _ = [], R = [];
|
|
2632
2626
|
switch (this.LineInfo.Wairnum) {
|
|
2633
|
-
case
|
|
2627
|
+
case I.单分裂:
|
|
2634
2628
|
this.ToffsetWires1C1.length >= 2 && (i.push(this.ToffsetWires1C1[s - 2]), i.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 2 && (L.push(this.ToffsetWires1C2[s - 2]), L.push(this.ToffsetWires1C2[s - 1]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2635
2629
|
break;
|
|
2636
|
-
case
|
|
2637
|
-
this.ToffsetWires1C1.length >= 4 && (i.push(this.ToffsetWires1C1[s - 4]), i.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 3]), l.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 4 && (L.push(this.ToffsetWires1C2[s - 4]), L.push(this.ToffsetWires1C2[s - 2]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2630
|
+
case I.双分裂:
|
|
2631
|
+
this.ToffsetWires1C1.length >= 4 && (i.push(this.ToffsetWires1C1[s - 4]), i.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 3]), l.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 4 && (L.push(this.ToffsetWires1C2[s - 4]), L.push(this.ToffsetWires1C2[s - 2]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C2[s - 3]), m.push(this.ToffsetWires1C2[s - 1]), this.ToffsetArcWires2C = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2638
2632
|
break;
|
|
2639
|
-
case
|
|
2640
|
-
this.ToffsetWires1C1.length >= 8 && (i.push(this.ToffsetWires1C1[s - 8]), i.push(this.ToffsetWires1C1[s - 4]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 7]), l.push(this.ToffsetWires1C1[s - 3]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[s - 6]), T.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1C1[s - 5]), p.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 8 && (L.push(this.ToffsetWires1C2[s - 8]), L.push(this.ToffsetWires1C2[s - 4]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2633
|
+
case I.四分裂:
|
|
2634
|
+
this.ToffsetWires1C1.length >= 8 && (i.push(this.ToffsetWires1C1[s - 8]), i.push(this.ToffsetWires1C1[s - 4]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 7]), l.push(this.ToffsetWires1C1[s - 3]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[s - 6]), T.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1C1[s - 5]), p.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 8 && (L.push(this.ToffsetWires1C2[s - 8]), L.push(this.ToffsetWires1C2[s - 4]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C2[s - 7]), m.push(this.ToffsetWires1C2[s - 3]), this.ToffsetArcWires2C = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[s - 6]), B.push(this.ToffsetWires1C2[s - 2]), this.ToffsetArcWires2C = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[s - 5]), v.push(this.ToffsetWires1C2[s - 1]), this.ToffsetArcWires2C = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2641
2635
|
break;
|
|
2642
|
-
case
|
|
2643
|
-
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[s - 12]), i.push(this.ToffsetWires1C1[s - 6]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 11]), l.push(this.ToffsetWires1C1[s - 5]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[s - 10]), T.push(this.ToffsetWires1C1[s - 4]), this.ToffsetArcWires1C = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1C1[s - 9]), p.push(this.ToffsetWires1C1[s - 3]), this.ToffsetArcWires1C = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[s - 8]), o.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1C1[s - 7]), A.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (L.push(this.ToffsetWires1C2[s - 12]), L.push(this.ToffsetWires1C2[s - 6]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2636
|
+
case I.六分裂:
|
|
2637
|
+
this.ToffsetWires1C1.length >= 12 && (i.push(this.ToffsetWires1C1[s - 12]), i.push(this.ToffsetWires1C1[s - 6]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 11]), l.push(this.ToffsetWires1C1[s - 5]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[s - 10]), T.push(this.ToffsetWires1C1[s - 4]), this.ToffsetArcWires1C = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1C1[s - 9]), p.push(this.ToffsetWires1C1[s - 3]), this.ToffsetArcWires1C = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[s - 8]), o.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1C1[s - 7]), A.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 12 && (L.push(this.ToffsetWires1C2[s - 12]), L.push(this.ToffsetWires1C2[s - 6]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C2[s - 11]), m.push(this.ToffsetWires1C2[s - 5]), this.ToffsetArcWires2C = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[s - 10]), B.push(this.ToffsetWires1C2[s - 4]), this.ToffsetArcWires2C = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[s - 9]), v.push(this.ToffsetWires1C2[s - 3]), this.ToffsetArcWires2C = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C2[s - 8]), b.push(this.ToffsetWires1C2[s - 2]), this.ToffsetArcWires2C = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1C2[s - 7]), M.push(this.ToffsetWires1C2[s - 1]), this.ToffsetArcWires2C = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2644
2638
|
break;
|
|
2645
|
-
case
|
|
2646
|
-
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[s - 16]), i.push(this.ToffsetWires1C1[s - 8]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 15]), l.push(this.ToffsetWires1C1[s - 7]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[s - 14]), T.push(this.ToffsetWires1C1[s - 6]), this.ToffsetArcWires1C = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1C1[s - 13]), p.push(this.ToffsetWires1C1[s - 5]), this.ToffsetArcWires1C = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[s - 12]), o.push(this.ToffsetWires1C1[s - 4]), this.ToffsetArcWires1C = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1C1[s - 11]), A.push(this.ToffsetWires1C1[s - 3]), this.ToffsetArcWires1C = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C1[s - 10]), g.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C1[s - 9]), y.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 16 && (L.push(this.ToffsetWires1C2[s - 16]), L.push(this.ToffsetWires1C2[s - 8]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2639
|
+
case I.八分裂:
|
|
2640
|
+
this.ToffsetWires1C1.length >= 16 && (i.push(this.ToffsetWires1C1[s - 16]), i.push(this.ToffsetWires1C1[s - 8]), this.ToffsetArcWires1C = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires1C1[s - 15]), l.push(this.ToffsetWires1C1[s - 7]), this.ToffsetArcWires1C = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires1C1[s - 14]), T.push(this.ToffsetWires1C1[s - 6]), this.ToffsetArcWires1C = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires1C1[s - 13]), p.push(this.ToffsetWires1C1[s - 5]), this.ToffsetArcWires1C = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires1C1[s - 12]), o.push(this.ToffsetWires1C1[s - 4]), this.ToffsetArcWires1C = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires1C1[s - 11]), A.push(this.ToffsetWires1C1[s - 3]), this.ToffsetArcWires1C = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires1C1[s - 10]), g.push(this.ToffsetWires1C1[s - 2]), this.ToffsetArcWires1C = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires1C1[s - 9]), y.push(this.ToffsetWires1C1[s - 1]), this.ToffsetArcWires1C = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C, "1C1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires1C2.length >= 16 && (L.push(this.ToffsetWires1C2[s - 16]), L.push(this.ToffsetWires1C2[s - 8]), this.ToffsetArcWires2C = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires1C2[s - 15]), m.push(this.ToffsetWires1C2[s - 7]), this.ToffsetArcWires2C = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires1C2[s - 14]), B.push(this.ToffsetWires1C2[s - 6]), this.ToffsetArcWires2C = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires1C2[s - 13]), v.push(this.ToffsetWires1C2[s - 5]), this.ToffsetArcWires2C = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires1C2[s - 12]), b.push(this.ToffsetWires1C2[s - 4]), this.ToffsetArcWires2C = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires1C2[s - 11]), M.push(this.ToffsetWires1C2[s - 3]), this.ToffsetArcWires2C = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires1C2[s - 10]), _.push(this.ToffsetWires1C2[s - 2]), this.ToffsetArcWires2C = d(_, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), R.push(this.ToffsetWires1C2[s - 9]), R.push(this.ToffsetWires1C2[s - 1]), this.ToffsetArcWires2C = d(R, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C, "1C2跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2647
2641
|
break;
|
|
2648
2642
|
}
|
|
2649
2643
|
}
|
|
2650
2644
|
if (this.ToffsetWires2A1.length > 1 && this.ToffsetWires2A2.length > 1) {
|
|
2651
|
-
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [],
|
|
2645
|
+
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [], m = [], B = [], v = [], b = [], M = [], _ = [], R = [];
|
|
2652
2646
|
switch (this.LineInfo.Wairnum) {
|
|
2653
|
-
case
|
|
2647
|
+
case I.单分裂:
|
|
2654
2648
|
this.ToffsetWires2A1.length >= 2 && (i.push(this.ToffsetWires2A1[s - 2]), i.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 2 && (L.push(this.ToffsetWires2A2[s - 2]), L.push(this.ToffsetWires2A2[s - 1]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2655
2649
|
break;
|
|
2656
|
-
case
|
|
2657
|
-
this.ToffsetWires2A1.length >= 4 && (i.push(this.ToffsetWires2A1[s - 4]), i.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 3]), l.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 4 && (L.push(this.ToffsetWires2A2[s - 4]), L.push(this.ToffsetWires2A2[s - 2]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2650
|
+
case I.双分裂:
|
|
2651
|
+
this.ToffsetWires2A1.length >= 4 && (i.push(this.ToffsetWires2A1[s - 4]), i.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 3]), l.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 4 && (L.push(this.ToffsetWires2A2[s - 4]), L.push(this.ToffsetWires2A2[s - 2]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A2[s - 3]), m.push(this.ToffsetWires2A2[s - 1]), this.ToffsetArcWires2A2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2658
2652
|
break;
|
|
2659
|
-
case
|
|
2660
|
-
this.ToffsetWires2A1.length >= 8 && (i.push(this.ToffsetWires2A1[s - 8]), i.push(this.ToffsetWires2A1[s - 4]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 7]), l.push(this.ToffsetWires2A1[s - 3]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[s - 6]), T.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2A1[s - 5]), p.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 8 && (L.push(this.ToffsetWires2A2[s - 8]), L.push(this.ToffsetWires2A2[s - 4]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2653
|
+
case I.四分裂:
|
|
2654
|
+
this.ToffsetWires2A1.length >= 8 && (i.push(this.ToffsetWires2A1[s - 8]), i.push(this.ToffsetWires2A1[s - 4]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 7]), l.push(this.ToffsetWires2A1[s - 3]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[s - 6]), T.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2A1[s - 5]), p.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 8 && (L.push(this.ToffsetWires2A2[s - 8]), L.push(this.ToffsetWires2A2[s - 4]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A2[s - 7]), m.push(this.ToffsetWires2A2[s - 3]), this.ToffsetArcWires2A2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[s - 6]), B.push(this.ToffsetWires2A2[s - 2]), this.ToffsetArcWires2A2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[s - 5]), v.push(this.ToffsetWires2A2[s - 1]), this.ToffsetArcWires2A2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2661
2655
|
break;
|
|
2662
|
-
case
|
|
2663
|
-
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[s - 12]), i.push(this.ToffsetWires2A1[s - 6]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 11]), l.push(this.ToffsetWires2A1[s - 5]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[s - 10]), T.push(this.ToffsetWires2A1[s - 4]), this.ToffsetArcWires1A2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2A1[s - 9]), p.push(this.ToffsetWires2A1[s - 3]), this.ToffsetArcWires1A2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[s - 8]), o.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2A1[s - 7]), A.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (L.push(this.ToffsetWires2A2[s - 12]), L.push(this.ToffsetWires2A2[s - 6]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2656
|
+
case I.六分裂:
|
|
2657
|
+
this.ToffsetWires2A1.length >= 12 && (i.push(this.ToffsetWires2A1[s - 12]), i.push(this.ToffsetWires2A1[s - 6]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 11]), l.push(this.ToffsetWires2A1[s - 5]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[s - 10]), T.push(this.ToffsetWires2A1[s - 4]), this.ToffsetArcWires1A2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2A1[s - 9]), p.push(this.ToffsetWires2A1[s - 3]), this.ToffsetArcWires1A2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[s - 8]), o.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2A1[s - 7]), A.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 12 && (L.push(this.ToffsetWires2A2[s - 12]), L.push(this.ToffsetWires2A2[s - 6]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A2[s - 11]), m.push(this.ToffsetWires2A2[s - 5]), this.ToffsetArcWires2A2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[s - 10]), B.push(this.ToffsetWires2A2[s - 4]), this.ToffsetArcWires2A2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[s - 9]), v.push(this.ToffsetWires2A2[s - 3]), this.ToffsetArcWires2A2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A2[s - 8]), b.push(this.ToffsetWires2A2[s - 2]), this.ToffsetArcWires2A2 = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2A2[s - 7]), M.push(this.ToffsetWires2A2[s - 1]), this.ToffsetArcWires2A2 = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2664
2658
|
break;
|
|
2665
|
-
case
|
|
2666
|
-
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[s - 16]), i.push(this.ToffsetWires2A1[s - 8]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 15]), l.push(this.ToffsetWires2A1[s - 7]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[s - 14]), T.push(this.ToffsetWires2A1[s - 6]), this.ToffsetArcWires1A2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2A1[s - 13]), p.push(this.ToffsetWires2A1[s - 5]), this.ToffsetArcWires1A2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[s - 12]), o.push(this.ToffsetWires2A1[s - 4]), this.ToffsetArcWires1A2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2A1[s - 11]), A.push(this.ToffsetWires2A1[s - 3]), this.ToffsetArcWires1A2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A1[s - 10]), g.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A1[s - 9]), y.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 16 && (L.push(this.ToffsetWires2A2[s - 16]), L.push(this.ToffsetWires2A2[s - 8]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2659
|
+
case I.八分裂:
|
|
2660
|
+
this.ToffsetWires2A1.length >= 16 && (i.push(this.ToffsetWires2A1[s - 16]), i.push(this.ToffsetWires2A1[s - 8]), this.ToffsetArcWires1A2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2A1[s - 15]), l.push(this.ToffsetWires2A1[s - 7]), this.ToffsetArcWires1A2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2A1[s - 14]), T.push(this.ToffsetWires2A1[s - 6]), this.ToffsetArcWires1A2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2A1[s - 13]), p.push(this.ToffsetWires2A1[s - 5]), this.ToffsetArcWires1A2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2A1[s - 12]), o.push(this.ToffsetWires2A1[s - 4]), this.ToffsetArcWires1A2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2A1[s - 11]), A.push(this.ToffsetWires2A1[s - 3]), this.ToffsetArcWires1A2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2A1[s - 10]), g.push(this.ToffsetWires2A1[s - 2]), this.ToffsetArcWires1A2 = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2A1[s - 9]), y.push(this.ToffsetWires2A1[s - 1]), this.ToffsetArcWires1A2 = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1A2, "2A1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2A2.length >= 16 && (L.push(this.ToffsetWires2A2[s - 16]), L.push(this.ToffsetWires2A2[s - 8]), this.ToffsetArcWires2A2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2A2[s - 15]), m.push(this.ToffsetWires2A2[s - 7]), this.ToffsetArcWires2A2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2A2[s - 14]), B.push(this.ToffsetWires2A2[s - 6]), this.ToffsetArcWires2A2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2A2[s - 13]), v.push(this.ToffsetWires2A2[s - 5]), this.ToffsetArcWires2A2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2A2[s - 12]), b.push(this.ToffsetWires2A2[s - 4]), this.ToffsetArcWires2A2 = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2A2[s - 11]), M.push(this.ToffsetWires2A2[s - 3]), this.ToffsetArcWires2A2 = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2A2[s - 10]), _.push(this.ToffsetWires2A2[s - 2]), this.ToffsetArcWires2A2 = d(_, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), R.push(this.ToffsetWires2A2[s - 9]), R.push(this.ToffsetWires2A2[s - 1]), this.ToffsetArcWires2A2 = d(R, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2A2, "2A2跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2667
2661
|
break;
|
|
2668
2662
|
}
|
|
2669
2663
|
}
|
|
2670
2664
|
if (this.ToffsetWires2B1.length > 1 && this.ToffsetWires2B2.length > 1) {
|
|
2671
|
-
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [],
|
|
2665
|
+
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [], m = [], B = [], v = [], b = [], M = [], _ = [], R = [];
|
|
2672
2666
|
switch (this.LineInfo.Wairnum) {
|
|
2673
|
-
case
|
|
2667
|
+
case I.单分裂:
|
|
2674
2668
|
this.ToffsetWires2B1.length >= 2 && (i.push(this.ToffsetWires2B1[s - 2]), i.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 2 && (L.push(this.ToffsetWires2B2[s - 2]), L.push(this.ToffsetWires2B2[s - 1]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2675
2669
|
break;
|
|
2676
|
-
case
|
|
2677
|
-
this.ToffsetWires2B1.length >= 4 && (i.push(this.ToffsetWires2B1[s - 4]), i.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 3]), l.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 4 && (L.push(this.ToffsetWires2B2[s - 4]), L.push(this.ToffsetWires2B2[s - 2]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2670
|
+
case I.双分裂:
|
|
2671
|
+
this.ToffsetWires2B1.length >= 4 && (i.push(this.ToffsetWires2B1[s - 4]), i.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 3]), l.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 4 && (L.push(this.ToffsetWires2B2[s - 4]), L.push(this.ToffsetWires2B2[s - 2]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B2[s - 3]), m.push(this.ToffsetWires2B2[s - 1]), this.ToffsetArcWires2B2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2678
2672
|
break;
|
|
2679
|
-
case
|
|
2680
|
-
this.ToffsetWires2B1.length >= 8 && (i.push(this.ToffsetWires2B1[s - 8]), i.push(this.ToffsetWires2B1[s - 4]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 7]), l.push(this.ToffsetWires2B1[s - 3]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[s - 6]), T.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2B1[s - 5]), p.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 8 && (L.push(this.ToffsetWires2B2[s - 8]), L.push(this.ToffsetWires2B2[s - 4]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2673
|
+
case I.四分裂:
|
|
2674
|
+
this.ToffsetWires2B1.length >= 8 && (i.push(this.ToffsetWires2B1[s - 8]), i.push(this.ToffsetWires2B1[s - 4]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 7]), l.push(this.ToffsetWires2B1[s - 3]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[s - 6]), T.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2B1[s - 5]), p.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 8 && (L.push(this.ToffsetWires2B2[s - 8]), L.push(this.ToffsetWires2B2[s - 4]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B2[s - 7]), m.push(this.ToffsetWires2B2[s - 3]), this.ToffsetArcWires2B2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[s - 6]), B.push(this.ToffsetWires2B2[s - 2]), this.ToffsetArcWires2B2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[s - 5]), v.push(this.ToffsetWires2B2[s - 1]), this.ToffsetArcWires2B2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2681
2675
|
break;
|
|
2682
|
-
case
|
|
2683
|
-
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[s - 12]), i.push(this.ToffsetWires2B1[s - 6]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 11]), l.push(this.ToffsetWires2B1[s - 5]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[s - 10]), T.push(this.ToffsetWires2B1[s - 4]), this.ToffsetArcWires1B2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2B1[s - 9]), p.push(this.ToffsetWires2B1[s - 3]), this.ToffsetArcWires1B2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[s - 8]), o.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2B1[s - 7]), A.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (L.push(this.ToffsetWires2B2[s - 12]), L.push(this.ToffsetWires2B2[s - 6]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2676
|
+
case I.六分裂:
|
|
2677
|
+
this.ToffsetWires2B1.length >= 12 && (i.push(this.ToffsetWires2B1[s - 12]), i.push(this.ToffsetWires2B1[s - 6]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 11]), l.push(this.ToffsetWires2B1[s - 5]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[s - 10]), T.push(this.ToffsetWires2B1[s - 4]), this.ToffsetArcWires1B2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2B1[s - 9]), p.push(this.ToffsetWires2B1[s - 3]), this.ToffsetArcWires1B2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[s - 8]), o.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2B1[s - 7]), A.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 12 && (L.push(this.ToffsetWires2B2[s - 12]), L.push(this.ToffsetWires2B2[s - 6]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B2[s - 11]), m.push(this.ToffsetWires2B2[s - 5]), this.ToffsetArcWires2B2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[s - 10]), B.push(this.ToffsetWires2B2[s - 4]), this.ToffsetArcWires2B2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[s - 9]), v.push(this.ToffsetWires2B2[s - 3]), this.ToffsetArcWires2B2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B2[s - 8]), b.push(this.ToffsetWires2B2[s - 2]), this.ToffsetArcWires2B2 = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2B2[s - 7]), M.push(this.ToffsetWires2B2[s - 1]), this.ToffsetArcWires2B2 = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2684
2678
|
break;
|
|
2685
|
-
case
|
|
2686
|
-
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[s - 16]), i.push(this.ToffsetWires2B1[s - 8]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 15]), l.push(this.ToffsetWires2B1[s - 7]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[s - 14]), T.push(this.ToffsetWires2B1[s - 6]), this.ToffsetArcWires1B2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2B1[s - 13]), p.push(this.ToffsetWires2B1[s - 5]), this.ToffsetArcWires1B2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[s - 12]), o.push(this.ToffsetWires2B1[s - 4]), this.ToffsetArcWires1B2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2B1[s - 11]), A.push(this.ToffsetWires2B1[s - 3]), this.ToffsetArcWires1B2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B1[s - 10]), g.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B1[s - 9]), y.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 16 && (L.push(this.ToffsetWires2B2[s - 16]), L.push(this.ToffsetWires2B2[s - 8]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2679
|
+
case I.八分裂:
|
|
2680
|
+
this.ToffsetWires2B1.length >= 16 && (i.push(this.ToffsetWires2B1[s - 16]), i.push(this.ToffsetWires2B1[s - 8]), this.ToffsetArcWires1B2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2B1[s - 15]), l.push(this.ToffsetWires2B1[s - 7]), this.ToffsetArcWires1B2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2B1[s - 14]), T.push(this.ToffsetWires2B1[s - 6]), this.ToffsetArcWires1B2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2B1[s - 13]), p.push(this.ToffsetWires2B1[s - 5]), this.ToffsetArcWires1B2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2B1[s - 12]), o.push(this.ToffsetWires2B1[s - 4]), this.ToffsetArcWires1B2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2B1[s - 11]), A.push(this.ToffsetWires2B1[s - 3]), this.ToffsetArcWires1B2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2B1[s - 10]), g.push(this.ToffsetWires2B1[s - 2]), this.ToffsetArcWires1B2 = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2B1[s - 9]), y.push(this.ToffsetWires2B1[s - 1]), this.ToffsetArcWires1B2 = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1B2, "2B1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2B2.length >= 16 && (L.push(this.ToffsetWires2B2[s - 16]), L.push(this.ToffsetWires2B2[s - 8]), this.ToffsetArcWires2B2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2B2[s - 15]), m.push(this.ToffsetWires2B2[s - 7]), this.ToffsetArcWires2B2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2B2[s - 14]), B.push(this.ToffsetWires2B2[s - 6]), this.ToffsetArcWires2B2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2B2[s - 13]), v.push(this.ToffsetWires2B2[s - 5]), this.ToffsetArcWires2B2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2B2[s - 12]), b.push(this.ToffsetWires2B2[s - 4]), this.ToffsetArcWires2B2 = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2B2[s - 11]), M.push(this.ToffsetWires2B2[s - 3]), this.ToffsetArcWires2B2 = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2B2[s - 10]), _.push(this.ToffsetWires2B2[s - 2]), this.ToffsetArcWires2B2 = d(_, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), R.push(this.ToffsetWires2B2[s - 9]), R.push(this.ToffsetWires2B2[s - 1]), this.ToffsetArcWires2B2 = d(R, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2B2, "2B2跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2687
2681
|
break;
|
|
2688
2682
|
}
|
|
2689
2683
|
}
|
|
2690
2684
|
if (this.ToffsetWires2C1.length > 1 && this.ToffsetWires2C2.length > 1) {
|
|
2691
|
-
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [],
|
|
2685
|
+
const i = [], l = [], T = [], p = [], o = [], A = [], g = [], y = [], L = [], m = [], B = [], v = [], b = [], M = [], _ = [], R = [];
|
|
2692
2686
|
switch (this.LineInfo.Wairnum) {
|
|
2693
|
-
case
|
|
2687
|
+
case I.单分裂:
|
|
2694
2688
|
this.ToffsetWires2C1.length >= 2 && (i.push(this.ToffsetWires2C1[s - 2]), i.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 2 && (L.push(this.ToffsetWires2C2[s - 2]), L.push(this.ToffsetWires2C2[s - 1]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2695
2689
|
break;
|
|
2696
|
-
case
|
|
2697
|
-
this.ToffsetWires2C1.length >= 4 && (i.push(this.ToffsetWires2C1[s - 4]), i.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 3]), l.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 4 && (L.push(this.ToffsetWires2C2[s - 4]), L.push(this.ToffsetWires2C2[s - 2]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2690
|
+
case I.双分裂:
|
|
2691
|
+
this.ToffsetWires2C1.length >= 4 && (i.push(this.ToffsetWires2C1[s - 4]), i.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 3]), l.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 4 && (L.push(this.ToffsetWires2C2[s - 4]), L.push(this.ToffsetWires2C2[s - 2]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C2[s - 3]), m.push(this.ToffsetWires2C2[s - 1]), this.ToffsetArcWires2C2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2698
2692
|
break;
|
|
2699
|
-
case
|
|
2700
|
-
this.ToffsetWires2C1.length >= 8 && (i.push(this.ToffsetWires2C1[s - 8]), i.push(this.ToffsetWires2C1[s - 4]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 7]), l.push(this.ToffsetWires2C1[s - 3]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[s - 6]), T.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2C1[s - 5]), p.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 8 && (L.push(this.ToffsetWires2C2[s - 8]), L.push(this.ToffsetWires2C2[s - 4]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2693
|
+
case I.四分裂:
|
|
2694
|
+
this.ToffsetWires2C1.length >= 8 && (i.push(this.ToffsetWires2C1[s - 8]), i.push(this.ToffsetWires2C1[s - 4]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 7]), l.push(this.ToffsetWires2C1[s - 3]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[s - 6]), T.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2C1[s - 5]), p.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 8 && (L.push(this.ToffsetWires2C2[s - 8]), L.push(this.ToffsetWires2C2[s - 4]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C2[s - 7]), m.push(this.ToffsetWires2C2[s - 3]), this.ToffsetArcWires2C2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[s - 6]), B.push(this.ToffsetWires2C2[s - 2]), this.ToffsetArcWires2C2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[s - 5]), v.push(this.ToffsetWires2C2[s - 1]), this.ToffsetArcWires2C2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2701
2695
|
break;
|
|
2702
|
-
case
|
|
2703
|
-
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[s - 12]), i.push(this.ToffsetWires2C1[s - 6]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 11]), l.push(this.ToffsetWires2C1[s - 5]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[s - 10]), T.push(this.ToffsetWires2C1[s - 4]), this.ToffsetArcWires1C2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2C1[s - 9]), p.push(this.ToffsetWires2C1[s - 3]), this.ToffsetArcWires1C2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[s - 8]), o.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2C1[s - 7]), A.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (L.push(this.ToffsetWires2C2[s - 12]), L.push(this.ToffsetWires2C2[s - 6]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2696
|
+
case I.六分裂:
|
|
2697
|
+
this.ToffsetWires2C1.length >= 12 && (i.push(this.ToffsetWires2C1[s - 12]), i.push(this.ToffsetWires2C1[s - 6]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 11]), l.push(this.ToffsetWires2C1[s - 5]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[s - 10]), T.push(this.ToffsetWires2C1[s - 4]), this.ToffsetArcWires1C2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2C1[s - 9]), p.push(this.ToffsetWires2C1[s - 3]), this.ToffsetArcWires1C2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[s - 8]), o.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2C1[s - 7]), A.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 12 && (L.push(this.ToffsetWires2C2[s - 12]), L.push(this.ToffsetWires2C2[s - 6]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C2[s - 11]), m.push(this.ToffsetWires2C2[s - 5]), this.ToffsetArcWires2C2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[s - 10]), B.push(this.ToffsetWires2C2[s - 4]), this.ToffsetArcWires2C2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[s - 9]), v.push(this.ToffsetWires2C2[s - 3]), this.ToffsetArcWires2C2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C2[s - 8]), b.push(this.ToffsetWires2C2[s - 2]), this.ToffsetArcWires2C2 = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2C2[s - 7]), M.push(this.ToffsetWires2C2[s - 1]), this.ToffsetArcWires2C2 = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2704
2698
|
break;
|
|
2705
|
-
case
|
|
2706
|
-
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[s - 16]), i.push(this.ToffsetWires2C1[s - 8]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 15]), l.push(this.ToffsetWires2C1[s - 7]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[s - 14]), T.push(this.ToffsetWires2C1[s - 6]), this.ToffsetArcWires1C2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2C1[s - 13]), p.push(this.ToffsetWires2C1[s - 5]), this.ToffsetArcWires1C2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[s - 12]), o.push(this.ToffsetWires2C1[s - 4]), this.ToffsetArcWires1C2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2C1[s - 11]), A.push(this.ToffsetWires2C1[s - 3]), this.ToffsetArcWires1C2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C1[s - 10]), g.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C1[s - 9]), y.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 16 && (L.push(this.ToffsetWires2C2[s - 16]), L.push(this.ToffsetWires2C2[s - 8]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)),
|
|
2699
|
+
case I.八分裂:
|
|
2700
|
+
this.ToffsetWires2C1.length >= 16 && (i.push(this.ToffsetWires2C1[s - 16]), i.push(this.ToffsetWires2C1[s - 8]), this.ToffsetArcWires1C2 = d(i, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), l.push(this.ToffsetWires2C1[s - 15]), l.push(this.ToffsetWires2C1[s - 7]), this.ToffsetArcWires1C2 = d(l, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), T.push(this.ToffsetWires2C1[s - 14]), T.push(this.ToffsetWires2C1[s - 6]), this.ToffsetArcWires1C2 = d(T, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), p.push(this.ToffsetWires2C1[s - 13]), p.push(this.ToffsetWires2C1[s - 5]), this.ToffsetArcWires1C2 = d(p, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), o.push(this.ToffsetWires2C1[s - 12]), o.push(this.ToffsetWires2C1[s - 4]), this.ToffsetArcWires1C2 = d(o, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), A.push(this.ToffsetWires2C1[s - 11]), A.push(this.ToffsetWires2C1[s - 3]), this.ToffsetArcWires1C2 = d(A, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), g.push(this.ToffsetWires2C1[s - 10]), g.push(this.ToffsetWires2C1[s - 2]), this.ToffsetArcWires1C2 = d(g, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), y.push(this.ToffsetWires2C1[s - 9]), y.push(this.ToffsetWires2C1[s - 1]), this.ToffsetArcWires1C2 = d(y, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires1C2, "2C1跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor))), this.ToffsetWires2C2.length >= 16 && (L.push(this.ToffsetWires2C2[s - 16]), L.push(this.ToffsetWires2C2[s - 8]), this.ToffsetArcWires2C2 = d(L, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线1" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), m.push(this.ToffsetWires2C2[s - 15]), m.push(this.ToffsetWires2C2[s - 7]), this.ToffsetArcWires2C2 = d(m, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线2" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), B.push(this.ToffsetWires2C2[s - 14]), B.push(this.ToffsetWires2C2[s - 6]), this.ToffsetArcWires2C2 = d(B, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线3" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), v.push(this.ToffsetWires2C2[s - 13]), v.push(this.ToffsetWires2C2[s - 5]), this.ToffsetArcWires2C2 = d(v, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线4" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), b.push(this.ToffsetWires2C2[s - 12]), b.push(this.ToffsetWires2C2[s - 4]), this.ToffsetArcWires2C2 = d(b, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线5" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), M.push(this.ToffsetWires2C2[s - 11]), M.push(this.ToffsetWires2C2[s - 3]), this.ToffsetArcWires2C2 = d(M, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线6" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), _.push(this.ToffsetWires2C2[s - 10]), _.push(this.ToffsetWires2C2[s - 2]), this.ToffsetArcWires2C2 = d(_, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线7" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)), R.push(this.ToffsetWires2C2[s - 9]), R.push(this.ToffsetWires2C2[s - 1]), this.ToffsetArcWires2C2 = d(R, 15), this.LineentityCollection2.add(C(this.ToffsetArcWires2C2, "2C2跳线8" + (e - 1) + "-" + e, this.LineInfo.wireWidth, this.LineInfo.wireTColor)));
|
|
2707
2701
|
break;
|
|
2708
2702
|
}
|
|
2709
2703
|
}
|
|
2710
2704
|
} else
|
|
2711
2705
|
switch (this.LineInfo.Wairnum) {
|
|
2712
|
-
case
|
|
2706
|
+
case I.单分裂:
|
|
2713
2707
|
t = t + 1;
|
|
2714
2708
|
break;
|
|
2715
|
-
case
|
|
2709
|
+
case I.双分裂:
|
|
2716
2710
|
t = t + 2;
|
|
2717
2711
|
break;
|
|
2718
|
-
case
|
|
2712
|
+
case I.四分裂:
|
|
2719
2713
|
t = t + 4;
|
|
2720
2714
|
break;
|
|
2721
|
-
case
|
|
2715
|
+
case I.六分裂:
|
|
2722
2716
|
t = t + 6;
|
|
2723
2717
|
break;
|
|
2724
|
-
case
|
|
2718
|
+
case I.八分裂:
|
|
2725
2719
|
t = t + 8;
|
|
2726
2720
|
break;
|
|
2727
2721
|
}
|
|
@@ -2928,6 +2922,12 @@ class us {
|
|
|
2928
2922
|
loadLineTower() {
|
|
2929
2923
|
this.initializeLineData(), this.isDynamicLoadingEnabled ? (this.loadAllWiresOnly(), this.setupCameraMoveListener(), this.updateVisibleTowers()) : this.loadAllTowersAtOnce();
|
|
2930
2924
|
}
|
|
2925
|
+
/**
|
|
2926
|
+
* 适配lod加载导线数据
|
|
2927
|
+
*/
|
|
2928
|
+
LODloadAllWiresOnly() {
|
|
2929
|
+
this.initializeLineData(), this.loadAllWiresOnly();
|
|
2930
|
+
}
|
|
2931
2931
|
/**
|
|
2932
2932
|
* 只加载导线,不加载杆塔和绝缘子(用于动态加载模式)
|
|
2933
2933
|
*/
|
|
@@ -2957,7 +2957,7 @@ class us {
|
|
|
2957
2957
|
return this.arcLine1C1;
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
|
-
const
|
|
2960
|
+
const St = class St {
|
|
2961
2961
|
constructor(t, s, r) {
|
|
2962
2962
|
//三维场景
|
|
2963
2963
|
w(this, "viewer");
|
|
@@ -3187,7 +3187,7 @@ const _t = class _t {
|
|
|
3187
3187
|
* 获取树木实体ID前缀
|
|
3188
3188
|
*/
|
|
3189
3189
|
static getTreeEntityPrefix() {
|
|
3190
|
-
return
|
|
3190
|
+
return St.TREE_ENTITY_PREFIX;
|
|
3191
3191
|
}
|
|
3192
3192
|
//设置显隐
|
|
3193
3193
|
setTreeVisible(t) {
|
|
@@ -3195,8 +3195,8 @@ const _t = class _t {
|
|
|
3195
3195
|
}
|
|
3196
3196
|
};
|
|
3197
3197
|
// 树木实体ID前缀常量
|
|
3198
|
-
w(
|
|
3199
|
-
let Ut =
|
|
3198
|
+
w(St, "TREE_ENTITY_PREFIX", "tree-");
|
|
3199
|
+
let Ut = St;
|
|
3200
3200
|
class Ws {
|
|
3201
3201
|
constructor(t) {
|
|
3202
3202
|
//三维场景
|
|
@@ -3226,7 +3226,7 @@ class Ws {
|
|
|
3226
3226
|
w(this, "distanceRuleConfig", new Ie());
|
|
3227
3227
|
// ========== 导线间距测量功能 ==========
|
|
3228
3228
|
// 线间距离规则配置
|
|
3229
|
-
w(this, "wireToWireDistanceRuleConfig", new
|
|
3229
|
+
w(this, "wireToWireDistanceRuleConfig", new Yt());
|
|
3230
3230
|
this.viewer = t, this.dataSourceplotting = new f.CustomDataSource("plotting"), this.entityCollectionplotting = this.dataSourceplotting.entities;
|
|
3231
3231
|
}
|
|
3232
3232
|
/**
|
|
@@ -3241,7 +3241,7 @@ class Ws {
|
|
|
3241
3241
|
* @param distanceConfig 距离规则配置,null表示不应用规则
|
|
3242
3242
|
* @param featureType 地物类型,用于获取对应类型的规则配置
|
|
3243
3243
|
*/
|
|
3244
|
-
calcResultByType(t, s, r, e, a, n = this.distanceRuleConfig, W =
|
|
3244
|
+
calcResultByType(t, s, r, e, a, n = this.distanceRuleConfig, W = U.树木) {
|
|
3245
3245
|
if (this.entityCollectionplotting.values.length >= this.maxVisibleResults)
|
|
3246
3246
|
return;
|
|
3247
3247
|
const u = `${t[0].toFixed(6)}_${t[1].toFixed(6)}_${t[2].toFixed(2)}`;
|
|
@@ -3271,7 +3271,7 @@ class Ws {
|
|
|
3271
3271
|
* @param featureType 地物类型,用于获取对应类型的规则配置
|
|
3272
3272
|
* @returns MeasurementResult | null 测量结果对象或null(如果被过滤)
|
|
3273
3273
|
*/
|
|
3274
|
-
performTerrainVerification(t, s, r, e, a = null, n, W = [], u =
|
|
3274
|
+
performTerrainVerification(t, s, r, e, a = null, n, W = [], u = U.树木) {
|
|
3275
3275
|
const c = `${t[0].toFixed(6)}_${t[1].toFixed(6)}_${t[2].toFixed(2)}`, i = Pt(
|
|
3276
3276
|
t,
|
|
3277
3277
|
s,
|
|
@@ -3400,31 +3400,31 @@ class Ws {
|
|
|
3400
3400
|
createDefaultDistanceRuleConfig() {
|
|
3401
3401
|
const t = {
|
|
3402
3402
|
horizontalLevels: [
|
|
3403
|
-
{ name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
3404
|
-
{ name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
3405
|
-
{ name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
3406
|
-
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3403
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
3404
|
+
{ id: "danger", name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
3405
|
+
{ id: "warning", name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
3406
|
+
{ id: "safe", name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3407
3407
|
],
|
|
3408
3408
|
verticalLevels: [
|
|
3409
|
-
{ name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
3410
|
-
{ name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
3411
|
-
{ name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
3412
|
-
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3409
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
3410
|
+
{ id: "danger", name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
3411
|
+
{ id: "warning", name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
3412
|
+
{ id: "safe", name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3413
3413
|
],
|
|
3414
3414
|
straightLineLevels: [
|
|
3415
|
-
{ name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
3416
|
-
{ name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
3417
|
-
{ name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
3418
|
-
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3415
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 160, color: "#ff0000" },
|
|
3416
|
+
{ id: "danger", name: "danger", minDistance: 160, maxDistance: 170, color: "#ff0000" },
|
|
3417
|
+
{ id: "warning", name: "warning", minDistance: 170, maxDistance: 180, color: "#ffa500" },
|
|
3418
|
+
{ id: "safe", name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3419
3419
|
],
|
|
3420
3420
|
clearanceLevels: [
|
|
3421
|
-
{ name: "critical", minDistance: 0, maxDistance: 10, color: "#ff0000" },
|
|
3422
|
-
{ name: "danger", minDistance: 10, maxDistance: 15, color: "#ff6600" },
|
|
3423
|
-
{ name: "warning", minDistance: 15, maxDistance: 20, color: "#ffa500" },
|
|
3424
|
-
{ name: "safe", minDistance: 20, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3421
|
+
{ id: "critical", name: "critical", minDistance: 0, maxDistance: 10, color: "#ff0000" },
|
|
3422
|
+
{ id: "danger", name: "danger", minDistance: 10, maxDistance: 15, color: "#ff6600" },
|
|
3423
|
+
{ id: "warning", name: "warning", minDistance: 15, maxDistance: 20, color: "#ffa500" },
|
|
3424
|
+
{ id: "safe", name: "safe", minDistance: 20, maxDistance: 1 / 0, color: "#00ff00" }
|
|
3425
3425
|
]
|
|
3426
3426
|
};
|
|
3427
|
-
this.setDistanceRulesByType(
|
|
3427
|
+
this.setDistanceRulesByType(U.树木, { ...t }), this.setDistanceRulesByType(U.房屋, { ...t }), this.setDistanceRulesByType(U.高速公路, { ...t }), this.setDistanceRulesByType(U.电力线, { ...t });
|
|
3428
3428
|
}
|
|
3429
3429
|
/**
|
|
3430
3430
|
* 绘制通道范围多边形
|
|
@@ -3484,7 +3484,7 @@ class Ws {
|
|
|
3484
3484
|
n,
|
|
3485
3485
|
f.Cartesian3.multiplyByScalar(i, -l, new f.Cartesian3()),
|
|
3486
3486
|
new f.Cartesian3()
|
|
3487
|
-
), o = f.Cartographic.fromCartesian(T), A = f.Cartographic.fromCartesian(p), g = f.Math.toDegrees(o.longitude), y = f.Math.toDegrees(o.latitude), L = f.Math.toDegrees(A.longitude),
|
|
3487
|
+
), o = f.Cartographic.fromCartesian(T), A = f.Cartographic.fromCartesian(p), g = f.Math.toDegrees(o.longitude), y = f.Math.toDegrees(o.latitude), L = f.Math.toDegrees(A.longitude), m = f.Math.toDegrees(A.latitude), B = this.entityCollectionplotting.add({
|
|
3488
3488
|
name: `${r}-left-width-marker`,
|
|
3489
3489
|
polyline: {
|
|
3490
3490
|
positions: [
|
|
@@ -3503,7 +3503,7 @@ class Ws {
|
|
|
3503
3503
|
polyline: {
|
|
3504
3504
|
positions: [
|
|
3505
3505
|
f.Cartesian3.fromDegrees(e[0], e[1]),
|
|
3506
|
-
f.Cartesian3.fromDegrees(L,
|
|
3506
|
+
f.Cartesian3.fromDegrees(L, m)
|
|
3507
3507
|
],
|
|
3508
3508
|
width: 3,
|
|
3509
3509
|
material: new f.PolylineDashMaterialProperty({
|
|
@@ -3579,7 +3579,7 @@ class Ws {
|
|
|
3579
3579
|
createOffsetLine(t, s, r) {
|
|
3580
3580
|
if (t.length < 2)
|
|
3581
3581
|
return [];
|
|
3582
|
-
const e =
|
|
3582
|
+
const e = J(t), a = s / 1e3;
|
|
3583
3583
|
try {
|
|
3584
3584
|
const n = r ? -a : a, W = qt(e, n, { units: "kilometers" });
|
|
3585
3585
|
if (W.geometry.type === "LineString")
|
|
@@ -3826,7 +3826,7 @@ class Ws {
|
|
|
3826
3826
|
A,
|
|
3827
3827
|
p.id
|
|
3828
3828
|
);
|
|
3829
|
-
a && g && a(g), Wt(o, A, this.entityCollectionplotting, this.getClickDistanceRuleConfig(), n,
|
|
3829
|
+
a && g && a(g), Wt(o, A, this.entityCollectionplotting, this.getClickDistanceRuleConfig(), n, U.树木);
|
|
3830
3830
|
}
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
@@ -3884,21 +3884,21 @@ class Ws {
|
|
|
3884
3884
|
}));
|
|
3885
3885
|
}
|
|
3886
3886
|
if ((!o || o.length === 0) && (l.match(/(\d+)-(\d+)$/) && (l.includes("A") || l.includes("_A") ? o = s : l.includes("B") || l.includes("_B") ? o = r : (l.includes("C") || l.includes("_C")) && (o = e)), (!o || o.length === 0) && (o = [...s, ...r, ...e])), o && o.length > 1) {
|
|
3887
|
-
const A = (n == null ? void 0 : n.measurementType) || [], g = A.includes(
|
|
3887
|
+
const A = (n == null ? void 0 : n.measurementType) || [], g = A.includes(q.净空距离), y = A.includes(q.垂直距离) || A.includes(q.水平距离) || A.includes(q.安全距离) || A.includes(q.直线距离), L = this.interpolateWire(o, 1), m = [];
|
|
3888
3888
|
if (g) {
|
|
3889
|
-
const B = await this.calculateAndDrawWireToGroundDistanceByType(L, [
|
|
3890
|
-
B &&
|
|
3889
|
+
const B = await this.calculateAndDrawWireToGroundDistanceByType(L, [q.净空距离]).catch((v) => (console.error("Error in wire to ground distance calculation:", v), null));
|
|
3890
|
+
B && m.push(B);
|
|
3891
3891
|
}
|
|
3892
3892
|
if (y) {
|
|
3893
3893
|
const B = (n == null ? void 0 : n.width) || 10, v = (n == null ? void 0 : n.show) !== !1, b = this.drawWireCorridor(L, B);
|
|
3894
3894
|
v && this.entityCollectionplotting.add(b);
|
|
3895
|
-
const M = t.filter((
|
|
3896
|
-
this.terrainVerificationCache.clear(), M.forEach((
|
|
3897
|
-
const R = this.calcResultSingleWire(
|
|
3898
|
-
R &&
|
|
3895
|
+
const M = t.filter((_) => this.lonLatInStaticPolygonOpts(_.lon, _.lat, b));
|
|
3896
|
+
this.terrainVerificationCache.clear(), M.forEach((_) => {
|
|
3897
|
+
const R = this.calcResultSingleWire(_, L, A, this.getClickDistanceRuleConfig());
|
|
3898
|
+
R && m.push(R);
|
|
3899
3899
|
});
|
|
3900
3900
|
}
|
|
3901
|
-
n != null && n.onMeasurementResult &&
|
|
3901
|
+
n != null && n.onMeasurementResult && m.length > 0 && n.onMeasurementResult(m);
|
|
3902
3902
|
}
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
@@ -4043,13 +4043,13 @@ class Ws {
|
|
|
4043
4043
|
l = new Array(u.length).fill(0);
|
|
4044
4044
|
let T = 1 / 0, p = 0;
|
|
4045
4045
|
for (let g = 0; g < u.length; g++) {
|
|
4046
|
-
const y = u[g][2], L = l[g],
|
|
4047
|
-
|
|
4046
|
+
const y = u[g][2], L = l[g], m = y - L;
|
|
4047
|
+
m > 0 && m < T && (T = m, p = g);
|
|
4048
4048
|
}
|
|
4049
4049
|
if (T === 1 / 0)
|
|
4050
4050
|
for (let g = 0; g < u.length; g++) {
|
|
4051
|
-
const y = u[g][2], L = l[g],
|
|
4052
|
-
|
|
4051
|
+
const y = u[g][2], L = l[g], m = Math.abs(y - L);
|
|
4052
|
+
m < T && (T = m, p = g);
|
|
4053
4053
|
}
|
|
4054
4054
|
console.log(`${n.name}相最低净空距离:`, T, "在索引:", p);
|
|
4055
4055
|
const o = u[p], A = [o[0], o[1], l[p]];
|
|
@@ -4069,11 +4069,11 @@ class Ws {
|
|
|
4069
4069
|
getDistanceTypeLabel(t, s) {
|
|
4070
4070
|
const r = `${s.toFixed(1)}米`;
|
|
4071
4071
|
switch (t) {
|
|
4072
|
-
case
|
|
4072
|
+
case q.垂直距离:
|
|
4073
4073
|
return `对地距离${r}`;
|
|
4074
|
-
case
|
|
4074
|
+
case q.净空距离:
|
|
4075
4075
|
return `净空距离${r}`;
|
|
4076
|
-
case
|
|
4076
|
+
case q.安全距离:
|
|
4077
4077
|
return `安全距离${r}`;
|
|
4078
4078
|
default:
|
|
4079
4079
|
return `距离${r}`;
|
|
@@ -4086,7 +4086,7 @@ class Ws {
|
|
|
4086
4086
|
* @param distance 距离(米)
|
|
4087
4087
|
* @param distanceType 测量类型
|
|
4088
4088
|
*/
|
|
4089
|
-
drawWireToGroundDistanceByType(t, s, r, e, a =
|
|
4089
|
+
drawWireToGroundDistanceByType(t, s, r, e, a = U.导线) {
|
|
4090
4090
|
var T, p;
|
|
4091
4091
|
const n = [
|
|
4092
4092
|
f.Cartesian3.fromDegrees(t[0], t[1], t[2]),
|
|
@@ -4095,10 +4095,11 @@ class Ws {
|
|
|
4095
4095
|
let W = "#eff819", u = f.Color.RED;
|
|
4096
4096
|
const c = this.distanceRuleConfig;
|
|
4097
4097
|
let i, l = !1;
|
|
4098
|
-
if (e.includes(
|
|
4098
|
+
if (e.includes(q.净空距离) && (i = (p = (T = c.typeRules.get(a)) == null ? void 0 : T.clearanceLevels) == null ? void 0 : p.find(
|
|
4099
4099
|
(o) => r >= o.minDistance && r <= o.maxDistance
|
|
4100
4100
|
)), i ? (W = i.color, u = f.Color.fromCssColorString(i.color)) : (l = !0, W = "#00ff00", u = f.Color.GREEN), i || l) {
|
|
4101
4101
|
this.entityCollectionplotting.add({
|
|
4102
|
+
name: i.id,
|
|
4102
4103
|
polyline: {
|
|
4103
4104
|
positions: n,
|
|
4104
4105
|
width: 2,
|
|
@@ -4114,9 +4115,9 @@ class Ws {
|
|
|
4114
4115
|
);
|
|
4115
4116
|
this.entityCollectionplotting.add({
|
|
4116
4117
|
position: o,
|
|
4117
|
-
name:
|
|
4118
|
+
name: i.id,
|
|
4118
4119
|
label: {
|
|
4119
|
-
text: this.getDistanceTypeLabel(
|
|
4120
|
+
text: this.getDistanceTypeLabel(q.净空距离, r),
|
|
4120
4121
|
fillColor: f.Color.fromCssColorString(W),
|
|
4121
4122
|
font: "12px sans-serif",
|
|
4122
4123
|
pixelOffset: new f.Cartesian2(0, 0),
|
|
@@ -4257,8 +4258,8 @@ class Ws {
|
|
|
4257
4258
|
f.Cartesian3.normalize(p, p);
|
|
4258
4259
|
const o = f.Cartesian3.cross(T, p, new f.Cartesian3());
|
|
4259
4260
|
f.Cartesian3.normalize(o, o);
|
|
4260
|
-
const A = s / 2, g = f.Cartesian3.multiplyByScalar(o, A, new f.Cartesian3()), y = f.Cartesian3.multiplyByScalar(o, -A, new f.Cartesian3()), L = f.Cartesian3.add(c, g, new f.Cartesian3()),
|
|
4261
|
-
r.push(L), e.push(
|
|
4261
|
+
const A = s / 2, g = f.Cartesian3.multiplyByScalar(o, A, new f.Cartesian3()), y = f.Cartesian3.multiplyByScalar(o, -A, new f.Cartesian3()), L = f.Cartesian3.add(c, g, new f.Cartesian3()), m = f.Cartesian3.add(c, y, new f.Cartesian3());
|
|
4262
|
+
r.push(L), e.push(m);
|
|
4262
4263
|
}
|
|
4263
4264
|
const a = [];
|
|
4264
4265
|
return a.push(...r), a.push(...e.reverse()), a.push(r[0]), {
|
|
@@ -4282,7 +4283,7 @@ class Ws {
|
|
|
4282
4283
|
* @param distanceConfig 距离规则配置,null表示不应用规则
|
|
4283
4284
|
* @param featureType 地物类型,用于获取对应类型的规则配置
|
|
4284
4285
|
*/
|
|
4285
|
-
calcResult(t, s, r, e, a = this.distanceRuleConfig, n = [], W =
|
|
4286
|
+
calcResult(t, s, r, e, a = this.distanceRuleConfig, n = [], W = U.树木) {
|
|
4286
4287
|
if (this.entityCollectionplotting.values.length >= this.maxVisibleResults)
|
|
4287
4288
|
return;
|
|
4288
4289
|
const u = `${t[0].toFixed(6)}_${t[1].toFixed(6)}_${t[2].toFixed(2)}`;
|
|
@@ -4304,7 +4305,7 @@ class Ws {
|
|
|
4304
4305
|
* @param featureType 地物类型,用于获取对应类型的规则配置
|
|
4305
4306
|
* @returns MeasurementResult 测量结果对象
|
|
4306
4307
|
*/
|
|
4307
|
-
calcResultSingleWire(t, s, r, e = this.distanceRuleConfig, a =
|
|
4308
|
+
calcResultSingleWire(t, s, r, e = this.distanceRuleConfig, a = U.树木) {
|
|
4308
4309
|
if (this.entityCollectionplotting.values.length >= this.maxVisibleResults)
|
|
4309
4310
|
return null;
|
|
4310
4311
|
const n = [
|
|
@@ -4361,7 +4362,7 @@ class Ws {
|
|
|
4361
4362
|
* 获取线间距离规则配置
|
|
4362
4363
|
*/
|
|
4363
4364
|
getWireToWireDistanceRuleConfig() {
|
|
4364
|
-
const t = new
|
|
4365
|
+
const t = new Yt();
|
|
4365
4366
|
return t.phaseRules = new Map(this.wireToWireDistanceRuleConfig.phaseRules), t;
|
|
4366
4367
|
}
|
|
4367
4368
|
/**
|
|
@@ -4372,7 +4373,7 @@ class Ws {
|
|
|
4372
4373
|
* @param phase2 第二根导线的相序
|
|
4373
4374
|
* @returns WireToWireMeasurementResult 线间测量结果
|
|
4374
4375
|
*/
|
|
4375
|
-
calculateWireToWireDistance(t, s, r =
|
|
4376
|
+
calculateWireToWireDistance(t, s, r = N.A相, e = N.B相) {
|
|
4376
4377
|
const a = new is();
|
|
4377
4378
|
if (a.timestamp = Date.now(), a.phase1 = r, a.phase2 = e, t.length < 2 || s.length < 2)
|
|
4378
4379
|
return console.warn("导线数据点数不足,无法计算线间距离"), a;
|
|
@@ -4474,19 +4475,29 @@ class Ws {
|
|
|
4474
4475
|
* 创建默认的线间距离规则配置
|
|
4475
4476
|
*/
|
|
4476
4477
|
createDefaultWireToWireDistanceRuleConfig() {
|
|
4477
|
-
const t = new
|
|
4478
|
+
const t = new Yt(), s = {
|
|
4478
4479
|
distanceLevels: [
|
|
4479
4480
|
{ name: "危险", minDistance: 0, maxDistance: 3, color: "#ff0000", isAlarm: !0 },
|
|
4480
4481
|
{ name: "警告", minDistance: 3, maxDistance: 5, color: "#ffa500", isAlarm: !0 },
|
|
4481
4482
|
{ name: "安全", minDistance: 5, maxDistance: 1 / 0, color: "#00ff00", isAlarm: !1 }
|
|
4482
4483
|
],
|
|
4483
4484
|
enabled: !0
|
|
4484
|
-
}, r = [
|
|
4485
|
+
}, r = [N.A相, N.B相, N.C相, N.地线1, N.地线2];
|
|
4485
4486
|
for (let e = 0; e < r.length; e++)
|
|
4486
4487
|
for (let a = e + 1; a < r.length; a++)
|
|
4487
4488
|
t.setRules(r[e], r[a], { ...s });
|
|
4488
4489
|
return t;
|
|
4489
4490
|
}
|
|
4491
|
+
/**
|
|
4492
|
+
* 根据实体 name 批量设置显隐
|
|
4493
|
+
* @param targetName 指定匹配的name值
|
|
4494
|
+
* @param visible 是否显示 true显示 / false隐藏
|
|
4495
|
+
*/
|
|
4496
|
+
setPlottingEntityVisible(t, s) {
|
|
4497
|
+
const r = this.entityCollectionplotting.values;
|
|
4498
|
+
for (const e of r)
|
|
4499
|
+
e.name === t && (e.show = s);
|
|
4500
|
+
}
|
|
4490
4501
|
}
|
|
4491
4502
|
function Cs(h, t) {
|
|
4492
4503
|
let s = 0;
|
|
@@ -4507,15 +4518,15 @@ function ds(h, t) {
|
|
|
4507
4518
|
return [s, r];
|
|
4508
4519
|
}
|
|
4509
4520
|
const Ts = Math.sqrt(50), ps = Math.sqrt(10), As = Math.sqrt(2);
|
|
4510
|
-
function
|
|
4521
|
+
function _t(h, t, s) {
|
|
4511
4522
|
const r = (t - h) / Math.max(0, s), e = Math.floor(Math.log10(r)), a = r / Math.pow(10, e), n = a >= Ts ? 10 : a >= ps ? 5 : a >= As ? 2 : 1;
|
|
4512
4523
|
let W, u, c;
|
|
4513
|
-
return e < 0 ? (c = Math.pow(10, -e) / n, W = Math.round(h * c), u = Math.round(t * c), W / c < h && ++W, u / c > t && --u, c = -c) : (c = Math.pow(10, e) * n, W = Math.round(h / c), u = Math.round(t / c), W * c < h && ++W, u * c > t && --u), u < W && 0.5 <= s && s < 2 ?
|
|
4524
|
+
return e < 0 ? (c = Math.pow(10, -e) / n, W = Math.round(h * c), u = Math.round(t * c), W / c < h && ++W, u / c > t && --u, c = -c) : (c = Math.pow(10, e) * n, W = Math.round(h / c), u = Math.round(t / c), W * c < h && ++W, u * c > t && --u), u < W && 0.5 <= s && s < 2 ? _t(h, t, s * 2) : [W, u, c];
|
|
4514
4525
|
}
|
|
4515
4526
|
function ws(h, t, s) {
|
|
4516
4527
|
if (t = +t, h = +h, s = +s, !(s > 0)) return [];
|
|
4517
4528
|
if (h === t) return [h];
|
|
4518
|
-
const r = t < h, [e, a, n] = r ?
|
|
4529
|
+
const r = t < h, [e, a, n] = r ? _t(t, h, s) : _t(h, t, s);
|
|
4519
4530
|
if (!(a >= e)) return [];
|
|
4520
4531
|
const W = a - e + 1, u = new Array(W);
|
|
4521
4532
|
if (r)
|
|
@@ -4526,7 +4537,7 @@ function ws(h, t, s) {
|
|
|
4526
4537
|
return u;
|
|
4527
4538
|
}
|
|
4528
4539
|
function Ls(h, t, s) {
|
|
4529
|
-
return t = +t, h = +h, s = +s,
|
|
4540
|
+
return t = +t, h = +h, s = +s, _t(h, t, s)[2];
|
|
4530
4541
|
}
|
|
4531
4542
|
function gs(h, t, s) {
|
|
4532
4543
|
let r;
|
|
@@ -4591,14 +4602,14 @@ var ft = [
|
|
|
4591
4602
|
[[[0.5, 1], [1, 1.5]]],
|
|
4592
4603
|
[]
|
|
4593
4604
|
];
|
|
4594
|
-
function
|
|
4605
|
+
function _s() {
|
|
4595
4606
|
var h = 1, t = 1, s = Is, r = u;
|
|
4596
4607
|
function e(c) {
|
|
4597
4608
|
var i = s(c);
|
|
4598
4609
|
if (Array.isArray(i))
|
|
4599
4610
|
i = i.slice().sort(Bs);
|
|
4600
4611
|
else {
|
|
4601
|
-
const l = ds(c,
|
|
4612
|
+
const l = ds(c, Ss);
|
|
4602
4613
|
for (i = ws(...gs(l[0], l[1], i), i); i[i.length - 1] >= l[1]; ) i.pop();
|
|
4603
4614
|
for (; i[1] < l[0]; ) i.shift();
|
|
4604
4615
|
}
|
|
@@ -4623,20 +4634,20 @@ function Ss() {
|
|
|
4623
4634
|
};
|
|
4624
4635
|
}
|
|
4625
4636
|
function n(c, i, l) {
|
|
4626
|
-
var T = new Array(), p = new Array(), o, A, g, y, L,
|
|
4627
|
-
for (o = A = -1, y =
|
|
4628
|
-
g = y, y =
|
|
4637
|
+
var T = new Array(), p = new Array(), o, A, g, y, L, m;
|
|
4638
|
+
for (o = A = -1, y = Tt(c[0], i), ft[y << 1].forEach(B); ++o < h - 1; )
|
|
4639
|
+
g = y, y = Tt(c[o + 1], i), ft[g | y << 1].forEach(B);
|
|
4629
4640
|
for (ft[y << 0].forEach(B); ++A < t - 1; ) {
|
|
4630
|
-
for (o = -1, y =
|
|
4631
|
-
g = y, y =
|
|
4641
|
+
for (o = -1, y = Tt(c[A * h + h], i), L = Tt(c[A * h], i), ft[y << 1 | L << 2].forEach(B); ++o < h - 1; )
|
|
4642
|
+
g = y, y = Tt(c[A * h + h + o + 1], i), m = L, L = Tt(c[A * h + o + 1], i), ft[g | y << 1 | L << 2 | m << 3].forEach(B);
|
|
4632
4643
|
ft[y | L << 3].forEach(B);
|
|
4633
4644
|
}
|
|
4634
4645
|
for (o = -1, L = c[A * h] >= i, ft[L << 2].forEach(B); ++o < h - 1; )
|
|
4635
|
-
|
|
4646
|
+
m = L, L = Tt(c[A * h + o + 1], i), ft[L << 2 | m << 3].forEach(B);
|
|
4636
4647
|
ft[L << 3].forEach(B);
|
|
4637
4648
|
function B(v) {
|
|
4638
|
-
var b = [v[0][0] + o, v[0][1] + A], M = [v[1][0] + o, v[1][1] + A],
|
|
4639
|
-
(E = p[
|
|
4649
|
+
var b = [v[0][0] + o, v[0][1] + A], M = [v[1][0] + o, v[1][1] + A], _ = W(b), R = W(M), E, D;
|
|
4650
|
+
(E = p[_]) ? (D = T[R]) ? (delete p[E.end], delete T[D.start], E === D ? (E.ring.push(M), l(E.ring)) : T[E.start] = p[D.end] = { start: E.start, end: D.end, ring: E.ring.concat(D.ring) }) : (delete p[E.end], E.ring.push(M), p[E.end = R] = E) : (E = T[R]) ? (D = p[_]) ? (delete T[E.start], delete p[D.end], E === D ? (E.ring.push(M), l(E.ring)) : T[D.start] = p[E.end] = { start: D.start, end: E.end, ring: D.ring.concat(E.ring) }) : (delete T[E.start], E.ring.unshift(b), T[E.start = _] = E) : T[_] = p[R] = { start: _, end: R, ring: [b, M] };
|
|
4640
4651
|
}
|
|
4641
4652
|
}
|
|
4642
4653
|
function W(c) {
|
|
@@ -4644,8 +4655,8 @@ function Ss() {
|
|
|
4644
4655
|
}
|
|
4645
4656
|
function u(c, i, l) {
|
|
4646
4657
|
c.forEach(function(T) {
|
|
4647
|
-
var p = T[0], o = T[1], A = p | 0, g = o | 0, y =
|
|
4648
|
-
p > 0 && p < h && A === p && (T[0] = he(p,
|
|
4658
|
+
var p = T[0], o = T[1], A = p | 0, g = o | 0, y = Nt(i[g * h + A]);
|
|
4659
|
+
p > 0 && p < h && A === p && (T[0] = he(p, Nt(i[g * h + A - 1]), y, l)), o > 0 && o < t && g === o && (T[1] = he(o, Nt(i[(g - 1) * h + A]), y, l));
|
|
4649
4660
|
});
|
|
4650
4661
|
}
|
|
4651
4662
|
return e.contour = a, e.size = function(c) {
|
|
@@ -4659,13 +4670,13 @@ function Ss() {
|
|
|
4659
4670
|
return arguments.length ? (r = c ? u : Rs, e) : r === u;
|
|
4660
4671
|
}, e;
|
|
4661
4672
|
}
|
|
4662
|
-
function
|
|
4673
|
+
function Ss(h) {
|
|
4663
4674
|
return isFinite(h) ? h : NaN;
|
|
4664
4675
|
}
|
|
4665
|
-
function
|
|
4676
|
+
function Tt(h, t) {
|
|
4666
4677
|
return h == null ? !1 : +h >= t;
|
|
4667
4678
|
}
|
|
4668
|
-
function
|
|
4679
|
+
function Nt(h) {
|
|
4669
4680
|
return h == null || isNaN(h = +h) ? -1 / 0 : h;
|
|
4670
4681
|
}
|
|
4671
4682
|
function he(h, t, s, r) {
|
|
@@ -4771,8 +4782,8 @@ class Fs {
|
|
|
4771
4782
|
for (let o = 0; o < c; o++) {
|
|
4772
4783
|
const A = a - o * W;
|
|
4773
4784
|
for (let g = 0; g < u; g++) {
|
|
4774
|
-
const y = s + g * W, L = await this.getHeightFromTerrain(y, A),
|
|
4775
|
-
if (T[
|
|
4785
|
+
const y = s + g * W, L = await this.getHeightFromTerrain(y, A), m = o * u + g;
|
|
4786
|
+
if (T[m] = L, p.push({ longitude: y, latitude: A, height: L }), l++, l % 100 === 0) {
|
|
4776
4787
|
const B = (l / i * 100).toFixed(1);
|
|
4777
4788
|
console.log(`[d3-contour] 网格点生成进度: ${l}/${i} (${B}%)`);
|
|
4778
4789
|
}
|
|
@@ -4803,7 +4814,7 @@ class Fs {
|
|
|
4803
4814
|
const a = Math.floor(Math.min(...e) / r) * r, n = Math.ceil(Math.max(...e) / r) * r, W = [];
|
|
4804
4815
|
for (let i = a; i <= n; i += r)
|
|
4805
4816
|
W.push(i);
|
|
4806
|
-
const c =
|
|
4817
|
+
const c = _s().size([t.width, t.height]).thresholds(W)(t.values);
|
|
4807
4818
|
return console.log(`[d3-contour] d3-contour 生成了 ${c.length} 条等高线`), c.forEach((i) => {
|
|
4808
4819
|
const l = {
|
|
4809
4820
|
height: i.value,
|
|
@@ -4827,8 +4838,8 @@ class Fs {
|
|
|
4827
4838
|
* 获取网格点的高度值(支持小数坐标的插值)
|
|
4828
4839
|
*/
|
|
4829
4840
|
getHeightAtGridPoint(t, s, r) {
|
|
4830
|
-
const e = Math.floor(s), a = Math.floor(r), n = Math.min(e + 1, t.width - 1), W = Math.min(a + 1, t.height - 1), u = a * t.width + e, c = a * t.width + n, i = W * t.width + e, l = W * t.width + n, T = t.values[u] || 0, p = t.values[c] || 0, o = t.values[i] || 0, A = t.values[l] || 0, g = s - e, y = r - a, L = T * (1 - g) + p * g,
|
|
4831
|
-
return L * (1 - y) +
|
|
4841
|
+
const e = Math.floor(s), a = Math.floor(r), n = Math.min(e + 1, t.width - 1), W = Math.min(a + 1, t.height - 1), u = a * t.width + e, c = a * t.width + n, i = W * t.width + e, l = W * t.width + n, T = t.values[u] || 0, p = t.values[c] || 0, o = t.values[i] || 0, A = t.values[l] || 0, g = s - e, y = r - a, L = T * (1 - g) + p * g, m = o * (1 - g) + A * g;
|
|
4842
|
+
return L * (1 - y) + m * y;
|
|
4832
4843
|
}
|
|
4833
4844
|
/**
|
|
4834
4845
|
* 绘制等高线到场景中 - 使用GroundPolylinePrimitive实现真正的贴地渲染
|
|
@@ -4985,25 +4996,25 @@ class Fs {
|
|
|
4985
4996
|
const u = W.Longitude - n.Longitude, i = -(W.Latitude - n.Latitude), l = u, T = Math.sqrt(i * i + l * l), p = {
|
|
4986
4997
|
dx: i / T,
|
|
4987
4998
|
dy: l / T
|
|
4988
|
-
}, o = e.width / 2, A = 6371e3, g = o / A * (180 / Math.PI), y = o / A * (180 / Math.PI) / Math.cos(a.Latitude * Math.PI / 180), L = a.Longitude - p.dx * y,
|
|
4999
|
+
}, o = e.width / 2, A = 6371e3, g = o / A * (180 / Math.PI), y = o / A * (180 / Math.PI) / Math.cos(a.Latitude * Math.PI / 180), L = a.Longitude - p.dx * y, m = a.Latitude - p.dy * g, B = a.Longitude + p.dx * y, v = a.Latitude + p.dy * g, b = [], M = Math.ceil(e.width / e.interval) + 1;
|
|
4989
5000
|
for (let E = 0; E < M; E++) {
|
|
4990
|
-
const D = E / (M - 1),
|
|
5001
|
+
const D = E / (M - 1), Z = L + (B - L) * D, k = m + (v - m) * D, F = (D - 0.5) * e.width, X = await this.getHeightFromTerrain(Z, k);
|
|
4991
5002
|
b.push({
|
|
4992
5003
|
distance: F,
|
|
4993
|
-
height:
|
|
4994
|
-
lon:
|
|
5004
|
+
height: X,
|
|
5005
|
+
lon: Z,
|
|
4995
5006
|
lat: k,
|
|
4996
5007
|
isCenter: Math.abs(F) < e.interval / 2,
|
|
4997
5008
|
isMountain: !1
|
|
4998
5009
|
});
|
|
4999
5010
|
}
|
|
5000
|
-
const
|
|
5011
|
+
const _ = this.applyInterpolation(b, e.interpolationMethod), R = this.detectMountains(_, e.mountainThreshold, e.mountainProminence);
|
|
5001
5012
|
return R.forEach((E) => {
|
|
5002
|
-
|
|
5013
|
+
_.forEach((D) => {
|
|
5003
5014
|
D.distance >= E.startDistance && D.distance <= E.endDistance && (D.isMountain = !0);
|
|
5004
5015
|
});
|
|
5005
5016
|
}), {
|
|
5006
|
-
points:
|
|
5017
|
+
points: _,
|
|
5007
5018
|
mountains: R
|
|
5008
5019
|
};
|
|
5009
5020
|
}
|
|
@@ -5381,11 +5392,11 @@ Prom: ${s.prominence.toFixed(0)}m`,
|
|
|
5381
5392
|
g = D;
|
|
5382
5393
|
for (let D = l + 1; D < W && T.height - t[D].height >= s.minPeakDiff / 2; D++)
|
|
5383
5394
|
y = D;
|
|
5384
|
-
const L = T.height - t[g].height,
|
|
5395
|
+
const L = T.height - t[g].height, m = T.height - t[y].height, B = T.distance - t[g].distance, v = t[y].distance - T.distance, b = u(L, B), M = u(m, v), _ = s.peakMode === "slope_only" || A >= s.minPeakDiff, R = s.peakMode === "height_diff" || b >= s.minPeakSlope && M >= s.minPeakSlope, E = s.peakMode === "both" ? A >= s.minPeakDiff && b >= s.minPeakSlope && M >= s.minPeakSlope : !0;
|
|
5385
5396
|
if (s.peakMode === "both") {
|
|
5386
5397
|
if (!E) continue;
|
|
5387
5398
|
} else if (s.peakMode === "height_diff") {
|
|
5388
|
-
if (!
|
|
5399
|
+
if (!_) continue;
|
|
5389
5400
|
} else if (!R) continue;
|
|
5390
5401
|
e.push({
|
|
5391
5402
|
id: e.length + 1,
|
|
@@ -5417,11 +5428,11 @@ Prom: ${s.prominence.toFixed(0)}m`,
|
|
|
5417
5428
|
g = D;
|
|
5418
5429
|
for (let D = l + 1; D < W && t[D].height - T.height >= s.minValleyDiff / 2; D++)
|
|
5419
5430
|
y = D;
|
|
5420
|
-
const L = t[g].height - T.height,
|
|
5431
|
+
const L = t[g].height - T.height, m = t[y].height - T.height, B = T.distance - t[g].distance, v = t[y].distance - T.distance, b = u(L, B), M = u(m, v), _ = s.valleyMode === "slope_only" || A >= s.minValleyDiff, R = s.valleyMode === "height_diff" || b >= s.minValleySlope && M >= s.minValleySlope, E = s.valleyMode === "both" ? A >= s.minValleyDiff && b >= s.minValleySlope && M >= s.minValleySlope : !0;
|
|
5421
5432
|
if (s.valleyMode === "both") {
|
|
5422
5433
|
if (!E) continue;
|
|
5423
5434
|
} else if (s.valleyMode === "height_diff") {
|
|
5424
|
-
if (!
|
|
5435
|
+
if (!_) continue;
|
|
5425
5436
|
} else if (!R) continue;
|
|
5426
5437
|
a.push({
|
|
5427
5438
|
id: a.length + 1,
|
|
@@ -5511,7 +5522,7 @@ class Qs {
|
|
|
5511
5522
|
// 存储选中的第一根导线信息
|
|
5512
5523
|
w(this, "selectedWire1Entity", null);
|
|
5513
5524
|
w(this, "selectedWire1Data", []);
|
|
5514
|
-
w(this, "selectedWire1Phase",
|
|
5525
|
+
w(this, "selectedWire1Phase", N.A相);
|
|
5515
5526
|
w(this, "originalWire1Color", null);
|
|
5516
5527
|
this.viewer = t, this.LineInfo = s, this.lineConstruction = new us(t, s, r), this.terrainConstruction = new Ut(t, s, r), this.channelCalculation = new Ws(t), this.contourConstruction = new Fs(t), this.enableWireMeasurement = this.enableWireMeasurement.bind(this), this.removeWireListen = this.removeWireListen.bind(this);
|
|
5517
5528
|
}
|
|
@@ -5569,6 +5580,12 @@ class Qs {
|
|
|
5569
5580
|
loadLineTower() {
|
|
5570
5581
|
this.lineConstruction.loadLineTower();
|
|
5571
5582
|
}
|
|
5583
|
+
/**
|
|
5584
|
+
* 加载线路杆塔
|
|
5585
|
+
*/
|
|
5586
|
+
loadLODWireOnly() {
|
|
5587
|
+
this.lineConstruction.LODloadAllWiresOnly();
|
|
5588
|
+
}
|
|
5572
5589
|
//设置线路显隐
|
|
5573
5590
|
setLineVisible(t) {
|
|
5574
5591
|
this.lineConstruction.setLineVisible(t);
|
|
@@ -5730,10 +5747,10 @@ class Qs {
|
|
|
5730
5747
|
i && i.length > 0 && u.push(...i);
|
|
5731
5748
|
}), n.wireSegments1C1.forEach((i) => {
|
|
5732
5749
|
i && i.length > 0 && c.push(...i);
|
|
5733
|
-
}),
|
|
5750
|
+
}), await this.calculateClearanceBySegments(n);
|
|
5734
5751
|
else {
|
|
5735
5752
|
const i = this.lineConstruction.getWireDataForChannelCalculation();
|
|
5736
|
-
W = i.arcLine1A1, u = i.arcLine1B1, c = i.arcLine1C1
|
|
5753
|
+
W = i.arcLine1A1, u = i.arcLine1B1, c = i.arcLine1C1;
|
|
5737
5754
|
}
|
|
5738
5755
|
this.channelCalculation.LineChannelTerrainVerification(
|
|
5739
5756
|
e,
|
|
@@ -5752,44 +5769,25 @@ class Qs {
|
|
|
5752
5769
|
*/
|
|
5753
5770
|
async calculateClearanceBySegments(t) {
|
|
5754
5771
|
var e, a, n;
|
|
5755
|
-
console.log("========== 开始按塔段计算净空距离 ==========");
|
|
5756
5772
|
const s = Math.max(
|
|
5757
5773
|
t.wireSegments1A1.length,
|
|
5758
5774
|
t.wireSegments1B1.length,
|
|
5759
5775
|
t.wireSegments1C1.length
|
|
5760
|
-
);
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
continue;
|
|
5775
|
-
}
|
|
5776
|
-
if (c.length < 2) {
|
|
5777
|
-
console.log(`${u.key}相 塔段${W} 点数不足(${c.length}点),跳过`);
|
|
5778
|
-
continue;
|
|
5779
|
-
}
|
|
5780
|
-
console.log(`${u.key}相 塔段${W}: ${c.length}个点,开始计算净空距离`);
|
|
5781
|
-
try {
|
|
5782
|
-
await this.channelCalculation.calculateAndDrawWireToGroundDistanceByType(
|
|
5783
|
-
c,
|
|
5784
|
-
[K.线间距离测量]
|
|
5785
|
-
), console.log(`${u.key}相 塔段${W} 净空距离计算完成`);
|
|
5786
|
-
} catch (i) {
|
|
5787
|
-
console.error(`${u.key}相 塔段${W} 净空距离计算失败:`, i);
|
|
5776
|
+
), r = [];
|
|
5777
|
+
if (t.wireSegments1A1.length > 0 && ((e = t.wireSegments1A1[0]) == null ? void 0 : e.length) > 0 && r.push({ key: "A", data: t.wireSegments1A1 }), t.wireSegments1B1.length > 0 && ((a = t.wireSegments1B1[0]) == null ? void 0 : a.length) > 0 && r.push({ key: "B", data: t.wireSegments1B1 }), t.wireSegments1C1.length > 0 && ((n = t.wireSegments1C1[0]) == null ? void 0 : n.length) > 0 && r.push({ key: "C", data: t.wireSegments1C1 }), r.length !== 0)
|
|
5778
|
+
for (let W = 0; W < s; W++)
|
|
5779
|
+
for (const u of r) {
|
|
5780
|
+
const c = u.data[W];
|
|
5781
|
+
if (c && !(c.length < 2))
|
|
5782
|
+
try {
|
|
5783
|
+
await this.channelCalculation.calculateAndDrawWireToGroundDistanceByType(
|
|
5784
|
+
c,
|
|
5785
|
+
[q.线间距离测量]
|
|
5786
|
+
);
|
|
5787
|
+
} catch (i) {
|
|
5788
|
+
console.error(`${u.key}相 塔段${W} 净空距离计算失败:`, i);
|
|
5789
|
+
}
|
|
5788
5790
|
}
|
|
5789
|
-
}
|
|
5790
|
-
}
|
|
5791
|
-
console.log(`
|
|
5792
|
-
========== 按塔段净空距离计算完成 ==========`);
|
|
5793
5791
|
}
|
|
5794
5792
|
/**
|
|
5795
5793
|
* 按杆塔号范围进行地物校验(基于线路中心线的带状区域筛选)
|
|
@@ -5805,109 +5803,101 @@ class Qs {
|
|
|
5805
5803
|
* @param phase 相序:ABC-全部,A-A相,B-B相,C-C相,AB-A/B相,AC-A/C相,BC-B/C相,默认ABC
|
|
5806
5804
|
*/
|
|
5807
5805
|
LineChannelTerrainVerificationByTowerRange(t, s, r, e = 100, a = 2e3, n = !1, W = !0, u = [], c = 0, i = "ABC") {
|
|
5808
|
-
debugger;
|
|
5809
5806
|
const l = this.LineInfo.towers;
|
|
5810
5807
|
let T = -1, p = -1;
|
|
5811
|
-
for (let
|
|
5812
|
-
(l[
|
|
5808
|
+
for (let S = 0; S < l.length; S++)
|
|
5809
|
+
(l[S].id == t || l[S].name == t) && (T = S), (l[S].id == s || l[S].name == s) && (p = S);
|
|
5813
5810
|
if (T === -1 || p === -1) {
|
|
5814
5811
|
console.warn("未找到指定的杆塔范围,使用全部线路进行校验");
|
|
5815
5812
|
return;
|
|
5816
5813
|
}
|
|
5817
5814
|
T > p && ([T, p] = [p, T]);
|
|
5818
5815
|
const o = this.lineConstruction.getAllWireSegments();
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
for (let
|
|
5828
|
-
|
|
5829
|
-
for (let
|
|
5830
|
-
|
|
5831
|
-
for (let
|
|
5832
|
-
|
|
5833
|
-
for (let
|
|
5834
|
-
|
|
5835
|
-
for (let
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
i === "A" ? ($.splice(0), k.splice(0), Z.splice(0), X.splice(0)) : i === "B" ? (D.splice(0), k.splice(0), F.splice(0), X.splice(0)) : i === "C" ? (D.splice(0), $.splice(0), F.splice(0), Z.splice(0)) : i === "AB" ? (k.splice(0), X.splice(0)) : i === "AC" ? ($.splice(0), Z.splice(0)) : i === "BC" && (D.splice(0), F.splice(0)), console.log(`导线数据状态(回路${c},相序${i}): 回路1-A相=${D.length}, B相=${$.length}, C相=${k.length}; 回路2-A相=${F.length}, B相=${Z.length}, C相=${X.length}`);
|
|
5840
|
-
const Y = this.terrainConstruction.getLineInfo().corridor_features, V = this.terrainConstruction.getOffsetTrees();
|
|
5841
|
-
console.log(`总树木数量: ${Y.length}`);
|
|
5842
|
-
const N = l.slice(T, p + 1), Lt = cs(N, a);
|
|
5816
|
+
let A = o.wireSegments1A1, g = o.wireSegments1B1, y = o.wireSegments1C1, L = [], m = [], B = [];
|
|
5817
|
+
(c === 0 || c === 2) && (L = o.wireSegments2A1, m = o.wireSegments2B1, B = o.wireSegments2C1);
|
|
5818
|
+
const v = [], b = [], M = [], _ = [], R = [], E = [];
|
|
5819
|
+
for (let S = T + 1; S <= p; S++)
|
|
5820
|
+
(c === 0 || c === 1) && (A[S] && v.push(A[S]), g[S] && b.push(g[S]), y[S] && M.push(y[S])), (c === 0 || c === 2) && (L[S] && _.push(L[S]), m[S] && R.push(m[S]), B[S] && E.push(B[S]));
|
|
5821
|
+
const D = [], Z = [], k = [], F = [], X = [], $ = [];
|
|
5822
|
+
for (let S = 0; S < v.length; S++)
|
|
5823
|
+
D.push(...v[S]);
|
|
5824
|
+
for (let S = 0; S < b.length; S++)
|
|
5825
|
+
Z.push(...b[S]);
|
|
5826
|
+
for (let S = 0; S < M.length; S++)
|
|
5827
|
+
k.push(...M[S]);
|
|
5828
|
+
for (let S = 0; S < _.length; S++)
|
|
5829
|
+
F.push(..._[S]);
|
|
5830
|
+
for (let S = 0; S < R.length; S++)
|
|
5831
|
+
X.push(...R[S]);
|
|
5832
|
+
for (let S = 0; S < E.length; S++)
|
|
5833
|
+
$.push(...E[S]);
|
|
5834
|
+
i === "A" ? (Z.splice(0), k.splice(0), X.splice(0), $.splice(0)) : i === "B" ? (D.splice(0), k.splice(0), F.splice(0), $.splice(0)) : i === "C" ? (D.splice(0), Z.splice(0), F.splice(0), X.splice(0)) : i === "AB" ? (k.splice(0), $.splice(0)) : i === "AC" ? (Z.splice(0), X.splice(0)) : i === "BC" && (D.splice(0), F.splice(0));
|
|
5835
|
+
const Y = this.terrainConstruction.getLineInfo().corridor_features, V = this.terrainConstruction.getOffsetTrees(), O = l.slice(T, p + 1), wt = cs(O, a);
|
|
5843
5836
|
if (n) {
|
|
5844
|
-
if (
|
|
5845
|
-
this.channelCalculation.drawCorridorPolygon(
|
|
5846
|
-
const
|
|
5837
|
+
if (wt.length > 0) {
|
|
5838
|
+
this.channelCalculation.drawCorridorPolygon(wt, `corridor-${t}-${s}`);
|
|
5839
|
+
const S = O.map((ut) => [
|
|
5847
5840
|
ut.Longitude,
|
|
5848
5841
|
ut.Latitude
|
|
5849
5842
|
]);
|
|
5850
|
-
this.channelCalculation.drawCorridorDistanceMarkers(
|
|
5843
|
+
this.channelCalculation.drawCorridorDistanceMarkers(S, a, `corridor-${t}-${s}`, W);
|
|
5851
5844
|
}
|
|
5852
5845
|
} else
|
|
5853
5846
|
this.channelCalculation.clearCorridorPolygon(), this.channelCalculation.clearCorridorDistanceMarkers();
|
|
5854
|
-
const
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
ut !== void 0 && J.push(V[ut]);
|
|
5862
|
-
}), Tt.length === 0) {
|
|
5847
|
+
const Lt = ls(Y, wt), G = [], mt = /* @__PURE__ */ new Map();
|
|
5848
|
+
if (Y.forEach((S, ut) => {
|
|
5849
|
+
mt.set(S, ut);
|
|
5850
|
+
}), Lt.forEach((S) => {
|
|
5851
|
+
const ut = mt.get(S);
|
|
5852
|
+
ut !== void 0 && G.push(V[ut]);
|
|
5853
|
+
}), Lt.length === 0) {
|
|
5863
5854
|
console.warn("指定杆塔范围的通道内没有找到树木"), r && r([]);
|
|
5864
5855
|
return;
|
|
5865
5856
|
}
|
|
5866
|
-
const kt = D.length > 0 ||
|
|
5857
|
+
const kt = D.length > 0 || Z.length > 0 || k.length > 0, gt = F.length > 0 || X.length > 0 || $.length > 0;
|
|
5867
5858
|
if (!kt && !gt) {
|
|
5868
|
-
|
|
5859
|
+
r && r([]);
|
|
5869
5860
|
return;
|
|
5870
5861
|
}
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
J,
|
|
5862
|
+
let H = [...D], K = [...Z], xt = [...k];
|
|
5863
|
+
(c === 0 || c === 2) && gt && (H.push(...F), K.push(...X), xt.push(...$)), this.channelCalculation.LineChannelTerrainVerificationForFilteredTrees(
|
|
5864
|
+
Lt,
|
|
5865
|
+
G,
|
|
5876
5866
|
H,
|
|
5877
|
-
|
|
5867
|
+
K,
|
|
5878
5868
|
xt,
|
|
5879
5869
|
e,
|
|
5880
5870
|
u,
|
|
5881
|
-
(
|
|
5882
|
-
if (u.includes(
|
|
5871
|
+
(S) => {
|
|
5872
|
+
if (u.includes(q.净空距离)) {
|
|
5883
5873
|
if (c === 0 || c === 1)
|
|
5884
5874
|
for (let tt = 0; tt < v.length; tt++) {
|
|
5885
|
-
const pt = T + tt,
|
|
5886
|
-
let
|
|
5887
|
-
i === "A" ? (
|
|
5888
|
-
it,
|
|
5889
|
-
ot,
|
|
5875
|
+
const pt = T + tt, yt = pt + 1, Ft = v[tt] || [], Zt = b[tt] || [], Xt = M[tt] || [];
|
|
5876
|
+
let rt = [...Ft], nt = [...Zt], ht = [...Xt];
|
|
5877
|
+
i === "A" ? (nt = [], ht = []) : i === "B" ? (rt = [], ht = []) : i === "C" ? (rt = [], nt = []) : i === "AB" ? ht = [] : i === "AC" ? nt = [] : i === "BC" && (rt = []), this.channelCalculation.calculateAndDrawWireToGroundDistanceBySegments(
|
|
5890
5878
|
rt,
|
|
5879
|
+
nt,
|
|
5880
|
+
ht,
|
|
5891
5881
|
u
|
|
5892
|
-
).catch((
|
|
5893
|
-
console.error(`Error calculating wire to ground distance for segment ${pt}-${
|
|
5882
|
+
).catch(($t) => {
|
|
5883
|
+
console.error(`Error calculating wire to ground distance for segment ${pt}-${yt} (circuit 1):`, $t);
|
|
5894
5884
|
});
|
|
5895
5885
|
}
|
|
5896
5886
|
if ((c === 0 || c === 2) && gt)
|
|
5897
|
-
for (let tt = 0; tt <
|
|
5898
|
-
const pt = T + tt,
|
|
5899
|
-
let
|
|
5900
|
-
i === "A" ? (
|
|
5901
|
-
it,
|
|
5902
|
-
ot,
|
|
5887
|
+
for (let tt = 0; tt < _.length; tt++) {
|
|
5888
|
+
const pt = T + tt, yt = pt + 1, Ft = _[tt] || [], Zt = R[tt] || [], Xt = E[tt] || [];
|
|
5889
|
+
let rt = [...Ft], nt = [...Zt], ht = [...Xt];
|
|
5890
|
+
i === "A" ? (nt = [], ht = []) : i === "B" ? (rt = [], ht = []) : i === "C" ? (rt = [], nt = []) : i === "AB" ? ht = [] : i === "AC" ? nt = [] : i === "BC" && (rt = []), console.log(`计算塔段 ${pt}-${yt} (回路2) 的净空距离: A相=${rt.length}, B相=${nt.length}, C相=${ht.length}`), this.channelCalculation.calculateAndDrawWireToGroundDistanceBySegments(
|
|
5903
5891
|
rt,
|
|
5892
|
+
nt,
|
|
5893
|
+
ht,
|
|
5904
5894
|
u
|
|
5905
|
-
).catch((
|
|
5906
|
-
console.error(`Error calculating wire to ground distance for segment ${pt}-${
|
|
5895
|
+
).catch(($t) => {
|
|
5896
|
+
console.error(`Error calculating wire to ground distance for segment ${pt}-${yt} (circuit 2):`, $t);
|
|
5907
5897
|
});
|
|
5908
5898
|
}
|
|
5909
5899
|
}
|
|
5910
|
-
r && r(
|
|
5900
|
+
r && r(S);
|
|
5911
5901
|
}
|
|
5912
5902
|
);
|
|
5913
5903
|
}
|
|
@@ -5930,6 +5920,10 @@ class Qs {
|
|
|
5930
5920
|
r.arcLine1C1
|
|
5931
5921
|
);
|
|
5932
5922
|
}
|
|
5923
|
+
//根据地物规则ID 批量设置显隐
|
|
5924
|
+
setPlottingEntityVisible(t, s) {
|
|
5925
|
+
this.channelCalculation.setPlottingEntityVisible(t, s);
|
|
5926
|
+
}
|
|
5933
5927
|
/**
|
|
5934
5928
|
* 禁用可视区域动态地物校验
|
|
5935
5929
|
*/
|
|
@@ -6183,7 +6177,7 @@ class Qs {
|
|
|
6183
6177
|
if (n && n.id) {
|
|
6184
6178
|
const W = String(n.id), u = n.name || "";
|
|
6185
6179
|
if (W.includes("daoxian") || u.includes("导线") || u.includes("daoxian") || W.includes("dixian") || u.includes("地线") || u.includes("ground")) {
|
|
6186
|
-
let i = [], l =
|
|
6180
|
+
let i = [], l = N.A相;
|
|
6187
6181
|
if (n.polyline && n.polyline.positions) {
|
|
6188
6182
|
const T = n.polyline.positions.getValue(this.viewer.clock.currentTime);
|
|
6189
6183
|
T && Array.isArray(T) && (i = T.map((p) => {
|
|
@@ -6195,7 +6189,7 @@ class Qs {
|
|
|
6195
6189
|
];
|
|
6196
6190
|
}));
|
|
6197
6191
|
}
|
|
6198
|
-
if (u.includes("A相") || u.includes("_A相") || u.includes("_A") && !u.includes("_A相") ? l =
|
|
6192
|
+
if (u.includes("A相") || u.includes("_A相") || u.includes("_A") && !u.includes("_A相") ? l = N.A相 : u.includes("B相") || u.includes("_B相") || u.includes("_B") && !u.includes("_B相") ? l = N.B相 : u.includes("C相") || u.includes("_C相") || u.includes("_C") && !u.includes("_C相") ? l = N.C相 : u.includes("地线1") || u.includes("dixian1") || u.includes("ground1") || u.includes("GD1") ? l = N.地线1 : u.includes("地线2") || u.includes("dixian2") || u.includes("ground2") || u.includes("GD2") ? l = N.地线2 : (u.includes("地线") || u.includes("dixian") || u.includes("ground") || u.includes("GD")) && (l = N.地线1), i.length === 0 && (l === N.A相 ? i = s.arcLine1A1 : l === N.B相 ? i = s.arcLine1B1 : l === N.C相 && (i = s.arcLine1C1)), this.selectedWire1Entity && this.originalWire1Color)
|
|
6199
6193
|
try {
|
|
6200
6194
|
this.selectedWire1Entity.polyline && (this.selectedWire1Entity.polyline.material = f.Color.fromCssColorString(this.originalWire1Color));
|
|
6201
6195
|
} catch (T) {
|
|
@@ -6209,15 +6203,12 @@ class Qs {
|
|
|
6209
6203
|
this.selectedWire1Phase,
|
|
6210
6204
|
l
|
|
6211
6205
|
);
|
|
6212
|
-
this.channelCalculation.drawWireToWireDistance(T), t && t(T), this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase =
|
|
6206
|
+
this.channelCalculation.drawWireToWireDistance(T), t && t(T), this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = N.A相, this.originalWire1Color = null;
|
|
6213
6207
|
} else
|
|
6214
|
-
this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase =
|
|
6215
|
-
else {
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
T instanceof f.Color ? this.originalWire1Color = T.toCssColorString() : this.originalWire1Color = "#ffffff", n.polyline.material = f.Color.YELLOW;
|
|
6219
|
-
}
|
|
6220
|
-
console.log(`已选中第一根导线: ${["A相", "B相", "C相", "地线1", "地线2", "全部"][l]}`);
|
|
6208
|
+
this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = N.A相, this.originalWire1Color = null;
|
|
6209
|
+
else if (this.selectedWire1Entity = n, this.selectedWire1Data = i, this.selectedWire1Phase = l, n.polyline && n.polyline.material) {
|
|
6210
|
+
const T = n.polyline.material;
|
|
6211
|
+
T instanceof f.Color ? this.originalWire1Color = T.toCssColorString() : this.originalWire1Color = "#ffffff", n.polyline.material = f.Color.YELLOW;
|
|
6221
6212
|
}
|
|
6222
6213
|
}
|
|
6223
6214
|
}
|
|
@@ -6233,7 +6224,7 @@ class Qs {
|
|
|
6233
6224
|
} catch (s) {
|
|
6234
6225
|
console.warn("Error restoring wire color:", s);
|
|
6235
6226
|
}
|
|
6236
|
-
this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase =
|
|
6227
|
+
this.selectedWire1Entity = null, this.selectedWire1Data = [], this.selectedWire1Phase = N.A相, this.originalWire1Color = null;
|
|
6237
6228
|
const t = window.wireToWireHandler;
|
|
6238
6229
|
t && (t.destroy(), window.wireToWireHandler = null);
|
|
6239
6230
|
}
|
|
@@ -6288,7 +6279,7 @@ class js {
|
|
|
6288
6279
|
w(this, "RollZ", 0);
|
|
6289
6280
|
}
|
|
6290
6281
|
}
|
|
6291
|
-
function
|
|
6282
|
+
function Zs(h) {
|
|
6292
6283
|
debugger;
|
|
6293
6284
|
const t = h.split(`
|
|
6294
6285
|
`), s = [], r = [], e = /^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/, a = /^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;
|
|
@@ -6315,7 +6306,7 @@ function $s(h) {
|
|
|
6315
6306
|
}
|
|
6316
6307
|
return { TowerNodes: s, connections: r };
|
|
6317
6308
|
}
|
|
6318
|
-
function
|
|
6309
|
+
function Xs(h) {
|
|
6319
6310
|
const t = h.split(`
|
|
6320
6311
|
`), s = [];
|
|
6321
6312
|
for (const r of t) {
|
|
@@ -6348,7 +6339,7 @@ function fe(h) {
|
|
|
6348
6339
|
});
|
|
6349
6340
|
}), t;
|
|
6350
6341
|
}
|
|
6351
|
-
function
|
|
6342
|
+
function $s(h) {
|
|
6352
6343
|
const t = h.split(`
|
|
6353
6344
|
`), s = [];
|
|
6354
6345
|
for (const e of t) {
|
|
@@ -6384,7 +6375,7 @@ function Xs(h) {
|
|
|
6384
6375
|
}
|
|
6385
6376
|
return { byElement: s, byTime: r };
|
|
6386
6377
|
}
|
|
6387
|
-
class
|
|
6378
|
+
class Vs {
|
|
6388
6379
|
constructor(t) {
|
|
6389
6380
|
w(this, "viewer");
|
|
6390
6381
|
w(this, "lines", []);
|
|
@@ -6421,7 +6412,7 @@ var ye = { exports: {} };
|
|
|
6421
6412
|
(function(h, t) {
|
|
6422
6413
|
(function(s, r) {
|
|
6423
6414
|
r();
|
|
6424
|
-
})(
|
|
6415
|
+
})(It, function() {
|
|
6425
6416
|
function s(c, i) {
|
|
6426
6417
|
return typeof i > "u" ? i = { autoBom: !1 } : typeof i != "object" && (console.warn("Deprecated: Expected third argument to be a object"), i = { autoBom: !i }), i.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type) ? new Blob(["\uFEFF", c], { type: c.type }) : c;
|
|
6427
6418
|
}
|
|
@@ -6450,7 +6441,7 @@ var ye = { exports: {} };
|
|
|
6450
6441
|
i.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), c.dispatchEvent(i);
|
|
6451
6442
|
}
|
|
6452
6443
|
}
|
|
6453
|
-
var n = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof
|
|
6444
|
+
var n = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof It == "object" && It.global === It ? It : void 0, W = n.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = n.saveAs || (typeof window != "object" || window !== n ? function() {
|
|
6454
6445
|
} : "download" in HTMLAnchorElement.prototype && !W ? function(c, i, l) {
|
|
6455
6446
|
var T = n.URL || n.webkitURL, p = document.createElement("a");
|
|
6456
6447
|
i = i || c.name || "download", p.download = i, p.rel = "noopener", typeof c == "string" ? (p.href = c, p.origin === location.origin ? a(p) : e(p.href) ? r(c, i, l) : a(p, p.target = "_blank")) : (p.href = T.createObjectURL(c), setTimeout(function() {
|
|
@@ -6473,8 +6464,8 @@ var ye = { exports: {} };
|
|
|
6473
6464
|
if ((A || p && o || W) && typeof FileReader < "u") {
|
|
6474
6465
|
var g = new FileReader();
|
|
6475
6466
|
g.onloadend = function() {
|
|
6476
|
-
var
|
|
6477
|
-
|
|
6467
|
+
var m = g.result;
|
|
6468
|
+
m = A ? m : m.replace(/^data:[^;]*;/, "data:attachment/file;"), T ? T.location.href = m : location = m, T = null;
|
|
6478
6469
|
}, g.readAsDataURL(c);
|
|
6479
6470
|
} else {
|
|
6480
6471
|
var y = n.URL || n.webkitURL, L = y.createObjectURL(c);
|
|
@@ -6488,7 +6479,7 @@ var ye = { exports: {} };
|
|
|
6488
6479
|
})(ye);
|
|
6489
6480
|
var Jt = ye.exports;
|
|
6490
6481
|
const ae = require("shp-write");
|
|
6491
|
-
class
|
|
6482
|
+
class Ys {
|
|
6492
6483
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
6493
6484
|
constructor(t, s, r) {
|
|
6494
6485
|
// private viewer: Cesium.Viewer;
|
|
@@ -6557,7 +6548,7 @@ class Vs {
|
|
|
6557
6548
|
for (const e of this.connections) {
|
|
6558
6549
|
const a = this.towerNodes.find((B) => B.id === e.from), n = this.towerNodes.find((B) => B.id === e.to);
|
|
6559
6550
|
if (!a || !n) continue;
|
|
6560
|
-
const W = new f.Cartesian3(a.x, a.y, a.z), u = new f.Cartesian3(n.x, n.y, n.z), c = this.getPositionByHprAndOffset(r, W, s), i = this.getPositionByHprAndOffset(r, u, s), l = f.Ellipsoid.WGS84.cartesianToCartographic(c), T = f.Ellipsoid.WGS84.cartesianToCartographic(i), p = f.Math.toDegrees(l.longitude), o = f.Math.toDegrees(l.latitude), A = l.height, g = f.Math.toDegrees(T.longitude), y = f.Math.toDegrees(T.latitude), L = T.height,
|
|
6551
|
+
const W = new f.Cartesian3(a.x, a.y, a.z), u = new f.Cartesian3(n.x, n.y, n.z), c = this.getPositionByHprAndOffset(r, W, s), i = this.getPositionByHprAndOffset(r, u, s), l = f.Ellipsoid.WGS84.cartesianToCartographic(c), T = f.Ellipsoid.WGS84.cartesianToCartographic(i), p = f.Math.toDegrees(l.longitude), o = f.Math.toDegrees(l.latitude), A = l.height, g = f.Math.toDegrees(T.longitude), y = f.Math.toDegrees(T.latitude), L = T.height, m = {
|
|
6561
6552
|
type: "Feature",
|
|
6562
6553
|
geometry: {
|
|
6563
6554
|
type: "LineString",
|
|
@@ -6587,7 +6578,7 @@ class Vs {
|
|
|
6587
6578
|
to_latitude: y
|
|
6588
6579
|
}
|
|
6589
6580
|
};
|
|
6590
|
-
t.push(
|
|
6581
|
+
t.push(m);
|
|
6591
6582
|
}
|
|
6592
6583
|
return t;
|
|
6593
6584
|
}
|
|
@@ -6728,7 +6719,7 @@ class xs {
|
|
|
6728
6719
|
w(this, "byTimes", []);
|
|
6729
6720
|
// 或者如果是Node.js环境:
|
|
6730
6721
|
w(this, "_animationInterval", null);
|
|
6731
|
-
this.Keym = r, this.viewer = t, this.TowerFZS = s, this.dataSource2 = new f.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new
|
|
6722
|
+
this.Keym = r, this.viewer = t, this.TowerFZS = s, this.dataSource2 = new f.CustomDataSource(this.TowerFZS.id), this.entityCollection2 = this.dataSource2.entities, this.TowerLineManager = new Vs(this.viewer);
|
|
6732
6723
|
}
|
|
6733
6724
|
// 类的构造函数,用于初始化属性
|
|
6734
6725
|
// private shpExporter: TowerSHPExporter;
|
|
@@ -6738,9 +6729,9 @@ class xs {
|
|
|
6738
6729
|
loadfile() {
|
|
6739
6730
|
if (this.Keym != "OW_JPS_EEngin_001")
|
|
6740
6731
|
return;
|
|
6741
|
-
const { TowerNodes: t, connections: s } =
|
|
6742
|
-
this.TowerNodes = t, this.connections = s, this.displacementData =
|
|
6743
|
-
const { byTime: r } =
|
|
6732
|
+
const { TowerNodes: t, connections: s } = Zs(this.TowerFZS.towerFZinfo);
|
|
6733
|
+
this.TowerNodes = t, this.connections = s, this.displacementData = Xs(this.TowerFZS.towerDisFile);
|
|
6734
|
+
const { byTime: r } = $s(this.TowerFZS.stressFileContent);
|
|
6744
6735
|
this.byTimes = r;
|
|
6745
6736
|
debugger;
|
|
6746
6737
|
}
|
|
@@ -6783,7 +6774,7 @@ class xs {
|
|
|
6783
6774
|
}
|
|
6784
6775
|
// 使用修复后的SHP导出器
|
|
6785
6776
|
async exportToSHP() {
|
|
6786
|
-
await new
|
|
6777
|
+
await new Ys(
|
|
6787
6778
|
this.TowerNodes,
|
|
6788
6779
|
this.connections,
|
|
6789
6780
|
this.TowerFZS
|
|
@@ -6863,7 +6854,7 @@ class xs {
|
|
|
6863
6854
|
}
|
|
6864
6855
|
);
|
|
6865
6856
|
this.pointEntities.push(y);
|
|
6866
|
-
const L = [o, g],
|
|
6857
|
+
const L = [o, g], m = W.from + "-" + W.to, B = e == null ? void 0 : e.elements.find((v) => v.elementId === m);
|
|
6867
6858
|
debugger;
|
|
6868
6859
|
this.TowerLineManager.addLine(L, {
|
|
6869
6860
|
color: B == null ? void 0 : B.ylbColor,
|
|
@@ -6943,8 +6934,8 @@ export {
|
|
|
6943
6934
|
Ie as DistanceRuleConfig,
|
|
6944
6935
|
Js as GUAPoint,
|
|
6945
6936
|
Us as InsulatorInfo,
|
|
6946
|
-
|
|
6947
|
-
|
|
6937
|
+
z as InsulatorType,
|
|
6938
|
+
Vs as LineManager,
|
|
6948
6939
|
Dt as LineNum,
|
|
6949
6940
|
ss as LineType,
|
|
6950
6941
|
qs as MeasurementResult,
|
|
@@ -6954,10 +6945,10 @@ export {
|
|
|
6954
6945
|
js as TowerFZInfo,
|
|
6955
6946
|
Ks as TowerInfo,
|
|
6956
6947
|
Gs as TowerLineInfo,
|
|
6957
|
-
|
|
6958
|
-
|
|
6948
|
+
it as TowerType,
|
|
6949
|
+
I as WairnumType,
|
|
6959
6950
|
zs as corFeatureType,
|
|
6960
|
-
|
|
6951
|
+
U as corType,
|
|
6961
6952
|
le as drawModel,
|
|
6962
|
-
|
|
6953
|
+
q as primaryDistanceType
|
|
6963
6954
|
};
|