ow-eengine-power 2.3.9 → 2.4.0

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.
@@ -65,7 +65,14 @@ function U(a, o, e, h, s = new n.HeadingPitchRoll(0, 0, 0), I = 1, W) {
65
65
  show: !0,
66
66
  uri: h,
67
67
  scale: I,
68
- heightReference: n.HeightReference.NONE
68
+ // // 添加渐变过渡
69
+ // minimumPixelSize: 64, // 最小像素尺寸
70
+ // maximumScale: 20000, // 最大缩放比例
71
+ // 启用LOD过渡
72
+ transition: {
73
+ distanceDisplayCondition: !0,
74
+ scale: !0
75
+ }
69
76
  };
70
77
  return W && (Array.isArray(W) ? A.distanceDisplayCondition = new n.DistanceDisplayCondition(
71
78
  W[0],
@@ -113,22 +120,22 @@ function x(a, o, e, h = {}) {
113
120
  }
114
121
  });
115
122
  }
116
- var D = 63710088e-1, Cs = {
117
- centimeters: D * 100,
118
- centimetres: D * 100,
119
- degrees: D / 111325,
120
- feet: D * 3.28084,
121
- inches: D * 39.37,
122
- kilometers: D / 1e3,
123
- kilometres: D / 1e3,
124
- meters: D,
125
- metres: D,
126
- miles: D / 1609.344,
127
- millimeters: D * 1e3,
128
- millimetres: D * 1e3,
129
- nauticalmiles: D / 1852,
123
+ var R = 63710088e-1, Cs = {
124
+ centimeters: R * 100,
125
+ centimetres: R * 100,
126
+ degrees: R / 111325,
127
+ feet: R * 3.28084,
128
+ inches: R * 39.37,
129
+ kilometers: R / 1e3,
130
+ kilometres: R / 1e3,
131
+ meters: R,
132
+ metres: R,
133
+ miles: R / 1609.344,
134
+ millimeters: R * 1e3,
135
+ millimetres: R * 1e3,
136
+ nauticalmiles: R / 1852,
130
137
  radians: 1,
131
- yards: D * 1.0936
138
+ yards: R * 1.0936
132
139
  };
133
140
  function Q(a, o, e) {
134
141
  e === void 0 && (e = {});
@@ -524,11 +531,11 @@ function Fs(a, o) {
524
531
  var e = is(o, a);
525
532
  return e = (e + 180) % 360, e;
526
533
  }
527
- function Rs(a, o) {
534
+ function Ds(a, o) {
528
535
  var e = V(a, o), h = is(a, o), s = fs(a, e / 2, h);
529
536
  return s;
530
537
  }
531
- function Ds(a, o) {
538
+ function Rs(a, o) {
532
539
  if (!a)
533
540
  throw new Error("targetPoint is required");
534
541
  if (!o)
@@ -547,7 +554,7 @@ function Hs(a, o, e) {
547
554
  return W;
548
555
  }
549
556
  function Os(a, o, e) {
550
- e = e === void 0 ? D : Number(e);
557
+ e = e === void 0 ? R : Number(e);
551
558
  var h = e, s = a[1] * Math.PI / 180, I = o[1] * Math.PI / 180, W = I - s, A = Math.abs(o[0] - a[0]) * Math.PI / 180;
552
559
  A > Math.PI && (A -= 2 * Math.PI);
553
560
  var L = Math.log(Math.tan(I / 2 + Math.PI / 4) / Math.tan(s / 2 + Math.PI / 4)), i = Math.abs(L) > 1e-11 ? W / L : Math.cos(s), t = Math.sqrt(W * W + i * i * A * A), u = t * h;
@@ -639,7 +646,7 @@ const $s = (a, o, e) => {
639
646
  a[1],
640
647
  a[2]
641
648
  ), S = n.Cartesian3.fromDegrees(g[0], g[1], y);
642
- var M = Rs(
649
+ var M = Ds(
643
650
  $([a[0], a[1]]),
644
651
  $([g[0], g[1]])
645
652
  ).geometry.coordinates;
@@ -697,7 +704,7 @@ function ss(a, o) {
697
704
  });
698
705
  const s = vs(
699
706
  h
700
- ), I = Ds(e, s), W = V(e, I, q);
707
+ ), I = Rs(e, s), W = V(e, I, q);
701
708
  return {
702
709
  nearestCoord: I.geometry.coordinates,
703
710
  nearestDistance: W
@@ -876,7 +883,7 @@ class ft {
876
883
  p(this, "Z", 0);
877
884
  }
878
885
  }
879
- var H = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(H || {}), J = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(J || {}), Js = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(Js || {}), ts = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(ts || {}), R = /* @__PURE__ */ ((a) => (a[a.悬垂串 = 0] = "悬垂串", a[a.耐张串 = 1] = "耐张串", a[a.跳线串 = 2] = "跳线串", a[a.硬跳串 = 3] = "硬跳串", a[a.V串 = 4] = "V串", a[a.地线串 = 5] = "地线串", a[a.绕跳临时 = 6] = "绕跳临时", a))(R || {}), c = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(c || {});
886
+ var H = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(H || {}), J = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(J || {}), Js = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(Js || {}), ts = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(ts || {}), D = /* @__PURE__ */ ((a) => (a[a.悬垂串 = 0] = "悬垂串", a[a.耐张串 = 1] = "耐张串", a[a.跳线串 = 2] = "跳线串", a[a.硬跳串 = 3] = "硬跳串", a[a.V串 = 4] = "V串", a[a.地线串 = 5] = "地线串", a[a.绕跳临时 = 6] = "绕跳临时", a))(D || {}), c = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(c || {});
880
887
  class ht {
881
888
  // private arcLine1D2: Cesium.Cartesian3[]= [];
882
889
  // 类的构造函数,用于初始化属性
@@ -987,7 +994,7 @@ class ht {
987
994
  if (this.LineInfo.towers[s].Insulators.forEach((i) => {
988
995
  if (this.LineInfo.towers[s].type == J.耐张塔)
989
996
  switch (i.type) {
990
- case R.耐张串:
997
+ case D.耐张串:
991
998
  let u = new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX), 0, 0);
992
999
  if (i.WairFX == "进") {
993
1000
  const m = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(-180), n.Math.toRadians(180)), T = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), u);
@@ -1005,13 +1012,13 @@ class ht {
1005
1012
  ));
1006
1013
  }
1007
1014
  break;
1008
- case R.跳线串:
1015
+ case D.跳线串:
1009
1016
  const l = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), C = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), W);
1010
- this.entityCollection2.add(U(i.id, C, i.name, i.InsulatorModelUri, l, i.InsulatorScale));
1017
+ this.entityCollection2.add(U(i.id, C, i.name, i.InsulatorModelUri, l, i.InsulatorScale, [i.DistanceDisplaymin, i.DistanceDisplaymax]));
1011
1018
  break;
1012
- case R.地线串:
1019
+ case D.地线串:
1013
1020
  const d = new n.HeadingPitchRoll(n.Math.toRadians(i.RollX), n.Math.toRadians(i.RollY), n.Math.toRadians(i.RollZ)), g = w(h, new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X, this.LineInfo.towers[s].towerPoint[A].Y, this.LineInfo.towers[s].towerPoint[A].Z), W);
1014
- this.entityCollection2.add(U(i.id, g, i.name, i.InsulatorModelUri, d, i.InsulatorScale));
1021
+ this.entityCollection2.add(U(i.id, g, i.name, i.InsulatorModelUri, d, i.InsulatorScale, [i.DistanceDisplaymin, i.DistanceDisplaymax]));
1015
1022
  break;
1016
1023
  }
1017
1024
  else {
@@ -1027,7 +1034,7 @@ class ht {
1027
1034
  if (this.LineInfo.towers[s].type == J.耐张塔)
1028
1035
  switch (i.PhaseSequence) {
1029
1036
  case H.A相:
1030
- if (i.type == R.耐张串)
1037
+ if (i.type == D.耐张串)
1031
1038
  if (i.WairFX == "进")
1032
1039
  switch (this.LineInfo.Wairnum) {
1033
1040
  case c.单分裂:
@@ -1069,7 +1076,7 @@ class ht {
1069
1076
  this.offsetWires11.push(k), this.offsetWires11.push(S), this.offsetWires11.push(M), this.offsetWires11.push(X), this.offsetWires11.push(Y), this.offsetWires11.push(E), this.offsetWires11.push(F), this.offsetWires11.push(Z), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(E), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(Z);
1070
1077
  break;
1071
1078
  }
1072
- else if (i.type == R.跳线串)
1079
+ else if (i.type == D.跳线串)
1073
1080
  switch (this.LineInfo.Wairnum) {
1074
1081
  case c.单分裂:
1075
1082
  this.ToffsetWires1A1.push(t[0]), this.ToffsetWires1A2.push(t[1]);
@@ -1089,7 +1096,7 @@ class ht {
1089
1096
  }
1090
1097
  break;
1091
1098
  case H.B相:
1092
- if (i.type == R.耐张串)
1099
+ if (i.type == D.耐张串)
1093
1100
  if (i.WairFX == "进")
1094
1101
  switch (this.LineInfo.Wairnum) {
1095
1102
  case c.单分裂:
@@ -1131,7 +1138,7 @@ class ht {
1131
1138
  this.offsetWires12.push(k), this.offsetWires12.push(S), this.offsetWires12.push(M), this.offsetWires12.push(X), this.offsetWires12.push(Y), this.offsetWires12.push(E), this.offsetWires12.push(F), this.offsetWires12.push(Z), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(E), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(Z);
1132
1139
  break;
1133
1140
  }
1134
- else if (i.type == R.跳线串)
1141
+ else if (i.type == D.跳线串)
1135
1142
  switch (this.LineInfo.Wairnum) {
1136
1143
  case c.单分裂:
1137
1144
  this.ToffsetWires1B1.push(t[0]), this.ToffsetWires1B2.push(t[0]);
@@ -1151,7 +1158,7 @@ class ht {
1151
1158
  }
1152
1159
  break;
1153
1160
  case H.C相:
1154
- if (i.type == R.耐张串)
1161
+ if (i.type == D.耐张串)
1155
1162
  if (i.WairFX == "进")
1156
1163
  switch (this.LineInfo.Wairnum) {
1157
1164
  case c.单分裂:
@@ -1193,7 +1200,7 @@ class ht {
1193
1200
  this.offsetWires13.push(k), this.offsetWires13.push(S), this.offsetWires13.push(M), this.offsetWires13.push(X), this.offsetWires13.push(Y), this.offsetWires13.push(E), this.offsetWires13.push(F), this.offsetWires13.push(Z), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(E), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(Z);
1194
1201
  break;
1195
1202
  }
1196
- else if (i.type == R.跳线串)
1203
+ else if (i.type == D.跳线串)
1197
1204
  switch (this.LineInfo.Wairnum) {
1198
1205
  case c.单分裂:
1199
1206
  this.ToffsetWires1C1.push(t[0]), this.ToffsetWires1C2.push(t[0]);
@@ -1322,7 +1329,7 @@ class ht {
1322
1329
  if (this.LineInfo.towers[s].type == J.耐张塔)
1323
1330
  switch (i.PhaseSequence) {
1324
1331
  case H.A相:
1325
- if (i.type == R.耐张串)
1332
+ if (i.type == D.耐张串)
1326
1333
  if (i.WairFX == "进")
1327
1334
  switch (this.LineInfo.Wairnum) {
1328
1335
  case c.单分裂:
@@ -1364,7 +1371,7 @@ class ht {
1364
1371
  this.offsetWires21.push(k), this.offsetWires21.push(S), this.offsetWires21.push(M), this.offsetWires21.push(X), this.offsetWires21.push(Y), this.offsetWires21.push(E), this.offsetWires21.push(F), this.offsetWires21.push(Z), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(E), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(Z);
1365
1372
  break;
1366
1373
  }
1367
- else if (i.type == R.跳线串)
1374
+ else if (i.type == D.跳线串)
1368
1375
  switch (this.LineInfo.Wairnum) {
1369
1376
  case c.单分裂:
1370
1377
  this.ToffsetWires2A1.push(t[0]), this.ToffsetWires2A2.push(t[0]);
@@ -1384,7 +1391,7 @@ class ht {
1384
1391
  }
1385
1392
  break;
1386
1393
  case H.B相:
1387
- if (i.type == R.耐张串)
1394
+ if (i.type == D.耐张串)
1388
1395
  if (i.WairFX == "进")
1389
1396
  switch (this.LineInfo.Wairnum) {
1390
1397
  case c.单分裂:
@@ -1426,7 +1433,7 @@ class ht {
1426
1433
  this.offsetWires22.push(k), this.offsetWires22.push(S), this.offsetWires22.push(M), this.offsetWires22.push(X), this.offsetWires22.push(Y), this.offsetWires22.push(E), this.offsetWires22.push(F), this.offsetWires22.push(Z), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(E), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(Z);
1427
1434
  break;
1428
1435
  }
1429
- else if (i.type == R.跳线串)
1436
+ else if (i.type == D.跳线串)
1430
1437
  switch (this.LineInfo.Wairnum) {
1431
1438
  case c.单分裂:
1432
1439
  this.ToffsetWires2B1.push(t[0]), this.ToffsetWires2B2.push(t[0]);
@@ -1446,7 +1453,7 @@ class ht {
1446
1453
  }
1447
1454
  break;
1448
1455
  case H.C相:
1449
- if (i.type == R.耐张串)
1456
+ if (i.type == D.耐张串)
1450
1457
  if (i.WairFX == "进")
1451
1458
  switch (this.LineInfo.Wairnum) {
1452
1459
  case c.单分裂:
@@ -1488,7 +1495,7 @@ class ht {
1488
1495
  this.offsetWires23.push(k), this.offsetWires23.push(S), this.offsetWires23.push(M), this.offsetWires23.push(X), this.offsetWires23.push(Y), this.offsetWires23.push(E), this.offsetWires23.push(F), this.offsetWires23.push(Z), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(E), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(Z);
1489
1496
  break;
1490
1497
  }
1491
- else if (i.type == R.跳线串)
1498
+ else if (i.type == D.跳线串)
1492
1499
  switch (this.LineInfo.Wairnum) {
1493
1500
  case c.单分裂:
1494
1501
  this.ToffsetWires2C1.push(t[0]), this.ToffsetWires2C2.push(t[0]);
@@ -2030,7 +2037,7 @@ class ht {
2030
2037
  }
2031
2038
  //加载渲染电力线路
2032
2039
  loadLineModel() {
2033
- this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSource2), this.viewer.entities.show);
2040
+ this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.add(this.dataSource2), this.entityCollection2.show = !0);
2034
2041
  }
2035
2042
  //加载渲染树木
2036
2043
  loadtreeModel() {
@@ -2764,7 +2771,7 @@ class at {
2764
2771
  export {
2765
2772
  ft as GUAPoint,
2766
2773
  rt as InsulatorInfo,
2767
- R as InsulatorType,
2774
+ D as InsulatorType,
2768
2775
  Qs as LineManager,
2769
2776
  ts as LineNum,
2770
2777
  Js as LineType,
@@ -1,4 +1,4 @@
1
- (function(S,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("cesium")):typeof define=="function"&&define.amd?define(["exports","cesium"],Z):(S=typeof globalThis<"u"?globalThis:S||self,Z(S.OW_EEngine_Power={},S.Cesium))})(this,function(S,Z){"use strict";var ft=Object.defineProperty;var ht=(S,Z,Q)=>Z in S?ft(S,Z,{enumerable:!0,configurable:!0,writable:!0,value:Q}):S[Z]=Q;var w=(S,Z,Q)=>ht(S,typeof Z!="symbol"?Z+"":Z,Q);function Q(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const h=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(o,e,h.get?h:{enumerable:!0,get:()=>a[e]})}}return o.default=a,Object.freeze(o)}const n=Q(Z);function _s(a,o,e={}){const{color:h=Z.Color.WHITE,width:s=3,clampToGround:I=!1,zIndex:W=0,dashed:A=!1,dashLength:L=10}=e,i=A?new n.PolylineDashMaterialProperty({color:h,dashLength:L}):new n.ColorMaterialProperty(h);return a.entities.add({polyline:{positions:o,width:s,material:i,clampToGround:I,zIndex:W}})}function r(a,o,e=10,h="#ba1919",s,I=!1){const W={show:!0,positions:a,clampToGround:I,width:e,material:n.Color.fromCssColorString(h),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED,granularity:I?void 0:0};return s&&(W.distanceDisplayCondition=new n.DistanceDisplayCondition(0,2e3)),{name:o,label:s?{text:o,font:"18px sans-serif",distanceDisplayCondition:new n.DistanceDisplayCondition(s[0],Math.min(s[1],5e3))}:{text:o,font:"18px sans-serif"},polyline:W}}function K(a,o,e,h,s=new n.HeadingPitchRoll(0,0,0),I=1,W){const A={show:!0,uri:h,scale:I,heightReference:n.HeightReference.NONE};return W&&(Array.isArray(W)?A.distanceDisplayCondition=new n.DistanceDisplayCondition(W[0],W[1]):A.distanceDisplayCondition=W),{id:a,name:e,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:A}}function is(a,o,e,h={}){const{pointColor:s=Z.Color.YELLOW,pointSize:I=12,labelColor:W=Z.Color.WHITE,fontSize:A=16,pixelOffset:L=[0,-20],heightReference:i=Z.HeightReference.NONE}=h;return a.entities.add({position:o,point:{color:s,pixelSize:I,heightReference:i,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)},label:{text:e,font:`${A}px sans-serif`,fillColor:W,pixelOffset:new n.Cartesian2(...L),style:Z.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:Z.Color.BLACK,heightReference:i,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)}})}var N=63710088e-1,us={centimeters:N*100,centimetres:N*100,degrees:N/111325,feet:N*3.28084,inches:N*39.37,kilometers:N/1e3,kilometres:N/1e3,meters:N,metres:N,miles:N/1609.344,millimeters:N*1e3,millimetres:N*1e3,nauticalmiles:N/1852,radians:1,yards:N*1.0936};function x(a,o,e){e===void 0&&(e={});var h={type:"Feature"};return(e.id===0||e.id)&&(h.id=e.id),e.bbox&&(h.bbox=e.bbox),h.properties=o||{},h.geometry=a,h}function q(a,o,e){if(e===void 0&&(e={}),!a)throw new Error("coordinates is required");if(!Array.isArray(a))throw new Error("coordinates must be an Array");if(a.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Cs(a[0])||!Cs(a[1]))throw new Error("coordinates must contain numbers");var h={type:"Point",coordinates:a};return x(h,o,e)}function $(a,o,e){if(e===void 0&&(e={}),a.length<2)throw new Error("coordinates must be an array of two or more positions");var h={type:"LineString",coordinates:a};return x(h,o,e)}function vs(a,o){o===void 0&&(o={});var e={type:"FeatureCollection"};return o.id&&(e.id=o.id),o.bbox&&(e.bbox=o.bbox),e.features=a,e}function ls(a,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return a*e}function cs(a,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return a/e}function rs(a){var o=a%(2*Math.PI);return o*180/Math.PI}function G(a){var o=a%360;return o*Math.PI/180}function Ts(a,o,e){if(o===void 0&&(o="kilometers"),e===void 0&&(e="kilometers"),!(a>=0))throw new Error("length must be a positive number");return ls(cs(a,o),e)}function Cs(a){return!isNaN(a)&&a!==null&&!Array.isArray(a)}function ks(a){return!!a&&a.constructor===Object}function As(a,o,e){if(a!==null)for(var h,s,I,W,A,L,i,t=0,u=0,l,C=a.type,d=C==="FeatureCollection",g=C==="Feature",b=d?a.features.length:1,T=0;T<b;T++){i=d?a.features[T].geometry:g?a.geometry:a,l=i?i.type==="GeometryCollection":!1,A=l?i.geometries.length:1;for(var B=0;B<A;B++){var P=0,y=0;if(W=l?i.geometries[B]:i,W!==null){L=W.coordinates;var m=W.type;switch(t=0,m){case null:break;case"Point":if(o(L,u,T,P,y)===!1)return!1;u++,P++;break;case"LineString":case"MultiPoint":for(h=0;h<L.length;h++){if(o(L[h],u,T,P,y)===!1)return!1;u++,m==="MultiPoint"&&P++}m==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(h=0;h<L.length;h++){for(s=0;s<L[h].length-t;s++){if(o(L[h][s],u,T,P,y)===!1)return!1;u++}m==="MultiLineString"&&P++,m==="Polygon"&&y++}m==="Polygon"&&P++;break;case"MultiPolygon":for(h=0;h<L.length;h++){for(y=0,s=0;s<L[h].length;s++){for(I=0;I<L[h][s].length-t;I++){if(o(L[h][s][I],u,T,P,y)===!1)return!1;u++}y++}P++}break;case"GeometryCollection":for(h=0;h<W.geometries.length;h++)if(As(W.geometries[h],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ss(a,o){if(a.type==="Feature")o(a,0);else if(a.type==="FeatureCollection")for(var e=0;e<a.features.length&&o(a.features[e],e)!==!1;e++);}function Zs(a,o){var e,h,s,I,W,A,L,i,t,u,l=0,C=a.type==="FeatureCollection",d=a.type==="Feature",g=C?a.features.length:1;for(e=0;e<g;e++){for(A=C?a.features[e].geometry:d?a.geometry:a,i=C?a.features[e].properties:d?a.properties:{},t=C?a.features[e].bbox:d?a.bbox:void 0,u=C?a.features[e].id:d?a.id:void 0,L=A?A.type==="GeometryCollection":!1,W=L?A.geometries.length:1,s=0;s<W;s++){if(I=L?A.geometries[s]:A,I===null){if(o(null,l,i,t,u)===!1)return!1;continue}switch(I.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(I,l,i,t,u)===!1)return!1;break}case"GeometryCollection":{for(h=0;h<I.geometries.length;h++)if(o(I.geometries[h],l,i,t,u)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}l++}}function Ms(a,o){Zs(a,function(e,h,s,I,W){var A=e===null?null:e.type;switch(A){case null:case"Point":case"LineString":case"Polygon":return o(x(e,s,{bbox:I,id:W}),h,0)===!1?!1:void 0}var L;switch(A){case"MultiPoint":L="Point";break;case"MultiLineString":L="LineString";break;case"MultiPolygon":L="Polygon";break}for(var i=0;i<e.coordinates.length;i++){var t=e.coordinates[i],u={type:L,coordinates:t};if(o(x(u,s),h,i)===!1)return!1}})}function Es(a,o){Ms(a,function(e,h,s){var I=0;if(e.geometry){var W=e.geometry.type;if(!(W==="Point"||W==="MultiPoint")){var A,L=0,i=0,t=0;if(As(e,function(u,l,C,d,g){if(A===void 0||h>L||d>i||g>t){A=u,L=h,i=d,t=g,I=0;return}var b=$([A,u],e.properties);if(o(b,h,s,g,I)===!1)return!1;I++,A=u})===!1)return!1}}})}function U(a){if(!a)throw new Error("coord is required");if(!Array.isArray(a)){if(a.type==="Feature"&&a.geometry!==null&&a.geometry.type==="Point")return a.geometry.coordinates;if(a.type==="Point")return a.coordinates}if(Array.isArray(a)&&a.length>=2&&!Array.isArray(a[0])&&!Array.isArray(a[1]))return a;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ps(a,o,e){if(!a)throw new Error("No feature passed");if(!e)throw new Error(".featureOf() requires a name");if(!a||a.type!=="Feature"||!a.geometry)throw new Error("Invalid input to "+e+", Feature with geometry required");if(!a.geometry||a.geometry.type!==o)throw new Error("Invalid input to "+e+": must be a "+o+", given "+a.geometry.type)}var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V(a,o,e){e===void 0&&(e={});var h=U(a),s=U(o),I=G(s[1]-h[1]),W=G(s[0]-h[0]),A=G(h[1]),L=G(s[1]),i=Math.pow(Math.sin(I/2),2)+Math.pow(Math.sin(W/2),2)*Math.cos(A)*Math.cos(L);return ls(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)),e.units)}function Xs(a){if(!a)throw new Error("geojson is required");switch(a.type){case"Feature":return ws(a);case"FeatureCollection":return Fs(a);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return fs(a);default:throw new Error("unknown GeoJSON type")}}function ws(a){var o={type:"Feature"};return Object.keys(a).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:o[e]=a[e]}}),o.properties=Is(a.properties),o.geometry=fs(a.geometry),o}function Is(a){var o={};return a&&Object.keys(a).forEach(function(e){var h=a[e];typeof h=="object"?h===null?o[e]=null:Array.isArray(h)?o[e]=h.map(function(s){return s}):o[e]=Is(h):o[e]=h}),o}function Fs(a){var o={type:"FeatureCollection"};return Object.keys(a).forEach(function(e){switch(e){case"type":case"features":return;default:o[e]=a[e]}}),o.features=a.features.map(function(e){return ws(e)}),o}function fs(a){var o={type:a.type};return a.bbox&&(o.bbox=a.bbox),a.type==="GeometryCollection"?(o.geometries=a.geometries.map(function(e){return fs(e)}),o):(o.coordinates=ds(a.coordinates),o)}function ds(a){var o=a;return typeof o[0]!="object"?o.slice():o.map(function(e){return ds(e)})}function hs(a,o,e,h){h===void 0&&(h={});var s=U(a),I=G(s[0]),W=G(s[1]),A=G(e),L=cs(o,h.units),i=Math.asin(Math.sin(W)*Math.cos(L)+Math.cos(W)*Math.sin(L)*Math.cos(A)),t=I+Math.atan2(Math.sin(A)*Math.sin(L)*Math.cos(W),Math.cos(L)-Math.sin(W)*Math.sin(i)),u=rs(t),l=rs(i);return q([u,l],h.properties)}function es(a,o,e){if(e===void 0&&(e={}),e.final===!0)return Ys(a,o);var h=U(a),s=U(o),I=G(h[0]),W=G(s[0]),A=G(h[1]),L=G(s[1]),i=Math.sin(W-I)*Math.cos(L),t=Math.cos(A)*Math.sin(L)-Math.sin(A)*Math.cos(L)*Math.cos(W-I);return rs(Math.atan2(i,t))}function Ys(a,o){var e=es(o,a);return e=(e+180)%360,e}function Rs(a,o){var e=V(a,o),h=es(a,o),s=hs(a,e/2,h);return s}function Ds(a,o){if(!a)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var e,h=1/0,s=0;return Ss(o,function(I,W){var A=V(a,I);A<h&&(s=W,h=A)}),e=Xs(o.features[s]),e.properties.featureIndex=s,e.properties.distanceToPoint=h,e}function Os(a,o,e){e===void 0&&(e={});var h=U(a),s=U(o);s[0]+=s[0]-h[0]>180?-360:h[0]-s[0]>180?360:0;var I=Hs(h,s),W=Ts(I,"meters",e.units);return W}function Hs(a,o,e){e=e===void 0?N:Number(e);var h=e,s=a[1]*Math.PI/180,I=o[1]*Math.PI/180,W=I-s,A=Math.abs(o[0]-a[0])*Math.PI/180;A>Math.PI&&(A-=2*Math.PI);var L=Math.log(Math.tan(I/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),i=Math.abs(L)>1e-11?W/L:Math.cos(s),t=Math.sqrt(W*W+i*i*A*A),u=t*h;return u}function ns(a,o,e){if(e===void 0&&(e={}),e.method||(e.method="geodesic"),e.units||(e.units="kilometers"),!a)throw new Error("pt is required");if(Array.isArray(a)?a=q(a):a.type==="Point"?a=x(a):ps(a,"Point","point"),!o)throw new Error("line is required");Array.isArray(o)?o=$(o):o.type==="LineString"?o=x(o):ps(o,"LineString","line");var h=1/0,s=a.geometry.coordinates;return Es(o,function(I){var W=I.geometry.coordinates[0],A=I.geometry.coordinates[1],L=Ns(s,W,A,e);L<h&&(h=L)}),Ts(h,"degrees",e.units)}function Ns(a,o,e,h){var s=[e[0]-o[0],e[1]-o[1]],I=[a[0]-o[0],a[1]-o[1]],W=Ls(I,s);if(W<=0)return as(a,o,{method:h.method,units:"degrees"});var A=Ls(s,s);if(A<=W)return as(a,e,{method:h.method,units:"degrees"});var L=W/A,i=[o[0]+L*s[0],o[1]+L*s[1]];return as(a,i,{method:h.method,units:"degrees"})}function Ls(a,o){return a[0]*o[0]+a[1]*o[1]}function as(a,o,e){return e.method==="planar"?Os(a,o,e):V(a,o,e)}function Gs(a,o,e,h){if(h=h||{},!ks(h))throw new Error("options is invalid");var s,I=[];if(a.type==="Feature")s=a.geometry.coordinates;else if(a.type==="LineString")s=a.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var W=s.length,A=0,L,i,t,u=0;u<s.length&&!(o>=A&&u===s.length-1);u++){if(A>o&&I.length===0){if(L=o-A,!L)return I.push(s[u]),$(I);i=es(s[u],s[u-1])-180,t=hs(s[u],L,i,h),I.push(t.geometry.coordinates)}if(A>=e)return L=e-A,L?(i=es(s[u],s[u-1])-180,t=hs(s[u],L,i,h),I.push(t.geometry.coordinates),$(I)):(I.push(s[u]),$(I));if(A>=o&&I.push(s[u]),u===s.length-1)return $(I);A+=V(s[u],s[u+1],h)}if(A<o&&s.length===W)throw new Error("Start position is beyond line");var l=s[s.length-1];return $([l,l])}const j={units:"kilometers"};function zs(a,o,e,h){var{nearestDistance:s}=os(a,o),{nearestDistance:I}=os(a,h),{nearestDistance:W}=os(a,e);const A=Math.min(s,W,I);return A===s?o:A===W?e:h}const $s=(a,o,e)=>{debugger;const h=q(a.slice(0,2)),{nearestCoord:s}=os(a,o),I=o.findIndex(E=>E[0]==s[0]&&E[1]==s[1]);let W=[];if(I==0)W.push(o[0],o[1]);else if(I==o.length-1)W.push(o[o.length-2],o[o.length-1]);else{const E=[o[I],o[I+1]],ms=[o[I-1],o[I]];var A=ns(h,$(E),j),L=ns(h,$(ms),j);W=A>L?ms:E}console.log("附近的点",I,W);const i=$([W[0].slice(0,2),W[1].slice(0,2)]),t=q(W[0].slice(0,2)),u=q(W[1].slice(0,2));var l=ns(h,i,j),C=V(h,t,j)||0,d=Math.sqrt(C*C-l*l)||0;let g=W[0].slice(0,2);d>0&&(g=Gs(i,0,d,j).geometry.coordinates[1]);const b=V(t,u,j),T=Math.abs(W[0][2]-W[1][2]),B=Math.min(W[0][2],W[1][2]),P=Math.max(W[0][2],W[1][2]),y=W[0][2]>W[1][2]?P-d/b*T:d/b*T+B;console.log("高度差>>>>",T),console.log("最小高度>>>>",B);const m=y-a[2],_=l*1e3,v=Math.sqrt(_*_+m*m);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",m),console.log("直线距离>>>>",v);const k=n.Cartesian3.fromDegrees(a[0],a[1],a[2]),M=n.Cartesian3.fromDegrees(g[0],g[1],y);var X=Rs(q([a[0],a[1]]),q([g[0],g[1]])).geometry.coordinates;const R={position:n.Cartesian3.fromDegrees(X[0],X[1],y-m/2),name:"直线距离",label:{text:`直线距离${v.toFixed(1)}米`,fillColor:n.Color.fromCssColorString("#eff819"),font:"12px sans-serif",pixelOffset:new n.Cartesian2(0,0),scaleByDistance:new n.NearFarScalar(1e3,1.5,2e3,1),disableDepthTestDistance:Number.POSITIVE_INFINITY}},F=[];F.push(k),F.push(M);var D={polyline:{show:!0,positions:F,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};e.add(R),e.add(D)};function os(a,o){const e=q(a.slice(0,2)),h=[];o.forEach(A=>{h.push(q([A[0],A[1]]))});const s=vs(h),I=Ds(e,s),W=V(e,I,j);return{nearestCoord:I.geometry.coordinates,nearestDistance:W}}function p(a,o,e,h,s){e||(e=new n.HeadingPitchRoll);const I=n.Transforms.headingPitchRollQuaternion(a,e,h,s),W=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(I,new n.Matrix3),a,new n.Matrix4);return n.Matrix4.multiplyByPoint(W,o,new n.Cartesian3)}function z(a,o){var e=a.cartesianToCartographic(o),h=n.Math.toDegrees(e.latitude),s=n.Math.toDegrees(e.longitude),I=e.height;return[s,h,I]}function f(a,o=6){const e=[];for(var h=0;h<a.length-1;h++)e.push(...qs(a[h],a[h+1],o*-1e3,100));return e}function qs(a,o,e,h){var s=[],I=n.Cartographic.fromCartesian(a),W=n.Cartographic.fromCartesian(o),A=I.longitude*180/Math.PI,L=I.latitude*180/Math.PI,i=W.longitude*180/Math.PI,t=W.latitude*180/Math.PI,u=Math.sqrt((A-i)*(A-i)+(L-t)*(L-t)),l=u*e,C=n.Cartesian3.clone(a),d=n.Cartesian3.clone(o),g=n.Cartesian3.distance(C,n.Cartesian3.ZERO),b=n.Cartesian3.distance(d,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(d,d),n.Cartesian3.distance(C,d)==0)return s;var T=n.Cartesian3.angleBetween(C,d);s.push(a);for(var B=1;B<h-1;B++){var P=B*1/(h-1),y=1-P,m=Math.sin(y*T)/Math.sin(T),_=Math.sin(P*T)/Math.sin(T),v=n.Cartesian3.multiplyByScalar(C,m,new n.Cartesian3),k=n.Cartesian3.multiplyByScalar(d,_,new n.Cartesian3),M=n.Cartesian3.add(v,k,new n.Cartesian3),X=P*Math.PI,Y=g*y+b*P+Math.sin(X)*l;M=n.Cartesian3.multiplyByScalar(M,Y,M),s.push(M)}return s.push(o),s}class Js{constructor(){w(this,"LineID","myEntity1");w(this,"Tag","");w(this,"towers",[]);w(this,"ISPhaseSequence",!1);w(this,"Wairnum",0);w(this,"Type",0);w(this,"Trees",[]);w(this,"wireAColor","#FFFFFF");w(this,"wireBColor","#FFFFFF");w(this,"wireCColor","#FFFFFF");w(this,"wireTColor","#FFFFFF");w(this,"wireD1Color","#FFFFFF");w(this,"wireD2Color","#FFFFFF");w(this,"wireWidth",1);w(this,"LineDistanceDisplaymin",0);w(this,"LineDistanceDisplaymax",5e3)}}class Ks{constructor(){w(this,"id","");w(this,"modelid","");w(this,"lon",0);w(this,"lat",0);w(this,"alt",0);w(this,"treeH",0);w(this,"modelurl","");w(this,"treeScale",1)}}class Us{constructor(){w(this,"id","");w(this,"name","");w(this,"type",0);w(this,"Longitude",0);w(this,"Latitude",0);w(this,"Altitude",0);w(this,"RollX",0);w(this,"RollY",90);w(this,"RollZ",0);w(this,"towerScale",1);w(this,"towerHeight",0);w(this,"towerModelUri","");w(this,"towerPoint",[]);w(this,"Insulators",[]);w(this,"DistanceDisplaymin",0);w(this,"DistanceDisplaymax",1e3)}}class Vs{constructor(){w(this,"id","");w(this,"name","");w(this,"type",0);w(this,"WairFX","进");w(this,"linenum",1);w(this,"Wairnum",0);w(this,"PhaseSequence",0);w(this,"RollX",0);w(this,"RollY",0);w(this,"RollZ",0);w(this,"InsulatorScale",1);w(this,"InsulatorLength",0);w(this,"InsulatorModelUri","");w(this,"InsulatorPoint",[]);w(this,"DistanceDisplaymin",0);w(this,"DistanceDisplaymax",500)}}class js{constructor(){w(this,"name","");w(this,"X",-45);w(this,"Y",90);w(this,"Z",0)}}var H=(a=>(a[a.A相=0]="A相",a[a.B相=1]="B相",a[a.C相=2]="C相",a[a.地线1=3]="地线1",a[a.地线2=4]="地线2",a))(H||{}),J=(a=>(a[a.直线塔=0]="直线塔",a[a.耐张塔=1]="耐张塔",a[a.门架塔=2]="门架塔",a[a.换位塔=3]="换位塔",a))(J||{}),Bs=(a=>(a[a.交流单回路=0]="交流单回路",a[a.交流双回路=1]="交流双回路",a[a.直流单回路=2]="直流单回路",a[a.直流双回路=3]="直流双回路",a[a.交流四回路=4]="交流四回路",a))(Bs||{}),ts=(a=>(a[a.地线=0]="地线",a[a.回路一=1]="回路一",a[a.回路二=2]="回路二",a[a.回路三=3]="回路三",a[a.回路四=4]="回路四",a))(ts||{}),O=(a=>(a[a.悬垂串=0]="悬垂串",a[a.耐张串=1]="耐张串",a[a.跳线串=2]="跳线串",a[a.硬跳串=3]="硬跳串",a[a.V串=4]="V串",a[a.地线串=5]="地线串",a[a.绕跳临时=6]="绕跳临时",a))(O||{}),c=(a=>(a[a.单分裂=0]="单分裂",a[a.双分裂=1]="双分裂",a[a.四分裂=2]="四分裂",a[a.六分裂=3]="六分裂",a[a.八分裂=4]="八分裂",a))(c||{});class Qs{constructor(o,e,h){w(this,"viewer");w(this,"LineInfo");w(this,"Keym","");w(this,"dataSource2");w(this,"entityCollection2");w(this,"dataSourcetree");w(this,"entityCollectiontree");w(this,"dataSourceplotting");w(this,"entityCollectionplotting");w(this,"offsetTowers",[]);w(this,"offsetWires11",[]);w(this,"offsetWires12",[]);w(this,"offsetWires13",[]);w(this,"offsetWires21",[]);w(this,"offsetWires22",[]);w(this,"offsetWires23",[]);w(this,"ToffsetArcWires1A",[]);w(this,"ToffsetArcWires2A",[]);w(this,"ToffsetWires1A1",[]);w(this,"ToffsetWires1A2",[]);w(this,"ToffsetArcWires1B",[]);w(this,"ToffsetArcWires2B",[]);w(this,"ToffsetWires1B1",[]);w(this,"ToffsetWires1B2",[]);w(this,"ToffsetArcWires1C",[]);w(this,"ToffsetArcWires2C",[]);w(this,"ToffsetWires1C1",[]);w(this,"ToffsetWires1C2",[]);w(this,"ToffsetArcWires1A2",[]);w(this,"ToffsetArcWires2A2",[]);w(this,"ToffsetWires2A1",[]);w(this,"ToffsetWires2A2",[]);w(this,"ToffsetArcWires1B2",[]);w(this,"ToffsetArcWires2B2",[]);w(this,"ToffsetWires2B1",[]);w(this,"ToffsetWires2B2",[]);w(this,"ToffsetArcWires1C2",[]);w(this,"ToffsetArcWires2C2",[]);w(this,"ToffsetWires2C1",[]);w(this,"ToffsetWires2C2",[]);w(this,"offsetArcWires1A",[]);w(this,"offsetArcWires1B",[]);w(this,"offsetArcWires1C",[]);w(this,"offsetArcWires2A",[]);w(this,"offsetArcWires2B",[]);w(this,"offsetArcWires2C",[]);w(this,"offsetGrouundWires1",[]);w(this,"offsetGrouundWires2",[]);w(this,"offsetGrouundWires11",[]);w(this,"offsetGrouundWires12",[]);w(this,"arcLine1A1",[]);w(this,"arcLine1B1",[]);w(this,"arcLine1D1",[]);w(this,"treeHandler",null);this.Keym=h,this.viewer=o,this.LineInfo=e,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities,this.dataSourcetree=new n.CustomDataSource("tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.dataSourceplotting=new n.CustomDataSource("plotting"),this.entityCollectionplotting=this.dataSourceplotting.entities,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID+"daoxian"),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;this.LineInfo.towers.forEach(h=>{this.offsetTowers.push(n.Cartesian3.fromDegrees(h.Longitude,h.Latitude,h.Altitude))});let o=0,e=0;this.offsetTowers.forEach((h,s)=>{const I=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),n.Math.toRadians(this.LineInfo.towers[s].RollY),n.Math.toRadians(this.LineInfo.towers[s].RollZ));this.entityCollection2.add(K(this.LineInfo.towers[s].id,h,this.LineInfo.towers[s].name,this.LineInfo.towers[s].towerModelUri,I,this.LineInfo.towers[s].towerScale,[this.LineInfo.towers[s].DistanceDisplaymin,this.LineInfo.towers[s].DistanceDisplaymax]));let W=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0),A=0;if(this.LineInfo.towers[s].Insulators.forEach(i=>{if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.type){case O.耐张串:let u=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0);if(i.WairFX=="进"){const b=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(-180),n.Math.toRadians(180)),T=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),u);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}else{const b=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(0),n.Math.toRadians(0)),T=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),u);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}break;case O.跳线串:const l=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),C=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,C,i.name,i.InsulatorModelUri,l,i.InsulatorScale));break;case O.地线串:const d=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),g=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,g,i.name,i.InsulatorModelUri,d,i.InsulatorScale));break}else{const u=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),l=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,l,i.name,i.InsulatorModelUri,u,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}const t=[];switch(i.InsulatorPoint.forEach(u=>{u.Y=u.Y+this.LineInfo.towers[s].towerPoint[A].Y,u.Z=u.Z+this.LineInfo.towers[s].towerPoint[A].Z,t.push(p(h,new n.Cartesian3(u.X,u.Y,u.Z),W))}),i.linenum){case ts.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.PhaseSequence){case H.A相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.push(t[0]),this.ToffsetWires1A1.push(t[0]);break;case c.双分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]);break;case c.四分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]);break;case c.六分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.offsetWires11.push(t[4]),this.offsetWires11.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A1.push(t[8]),this.ToffsetWires1A1.push(t[9]),this.ToffsetWires1A1.push(t[10]),this.ToffsetWires1A1.push(t[11]);break;case c.八分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.offsetWires11.push(t[4]),this.offsetWires11.push(t[5]),this.offsetWires11.push(t[6]),this.offsetWires11.push(t[7]),this.ToffsetWires1A1.push(t[8]),this.ToffsetWires1A1.push(t[9]),this.ToffsetWires1A1.push(t[10]),this.ToffsetWires1A1.push(t[11]),this.ToffsetWires1A1.push(t[12]),this.ToffsetWires1A1.push(t[13]),this.ToffsetWires1A1.push(t[14]),this.ToffsetWires1A1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(u),this.ToffsetWires1A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires11.push(d),this.offsetWires11.push(g),this.offsetWires11.push(b),this.offsetWires11.push(T),this.ToffsetWires1A2.push(d),this.ToffsetWires1A2.push(g),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires11.push(B),this.offsetWires11.push(P),this.offsetWires11.push(y),this.offsetWires11.push(m),this.offsetWires11.push(_),this.offsetWires11.push(v),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(P),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(_),this.ToffsetWires1A2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires11.push(k),this.offsetWires11.push(M),this.offsetWires11.push(X),this.offsetWires11.push(Y),this.offsetWires11.push(R),this.offsetWires11.push(F),this.offsetWires11.push(D),this.offsetWires11.push(E),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(R),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[1]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break;case c.四分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A2.push(t[4]),this.ToffsetWires1A2.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]);break;case c.六分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]);break;case c.八分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]),this.ToffsetWires1A2.push(t[12]),this.ToffsetWires1A2.push(t[13]),this.ToffsetWires1A2.push(t[14]),this.ToffsetWires1A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires12.push(t[0]),this.ToffsetWires1B1.push(t[1]);break;case c.双分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]);break;case c.四分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]);break;case c.六分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]);break;case c.八分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.offsetWires12.push(t[6]),this.offsetWires12.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]),this.ToffsetWires1B1.push(t[12]),this.ToffsetWires1B1.push(t[13]),this.ToffsetWires1B1.push(t[14]),this.ToffsetWires1B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires12.push(u),this.ToffsetWires1B2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires12.push(l),this.offsetWires12.push(C),this.ToffsetWires1B2.push(l),this.ToffsetWires1B2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires12.push(d),this.offsetWires12.push(g),this.offsetWires12.push(b),this.offsetWires12.push(T),this.ToffsetWires1B2.push(d),this.ToffsetWires1B2.push(g),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires12.push(B),this.offsetWires12.push(P),this.offsetWires12.push(y),this.offsetWires12.push(m),this.offsetWires12.push(_),this.offsetWires12.push(v),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(P),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(m),this.ToffsetWires1B2.push(_),this.ToffsetWires1B2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires12.push(k),this.offsetWires12.push(M),this.offsetWires12.push(X),this.offsetWires12.push(Y),this.offsetWires12.push(R),this.offsetWires12.push(F),this.offsetWires12.push(D),this.offsetWires12.push(E),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(R),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B2.push(t[0]);break;case c.双分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B2.push(t[2]),this.ToffsetWires1B2.push(t[3]);break;case c.四分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B2.push(t[4]),this.ToffsetWires1B2.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]);break;case c.六分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]);break;case c.八分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]),this.ToffsetWires1B2.push(t[12]),this.ToffsetWires1B2.push(t[13]),this.ToffsetWires1B2.push(t[14]),this.ToffsetWires1B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires13.push(t[0]),this.ToffsetWires1C1.push(t[1]);break;case c.双分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]);break;case c.四分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]);break;case c.六分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]);break;case c.八分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.offsetWires13.push(t[6]),this.offsetWires13.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]),this.ToffsetWires1C1.push(t[12]),this.ToffsetWires1C1.push(t[13]),this.ToffsetWires1C1.push(t[14]),this.ToffsetWires1C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires13.push(u),this.ToffsetWires1C2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires13.push(l),this.offsetWires13.push(C),this.ToffsetWires1C2.push(l),this.ToffsetWires1C2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires13.push(d),this.offsetWires13.push(g),this.offsetWires13.push(b),this.offsetWires13.push(T),this.ToffsetWires1C2.push(d),this.ToffsetWires1C2.push(g),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires13.push(B),this.offsetWires13.push(P),this.offsetWires13.push(y),this.offsetWires13.push(m),this.offsetWires13.push(_),this.offsetWires13.push(v),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(P),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(m),this.ToffsetWires1C2.push(_),this.ToffsetWires1C2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires13.push(k),this.offsetWires13.push(M),this.offsetWires13.push(X),this.offsetWires13.push(Y),this.offsetWires13.push(R),this.offsetWires13.push(F),this.offsetWires13.push(D),this.offsetWires13.push(E),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(R),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C2.push(t[0]);break;case c.双分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C2.push(t[2]),this.ToffsetWires1C2.push(t[3]);break;case c.四分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C2.push(t[4]),this.ToffsetWires1C2.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]);break;case c.六分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]);break;case c.八分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]),this.ToffsetWires1C2.push(t[12]),this.ToffsetWires1C2.push(t[13]),this.ToffsetWires1C2.push(t[14]),this.ToffsetWires1C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(u=>{this.offsetWires11.push(u)});break;case H.B相:t.forEach(u=>{this.offsetWires12.push(u)});break;case H.C相:t.forEach(u=>{this.offsetWires13.push(u)});break}else if(this.LineInfo.towers[s].type==J.耐张塔)switch(A){case 2:switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.push(t[0]),this.ToffsetWires1A1.push(t[0]);break;case c.双分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[0]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(u),this.ToffsetWires1A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break}break;case 5:t.forEach(u=>{this.offsetWires12.push(u),this.ToffsetWires1B1.push(u)});break;case 6:t.forEach(u=>{this.ToffsetWires1B1.push(u),this.ToffsetWires1B2.push(u)});break;case 7:i.InsulatorPoint.forEach(u=>{const l=p(h,new n.Cartesian3(u.X*-1,u.Y,u.Z),W);this.offsetWires12.push(l),this.ToffsetWires1B2.push(l)});break;case 8:t.forEach(u=>{this.offsetWires13.push(u),this.ToffsetWires1C1.push(u)});break;case 9:t.forEach(u=>{this.ToffsetWires1C1.push(u),this.ToffsetWires1C2.push(u)});break;case 10:i.InsulatorPoint.forEach(u=>{const l=p(h,new n.Cartesian3(u.X*-1,u.Y,u.Z),W);this.offsetWires13.push(l),this.ToffsetWires1C2.push(l)});break}else switch(A){case 2:t.forEach(u=>{this.offsetWires11.push(u)});break;case 3:t.forEach(u=>{this.offsetWires12.push(u)});break;case 4:t.forEach(u=>{this.offsetWires13.push(u)});break}break;case ts.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.PhaseSequence){case H.A相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires21.push(t[0]),this.ToffsetWires2A1.push(t[0]);break;case c.双分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]);break;case c.四分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]);break;case c.六分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.offsetWires21.push(t[4]),this.offsetWires21.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A1.push(t[8]),this.ToffsetWires2A1.push(t[9]),this.ToffsetWires2A1.push(t[10]),this.ToffsetWires2A1.push(t[11]);break;case c.八分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.offsetWires21.push(t[4]),this.offsetWires21.push(t[5]),this.offsetWires21.push(t[6]),this.offsetWires21.push(t[7]),this.ToffsetWires2A1.push(t[8]),this.ToffsetWires2A1.push(t[9]),this.ToffsetWires2A1.push(t[10]),this.ToffsetWires2A1.push(t[11]),this.ToffsetWires2A1.push(t[12]),this.ToffsetWires2A1.push(t[13]),this.ToffsetWires2A1.push(t[14]),this.ToffsetWires2A1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(u),this.ToffsetWires2A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires21.push(l),this.offsetWires21.push(C),this.ToffsetWires2A2.push(l),this.ToffsetWires2A2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires21.push(d),this.offsetWires21.push(g),this.offsetWires21.push(b),this.offsetWires21.push(T),this.ToffsetWires2A2.push(d),this.ToffsetWires2A2.push(g),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires21.push(B),this.offsetWires21.push(P),this.offsetWires21.push(y),this.offsetWires21.push(m),this.offsetWires21.push(_),this.offsetWires21.push(v),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(P),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(m),this.ToffsetWires2A2.push(_),this.ToffsetWires2A2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires21.push(k),this.offsetWires21.push(M),this.offsetWires21.push(X),this.offsetWires21.push(Y),this.offsetWires21.push(R),this.offsetWires21.push(F),this.offsetWires21.push(D),this.offsetWires21.push(E),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(R),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case c.双分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A2.push(t[2]),this.ToffsetWires2A2.push(t[3]);break;case c.四分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A2.push(t[4]),this.ToffsetWires2A2.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]);break;case c.六分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]);break;case c.八分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]),this.ToffsetWires2A2.push(t[12]),this.ToffsetWires2A2.push(t[13]),this.ToffsetWires2A2.push(t[14]),this.ToffsetWires2A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case c.双分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]);break;case c.四分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]);break;case c.六分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]);break;case c.八分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.offsetWires22.push(t[6]),this.offsetWires22.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]),this.ToffsetWires2B1.push(t[12]),this.ToffsetWires2B1.push(t[13]),this.ToffsetWires2B1.push(t[14]),this.ToffsetWires2B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(u),this.ToffsetWires2B2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires22.push(l),this.offsetWires22.push(C),this.ToffsetWires2B2.push(l),this.ToffsetWires2B2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires22.push(d),this.offsetWires22.push(g),this.offsetWires22.push(b),this.offsetWires22.push(T),this.ToffsetWires2B2.push(d),this.ToffsetWires2B2.push(g),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires22.push(B),this.offsetWires22.push(P),this.offsetWires22.push(y),this.offsetWires22.push(m),this.offsetWires22.push(_),this.offsetWires22.push(v),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(P),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(m),this.ToffsetWires2B2.push(_),this.ToffsetWires2B2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires22.push(k),this.offsetWires22.push(M),this.offsetWires22.push(X),this.offsetWires22.push(Y),this.offsetWires22.push(R),this.offsetWires22.push(F),this.offsetWires22.push(D),this.offsetWires22.push(E),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(R),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case c.双分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B2.push(t[2]),this.ToffsetWires2B2.push(t[3]);break;case c.四分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B2.push(t[4]),this.ToffsetWires2B2.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]);break;case c.六分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]);break;case c.八分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]),this.ToffsetWires2B2.push(t[12]),this.ToffsetWires2B2.push(t[13]),this.ToffsetWires2B2.push(t[14]),this.ToffsetWires2B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case c.双分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]);break;case c.四分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]);break;case c.六分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]);break;case c.八分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.offsetWires23.push(t[6]),this.offsetWires23.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]),this.ToffsetWires2C1.push(t[12]),this.ToffsetWires2C1.push(t[13]),this.ToffsetWires2C1.push(t[14]),this.ToffsetWires2C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(u),this.ToffsetWires2C2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires23.push(l),this.offsetWires23.push(C),this.ToffsetWires2C2.push(l),this.ToffsetWires2C2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires23.push(d),this.offsetWires23.push(g),this.offsetWires23.push(b),this.offsetWires23.push(T),this.ToffsetWires2C2.push(d),this.ToffsetWires2C2.push(g),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires23.push(B),this.offsetWires23.push(P),this.offsetWires23.push(y),this.offsetWires23.push(m),this.offsetWires23.push(_),this.offsetWires23.push(v),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(P),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(m),this.ToffsetWires2C2.push(_),this.ToffsetWires2C2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires23.push(k),this.offsetWires23.push(M),this.offsetWires23.push(X),this.offsetWires23.push(Y),this.offsetWires23.push(R),this.offsetWires23.push(F),this.offsetWires23.push(D),this.offsetWires23.push(E),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(R),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case c.双分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C2.push(t[2]),this.ToffsetWires2C2.push(t[3]);break;case c.四分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C2.push(t[4]),this.ToffsetWires2C2.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]);break;case c.六分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]);break;case c.八分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]),this.ToffsetWires2C2.push(t[12]),this.ToffsetWires2C2.push(t[13]),this.ToffsetWires2C2.push(t[14]),this.ToffsetWires2C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(u=>{this.offsetWires21.push(u)});break;case H.B相:t.forEach(u=>{this.offsetWires22.push(u)});break;case H.C相:t.forEach(u=>{this.offsetWires23.push(u)});break}else if(this.LineInfo.towers[s].type==J.耐张塔)switch(A){case 11:this.offsetWires21.push(t[0]),this.ToffsetWires2A1.push(t[0]);break;case 12:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case 13:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(u),this.ToffsetWires2A2.push(u);break;case 14:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case 15:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case 16:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(l),this.ToffsetWires2B2.push(l);break;case 17:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case 18:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case 19:const C=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(C),this.ToffsetWires2C2.push(C);break}else switch(A){case 5:t.forEach(u=>{this.offsetWires21.push(u)});break;case 6:t.forEach(u=>{this.offsetWires22.push(u)});break;case 7:t.forEach(u=>{this.offsetWires23.push(u)});break}break;case ts.地线:if(this.LineInfo.ISPhaseSequence)switch(i.PhaseSequence){case H.地线1:this.offsetGrouundWires11.push(t[0]);break;case H.地线2:this.offsetGrouundWires12.push(t[0]);break}else switch(A){case 0:this.offsetGrouundWires11.push(t[0]);break;case 1:this.offsetGrouundWires12.push(t[0]);break}break}A=A+1}),this.offsetWires11.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.length>=2&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(i),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.双分裂:this.offsetWires11.length>=4&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.四分裂:this.offsetWires11.length>=8&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.六分裂:this.offsetWires11.length>=12&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires11[o+4]),C.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(C),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[o+5]),d.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(d),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.八分裂:this.offsetWires11.length>=16&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-8]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-7]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires11[o+4]),C.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(C),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[o+5]),d.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(d),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires11[o+6]),g.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(g),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires11[o+7]),b.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(b),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))});break;case c.双分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires12[o+4]),C.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(C),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[o+5]),d.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(d),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-8]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-7]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires12[o+4]),C.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(C),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[o+5]),d.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(d),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires12[o+6]),g.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(g),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires12[o+7]),b.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(b),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+4]),C.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(C),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[o+5]),d.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(d),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-8]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-7]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+4]),C.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(C),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[o+5]),d.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(d),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires13[o+6]),g.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(g),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires13[o+7]),b.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(b),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+4]),C.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(C),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[o+5]),d.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(d),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-8]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-7]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+4]),C.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(C),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[o+5]),d.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(d),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires21[o+6]),g.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(g),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires21[o+7]),b.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(b),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+4]),C.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(C),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[o+5]),d.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(d),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-8]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-7]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+4]),C.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(C),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[o+5]),d.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(d),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires22[o+6]),g.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(g),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires22[o+7]),b.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(b),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+4]),C.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(C),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[o+5]),d.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(d),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-8]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-7]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+4]),C.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(C),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[o+5]),d.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(d),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires23[o+6]),g.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(g),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires23[o+7]),b.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(b),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const i=[];i.push(this.offsetGrouundWires11[s]),i.push(this.offsetGrouundWires11[s-1]);const t=[];t.push(this.offsetGrouundWires12[s]),t.push(this.offsetGrouundWires12[s-1]),this.offsetGrouundWires1=f(i,2),this.offsetGrouundWires2=f(t,2),this.offsetGrouundWires1.forEach(u=>{this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid,u))}),this.entityCollection2.add(r(this.offsetGrouundWires1,"地线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(r(this.offsetGrouundWires2,"地线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}let L=2;if(this.LineInfo.towers[s].type==J.耐张塔){switch(this.LineInfo.Wairnum){case c.单分裂:o=o+L,e=e+L;break;case c.双分裂:o=o+L*2,e=e+L*2;break;case c.四分裂:o=o+L*4,e=e+L*4;break;case c.六分裂:o=o+L*6,e=e+L*6;break;case c.八分裂:o=o+L*8,e=e+L*8;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.length>=2&&(i.push(this.ToffsetWires1A1[e-2]),i.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(T.push(this.ToffsetWires1A2[e-2]),T.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1A1.length>=4&&(i.push(this.ToffsetWires1A1[e-4]),i.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-3]),t.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(T.push(this.ToffsetWires1A2[e-4]),T.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-3]),B.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1A1.length>=8&&(i.push(this.ToffsetWires1A1[e-8]),i.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-7]),t.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-6]),u.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-5]),l.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(T.push(this.ToffsetWires1A2[e-8]),T.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-7]),B.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-6]),P.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-5]),y.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1A1.length>=12&&(i.push(this.ToffsetWires1A1[e-12]),i.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-11]),t.push(this.ToffsetWires1A1[e-5]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-10]),u.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-9]),l.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[e-8]),C.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[e-7]),d.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(T.push(this.ToffsetWires1A2[e-12]),T.push(this.ToffsetWires1A2[e-6]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-11]),B.push(this.ToffsetWires1A2[e-5]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-10]),P.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-9]),y.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A2[e-8]),m.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[e-7]),_.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1A1.length>=16&&(i.push(this.ToffsetWires1A1[e-16]),i.push(this.ToffsetWires1A1[e-8]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-15]),t.push(this.ToffsetWires1A1[e-7]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-14]),u.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-13]),l.push(this.ToffsetWires1A1[e-5]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[e-12]),C.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[e-11]),d.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A1[e-10]),g.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A1[e-9]),b.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(T.push(this.ToffsetWires1A2[e-16]),T.push(this.ToffsetWires1A2[e-8]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-15]),B.push(this.ToffsetWires1A2[e-7]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-14]),P.push(this.ToffsetWires1A2[e-6]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-13]),y.push(this.ToffsetWires1A2[e-5]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A2[e-12]),m.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[e-11]),_.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[e-10]),v.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1A2[e-9]),k.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.length>=2&&(i.push(this.ToffsetWires1B1[e-2]),i.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(T.push(this.ToffsetWires1B2[e-2]),T.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1B1.length>=4&&(i.push(this.ToffsetWires1B1[e-4]),i.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-3]),t.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(T.push(this.ToffsetWires1B2[e-4]),T.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-3]),B.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1B1.length>=8&&(i.push(this.ToffsetWires1B1[e-8]),i.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-7]),t.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-6]),u.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-5]),l.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(T.push(this.ToffsetWires1B2[e-8]),T.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-7]),B.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-6]),P.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-5]),y.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1B1.length>=12&&(i.push(this.ToffsetWires1B1[e-12]),i.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-11]),t.push(this.ToffsetWires1B1[e-5]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-10]),u.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-9]),l.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[e-8]),C.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[e-7]),d.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(T.push(this.ToffsetWires1B2[e-12]),T.push(this.ToffsetWires1B2[e-6]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-11]),B.push(this.ToffsetWires1B2[e-5]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-10]),P.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-9]),y.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B2[e-8]),m.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[e-7]),_.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1B1.length>=16&&(i.push(this.ToffsetWires1B1[e-16]),i.push(this.ToffsetWires1B1[e-8]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-15]),t.push(this.ToffsetWires1B1[e-7]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-14]),u.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-13]),l.push(this.ToffsetWires1B1[e-5]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[e-12]),C.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[e-11]),d.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B1[e-10]),g.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B1[e-9]),b.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(T.push(this.ToffsetWires1B2[e-16]),T.push(this.ToffsetWires1B2[e-8]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-15]),B.push(this.ToffsetWires1B2[e-7]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-14]),P.push(this.ToffsetWires1B2[e-6]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-13]),y.push(this.ToffsetWires1B2[e-5]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B2[e-12]),m.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[e-11]),_.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[e-10]),v.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1B2[e-9]),k.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.length>=2&&(i.push(this.ToffsetWires1C1[e-2]),i.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(T.push(this.ToffsetWires1C2[e-2]),T.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1C1.length>=4&&(i.push(this.ToffsetWires1C1[e-4]),i.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-3]),t.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(T.push(this.ToffsetWires1C2[e-4]),T.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-3]),B.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1C1.length>=8&&(i.push(this.ToffsetWires1C1[e-8]),i.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-7]),t.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-6]),u.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-5]),l.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(T.push(this.ToffsetWires1C2[e-8]),T.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-7]),B.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-6]),P.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-5]),y.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1C1.length>=12&&(i.push(this.ToffsetWires1C1[e-12]),i.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-11]),t.push(this.ToffsetWires1C1[e-5]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-10]),u.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-9]),l.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[e-8]),C.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[e-7]),d.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(T.push(this.ToffsetWires1C2[e-12]),T.push(this.ToffsetWires1C2[e-6]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-11]),B.push(this.ToffsetWires1C2[e-5]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-10]),P.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-9]),y.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C2[e-8]),m.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[e-7]),_.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1C1.length>=16&&(i.push(this.ToffsetWires1C1[e-16]),i.push(this.ToffsetWires1C1[e-8]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-15]),t.push(this.ToffsetWires1C1[e-7]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-14]),u.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-13]),l.push(this.ToffsetWires1C1[e-5]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[e-12]),C.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[e-11]),d.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C1[e-10]),g.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C1[e-9]),b.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(T.push(this.ToffsetWires1C2[e-16]),T.push(this.ToffsetWires1C2[e-8]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-15]),B.push(this.ToffsetWires1C2[e-7]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-14]),P.push(this.ToffsetWires1C2[e-6]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-13]),y.push(this.ToffsetWires1C2[e-5]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C2[e-12]),m.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[e-11]),_.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[e-10]),v.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1C2[e-9]),k.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.length>=2&&(i.push(this.ToffsetWires2A1[e-2]),i.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(T.push(this.ToffsetWires2A2[e-2]),T.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2A1.length>=4&&(i.push(this.ToffsetWires2A1[e-4]),i.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-3]),t.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(T.push(this.ToffsetWires2A2[e-4]),T.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-3]),B.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2A1.length>=8&&(i.push(this.ToffsetWires2A1[e-8]),i.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-7]),t.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-6]),u.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-5]),l.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(T.push(this.ToffsetWires2A2[e-8]),T.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-7]),B.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-6]),P.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-5]),y.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2A1.length>=12&&(i.push(this.ToffsetWires2A1[e-12]),i.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-11]),t.push(this.ToffsetWires2A1[e-5]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-10]),u.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-9]),l.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[e-8]),C.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[e-7]),d.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(T.push(this.ToffsetWires2A2[e-12]),T.push(this.ToffsetWires2A2[e-6]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-11]),B.push(this.ToffsetWires2A2[e-5]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-10]),P.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-9]),y.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A2[e-8]),m.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[e-7]),_.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2A1.length>=16&&(i.push(this.ToffsetWires2A1[e-16]),i.push(this.ToffsetWires2A1[e-8]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-15]),t.push(this.ToffsetWires2A1[e-7]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-14]),u.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-13]),l.push(this.ToffsetWires2A1[e-5]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[e-12]),C.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[e-11]),d.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A1[e-10]),g.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A1[e-9]),b.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(T.push(this.ToffsetWires2A2[e-16]),T.push(this.ToffsetWires2A2[e-8]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-15]),B.push(this.ToffsetWires2A2[e-7]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-14]),P.push(this.ToffsetWires2A2[e-6]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-13]),y.push(this.ToffsetWires2A2[e-5]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A2[e-12]),m.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[e-11]),_.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[e-10]),v.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2A2[e-9]),k.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.length>=2&&(i.push(this.ToffsetWires2B1[e-2]),i.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(T.push(this.ToffsetWires2B2[e-2]),T.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2B1.length>=4&&(i.push(this.ToffsetWires2B1[e-4]),i.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-3]),t.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(T.push(this.ToffsetWires2B2[e-4]),T.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-3]),B.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2B1.length>=8&&(i.push(this.ToffsetWires2B1[e-8]),i.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-7]),t.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-6]),u.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-5]),l.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(T.push(this.ToffsetWires2B2[e-8]),T.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-7]),B.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-6]),P.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-5]),y.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2B1.length>=12&&(i.push(this.ToffsetWires2B1[e-12]),i.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-11]),t.push(this.ToffsetWires2B1[e-5]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-10]),u.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-9]),l.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[e-8]),C.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[e-7]),d.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(T.push(this.ToffsetWires2B2[e-12]),T.push(this.ToffsetWires2B2[e-6]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-11]),B.push(this.ToffsetWires2B2[e-5]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-10]),P.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-9]),y.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B2[e-8]),m.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[e-7]),_.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2B1.length>=16&&(i.push(this.ToffsetWires2B1[e-16]),i.push(this.ToffsetWires2B1[e-8]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-15]),t.push(this.ToffsetWires2B1[e-7]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-14]),u.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-13]),l.push(this.ToffsetWires2B1[e-5]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[e-12]),C.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[e-11]),d.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B1[e-10]),g.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B1[e-9]),b.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(T.push(this.ToffsetWires2B2[e-16]),T.push(this.ToffsetWires2B2[e-8]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-15]),B.push(this.ToffsetWires2B2[e-7]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-14]),P.push(this.ToffsetWires2B2[e-6]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-13]),y.push(this.ToffsetWires2B2[e-5]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B2[e-12]),m.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[e-11]),_.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[e-10]),v.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2B2[e-9]),k.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.length>=2&&(i.push(this.ToffsetWires2C1[e-2]),i.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(T.push(this.ToffsetWires2C2[e-2]),T.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2C1.length>=4&&(i.push(this.ToffsetWires2C1[e-4]),i.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-3]),t.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(T.push(this.ToffsetWires2C2[e-4]),T.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-3]),B.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2C1.length>=8&&(i.push(this.ToffsetWires2C1[e-8]),i.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-7]),t.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-6]),u.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-5]),l.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(T.push(this.ToffsetWires2C2[e-8]),T.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-7]),B.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-6]),P.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-5]),y.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2C1.length>=12&&(i.push(this.ToffsetWires2C1[e-12]),i.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-11]),t.push(this.ToffsetWires2C1[e-5]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-10]),u.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-9]),l.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[e-8]),C.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[e-7]),d.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(T.push(this.ToffsetWires2C2[e-12]),T.push(this.ToffsetWires2C2[e-6]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-11]),B.push(this.ToffsetWires2C2[e-5]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-10]),P.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-9]),y.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C2[e-8]),m.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[e-7]),_.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2C1.length>=16&&(i.push(this.ToffsetWires2C1[e-16]),i.push(this.ToffsetWires2C1[e-8]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-15]),t.push(this.ToffsetWires2C1[e-7]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-14]),u.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-13]),l.push(this.ToffsetWires2C1[e-5]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[e-12]),C.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[e-11]),d.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C1[e-10]),g.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C1[e-9]),b.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(T.push(this.ToffsetWires2C2[e-16]),T.push(this.ToffsetWires2C2[e-8]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-15]),B.push(this.ToffsetWires2C2[e-7]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-14]),P.push(this.ToffsetWires2C2[e-6]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-13]),y.push(this.ToffsetWires2C2[e-5]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C2[e-12]),m.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[e-11]),_.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[e-10]),v.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2C2[e-9]),k.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case c.单分裂:o=o+1;break;case c.双分裂:o=o+2;break;case c.四分裂:o=o+4;break;case c.六分裂:o=o+6;break;case c.八分裂:o=o+8;break}})}addTreeData(o){this.LineInfo.Trees.push(o)}loadTree(){this.LineInfo.Trees.forEach(o=>{const e=n.Cartesian3.fromDegrees(o.lon,o.lat,0);this.entityCollectiontree.add({id:"tree-"+o.id,position:e,model:{show:!0,uri:o.modelurl,scale:o.treeH/o.treeScale,incrementallyLoadTextures:!0,runAnimations:!0,clampAnimations:!0,shadows:n.ShadowMode.DISABLED,heightReference:n.HeightReference.RELATIVE_TO_GROUND,silhouetteColor:n.Color.RED,silhouetteSize:0,color:n.Color.WHITE,colorBlendMode:n.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.5,imageBasedLightingFactor:new n.Cartesian2(1,1),lightColor:void 0}})})}calcResult(o){const e=zs(o,this.arcLine1A1,this.arcLine1B1,this.arcLine1D1);$s(o,e,this.entityCollectionplotting)}loadTreeListen(){this.treeHandler&&this.removeTreeListen();const o=(e,h)=>{var I;const s=e.scene.pick(h);if(n.defined(s)){const W=n.defaultValue(s.id,(I=s.primitive)==null?void 0:I.id);if(W instanceof n.Entity)return W}};this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(e=>{var s;const h=o(this.viewer,e.position);if(h&&h.id&&h.id.startsWith("tree-")){const I=h.id.replace("tree-",""),W=(s=this.LineInfo.Trees)==null?void 0:s.find(A=>{var L;return((L=A.id)==null?void 0:L.toString())===I});if(W){const A=[W.lon,W.lat,Number(W.lat||0)+Number(W.treeH||0)];console.log("拾取树木:",W,"坐标:",A),this.calcResult(A)}}},n.ScreenSpaceEventType.LEFT_CLICK),this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.viewer.dataSources.remove(this.dataSourceplotting),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.LineInfo.Trees.forEach(o=>{if(o){const e=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(e)}}),this.viewer.dataSources.add(this.dataSourceplotting)}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSourcetree),this.entityCollectiontree.show=!0)}RemoveTreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSourcetree),this.entityCollectiontree.show=!1)}LineSpriteLineinit(){n.Material._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new n.Color(1,1,0,1),speed:2},source:`
1
+ (function(S,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("cesium")):typeof define=="function"&&define.amd?define(["exports","cesium"],Z):(S=typeof globalThis<"u"?globalThis:S||self,Z(S.OW_EEngine_Power={},S.Cesium))})(this,function(S,Z){"use strict";var ft=Object.defineProperty;var ht=(S,Z,Q)=>Z in S?ft(S,Z,{enumerable:!0,configurable:!0,writable:!0,value:Q}):S[Z]=Q;var w=(S,Z,Q)=>ht(S,typeof Z!="symbol"?Z+"":Z,Q);function Q(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const h=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(o,e,h.get?h:{enumerable:!0,get:()=>a[e]})}}return o.default=a,Object.freeze(o)}const n=Q(Z);function _s(a,o,e={}){const{color:h=Z.Color.WHITE,width:s=3,clampToGround:I=!1,zIndex:W=0,dashed:A=!1,dashLength:L=10}=e,i=A?new n.PolylineDashMaterialProperty({color:h,dashLength:L}):new n.ColorMaterialProperty(h);return a.entities.add({polyline:{positions:o,width:s,material:i,clampToGround:I,zIndex:W}})}function r(a,o,e=10,h="#ba1919",s,I=!1){const W={show:!0,positions:a,clampToGround:I,width:e,material:n.Color.fromCssColorString(h),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED,granularity:I?void 0:0};return s&&(W.distanceDisplayCondition=new n.DistanceDisplayCondition(0,2e3)),{name:o,label:s?{text:o,font:"18px sans-serif",distanceDisplayCondition:new n.DistanceDisplayCondition(s[0],Math.min(s[1],5e3))}:{text:o,font:"18px sans-serif"},polyline:W}}function K(a,o,e,h,s=new n.HeadingPitchRoll(0,0,0),I=1,W){const A={show:!0,uri:h,scale:I,transition:{distanceDisplayCondition:!0,scale:!0}};return W&&(Array.isArray(W)?A.distanceDisplayCondition=new n.DistanceDisplayCondition(W[0],W[1]):A.distanceDisplayCondition=W),{id:a,name:e,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:A}}function is(a,o,e,h={}){const{pointColor:s=Z.Color.YELLOW,pointSize:I=12,labelColor:W=Z.Color.WHITE,fontSize:A=16,pixelOffset:L=[0,-20],heightReference:i=Z.HeightReference.NONE}=h;return a.entities.add({position:o,point:{color:s,pixelSize:I,heightReference:i,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)},label:{text:e,font:`${A}px sans-serif`,fillColor:W,pixelOffset:new n.Cartesian2(...L),style:Z.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:Z.Color.BLACK,heightReference:i,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)}})}var N=63710088e-1,us={centimeters:N*100,centimetres:N*100,degrees:N/111325,feet:N*3.28084,inches:N*39.37,kilometers:N/1e3,kilometres:N/1e3,meters:N,metres:N,miles:N/1609.344,millimeters:N*1e3,millimetres:N*1e3,nauticalmiles:N/1852,radians:1,yards:N*1.0936};function x(a,o,e){e===void 0&&(e={});var h={type:"Feature"};return(e.id===0||e.id)&&(h.id=e.id),e.bbox&&(h.bbox=e.bbox),h.properties=o||{},h.geometry=a,h}function q(a,o,e){if(e===void 0&&(e={}),!a)throw new Error("coordinates is required");if(!Array.isArray(a))throw new Error("coordinates must be an Array");if(a.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Cs(a[0])||!Cs(a[1]))throw new Error("coordinates must contain numbers");var h={type:"Point",coordinates:a};return x(h,o,e)}function $(a,o,e){if(e===void 0&&(e={}),a.length<2)throw new Error("coordinates must be an array of two or more positions");var h={type:"LineString",coordinates:a};return x(h,o,e)}function vs(a,o){o===void 0&&(o={});var e={type:"FeatureCollection"};return o.id&&(e.id=o.id),o.bbox&&(e.bbox=o.bbox),e.features=a,e}function ls(a,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return a*e}function cs(a,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return a/e}function rs(a){var o=a%(2*Math.PI);return o*180/Math.PI}function G(a){var o=a%360;return o*Math.PI/180}function Ts(a,o,e){if(o===void 0&&(o="kilometers"),e===void 0&&(e="kilometers"),!(a>=0))throw new Error("length must be a positive number");return ls(cs(a,o),e)}function Cs(a){return!isNaN(a)&&a!==null&&!Array.isArray(a)}function ks(a){return!!a&&a.constructor===Object}function As(a,o,e){if(a!==null)for(var h,s,I,W,A,L,i,t=0,u=0,l,C=a.type,d=C==="FeatureCollection",g=C==="Feature",b=d?a.features.length:1,T=0;T<b;T++){i=d?a.features[T].geometry:g?a.geometry:a,l=i?i.type==="GeometryCollection":!1,A=l?i.geometries.length:1;for(var B=0;B<A;B++){var P=0,y=0;if(W=l?i.geometries[B]:i,W!==null){L=W.coordinates;var m=W.type;switch(t=0,m){case null:break;case"Point":if(o(L,u,T,P,y)===!1)return!1;u++,P++;break;case"LineString":case"MultiPoint":for(h=0;h<L.length;h++){if(o(L[h],u,T,P,y)===!1)return!1;u++,m==="MultiPoint"&&P++}m==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(h=0;h<L.length;h++){for(s=0;s<L[h].length-t;s++){if(o(L[h][s],u,T,P,y)===!1)return!1;u++}m==="MultiLineString"&&P++,m==="Polygon"&&y++}m==="Polygon"&&P++;break;case"MultiPolygon":for(h=0;h<L.length;h++){for(y=0,s=0;s<L[h].length;s++){for(I=0;I<L[h][s].length-t;I++){if(o(L[h][s][I],u,T,P,y)===!1)return!1;u++}y++}P++}break;case"GeometryCollection":for(h=0;h<W.geometries.length;h++)if(As(W.geometries[h],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ss(a,o){if(a.type==="Feature")o(a,0);else if(a.type==="FeatureCollection")for(var e=0;e<a.features.length&&o(a.features[e],e)!==!1;e++);}function Zs(a,o){var e,h,s,I,W,A,L,i,t,u,l=0,C=a.type==="FeatureCollection",d=a.type==="Feature",g=C?a.features.length:1;for(e=0;e<g;e++){for(A=C?a.features[e].geometry:d?a.geometry:a,i=C?a.features[e].properties:d?a.properties:{},t=C?a.features[e].bbox:d?a.bbox:void 0,u=C?a.features[e].id:d?a.id:void 0,L=A?A.type==="GeometryCollection":!1,W=L?A.geometries.length:1,s=0;s<W;s++){if(I=L?A.geometries[s]:A,I===null){if(o(null,l,i,t,u)===!1)return!1;continue}switch(I.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(I,l,i,t,u)===!1)return!1;break}case"GeometryCollection":{for(h=0;h<I.geometries.length;h++)if(o(I.geometries[h],l,i,t,u)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}l++}}function Ms(a,o){Zs(a,function(e,h,s,I,W){var A=e===null?null:e.type;switch(A){case null:case"Point":case"LineString":case"Polygon":return o(x(e,s,{bbox:I,id:W}),h,0)===!1?!1:void 0}var L;switch(A){case"MultiPoint":L="Point";break;case"MultiLineString":L="LineString";break;case"MultiPolygon":L="Polygon";break}for(var i=0;i<e.coordinates.length;i++){var t=e.coordinates[i],u={type:L,coordinates:t};if(o(x(u,s),h,i)===!1)return!1}})}function Es(a,o){Ms(a,function(e,h,s){var I=0;if(e.geometry){var W=e.geometry.type;if(!(W==="Point"||W==="MultiPoint")){var A,L=0,i=0,t=0;if(As(e,function(u,l,C,d,g){if(A===void 0||h>L||d>i||g>t){A=u,L=h,i=d,t=g,I=0;return}var b=$([A,u],e.properties);if(o(b,h,s,g,I)===!1)return!1;I++,A=u})===!1)return!1}}})}function U(a){if(!a)throw new Error("coord is required");if(!Array.isArray(a)){if(a.type==="Feature"&&a.geometry!==null&&a.geometry.type==="Point")return a.geometry.coordinates;if(a.type==="Point")return a.coordinates}if(Array.isArray(a)&&a.length>=2&&!Array.isArray(a[0])&&!Array.isArray(a[1]))return a;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ps(a,o,e){if(!a)throw new Error("No feature passed");if(!e)throw new Error(".featureOf() requires a name");if(!a||a.type!=="Feature"||!a.geometry)throw new Error("Invalid input to "+e+", Feature with geometry required");if(!a.geometry||a.geometry.type!==o)throw new Error("Invalid input to "+e+": must be a "+o+", given "+a.geometry.type)}var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V(a,o,e){e===void 0&&(e={});var h=U(a),s=U(o),I=G(s[1]-h[1]),W=G(s[0]-h[0]),A=G(h[1]),L=G(s[1]),i=Math.pow(Math.sin(I/2),2)+Math.pow(Math.sin(W/2),2)*Math.cos(A)*Math.cos(L);return ls(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)),e.units)}function Xs(a){if(!a)throw new Error("geojson is required");switch(a.type){case"Feature":return ws(a);case"FeatureCollection":return Fs(a);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return fs(a);default:throw new Error("unknown GeoJSON type")}}function ws(a){var o={type:"Feature"};return Object.keys(a).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:o[e]=a[e]}}),o.properties=Is(a.properties),o.geometry=fs(a.geometry),o}function Is(a){var o={};return a&&Object.keys(a).forEach(function(e){var h=a[e];typeof h=="object"?h===null?o[e]=null:Array.isArray(h)?o[e]=h.map(function(s){return s}):o[e]=Is(h):o[e]=h}),o}function Fs(a){var o={type:"FeatureCollection"};return Object.keys(a).forEach(function(e){switch(e){case"type":case"features":return;default:o[e]=a[e]}}),o.features=a.features.map(function(e){return ws(e)}),o}function fs(a){var o={type:a.type};return a.bbox&&(o.bbox=a.bbox),a.type==="GeometryCollection"?(o.geometries=a.geometries.map(function(e){return fs(e)}),o):(o.coordinates=ds(a.coordinates),o)}function ds(a){var o=a;return typeof o[0]!="object"?o.slice():o.map(function(e){return ds(e)})}function hs(a,o,e,h){h===void 0&&(h={});var s=U(a),I=G(s[0]),W=G(s[1]),A=G(e),L=cs(o,h.units),i=Math.asin(Math.sin(W)*Math.cos(L)+Math.cos(W)*Math.sin(L)*Math.cos(A)),t=I+Math.atan2(Math.sin(A)*Math.sin(L)*Math.cos(W),Math.cos(L)-Math.sin(W)*Math.sin(i)),u=rs(t),l=rs(i);return q([u,l],h.properties)}function es(a,o,e){if(e===void 0&&(e={}),e.final===!0)return Ys(a,o);var h=U(a),s=U(o),I=G(h[0]),W=G(s[0]),A=G(h[1]),L=G(s[1]),i=Math.sin(W-I)*Math.cos(L),t=Math.cos(A)*Math.sin(L)-Math.sin(A)*Math.cos(L)*Math.cos(W-I);return rs(Math.atan2(i,t))}function Ys(a,o){var e=es(o,a);return e=(e+180)%360,e}function Ds(a,o){var e=V(a,o),h=es(a,o),s=hs(a,e/2,h);return s}function Rs(a,o){if(!a)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var e,h=1/0,s=0;return Ss(o,function(I,W){var A=V(a,I);A<h&&(s=W,h=A)}),e=Xs(o.features[s]),e.properties.featureIndex=s,e.properties.distanceToPoint=h,e}function Os(a,o,e){e===void 0&&(e={});var h=U(a),s=U(o);s[0]+=s[0]-h[0]>180?-360:h[0]-s[0]>180?360:0;var I=Hs(h,s),W=Ts(I,"meters",e.units);return W}function Hs(a,o,e){e=e===void 0?N:Number(e);var h=e,s=a[1]*Math.PI/180,I=o[1]*Math.PI/180,W=I-s,A=Math.abs(o[0]-a[0])*Math.PI/180;A>Math.PI&&(A-=2*Math.PI);var L=Math.log(Math.tan(I/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),i=Math.abs(L)>1e-11?W/L:Math.cos(s),t=Math.sqrt(W*W+i*i*A*A),u=t*h;return u}function ns(a,o,e){if(e===void 0&&(e={}),e.method||(e.method="geodesic"),e.units||(e.units="kilometers"),!a)throw new Error("pt is required");if(Array.isArray(a)?a=q(a):a.type==="Point"?a=x(a):ps(a,"Point","point"),!o)throw new Error("line is required");Array.isArray(o)?o=$(o):o.type==="LineString"?o=x(o):ps(o,"LineString","line");var h=1/0,s=a.geometry.coordinates;return Es(o,function(I){var W=I.geometry.coordinates[0],A=I.geometry.coordinates[1],L=Ns(s,W,A,e);L<h&&(h=L)}),Ts(h,"degrees",e.units)}function Ns(a,o,e,h){var s=[e[0]-o[0],e[1]-o[1]],I=[a[0]-o[0],a[1]-o[1]],W=Ls(I,s);if(W<=0)return as(a,o,{method:h.method,units:"degrees"});var A=Ls(s,s);if(A<=W)return as(a,e,{method:h.method,units:"degrees"});var L=W/A,i=[o[0]+L*s[0],o[1]+L*s[1]];return as(a,i,{method:h.method,units:"degrees"})}function Ls(a,o){return a[0]*o[0]+a[1]*o[1]}function as(a,o,e){return e.method==="planar"?Os(a,o,e):V(a,o,e)}function Gs(a,o,e,h){if(h=h||{},!ks(h))throw new Error("options is invalid");var s,I=[];if(a.type==="Feature")s=a.geometry.coordinates;else if(a.type==="LineString")s=a.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var W=s.length,A=0,L,i,t,u=0;u<s.length&&!(o>=A&&u===s.length-1);u++){if(A>o&&I.length===0){if(L=o-A,!L)return I.push(s[u]),$(I);i=es(s[u],s[u-1])-180,t=hs(s[u],L,i,h),I.push(t.geometry.coordinates)}if(A>=e)return L=e-A,L?(i=es(s[u],s[u-1])-180,t=hs(s[u],L,i,h),I.push(t.geometry.coordinates),$(I)):(I.push(s[u]),$(I));if(A>=o&&I.push(s[u]),u===s.length-1)return $(I);A+=V(s[u],s[u+1],h)}if(A<o&&s.length===W)throw new Error("Start position is beyond line");var l=s[s.length-1];return $([l,l])}const j={units:"kilometers"};function zs(a,o,e,h){var{nearestDistance:s}=os(a,o),{nearestDistance:I}=os(a,h),{nearestDistance:W}=os(a,e);const A=Math.min(s,W,I);return A===s?o:A===W?e:h}const $s=(a,o,e)=>{debugger;const h=q(a.slice(0,2)),{nearestCoord:s}=os(a,o),I=o.findIndex(E=>E[0]==s[0]&&E[1]==s[1]);let W=[];if(I==0)W.push(o[0],o[1]);else if(I==o.length-1)W.push(o[o.length-2],o[o.length-1]);else{const E=[o[I],o[I+1]],ms=[o[I-1],o[I]];var A=ns(h,$(E),j),L=ns(h,$(ms),j);W=A>L?ms:E}console.log("附近的点",I,W);const i=$([W[0].slice(0,2),W[1].slice(0,2)]),t=q(W[0].slice(0,2)),u=q(W[1].slice(0,2));var l=ns(h,i,j),C=V(h,t,j)||0,d=Math.sqrt(C*C-l*l)||0;let g=W[0].slice(0,2);d>0&&(g=Gs(i,0,d,j).geometry.coordinates[1]);const b=V(t,u,j),T=Math.abs(W[0][2]-W[1][2]),B=Math.min(W[0][2],W[1][2]),P=Math.max(W[0][2],W[1][2]),y=W[0][2]>W[1][2]?P-d/b*T:d/b*T+B;console.log("高度差>>>>",T),console.log("最小高度>>>>",B);const m=y-a[2],_=l*1e3,v=Math.sqrt(_*_+m*m);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",m),console.log("直线距离>>>>",v);const k=n.Cartesian3.fromDegrees(a[0],a[1],a[2]),M=n.Cartesian3.fromDegrees(g[0],g[1],y);var X=Ds(q([a[0],a[1]]),q([g[0],g[1]])).geometry.coordinates;const D={position:n.Cartesian3.fromDegrees(X[0],X[1],y-m/2),name:"直线距离",label:{text:`直线距离${v.toFixed(1)}米`,fillColor:n.Color.fromCssColorString("#eff819"),font:"12px sans-serif",pixelOffset:new n.Cartesian2(0,0),scaleByDistance:new n.NearFarScalar(1e3,1.5,2e3,1),disableDepthTestDistance:Number.POSITIVE_INFINITY}},F=[];F.push(k),F.push(M);var R={polyline:{show:!0,positions:F,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};e.add(D),e.add(R)};function os(a,o){const e=q(a.slice(0,2)),h=[];o.forEach(A=>{h.push(q([A[0],A[1]]))});const s=vs(h),I=Rs(e,s),W=V(e,I,j);return{nearestCoord:I.geometry.coordinates,nearestDistance:W}}function p(a,o,e,h,s){e||(e=new n.HeadingPitchRoll);const I=n.Transforms.headingPitchRollQuaternion(a,e,h,s),W=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(I,new n.Matrix3),a,new n.Matrix4);return n.Matrix4.multiplyByPoint(W,o,new n.Cartesian3)}function z(a,o){var e=a.cartesianToCartographic(o),h=n.Math.toDegrees(e.latitude),s=n.Math.toDegrees(e.longitude),I=e.height;return[s,h,I]}function f(a,o=6){const e=[];for(var h=0;h<a.length-1;h++)e.push(...qs(a[h],a[h+1],o*-1e3,100));return e}function qs(a,o,e,h){var s=[],I=n.Cartographic.fromCartesian(a),W=n.Cartographic.fromCartesian(o),A=I.longitude*180/Math.PI,L=I.latitude*180/Math.PI,i=W.longitude*180/Math.PI,t=W.latitude*180/Math.PI,u=Math.sqrt((A-i)*(A-i)+(L-t)*(L-t)),l=u*e,C=n.Cartesian3.clone(a),d=n.Cartesian3.clone(o),g=n.Cartesian3.distance(C,n.Cartesian3.ZERO),b=n.Cartesian3.distance(d,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(d,d),n.Cartesian3.distance(C,d)==0)return s;var T=n.Cartesian3.angleBetween(C,d);s.push(a);for(var B=1;B<h-1;B++){var P=B*1/(h-1),y=1-P,m=Math.sin(y*T)/Math.sin(T),_=Math.sin(P*T)/Math.sin(T),v=n.Cartesian3.multiplyByScalar(C,m,new n.Cartesian3),k=n.Cartesian3.multiplyByScalar(d,_,new n.Cartesian3),M=n.Cartesian3.add(v,k,new n.Cartesian3),X=P*Math.PI,Y=g*y+b*P+Math.sin(X)*l;M=n.Cartesian3.multiplyByScalar(M,Y,M),s.push(M)}return s.push(o),s}class Js{constructor(){w(this,"LineID","myEntity1");w(this,"Tag","");w(this,"towers",[]);w(this,"ISPhaseSequence",!1);w(this,"Wairnum",0);w(this,"Type",0);w(this,"Trees",[]);w(this,"wireAColor","#FFFFFF");w(this,"wireBColor","#FFFFFF");w(this,"wireCColor","#FFFFFF");w(this,"wireTColor","#FFFFFF");w(this,"wireD1Color","#FFFFFF");w(this,"wireD2Color","#FFFFFF");w(this,"wireWidth",1);w(this,"LineDistanceDisplaymin",0);w(this,"LineDistanceDisplaymax",5e3)}}class Ks{constructor(){w(this,"id","");w(this,"modelid","");w(this,"lon",0);w(this,"lat",0);w(this,"alt",0);w(this,"treeH",0);w(this,"modelurl","");w(this,"treeScale",1)}}class Us{constructor(){w(this,"id","");w(this,"name","");w(this,"type",0);w(this,"Longitude",0);w(this,"Latitude",0);w(this,"Altitude",0);w(this,"RollX",0);w(this,"RollY",90);w(this,"RollZ",0);w(this,"towerScale",1);w(this,"towerHeight",0);w(this,"towerModelUri","");w(this,"towerPoint",[]);w(this,"Insulators",[]);w(this,"DistanceDisplaymin",0);w(this,"DistanceDisplaymax",1e3)}}class Vs{constructor(){w(this,"id","");w(this,"name","");w(this,"type",0);w(this,"WairFX","进");w(this,"linenum",1);w(this,"Wairnum",0);w(this,"PhaseSequence",0);w(this,"RollX",0);w(this,"RollY",0);w(this,"RollZ",0);w(this,"InsulatorScale",1);w(this,"InsulatorLength",0);w(this,"InsulatorModelUri","");w(this,"InsulatorPoint",[]);w(this,"DistanceDisplaymin",0);w(this,"DistanceDisplaymax",500)}}class js{constructor(){w(this,"name","");w(this,"X",-45);w(this,"Y",90);w(this,"Z",0)}}var H=(a=>(a[a.A相=0]="A相",a[a.B相=1]="B相",a[a.C相=2]="C相",a[a.地线1=3]="地线1",a[a.地线2=4]="地线2",a))(H||{}),J=(a=>(a[a.直线塔=0]="直线塔",a[a.耐张塔=1]="耐张塔",a[a.门架塔=2]="门架塔",a[a.换位塔=3]="换位塔",a))(J||{}),Bs=(a=>(a[a.交流单回路=0]="交流单回路",a[a.交流双回路=1]="交流双回路",a[a.直流单回路=2]="直流单回路",a[a.直流双回路=3]="直流双回路",a[a.交流四回路=4]="交流四回路",a))(Bs||{}),ts=(a=>(a[a.地线=0]="地线",a[a.回路一=1]="回路一",a[a.回路二=2]="回路二",a[a.回路三=3]="回路三",a[a.回路四=4]="回路四",a))(ts||{}),O=(a=>(a[a.悬垂串=0]="悬垂串",a[a.耐张串=1]="耐张串",a[a.跳线串=2]="跳线串",a[a.硬跳串=3]="硬跳串",a[a.V串=4]="V串",a[a.地线串=5]="地线串",a[a.绕跳临时=6]="绕跳临时",a))(O||{}),c=(a=>(a[a.单分裂=0]="单分裂",a[a.双分裂=1]="双分裂",a[a.四分裂=2]="四分裂",a[a.六分裂=3]="六分裂",a[a.八分裂=4]="八分裂",a))(c||{});class Qs{constructor(o,e,h){w(this,"viewer");w(this,"LineInfo");w(this,"Keym","");w(this,"dataSource2");w(this,"entityCollection2");w(this,"dataSourcetree");w(this,"entityCollectiontree");w(this,"dataSourceplotting");w(this,"entityCollectionplotting");w(this,"offsetTowers",[]);w(this,"offsetWires11",[]);w(this,"offsetWires12",[]);w(this,"offsetWires13",[]);w(this,"offsetWires21",[]);w(this,"offsetWires22",[]);w(this,"offsetWires23",[]);w(this,"ToffsetArcWires1A",[]);w(this,"ToffsetArcWires2A",[]);w(this,"ToffsetWires1A1",[]);w(this,"ToffsetWires1A2",[]);w(this,"ToffsetArcWires1B",[]);w(this,"ToffsetArcWires2B",[]);w(this,"ToffsetWires1B1",[]);w(this,"ToffsetWires1B2",[]);w(this,"ToffsetArcWires1C",[]);w(this,"ToffsetArcWires2C",[]);w(this,"ToffsetWires1C1",[]);w(this,"ToffsetWires1C2",[]);w(this,"ToffsetArcWires1A2",[]);w(this,"ToffsetArcWires2A2",[]);w(this,"ToffsetWires2A1",[]);w(this,"ToffsetWires2A2",[]);w(this,"ToffsetArcWires1B2",[]);w(this,"ToffsetArcWires2B2",[]);w(this,"ToffsetWires2B1",[]);w(this,"ToffsetWires2B2",[]);w(this,"ToffsetArcWires1C2",[]);w(this,"ToffsetArcWires2C2",[]);w(this,"ToffsetWires2C1",[]);w(this,"ToffsetWires2C2",[]);w(this,"offsetArcWires1A",[]);w(this,"offsetArcWires1B",[]);w(this,"offsetArcWires1C",[]);w(this,"offsetArcWires2A",[]);w(this,"offsetArcWires2B",[]);w(this,"offsetArcWires2C",[]);w(this,"offsetGrouundWires1",[]);w(this,"offsetGrouundWires2",[]);w(this,"offsetGrouundWires11",[]);w(this,"offsetGrouundWires12",[]);w(this,"arcLine1A1",[]);w(this,"arcLine1B1",[]);w(this,"arcLine1D1",[]);w(this,"treeHandler",null);this.Keym=h,this.viewer=o,this.LineInfo=e,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities,this.dataSourcetree=new n.CustomDataSource("tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.dataSourceplotting=new n.CustomDataSource("plotting"),this.entityCollectionplotting=this.dataSourceplotting.entities,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID+"daoxian"),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;this.LineInfo.towers.forEach(h=>{this.offsetTowers.push(n.Cartesian3.fromDegrees(h.Longitude,h.Latitude,h.Altitude))});let o=0,e=0;this.offsetTowers.forEach((h,s)=>{const I=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),n.Math.toRadians(this.LineInfo.towers[s].RollY),n.Math.toRadians(this.LineInfo.towers[s].RollZ));this.entityCollection2.add(K(this.LineInfo.towers[s].id,h,this.LineInfo.towers[s].name,this.LineInfo.towers[s].towerModelUri,I,this.LineInfo.towers[s].towerScale,[this.LineInfo.towers[s].DistanceDisplaymin,this.LineInfo.towers[s].DistanceDisplaymax]));let W=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0),A=0;if(this.LineInfo.towers[s].Insulators.forEach(i=>{if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.type){case O.耐张串:let u=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0);if(i.WairFX=="进"){const b=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(-180),n.Math.toRadians(180)),T=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),u);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}else{const b=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(0),n.Math.toRadians(0)),T=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),u);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}break;case O.跳线串:const l=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),C=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,C,i.name,i.InsulatorModelUri,l,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]));break;case O.地线串:const d=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),g=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,g,i.name,i.InsulatorModelUri,d,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]));break}else{const u=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),l=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,l,i.name,i.InsulatorModelUri,u,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}const t=[];switch(i.InsulatorPoint.forEach(u=>{u.Y=u.Y+this.LineInfo.towers[s].towerPoint[A].Y,u.Z=u.Z+this.LineInfo.towers[s].towerPoint[A].Z,t.push(p(h,new n.Cartesian3(u.X,u.Y,u.Z),W))}),i.linenum){case ts.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.PhaseSequence){case H.A相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.push(t[0]),this.ToffsetWires1A1.push(t[0]);break;case c.双分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]);break;case c.四分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]);break;case c.六分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.offsetWires11.push(t[4]),this.offsetWires11.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A1.push(t[8]),this.ToffsetWires1A1.push(t[9]),this.ToffsetWires1A1.push(t[10]),this.ToffsetWires1A1.push(t[11]);break;case c.八分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.offsetWires11.push(t[4]),this.offsetWires11.push(t[5]),this.offsetWires11.push(t[6]),this.offsetWires11.push(t[7]),this.ToffsetWires1A1.push(t[8]),this.ToffsetWires1A1.push(t[9]),this.ToffsetWires1A1.push(t[10]),this.ToffsetWires1A1.push(t[11]),this.ToffsetWires1A1.push(t[12]),this.ToffsetWires1A1.push(t[13]),this.ToffsetWires1A1.push(t[14]),this.ToffsetWires1A1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(u),this.ToffsetWires1A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires11.push(d),this.offsetWires11.push(g),this.offsetWires11.push(b),this.offsetWires11.push(T),this.ToffsetWires1A2.push(d),this.ToffsetWires1A2.push(g),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires11.push(B),this.offsetWires11.push(P),this.offsetWires11.push(y),this.offsetWires11.push(m),this.offsetWires11.push(_),this.offsetWires11.push(v),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(P),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(_),this.ToffsetWires1A2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires11.push(k),this.offsetWires11.push(M),this.offsetWires11.push(X),this.offsetWires11.push(Y),this.offsetWires11.push(D),this.offsetWires11.push(F),this.offsetWires11.push(R),this.offsetWires11.push(E),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(R),this.ToffsetWires1A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[1]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break;case c.四分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A2.push(t[4]),this.ToffsetWires1A2.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]);break;case c.六分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]);break;case c.八分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]),this.ToffsetWires1A2.push(t[12]),this.ToffsetWires1A2.push(t[13]),this.ToffsetWires1A2.push(t[14]),this.ToffsetWires1A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires12.push(t[0]),this.ToffsetWires1B1.push(t[1]);break;case c.双分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]);break;case c.四分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]);break;case c.六分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]);break;case c.八分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.offsetWires12.push(t[6]),this.offsetWires12.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]),this.ToffsetWires1B1.push(t[12]),this.ToffsetWires1B1.push(t[13]),this.ToffsetWires1B1.push(t[14]),this.ToffsetWires1B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires12.push(u),this.ToffsetWires1B2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires12.push(l),this.offsetWires12.push(C),this.ToffsetWires1B2.push(l),this.ToffsetWires1B2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires12.push(d),this.offsetWires12.push(g),this.offsetWires12.push(b),this.offsetWires12.push(T),this.ToffsetWires1B2.push(d),this.ToffsetWires1B2.push(g),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires12.push(B),this.offsetWires12.push(P),this.offsetWires12.push(y),this.offsetWires12.push(m),this.offsetWires12.push(_),this.offsetWires12.push(v),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(P),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(m),this.ToffsetWires1B2.push(_),this.ToffsetWires1B2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires12.push(k),this.offsetWires12.push(M),this.offsetWires12.push(X),this.offsetWires12.push(Y),this.offsetWires12.push(D),this.offsetWires12.push(F),this.offsetWires12.push(R),this.offsetWires12.push(E),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(R),this.ToffsetWires1B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B2.push(t[0]);break;case c.双分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B2.push(t[2]),this.ToffsetWires1B2.push(t[3]);break;case c.四分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B2.push(t[4]),this.ToffsetWires1B2.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]);break;case c.六分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]);break;case c.八分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]),this.ToffsetWires1B2.push(t[12]),this.ToffsetWires1B2.push(t[13]),this.ToffsetWires1B2.push(t[14]),this.ToffsetWires1B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires13.push(t[0]),this.ToffsetWires1C1.push(t[1]);break;case c.双分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]);break;case c.四分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]);break;case c.六分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]);break;case c.八分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.offsetWires13.push(t[6]),this.offsetWires13.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]),this.ToffsetWires1C1.push(t[12]),this.ToffsetWires1C1.push(t[13]),this.ToffsetWires1C1.push(t[14]),this.ToffsetWires1C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires13.push(u),this.ToffsetWires1C2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires13.push(l),this.offsetWires13.push(C),this.ToffsetWires1C2.push(l),this.ToffsetWires1C2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires13.push(d),this.offsetWires13.push(g),this.offsetWires13.push(b),this.offsetWires13.push(T),this.ToffsetWires1C2.push(d),this.ToffsetWires1C2.push(g),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires13.push(B),this.offsetWires13.push(P),this.offsetWires13.push(y),this.offsetWires13.push(m),this.offsetWires13.push(_),this.offsetWires13.push(v),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(P),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(m),this.ToffsetWires1C2.push(_),this.ToffsetWires1C2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires13.push(k),this.offsetWires13.push(M),this.offsetWires13.push(X),this.offsetWires13.push(Y),this.offsetWires13.push(D),this.offsetWires13.push(F),this.offsetWires13.push(R),this.offsetWires13.push(E),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(R),this.ToffsetWires1C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C2.push(t[0]);break;case c.双分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C2.push(t[2]),this.ToffsetWires1C2.push(t[3]);break;case c.四分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C2.push(t[4]),this.ToffsetWires1C2.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]);break;case c.六分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]);break;case c.八分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]),this.ToffsetWires1C2.push(t[12]),this.ToffsetWires1C2.push(t[13]),this.ToffsetWires1C2.push(t[14]),this.ToffsetWires1C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(u=>{this.offsetWires11.push(u)});break;case H.B相:t.forEach(u=>{this.offsetWires12.push(u)});break;case H.C相:t.forEach(u=>{this.offsetWires13.push(u)});break}else if(this.LineInfo.towers[s].type==J.耐张塔)switch(A){case 2:switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.push(t[0]),this.ToffsetWires1A1.push(t[0]);break;case c.双分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[0]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(u),this.ToffsetWires1A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break}break;case 5:t.forEach(u=>{this.offsetWires12.push(u),this.ToffsetWires1B1.push(u)});break;case 6:t.forEach(u=>{this.ToffsetWires1B1.push(u),this.ToffsetWires1B2.push(u)});break;case 7:i.InsulatorPoint.forEach(u=>{const l=p(h,new n.Cartesian3(u.X*-1,u.Y,u.Z),W);this.offsetWires12.push(l),this.ToffsetWires1B2.push(l)});break;case 8:t.forEach(u=>{this.offsetWires13.push(u),this.ToffsetWires1C1.push(u)});break;case 9:t.forEach(u=>{this.ToffsetWires1C1.push(u),this.ToffsetWires1C2.push(u)});break;case 10:i.InsulatorPoint.forEach(u=>{const l=p(h,new n.Cartesian3(u.X*-1,u.Y,u.Z),W);this.offsetWires13.push(l),this.ToffsetWires1C2.push(l)});break}else switch(A){case 2:t.forEach(u=>{this.offsetWires11.push(u)});break;case 3:t.forEach(u=>{this.offsetWires12.push(u)});break;case 4:t.forEach(u=>{this.offsetWires13.push(u)});break}break;case ts.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.PhaseSequence){case H.A相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires21.push(t[0]),this.ToffsetWires2A1.push(t[0]);break;case c.双分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]);break;case c.四分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]);break;case c.六分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.offsetWires21.push(t[4]),this.offsetWires21.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A1.push(t[8]),this.ToffsetWires2A1.push(t[9]),this.ToffsetWires2A1.push(t[10]),this.ToffsetWires2A1.push(t[11]);break;case c.八分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.offsetWires21.push(t[4]),this.offsetWires21.push(t[5]),this.offsetWires21.push(t[6]),this.offsetWires21.push(t[7]),this.ToffsetWires2A1.push(t[8]),this.ToffsetWires2A1.push(t[9]),this.ToffsetWires2A1.push(t[10]),this.ToffsetWires2A1.push(t[11]),this.ToffsetWires2A1.push(t[12]),this.ToffsetWires2A1.push(t[13]),this.ToffsetWires2A1.push(t[14]),this.ToffsetWires2A1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(u),this.ToffsetWires2A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires21.push(l),this.offsetWires21.push(C),this.ToffsetWires2A2.push(l),this.ToffsetWires2A2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires21.push(d),this.offsetWires21.push(g),this.offsetWires21.push(b),this.offsetWires21.push(T),this.ToffsetWires2A2.push(d),this.ToffsetWires2A2.push(g),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires21.push(B),this.offsetWires21.push(P),this.offsetWires21.push(y),this.offsetWires21.push(m),this.offsetWires21.push(_),this.offsetWires21.push(v),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(P),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(m),this.ToffsetWires2A2.push(_),this.ToffsetWires2A2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires21.push(k),this.offsetWires21.push(M),this.offsetWires21.push(X),this.offsetWires21.push(Y),this.offsetWires21.push(D),this.offsetWires21.push(F),this.offsetWires21.push(R),this.offsetWires21.push(E),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(R),this.ToffsetWires2A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case c.双分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A2.push(t[2]),this.ToffsetWires2A2.push(t[3]);break;case c.四分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A2.push(t[4]),this.ToffsetWires2A2.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]);break;case c.六分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]);break;case c.八分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]),this.ToffsetWires2A2.push(t[12]),this.ToffsetWires2A2.push(t[13]),this.ToffsetWires2A2.push(t[14]),this.ToffsetWires2A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case c.双分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]);break;case c.四分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]);break;case c.六分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]);break;case c.八分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.offsetWires22.push(t[6]),this.offsetWires22.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]),this.ToffsetWires2B1.push(t[12]),this.ToffsetWires2B1.push(t[13]),this.ToffsetWires2B1.push(t[14]),this.ToffsetWires2B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(u),this.ToffsetWires2B2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires22.push(l),this.offsetWires22.push(C),this.ToffsetWires2B2.push(l),this.ToffsetWires2B2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires22.push(d),this.offsetWires22.push(g),this.offsetWires22.push(b),this.offsetWires22.push(T),this.ToffsetWires2B2.push(d),this.ToffsetWires2B2.push(g),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires22.push(B),this.offsetWires22.push(P),this.offsetWires22.push(y),this.offsetWires22.push(m),this.offsetWires22.push(_),this.offsetWires22.push(v),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(P),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(m),this.ToffsetWires2B2.push(_),this.ToffsetWires2B2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires22.push(k),this.offsetWires22.push(M),this.offsetWires22.push(X),this.offsetWires22.push(Y),this.offsetWires22.push(D),this.offsetWires22.push(F),this.offsetWires22.push(R),this.offsetWires22.push(E),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(R),this.ToffsetWires2B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case c.双分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B2.push(t[2]),this.ToffsetWires2B2.push(t[3]);break;case c.四分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B2.push(t[4]),this.ToffsetWires2B2.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]);break;case c.六分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]);break;case c.八分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]),this.ToffsetWires2B2.push(t[12]),this.ToffsetWires2B2.push(t[13]),this.ToffsetWires2B2.push(t[14]),this.ToffsetWires2B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case c.双分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]);break;case c.四分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]);break;case c.六分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]);break;case c.八分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.offsetWires23.push(t[6]),this.offsetWires23.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]),this.ToffsetWires2C1.push(t[12]),this.ToffsetWires2C1.push(t[13]),this.ToffsetWires2C1.push(t[14]),this.ToffsetWires2C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(u),this.ToffsetWires2C2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires23.push(l),this.offsetWires23.push(C),this.ToffsetWires2C2.push(l),this.ToffsetWires2C2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires23.push(d),this.offsetWires23.push(g),this.offsetWires23.push(b),this.offsetWires23.push(T),this.ToffsetWires2C2.push(d),this.ToffsetWires2C2.push(g),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires23.push(B),this.offsetWires23.push(P),this.offsetWires23.push(y),this.offsetWires23.push(m),this.offsetWires23.push(_),this.offsetWires23.push(v),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(P),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(m),this.ToffsetWires2C2.push(_),this.ToffsetWires2C2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires23.push(k),this.offsetWires23.push(M),this.offsetWires23.push(X),this.offsetWires23.push(Y),this.offsetWires23.push(D),this.offsetWires23.push(F),this.offsetWires23.push(R),this.offsetWires23.push(E),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(R),this.ToffsetWires2C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case c.双分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C2.push(t[2]),this.ToffsetWires2C2.push(t[3]);break;case c.四分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C2.push(t[4]),this.ToffsetWires2C2.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]);break;case c.六分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]);break;case c.八分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]),this.ToffsetWires2C2.push(t[12]),this.ToffsetWires2C2.push(t[13]),this.ToffsetWires2C2.push(t[14]),this.ToffsetWires2C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(u=>{this.offsetWires21.push(u)});break;case H.B相:t.forEach(u=>{this.offsetWires22.push(u)});break;case H.C相:t.forEach(u=>{this.offsetWires23.push(u)});break}else if(this.LineInfo.towers[s].type==J.耐张塔)switch(A){case 11:this.offsetWires21.push(t[0]),this.ToffsetWires2A1.push(t[0]);break;case 12:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case 13:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(u),this.ToffsetWires2A2.push(u);break;case 14:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case 15:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case 16:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(l),this.ToffsetWires2B2.push(l);break;case 17:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case 18:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case 19:const C=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(C),this.ToffsetWires2C2.push(C);break}else switch(A){case 5:t.forEach(u=>{this.offsetWires21.push(u)});break;case 6:t.forEach(u=>{this.offsetWires22.push(u)});break;case 7:t.forEach(u=>{this.offsetWires23.push(u)});break}break;case ts.地线:if(this.LineInfo.ISPhaseSequence)switch(i.PhaseSequence){case H.地线1:this.offsetGrouundWires11.push(t[0]);break;case H.地线2:this.offsetGrouundWires12.push(t[0]);break}else switch(A){case 0:this.offsetGrouundWires11.push(t[0]);break;case 1:this.offsetGrouundWires12.push(t[0]);break}break}A=A+1}),this.offsetWires11.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.length>=2&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(i),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.双分裂:this.offsetWires11.length>=4&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.四分裂:this.offsetWires11.length>=8&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.六分裂:this.offsetWires11.length>=12&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires11[o+4]),C.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(C),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[o+5]),d.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(d),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.八分裂:this.offsetWires11.length>=16&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-8]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-7]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires11[o+4]),C.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(C),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[o+5]),d.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(d),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires11[o+6]),g.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(g),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires11[o+7]),b.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(b),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))});break;case c.双分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires12[o+4]),C.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(C),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[o+5]),d.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(d),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-8]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-7]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires12[o+4]),C.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(C),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[o+5]),d.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(d),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires12[o+6]),g.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(g),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires12[o+7]),b.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(b),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+4]),C.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(C),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[o+5]),d.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(d),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-8]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-7]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+4]),C.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(C),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[o+5]),d.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(d),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires13[o+6]),g.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(g),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires13[o+7]),b.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(b),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+4]),C.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(C),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[o+5]),d.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(d),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-8]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-7]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+4]),C.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(C),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[o+5]),d.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(d),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires21[o+6]),g.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(g),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires21[o+7]),b.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(b),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+4]),C.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(C),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[o+5]),d.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(d),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-8]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-7]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+4]),C.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(C),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[o+5]),d.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(d),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires22[o+6]),g.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(g),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires22[o+7]),b.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(b),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+4]),C.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(C),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[o+5]),d.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(d),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-8]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-7]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+4]),C.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(C),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[o+5]),d.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(d),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires23[o+6]),g.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(g),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires23[o+7]),b.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(b),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const i=[];i.push(this.offsetGrouundWires11[s]),i.push(this.offsetGrouundWires11[s-1]);const t=[];t.push(this.offsetGrouundWires12[s]),t.push(this.offsetGrouundWires12[s-1]),this.offsetGrouundWires1=f(i,2),this.offsetGrouundWires2=f(t,2),this.offsetGrouundWires1.forEach(u=>{this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid,u))}),this.entityCollection2.add(r(this.offsetGrouundWires1,"地线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(r(this.offsetGrouundWires2,"地线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}let L=2;if(this.LineInfo.towers[s].type==J.耐张塔){switch(this.LineInfo.Wairnum){case c.单分裂:o=o+L,e=e+L;break;case c.双分裂:o=o+L*2,e=e+L*2;break;case c.四分裂:o=o+L*4,e=e+L*4;break;case c.六分裂:o=o+L*6,e=e+L*6;break;case c.八分裂:o=o+L*8,e=e+L*8;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.length>=2&&(i.push(this.ToffsetWires1A1[e-2]),i.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(T.push(this.ToffsetWires1A2[e-2]),T.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1A1.length>=4&&(i.push(this.ToffsetWires1A1[e-4]),i.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-3]),t.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(T.push(this.ToffsetWires1A2[e-4]),T.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-3]),B.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1A1.length>=8&&(i.push(this.ToffsetWires1A1[e-8]),i.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-7]),t.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-6]),u.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-5]),l.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(T.push(this.ToffsetWires1A2[e-8]),T.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-7]),B.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-6]),P.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-5]),y.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1A1.length>=12&&(i.push(this.ToffsetWires1A1[e-12]),i.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-11]),t.push(this.ToffsetWires1A1[e-5]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-10]),u.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-9]),l.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[e-8]),C.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[e-7]),d.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(T.push(this.ToffsetWires1A2[e-12]),T.push(this.ToffsetWires1A2[e-6]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-11]),B.push(this.ToffsetWires1A2[e-5]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-10]),P.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-9]),y.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A2[e-8]),m.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[e-7]),_.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1A1.length>=16&&(i.push(this.ToffsetWires1A1[e-16]),i.push(this.ToffsetWires1A1[e-8]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-15]),t.push(this.ToffsetWires1A1[e-7]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-14]),u.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-13]),l.push(this.ToffsetWires1A1[e-5]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[e-12]),C.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[e-11]),d.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A1[e-10]),g.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A1[e-9]),b.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(T.push(this.ToffsetWires1A2[e-16]),T.push(this.ToffsetWires1A2[e-8]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-15]),B.push(this.ToffsetWires1A2[e-7]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-14]),P.push(this.ToffsetWires1A2[e-6]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-13]),y.push(this.ToffsetWires1A2[e-5]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A2[e-12]),m.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[e-11]),_.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[e-10]),v.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1A2[e-9]),k.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.length>=2&&(i.push(this.ToffsetWires1B1[e-2]),i.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(T.push(this.ToffsetWires1B2[e-2]),T.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1B1.length>=4&&(i.push(this.ToffsetWires1B1[e-4]),i.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-3]),t.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(T.push(this.ToffsetWires1B2[e-4]),T.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-3]),B.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1B1.length>=8&&(i.push(this.ToffsetWires1B1[e-8]),i.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-7]),t.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-6]),u.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-5]),l.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(T.push(this.ToffsetWires1B2[e-8]),T.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-7]),B.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-6]),P.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-5]),y.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1B1.length>=12&&(i.push(this.ToffsetWires1B1[e-12]),i.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-11]),t.push(this.ToffsetWires1B1[e-5]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-10]),u.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-9]),l.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[e-8]),C.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[e-7]),d.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(T.push(this.ToffsetWires1B2[e-12]),T.push(this.ToffsetWires1B2[e-6]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-11]),B.push(this.ToffsetWires1B2[e-5]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-10]),P.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-9]),y.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B2[e-8]),m.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[e-7]),_.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1B1.length>=16&&(i.push(this.ToffsetWires1B1[e-16]),i.push(this.ToffsetWires1B1[e-8]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-15]),t.push(this.ToffsetWires1B1[e-7]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-14]),u.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-13]),l.push(this.ToffsetWires1B1[e-5]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[e-12]),C.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[e-11]),d.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B1[e-10]),g.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B1[e-9]),b.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(T.push(this.ToffsetWires1B2[e-16]),T.push(this.ToffsetWires1B2[e-8]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-15]),B.push(this.ToffsetWires1B2[e-7]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-14]),P.push(this.ToffsetWires1B2[e-6]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-13]),y.push(this.ToffsetWires1B2[e-5]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B2[e-12]),m.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[e-11]),_.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[e-10]),v.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1B2[e-9]),k.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.length>=2&&(i.push(this.ToffsetWires1C1[e-2]),i.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(T.push(this.ToffsetWires1C2[e-2]),T.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1C1.length>=4&&(i.push(this.ToffsetWires1C1[e-4]),i.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-3]),t.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(T.push(this.ToffsetWires1C2[e-4]),T.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-3]),B.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1C1.length>=8&&(i.push(this.ToffsetWires1C1[e-8]),i.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-7]),t.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-6]),u.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-5]),l.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(T.push(this.ToffsetWires1C2[e-8]),T.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-7]),B.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-6]),P.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-5]),y.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1C1.length>=12&&(i.push(this.ToffsetWires1C1[e-12]),i.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-11]),t.push(this.ToffsetWires1C1[e-5]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-10]),u.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-9]),l.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[e-8]),C.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[e-7]),d.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(T.push(this.ToffsetWires1C2[e-12]),T.push(this.ToffsetWires1C2[e-6]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-11]),B.push(this.ToffsetWires1C2[e-5]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-10]),P.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-9]),y.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C2[e-8]),m.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[e-7]),_.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1C1.length>=16&&(i.push(this.ToffsetWires1C1[e-16]),i.push(this.ToffsetWires1C1[e-8]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-15]),t.push(this.ToffsetWires1C1[e-7]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-14]),u.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-13]),l.push(this.ToffsetWires1C1[e-5]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[e-12]),C.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[e-11]),d.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C1[e-10]),g.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C1[e-9]),b.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(T.push(this.ToffsetWires1C2[e-16]),T.push(this.ToffsetWires1C2[e-8]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-15]),B.push(this.ToffsetWires1C2[e-7]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-14]),P.push(this.ToffsetWires1C2[e-6]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-13]),y.push(this.ToffsetWires1C2[e-5]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C2[e-12]),m.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[e-11]),_.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[e-10]),v.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1C2[e-9]),k.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.length>=2&&(i.push(this.ToffsetWires2A1[e-2]),i.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(T.push(this.ToffsetWires2A2[e-2]),T.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2A1.length>=4&&(i.push(this.ToffsetWires2A1[e-4]),i.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-3]),t.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(T.push(this.ToffsetWires2A2[e-4]),T.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-3]),B.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2A1.length>=8&&(i.push(this.ToffsetWires2A1[e-8]),i.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-7]),t.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-6]),u.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-5]),l.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(T.push(this.ToffsetWires2A2[e-8]),T.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-7]),B.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-6]),P.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-5]),y.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2A1.length>=12&&(i.push(this.ToffsetWires2A1[e-12]),i.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-11]),t.push(this.ToffsetWires2A1[e-5]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-10]),u.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-9]),l.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[e-8]),C.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[e-7]),d.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(T.push(this.ToffsetWires2A2[e-12]),T.push(this.ToffsetWires2A2[e-6]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-11]),B.push(this.ToffsetWires2A2[e-5]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-10]),P.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-9]),y.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A2[e-8]),m.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[e-7]),_.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2A1.length>=16&&(i.push(this.ToffsetWires2A1[e-16]),i.push(this.ToffsetWires2A1[e-8]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-15]),t.push(this.ToffsetWires2A1[e-7]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-14]),u.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-13]),l.push(this.ToffsetWires2A1[e-5]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[e-12]),C.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[e-11]),d.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A1[e-10]),g.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A1[e-9]),b.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(T.push(this.ToffsetWires2A2[e-16]),T.push(this.ToffsetWires2A2[e-8]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-15]),B.push(this.ToffsetWires2A2[e-7]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-14]),P.push(this.ToffsetWires2A2[e-6]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-13]),y.push(this.ToffsetWires2A2[e-5]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A2[e-12]),m.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[e-11]),_.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[e-10]),v.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2A2[e-9]),k.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.length>=2&&(i.push(this.ToffsetWires2B1[e-2]),i.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(T.push(this.ToffsetWires2B2[e-2]),T.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2B1.length>=4&&(i.push(this.ToffsetWires2B1[e-4]),i.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-3]),t.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(T.push(this.ToffsetWires2B2[e-4]),T.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-3]),B.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2B1.length>=8&&(i.push(this.ToffsetWires2B1[e-8]),i.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-7]),t.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-6]),u.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-5]),l.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(T.push(this.ToffsetWires2B2[e-8]),T.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-7]),B.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-6]),P.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-5]),y.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2B1.length>=12&&(i.push(this.ToffsetWires2B1[e-12]),i.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-11]),t.push(this.ToffsetWires2B1[e-5]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-10]),u.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-9]),l.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[e-8]),C.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[e-7]),d.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(T.push(this.ToffsetWires2B2[e-12]),T.push(this.ToffsetWires2B2[e-6]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-11]),B.push(this.ToffsetWires2B2[e-5]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-10]),P.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-9]),y.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B2[e-8]),m.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[e-7]),_.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2B1.length>=16&&(i.push(this.ToffsetWires2B1[e-16]),i.push(this.ToffsetWires2B1[e-8]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-15]),t.push(this.ToffsetWires2B1[e-7]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-14]),u.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-13]),l.push(this.ToffsetWires2B1[e-5]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[e-12]),C.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[e-11]),d.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B1[e-10]),g.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B1[e-9]),b.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(T.push(this.ToffsetWires2B2[e-16]),T.push(this.ToffsetWires2B2[e-8]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-15]),B.push(this.ToffsetWires2B2[e-7]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-14]),P.push(this.ToffsetWires2B2[e-6]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-13]),y.push(this.ToffsetWires2B2[e-5]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B2[e-12]),m.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[e-11]),_.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[e-10]),v.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2B2[e-9]),k.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.length>=2&&(i.push(this.ToffsetWires2C1[e-2]),i.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(T.push(this.ToffsetWires2C2[e-2]),T.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2C1.length>=4&&(i.push(this.ToffsetWires2C1[e-4]),i.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-3]),t.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(T.push(this.ToffsetWires2C2[e-4]),T.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-3]),B.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2C1.length>=8&&(i.push(this.ToffsetWires2C1[e-8]),i.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-7]),t.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-6]),u.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-5]),l.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(T.push(this.ToffsetWires2C2[e-8]),T.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-7]),B.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-6]),P.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-5]),y.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2C1.length>=12&&(i.push(this.ToffsetWires2C1[e-12]),i.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-11]),t.push(this.ToffsetWires2C1[e-5]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-10]),u.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-9]),l.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[e-8]),C.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[e-7]),d.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(T.push(this.ToffsetWires2C2[e-12]),T.push(this.ToffsetWires2C2[e-6]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-11]),B.push(this.ToffsetWires2C2[e-5]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-10]),P.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-9]),y.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C2[e-8]),m.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[e-7]),_.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2C1.length>=16&&(i.push(this.ToffsetWires2C1[e-16]),i.push(this.ToffsetWires2C1[e-8]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-15]),t.push(this.ToffsetWires2C1[e-7]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-14]),u.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-13]),l.push(this.ToffsetWires2C1[e-5]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[e-12]),C.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[e-11]),d.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C1[e-10]),g.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C1[e-9]),b.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(T.push(this.ToffsetWires2C2[e-16]),T.push(this.ToffsetWires2C2[e-8]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-15]),B.push(this.ToffsetWires2C2[e-7]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-14]),P.push(this.ToffsetWires2C2[e-6]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-13]),y.push(this.ToffsetWires2C2[e-5]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C2[e-12]),m.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[e-11]),_.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[e-10]),v.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2C2[e-9]),k.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case c.单分裂:o=o+1;break;case c.双分裂:o=o+2;break;case c.四分裂:o=o+4;break;case c.六分裂:o=o+6;break;case c.八分裂:o=o+8;break}})}addTreeData(o){this.LineInfo.Trees.push(o)}loadTree(){this.LineInfo.Trees.forEach(o=>{const e=n.Cartesian3.fromDegrees(o.lon,o.lat,0);this.entityCollectiontree.add({id:"tree-"+o.id,position:e,model:{show:!0,uri:o.modelurl,scale:o.treeH/o.treeScale,incrementallyLoadTextures:!0,runAnimations:!0,clampAnimations:!0,shadows:n.ShadowMode.DISABLED,heightReference:n.HeightReference.RELATIVE_TO_GROUND,silhouetteColor:n.Color.RED,silhouetteSize:0,color:n.Color.WHITE,colorBlendMode:n.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.5,imageBasedLightingFactor:new n.Cartesian2(1,1),lightColor:void 0}})})}calcResult(o){const e=zs(o,this.arcLine1A1,this.arcLine1B1,this.arcLine1D1);$s(o,e,this.entityCollectionplotting)}loadTreeListen(){this.treeHandler&&this.removeTreeListen();const o=(e,h)=>{var I;const s=e.scene.pick(h);if(n.defined(s)){const W=n.defaultValue(s.id,(I=s.primitive)==null?void 0:I.id);if(W instanceof n.Entity)return W}};this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(e=>{var s;const h=o(this.viewer,e.position);if(h&&h.id&&h.id.startsWith("tree-")){const I=h.id.replace("tree-",""),W=(s=this.LineInfo.Trees)==null?void 0:s.find(A=>{var L;return((L=A.id)==null?void 0:L.toString())===I});if(W){const A=[W.lon,W.lat,Number(W.lat||0)+Number(W.treeH||0)];console.log("拾取树木:",W,"坐标:",A),this.calcResult(A)}}},n.ScreenSpaceEventType.LEFT_CLICK),this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.viewer.dataSources.remove(this.dataSourceplotting),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.LineInfo.Trees.forEach(o=>{if(o){const e=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(e)}}),this.viewer.dataSources.add(this.dataSourceplotting)}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.entityCollection2.show=!0)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSourcetree),this.entityCollectiontree.show=!0)}RemoveTreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSourcetree),this.entityCollectiontree.show=!1)}LineSpriteLineinit(){n.Material._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new n.Color(1,1,0,1),speed:2},source:`
2
2
  uniform vec4 color;
3
3
  const float pi = 3.1415926;
4
4
  czm_material czm_getMaterial(czm_materialInput materialInput)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ow-eengine-power",
3
3
  "private": false,
4
- "version": "2.3.9",
4
+ "version": "2.4.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",