ow-eengine-power 2.4.3 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OW_EEngine_Power.js +75 -131
- package/dist/OW_EEngine_Power.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -625,9 +625,9 @@ const Us = (a, o, i) => {
|
|
|
625
625
|
else if (C == o.length - 1)
|
|
626
626
|
W.push(o[o.length - 2], o[o.length - 1]);
|
|
627
627
|
else {
|
|
628
|
-
const S = [o[C], o[C + 1]],
|
|
629
|
-
var L = fs(r, J(S), j), p = fs(r, J(
|
|
630
|
-
W = L > p ?
|
|
628
|
+
const S = [o[C], o[C + 1]], X = [o[C - 1], o[C]];
|
|
629
|
+
var L = fs(r, J(S), j), p = fs(r, J(X), j);
|
|
630
|
+
W = L > p ? X : S;
|
|
631
631
|
}
|
|
632
632
|
console.log("附近的点", C, W);
|
|
633
633
|
const d = J([W[0].slice(0, 2), W[1].slice(0, 2)]), t = U(W[0].slice(0, 2)), l = U(W[1].slice(0, 2));
|
|
@@ -647,7 +647,7 @@ const Us = (a, o, i) => {
|
|
|
647
647
|
U([a[0], a[1]]),
|
|
648
648
|
U([c[0], c[1]])
|
|
649
649
|
).geometry.coordinates;
|
|
650
|
-
const
|
|
650
|
+
const Y = {
|
|
651
651
|
position: n.Cartesian3.fromDegrees(
|
|
652
652
|
Z[0],
|
|
653
653
|
Z[1],
|
|
@@ -664,7 +664,7 @@ const Us = (a, o, i) => {
|
|
|
664
664
|
}
|
|
665
665
|
}, R = [];
|
|
666
666
|
R.push(k), R.push(M);
|
|
667
|
-
var
|
|
667
|
+
var F = {
|
|
668
668
|
polyline: {
|
|
669
669
|
show: !0,
|
|
670
670
|
// 定义线条的 Cartesian3 位置的数组
|
|
@@ -692,7 +692,7 @@ const Us = (a, o, i) => {
|
|
|
692
692
|
// zIndex: 0,
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
i.add(
|
|
695
|
+
i.add(Y), i.add(F);
|
|
696
696
|
};
|
|
697
697
|
function os(a, o) {
|
|
698
698
|
const i = U(a.slice(0, 2)), r = [];
|
|
@@ -725,7 +725,7 @@ function B(a, o, i, r, s) {
|
|
|
725
725
|
new n.Cartesian3()
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function $(a, o) {
|
|
729
729
|
var i = a.cartesianToCartographic(o), r = n.Math.toDegrees(i.latitude), s = n.Math.toDegrees(i.longitude), C = i.height;
|
|
730
730
|
return [s, r, C];
|
|
731
731
|
}
|
|
@@ -766,10 +766,10 @@ function Qs(a, o, i, r) {
|
|
|
766
766
|
v,
|
|
767
767
|
k,
|
|
768
768
|
new n.Cartesian3()
|
|
769
|
-
), Z = P * Math.PI,
|
|
769
|
+
), Z = P * Math.PI, E = c * g + m * P + Math.sin(Z) * u;
|
|
770
770
|
M = n.Cartesian3.multiplyByScalar(
|
|
771
771
|
M,
|
|
772
|
-
|
|
772
|
+
E,
|
|
773
773
|
M
|
|
774
774
|
), s.push(M);
|
|
775
775
|
}
|
|
@@ -958,7 +958,7 @@ class ci {
|
|
|
958
958
|
w(this, "Z", 0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
var z = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(z || {}),
|
|
961
|
+
var z = /* @__PURE__ */ ((a) => (a[a.A相 = 0] = "A相", a[a.B相 = 1] = "B相", a[a.C相 = 2] = "C相", a[a.地线1 = 3] = "地线1", a[a.地线2 = 4] = "地线2", a))(z || {}), q = /* @__PURE__ */ ((a) => (a[a.直线塔 = 0] = "直线塔", a[a.耐张塔 = 1] = "耐张塔", a[a.门架塔 = 2] = "门架塔", a[a.换位塔 = 3] = "换位塔", a))(q || {}), si = /* @__PURE__ */ ((a) => (a[a.交流单回路 = 0] = "交流单回路", a[a.交流双回路 = 1] = "交流双回路", a[a.直流单回路 = 2] = "直流单回路", a[a.直流双回路 = 3] = "直流双回路", a[a.交流四回路 = 4] = "交流四回路", a))(si || {}), rs = /* @__PURE__ */ ((a) => (a[a.地线 = 0] = "地线", a[a.回路一 = 1] = "回路一", a[a.回路二 = 2] = "回路二", a[a.回路三 = 3] = "回路三", a[a.回路四 = 4] = "回路四", a))(rs || {}), D = /* @__PURE__ */ ((a) => (a[a.悬垂串 = 0] = "悬垂串", a[a.耐张串 = 1] = "耐张串", a[a.跳线串 = 2] = "跳线串", a[a.硬跳串 = 3] = "硬跳串", a[a.V串 = 4] = "V串", a[a.地线串 = 5] = "地线串", a[a.绕跳临时 = 6] = "绕跳临时", a))(D || {}), A = /* @__PURE__ */ ((a) => (a[a.单分裂 = 0] = "单分裂", a[a.双分裂 = 1] = "双分裂", a[a.四分裂 = 2] = "四分裂", a[a.六分裂 = 3] = "六分裂", a[a.八分裂 = 4] = "八分裂", a))(A || {});
|
|
962
962
|
class Ti {
|
|
963
963
|
// private arcLine1D2: Cesium.Cartesian3[]= [];
|
|
964
964
|
// 类的构造函数,用于初始化属性
|
|
@@ -1164,27 +1164,6 @@ class Ti {
|
|
|
1164
1164
|
const { start: o, end: i } = this.getVisibleTowerIndices();
|
|
1165
1165
|
this.loadTowersInRange(o, i);
|
|
1166
1166
|
}
|
|
1167
|
-
/**
|
|
1168
|
-
* 根据相机距离动态调整模型显隐距离(可选的高级优化)
|
|
1169
|
-
* 在大型场景中,可以根据当前视图范围动态调整显示距离
|
|
1170
|
-
*/
|
|
1171
|
-
// private getDynamicDisplayDistance(baseMin: number, baseMax: number): [number, number] {
|
|
1172
|
-
// if (!this.viewer.camera) {
|
|
1173
|
-
// return [baseMin, baseMax];
|
|
1174
|
-
// }
|
|
1175
|
-
// // 获取当前相机高度
|
|
1176
|
-
// const cameraHeight = this.viewer.camera.positionCartographic?.height || 0;
|
|
1177
|
-
// // 根据相机高度动态调整显示距离
|
|
1178
|
-
// if (cameraHeight > 100000) { // 超过100km高度
|
|
1179
|
-
// return [0, 10000]; // 只显示最近10km的模型
|
|
1180
|
-
// } else if (cameraHeight > 50000) { // 超过50km高度
|
|
1181
|
-
// return [0, 20000]; // 只显示最近20km的模型
|
|
1182
|
-
// } else if (cameraHeight > 10000) { // 超过10km高度
|
|
1183
|
-
// return [0, 30000]; // 只显示最近30km的模型
|
|
1184
|
-
// } else {
|
|
1185
|
-
// return [baseMin, Math.min(baseMax, 50000)]; // 正常情况,限制最大50km
|
|
1186
|
-
// }
|
|
1187
|
-
// }
|
|
1188
1167
|
/**
|
|
1189
1168
|
* 初始化线路数据(不立即加载所有实体,避免性能问题)
|
|
1190
1169
|
*/
|
|
@@ -1207,7 +1186,7 @@ class Ti {
|
|
|
1207
1186
|
}
|
|
1208
1187
|
for (let i = 0; i < o; i++) {
|
|
1209
1188
|
let r = 0;
|
|
1210
|
-
if (this.LineInfo.towers[i].type ===
|
|
1189
|
+
if (this.LineInfo.towers[i].type === q.耐张塔)
|
|
1211
1190
|
if (i === 0)
|
|
1212
1191
|
r = (as(this.LineInfo.towers, i, 3) - 90 + 360) % 360;
|
|
1213
1192
|
else if (i === o - 1)
|
|
@@ -1275,22 +1254,22 @@ class Ti {
|
|
|
1275
1254
|
this.LineInfo.towers[o].towerPoint[W].Y,
|
|
1276
1255
|
this.LineInfo.towers[o].towerPoint[W].Z
|
|
1277
1256
|
),
|
|
1278
|
-
this.LineInfo.towers[o].type ===
|
|
1257
|
+
this.LineInfo.towers[o].type === q.耐张塔 ? C : s
|
|
1279
1258
|
);
|
|
1280
1259
|
let t, l;
|
|
1281
|
-
if (this.autoCalculateRollX ?
|
|
1260
|
+
if (this.autoCalculateRollX ? l = this.LineInfo.towers[o].RollX : l = p.RollX, this.LineInfo.towers[o].type === q.耐张塔)
|
|
1282
1261
|
switch (p.type) {
|
|
1283
|
-
case
|
|
1262
|
+
case D.耐张串:
|
|
1284
1263
|
t = p.WairFX === "进" ? new n.HeadingPitchRoll(n.Math.toRadians(l), n.Math.toRadians(-180), n.Math.toRadians(180)) : new n.HeadingPitchRoll(n.Math.toRadians(l), n.Math.toRadians(0), n.Math.toRadians(0));
|
|
1285
1264
|
break;
|
|
1286
|
-
case
|
|
1265
|
+
case D.跳线串:
|
|
1287
1266
|
t = new n.HeadingPitchRoll(
|
|
1288
1267
|
n.Math.toRadians(l),
|
|
1289
1268
|
n.Math.toRadians(p.RollY),
|
|
1290
1269
|
n.Math.toRadians(p.RollZ)
|
|
1291
1270
|
);
|
|
1292
1271
|
break;
|
|
1293
|
-
case
|
|
1272
|
+
case D.地线串:
|
|
1294
1273
|
t = new n.HeadingPitchRoll(
|
|
1295
1274
|
n.Math.toRadians(l),
|
|
1296
1275
|
n.Math.toRadians(p.RollY),
|
|
@@ -1344,41 +1323,6 @@ class Ti {
|
|
|
1344
1323
|
resetWireArraysForTwoTowers() {
|
|
1345
1324
|
this.offsetWires11 = [], this.offsetWires12 = [], this.offsetWires13 = [], this.offsetWires21 = [], this.offsetWires22 = [], this.offsetWires23 = [], this.ToffsetWires1A1 = [], this.ToffsetWires1A2 = [];
|
|
1346
1325
|
}
|
|
1347
|
-
// /**
|
|
1348
|
-
// * 处理单个塔的挂点信息并存储到全局数组(动态加载版本)
|
|
1349
|
-
// */
|
|
1350
|
-
// private processTowerWirePointsForDynamicLoading(towerIndex: number, wirePoints: any[]) {
|
|
1351
|
-
// // 这里需要实现原始的switch-case逻辑
|
|
1352
|
-
// // 由于复杂性,建议在实际项目中完整复制原始代码
|
|
1353
|
-
// // 目前先提供框架
|
|
1354
|
-
// }
|
|
1355
|
-
// /**
|
|
1356
|
-
// * 获取塔在导线数组中的索引
|
|
1357
|
-
// */
|
|
1358
|
-
// private getWireArrayIndexForTower(towerIndex: number): number {
|
|
1359
|
-
// // 根据分裂导线类型计算索引
|
|
1360
|
-
// switch(this.LineInfo.Wairnum) {
|
|
1361
|
-
// case WairnumType.单分裂:
|
|
1362
|
-
// return towerIndex;
|
|
1363
|
-
// case WairnumType.双分裂:
|
|
1364
|
-
// return towerIndex * 2;
|
|
1365
|
-
// case WairnumType.四分裂:
|
|
1366
|
-
// return towerIndex * 4;
|
|
1367
|
-
// case WairnumType.六分裂:
|
|
1368
|
-
// return towerIndex * 6;
|
|
1369
|
-
// case WairnumType.八分裂:
|
|
1370
|
-
// return towerIndex * 8;
|
|
1371
|
-
// default:
|
|
1372
|
-
// return towerIndex;
|
|
1373
|
-
// }
|
|
1374
|
-
// }
|
|
1375
|
-
// /**
|
|
1376
|
-
// * 绘制两个塔之间的导线(需要完整实现原始逻辑)
|
|
1377
|
-
// */
|
|
1378
|
-
// private drawWiresForTowerPair(towerIndex1: number, towerIndex2: number, inedexx: number) {
|
|
1379
|
-
// // 这里需要完整实现原始的导线绘制逻辑
|
|
1380
|
-
// // 由于篇幅和复杂性限制,建议在实际项目中逐步实现
|
|
1381
|
-
// }
|
|
1382
1326
|
/**
|
|
1383
1327
|
* 单回路线路加载(现在改为初始化数据 + 设置动态加载监听器)
|
|
1384
1328
|
*/
|
|
@@ -1429,22 +1373,22 @@ class Ti {
|
|
|
1429
1373
|
this.LineInfo.towers[s].towerPoint[p].Y,
|
|
1430
1374
|
this.LineInfo.towers[s].towerPoint[p].Z
|
|
1431
1375
|
),
|
|
1432
|
-
this.LineInfo.towers[s].type ===
|
|
1376
|
+
this.LineInfo.towers[s].type === q.耐张塔 ? L : W
|
|
1433
1377
|
);
|
|
1434
1378
|
let u, T;
|
|
1435
|
-
if (this.autoCalculateRollX ?
|
|
1379
|
+
if (this.autoCalculateRollX ? T = this.LineInfo.towers[s].RollX : T = t.RollX, this.LineInfo.towers[s].type === q.耐张塔)
|
|
1436
1380
|
switch (t.type) {
|
|
1437
|
-
case
|
|
1381
|
+
case D.耐张串:
|
|
1438
1382
|
u = t.WairFX === "进" ? new n.HeadingPitchRoll(n.Math.toRadians(T), n.Math.toRadians(-180), n.Math.toRadians(180)) : new n.HeadingPitchRoll(n.Math.toRadians(T), n.Math.toRadians(0), n.Math.toRadians(0));
|
|
1439
1383
|
break;
|
|
1440
|
-
case
|
|
1384
|
+
case D.跳线串:
|
|
1441
1385
|
u = new n.HeadingPitchRoll(
|
|
1442
1386
|
n.Math.toRadians(T),
|
|
1443
1387
|
n.Math.toRadians(t.RollY),
|
|
1444
1388
|
n.Math.toRadians(t.RollZ)
|
|
1445
1389
|
);
|
|
1446
1390
|
break;
|
|
1447
|
-
case
|
|
1391
|
+
case D.地线串:
|
|
1448
1392
|
u = new n.HeadingPitchRoll(
|
|
1449
1393
|
n.Math.toRadians(T),
|
|
1450
1394
|
n.Math.toRadians(t.RollY),
|
|
@@ -1479,10 +1423,10 @@ class Ti {
|
|
|
1479
1423
|
}), t.linenum) {
|
|
1480
1424
|
case rs.回路一:
|
|
1481
1425
|
if (this.LineInfo.ISPhaseSequence)
|
|
1482
|
-
if (this.LineInfo.towers[s].type ==
|
|
1426
|
+
if (this.LineInfo.towers[s].type == q.耐张塔)
|
|
1483
1427
|
switch (t.PhaseSequence) {
|
|
1484
1428
|
case z.A相:
|
|
1485
|
-
if (t.type ==
|
|
1429
|
+
if (t.type == D.耐张串)
|
|
1486
1430
|
if (t.WairFX == "进")
|
|
1487
1431
|
switch (this.LineInfo.Wairnum) {
|
|
1488
1432
|
case A.单分裂:
|
|
@@ -1516,15 +1460,15 @@ class Ti {
|
|
|
1516
1460
|
this.offsetWires11.push(I), this.offsetWires11.push(P), this.offsetWires11.push(g), this.offsetWires11.push(y), this.ToffsetWires1A2.push(I), this.ToffsetWires1A2.push(P), this.ToffsetWires1A2.push(g), this.ToffsetWires1A2.push(y);
|
|
1517
1461
|
break;
|
|
1518
1462
|
case A.六分裂:
|
|
1519
|
-
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W),
|
|
1520
|
-
this.offsetWires11.push(_), this.offsetWires11.push(v), this.offsetWires11.push(k), this.offsetWires11.push(M), this.offsetWires11.push(Z), this.offsetWires11.push(
|
|
1463
|
+
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1464
|
+
this.offsetWires11.push(_), this.offsetWires11.push(v), this.offsetWires11.push(k), this.offsetWires11.push(M), this.offsetWires11.push(Z), this.offsetWires11.push(E), this.ToffsetWires1A2.push(_), this.ToffsetWires1A2.push(v), this.ToffsetWires1A2.push(k), this.ToffsetWires1A2.push(M), this.ToffsetWires1A2.push(Z), this.ToffsetWires1A2.push(E);
|
|
1521
1465
|
break;
|
|
1522
1466
|
case A.八分裂:
|
|
1523
|
-
const
|
|
1524
|
-
this.offsetWires11.push(
|
|
1467
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1468
|
+
this.offsetWires11.push(Y), this.offsetWires11.push(R), this.offsetWires11.push(F), this.offsetWires11.push(S), this.offsetWires11.push(X), this.offsetWires11.push(H), this.offsetWires11.push(O), this.offsetWires11.push(N), this.ToffsetWires1A2.push(Y), this.ToffsetWires1A2.push(R), this.ToffsetWires1A2.push(F), this.ToffsetWires1A2.push(S), this.ToffsetWires1A2.push(X), this.ToffsetWires1A2.push(H), this.ToffsetWires1A2.push(O), this.ToffsetWires1A2.push(N);
|
|
1525
1469
|
break;
|
|
1526
1470
|
}
|
|
1527
|
-
else if (t.type ==
|
|
1471
|
+
else if (t.type == D.跳线串)
|
|
1528
1472
|
switch (this.LineInfo.Wairnum) {
|
|
1529
1473
|
case A.单分裂:
|
|
1530
1474
|
this.ToffsetWires1A1.push(e[0]), this.ToffsetWires1A2.push(e[1]);
|
|
@@ -1544,7 +1488,7 @@ class Ti {
|
|
|
1544
1488
|
}
|
|
1545
1489
|
break;
|
|
1546
1490
|
case z.B相:
|
|
1547
|
-
if (t.type ==
|
|
1491
|
+
if (t.type == D.耐张串)
|
|
1548
1492
|
if (t.WairFX == "进")
|
|
1549
1493
|
switch (this.LineInfo.Wairnum) {
|
|
1550
1494
|
case A.单分裂:
|
|
@@ -1578,15 +1522,15 @@ class Ti {
|
|
|
1578
1522
|
this.offsetWires12.push(I), this.offsetWires12.push(P), this.offsetWires12.push(g), this.offsetWires12.push(y), this.ToffsetWires1B2.push(I), this.ToffsetWires1B2.push(P), this.ToffsetWires1B2.push(g), this.ToffsetWires1B2.push(y);
|
|
1579
1523
|
break;
|
|
1580
1524
|
case A.六分裂:
|
|
1581
|
-
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W),
|
|
1582
|
-
this.offsetWires12.push(_), this.offsetWires12.push(v), this.offsetWires12.push(k), this.offsetWires12.push(M), this.offsetWires12.push(Z), this.offsetWires12.push(
|
|
1525
|
+
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1526
|
+
this.offsetWires12.push(_), this.offsetWires12.push(v), this.offsetWires12.push(k), this.offsetWires12.push(M), this.offsetWires12.push(Z), this.offsetWires12.push(E), this.ToffsetWires1B2.push(_), this.ToffsetWires1B2.push(v), this.ToffsetWires1B2.push(k), this.ToffsetWires1B2.push(M), this.ToffsetWires1B2.push(Z), this.ToffsetWires1B2.push(E);
|
|
1583
1527
|
break;
|
|
1584
1528
|
case A.八分裂:
|
|
1585
|
-
const
|
|
1586
|
-
this.offsetWires12.push(
|
|
1529
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1530
|
+
this.offsetWires12.push(Y), this.offsetWires12.push(R), this.offsetWires12.push(F), this.offsetWires12.push(S), this.offsetWires12.push(X), this.offsetWires12.push(H), this.offsetWires12.push(O), this.offsetWires12.push(N), this.ToffsetWires1B2.push(Y), this.ToffsetWires1B2.push(R), this.ToffsetWires1B2.push(F), this.ToffsetWires1B2.push(S), this.ToffsetWires1B2.push(X), this.ToffsetWires1B2.push(H), this.ToffsetWires1B2.push(O), this.ToffsetWires1B2.push(N);
|
|
1587
1531
|
break;
|
|
1588
1532
|
}
|
|
1589
|
-
else if (t.type ==
|
|
1533
|
+
else if (t.type == D.跳线串)
|
|
1590
1534
|
switch (this.LineInfo.Wairnum) {
|
|
1591
1535
|
case A.单分裂:
|
|
1592
1536
|
this.ToffsetWires1B1.push(e[0]), this.ToffsetWires1B2.push(e[0]);
|
|
@@ -1606,7 +1550,7 @@ class Ti {
|
|
|
1606
1550
|
}
|
|
1607
1551
|
break;
|
|
1608
1552
|
case z.C相:
|
|
1609
|
-
if (t.type ==
|
|
1553
|
+
if (t.type == D.耐张串)
|
|
1610
1554
|
if (t.WairFX == "进")
|
|
1611
1555
|
switch (this.LineInfo.Wairnum) {
|
|
1612
1556
|
case A.单分裂:
|
|
@@ -1640,15 +1584,15 @@ class Ti {
|
|
|
1640
1584
|
this.offsetWires13.push(I), this.offsetWires13.push(P), this.offsetWires13.push(g), this.offsetWires13.push(y), this.ToffsetWires1C2.push(I), this.ToffsetWires1C2.push(P), this.ToffsetWires1C2.push(g), this.ToffsetWires1C2.push(y);
|
|
1641
1585
|
break;
|
|
1642
1586
|
case A.六分裂:
|
|
1643
|
-
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W),
|
|
1644
|
-
this.offsetWires13.push(_), this.offsetWires13.push(v), this.offsetWires13.push(k), this.offsetWires13.push(M), this.offsetWires13.push(Z), this.offsetWires13.push(
|
|
1587
|
+
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1588
|
+
this.offsetWires13.push(_), this.offsetWires13.push(v), this.offsetWires13.push(k), this.offsetWires13.push(M), this.offsetWires13.push(Z), this.offsetWires13.push(E), this.ToffsetWires1C2.push(_), this.ToffsetWires1C2.push(v), this.ToffsetWires1C2.push(k), this.ToffsetWires1C2.push(M), this.ToffsetWires1C2.push(Z), this.ToffsetWires1C2.push(E);
|
|
1645
1589
|
break;
|
|
1646
1590
|
case A.八分裂:
|
|
1647
|
-
const
|
|
1648
|
-
this.offsetWires13.push(
|
|
1591
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1592
|
+
this.offsetWires13.push(Y), this.offsetWires13.push(R), this.offsetWires13.push(F), this.offsetWires13.push(S), this.offsetWires13.push(X), this.offsetWires13.push(H), this.offsetWires13.push(O), this.offsetWires13.push(N), this.ToffsetWires1C2.push(Y), this.ToffsetWires1C2.push(R), this.ToffsetWires1C2.push(F), this.ToffsetWires1C2.push(S), this.ToffsetWires1C2.push(X), this.ToffsetWires1C2.push(H), this.ToffsetWires1C2.push(O), this.ToffsetWires1C2.push(N);
|
|
1649
1593
|
break;
|
|
1650
1594
|
}
|
|
1651
|
-
else if (t.type ==
|
|
1595
|
+
else if (t.type == D.跳线串)
|
|
1652
1596
|
switch (this.LineInfo.Wairnum) {
|
|
1653
1597
|
case A.单分裂:
|
|
1654
1598
|
this.ToffsetWires1C1.push(e[0]), this.ToffsetWires1C2.push(e[0]);
|
|
@@ -1686,7 +1630,7 @@ class Ti {
|
|
|
1686
1630
|
});
|
|
1687
1631
|
break;
|
|
1688
1632
|
}
|
|
1689
|
-
else if (this.LineInfo.towers[s].type ==
|
|
1633
|
+
else if (this.LineInfo.towers[s].type == q.耐张塔)
|
|
1690
1634
|
switch (p) {
|
|
1691
1635
|
case 2:
|
|
1692
1636
|
switch (this.LineInfo.Wairnum) {
|
|
@@ -1774,10 +1718,10 @@ class Ti {
|
|
|
1774
1718
|
break;
|
|
1775
1719
|
case rs.回路二:
|
|
1776
1720
|
if (this.LineInfo.ISPhaseSequence)
|
|
1777
|
-
if (this.LineInfo.towers[s].type ==
|
|
1721
|
+
if (this.LineInfo.towers[s].type == q.耐张塔)
|
|
1778
1722
|
switch (t.PhaseSequence) {
|
|
1779
1723
|
case z.A相:
|
|
1780
|
-
if (t.type ==
|
|
1724
|
+
if (t.type == D.耐张串)
|
|
1781
1725
|
if (t.WairFX == "进")
|
|
1782
1726
|
switch (this.LineInfo.Wairnum) {
|
|
1783
1727
|
case A.单分裂:
|
|
@@ -1811,15 +1755,15 @@ class Ti {
|
|
|
1811
1755
|
this.offsetWires21.push(I), this.offsetWires21.push(P), this.offsetWires21.push(g), this.offsetWires21.push(y), this.ToffsetWires2A2.push(I), this.ToffsetWires2A2.push(P), this.ToffsetWires2A2.push(g), this.ToffsetWires2A2.push(y);
|
|
1812
1756
|
break;
|
|
1813
1757
|
case A.六分裂:
|
|
1814
|
-
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W),
|
|
1815
|
-
this.offsetWires21.push(_), this.offsetWires21.push(v), this.offsetWires21.push(k), this.offsetWires21.push(M), this.offsetWires21.push(Z), this.offsetWires21.push(
|
|
1758
|
+
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1759
|
+
this.offsetWires21.push(_), this.offsetWires21.push(v), this.offsetWires21.push(k), this.offsetWires21.push(M), this.offsetWires21.push(Z), this.offsetWires21.push(E), this.ToffsetWires2A2.push(_), this.ToffsetWires2A2.push(v), this.ToffsetWires2A2.push(k), this.ToffsetWires2A2.push(M), this.ToffsetWires2A2.push(Z), this.ToffsetWires2A2.push(E);
|
|
1816
1760
|
break;
|
|
1817
1761
|
case A.八分裂:
|
|
1818
|
-
const
|
|
1819
|
-
this.offsetWires21.push(
|
|
1762
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1763
|
+
this.offsetWires21.push(Y), this.offsetWires21.push(R), this.offsetWires21.push(F), this.offsetWires21.push(S), this.offsetWires21.push(X), this.offsetWires21.push(H), this.offsetWires21.push(O), this.offsetWires21.push(N), this.ToffsetWires2A2.push(Y), this.ToffsetWires2A2.push(R), this.ToffsetWires2A2.push(F), this.ToffsetWires2A2.push(S), this.ToffsetWires2A2.push(X), this.ToffsetWires2A2.push(H), this.ToffsetWires2A2.push(O), this.ToffsetWires2A2.push(N);
|
|
1820
1764
|
break;
|
|
1821
1765
|
}
|
|
1822
|
-
else if (t.type ==
|
|
1766
|
+
else if (t.type == D.跳线串)
|
|
1823
1767
|
switch (this.LineInfo.Wairnum) {
|
|
1824
1768
|
case A.单分裂:
|
|
1825
1769
|
this.ToffsetWires2A1.push(e[0]), this.ToffsetWires2A2.push(e[0]);
|
|
@@ -1839,7 +1783,7 @@ class Ti {
|
|
|
1839
1783
|
}
|
|
1840
1784
|
break;
|
|
1841
1785
|
case z.B相:
|
|
1842
|
-
if (t.type ==
|
|
1786
|
+
if (t.type == D.耐张串)
|
|
1843
1787
|
if (t.WairFX == "进")
|
|
1844
1788
|
switch (this.LineInfo.Wairnum) {
|
|
1845
1789
|
case A.单分裂:
|
|
@@ -1873,15 +1817,15 @@ class Ti {
|
|
|
1873
1817
|
this.offsetWires22.push(I), this.offsetWires22.push(P), this.offsetWires22.push(g), this.offsetWires22.push(y), this.ToffsetWires2B2.push(I), this.ToffsetWires2B2.push(P), this.ToffsetWires2B2.push(g), this.ToffsetWires2B2.push(y);
|
|
1874
1818
|
break;
|
|
1875
1819
|
case A.六分裂:
|
|
1876
|
-
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W),
|
|
1877
|
-
this.offsetWires22.push(_), this.offsetWires22.push(v), this.offsetWires22.push(k), this.offsetWires22.push(M), this.offsetWires22.push(Z), this.offsetWires22.push(
|
|
1820
|
+
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1821
|
+
this.offsetWires22.push(_), this.offsetWires22.push(v), this.offsetWires22.push(k), this.offsetWires22.push(M), this.offsetWires22.push(Z), this.offsetWires22.push(E), this.ToffsetWires2B2.push(_), this.ToffsetWires2B2.push(v), this.ToffsetWires2B2.push(k), this.ToffsetWires2B2.push(M), this.ToffsetWires2B2.push(Z), this.ToffsetWires2B2.push(E);
|
|
1878
1822
|
break;
|
|
1879
1823
|
case A.八分裂:
|
|
1880
|
-
const
|
|
1881
|
-
this.offsetWires22.push(
|
|
1824
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1825
|
+
this.offsetWires22.push(Y), this.offsetWires22.push(R), this.offsetWires22.push(F), this.offsetWires22.push(S), this.offsetWires22.push(X), this.offsetWires22.push(H), this.offsetWires22.push(O), this.offsetWires22.push(N), this.ToffsetWires2B2.push(Y), this.ToffsetWires2B2.push(R), this.ToffsetWires2B2.push(F), this.ToffsetWires2B2.push(S), this.ToffsetWires2B2.push(X), this.ToffsetWires2B2.push(H), this.ToffsetWires2B2.push(O), this.ToffsetWires2B2.push(N);
|
|
1882
1826
|
break;
|
|
1883
1827
|
}
|
|
1884
|
-
else if (t.type ==
|
|
1828
|
+
else if (t.type == D.跳线串)
|
|
1885
1829
|
switch (this.LineInfo.Wairnum) {
|
|
1886
1830
|
case A.单分裂:
|
|
1887
1831
|
this.ToffsetWires2B1.push(e[0]), this.ToffsetWires2B2.push(e[0]);
|
|
@@ -1901,7 +1845,7 @@ class Ti {
|
|
|
1901
1845
|
}
|
|
1902
1846
|
break;
|
|
1903
1847
|
case z.C相:
|
|
1904
|
-
if (t.type ==
|
|
1848
|
+
if (t.type == D.耐张串)
|
|
1905
1849
|
if (t.WairFX == "进")
|
|
1906
1850
|
switch (this.LineInfo.Wairnum) {
|
|
1907
1851
|
case A.单分裂:
|
|
@@ -1935,15 +1879,15 @@ class Ti {
|
|
|
1935
1879
|
this.offsetWires23.push(I), this.offsetWires23.push(P), this.offsetWires23.push(g), this.offsetWires23.push(y), this.ToffsetWires2C2.push(I), this.ToffsetWires2C2.push(P), this.ToffsetWires2C2.push(g), this.ToffsetWires2C2.push(y);
|
|
1936
1880
|
break;
|
|
1937
1881
|
case A.六分裂:
|
|
1938
|
-
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W),
|
|
1939
|
-
this.offsetWires23.push(_), this.offsetWires23.push(v), this.offsetWires23.push(k), this.offsetWires23.push(M), this.offsetWires23.push(Z), this.offsetWires23.push(
|
|
1882
|
+
const _ = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), v = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), k = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), M = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), Z = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), E = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W);
|
|
1883
|
+
this.offsetWires23.push(_), this.offsetWires23.push(v), this.offsetWires23.push(k), this.offsetWires23.push(M), this.offsetWires23.push(Z), this.offsetWires23.push(E), this.ToffsetWires2C2.push(_), this.ToffsetWires2C2.push(v), this.ToffsetWires2C2.push(k), this.ToffsetWires2C2.push(M), this.ToffsetWires2C2.push(Z), this.ToffsetWires2C2.push(E);
|
|
1940
1884
|
break;
|
|
1941
1885
|
case A.八分裂:
|
|
1942
|
-
const
|
|
1943
|
-
this.offsetWires23.push(
|
|
1886
|
+
const Y = B(r, new n.Cartesian3(t.InsulatorPoint[0].X * -1, t.InsulatorPoint[0].Y, t.InsulatorPoint[0].Z), W), R = B(r, new n.Cartesian3(t.InsulatorPoint[1].X * -1, t.InsulatorPoint[1].Y, t.InsulatorPoint[1].Z), W), F = B(r, new n.Cartesian3(t.InsulatorPoint[2].X * -1, t.InsulatorPoint[2].Y, t.InsulatorPoint[2].Z), W), S = B(r, new n.Cartesian3(t.InsulatorPoint[3].X * -1, t.InsulatorPoint[3].Y, t.InsulatorPoint[3].Z), W), X = B(r, new n.Cartesian3(t.InsulatorPoint[4].X * -1, t.InsulatorPoint[4].Y, t.InsulatorPoint[4].Z), W), H = B(r, new n.Cartesian3(t.InsulatorPoint[5].X * -1, t.InsulatorPoint[5].Y, t.InsulatorPoint[5].Z), W), O = B(r, new n.Cartesian3(t.InsulatorPoint[6].X * -1, t.InsulatorPoint[6].Y, t.InsulatorPoint[6].Z), W), N = B(r, new n.Cartesian3(t.InsulatorPoint[7].X * -1, t.InsulatorPoint[7].Y, t.InsulatorPoint[7].Z), W);
|
|
1887
|
+
this.offsetWires23.push(Y), this.offsetWires23.push(R), this.offsetWires23.push(F), this.offsetWires23.push(S), this.offsetWires23.push(X), this.offsetWires23.push(H), this.offsetWires23.push(O), this.offsetWires23.push(N), this.ToffsetWires2C2.push(Y), this.ToffsetWires2C2.push(R), this.ToffsetWires2C2.push(F), this.ToffsetWires2C2.push(S), this.ToffsetWires2C2.push(X), this.ToffsetWires2C2.push(H), this.ToffsetWires2C2.push(O), this.ToffsetWires2C2.push(N);
|
|
1944
1888
|
break;
|
|
1945
1889
|
}
|
|
1946
|
-
else if (t.type ==
|
|
1890
|
+
else if (t.type == D.跳线串)
|
|
1947
1891
|
switch (this.LineInfo.Wairnum) {
|
|
1948
1892
|
case A.单分裂:
|
|
1949
1893
|
this.ToffsetWires2C1.push(e[0]), this.ToffsetWires2C2.push(e[0]);
|
|
@@ -1981,7 +1925,7 @@ class Ti {
|
|
|
1981
1925
|
});
|
|
1982
1926
|
break;
|
|
1983
1927
|
}
|
|
1984
|
-
else if (this.LineInfo.towers[s].type ==
|
|
1928
|
+
else if (this.LineInfo.towers[s].type == q.耐张塔)
|
|
1985
1929
|
switch (p) {
|
|
1986
1930
|
case 11:
|
|
1987
1931
|
this.offsetWires21.push(e[0]), this.ToffsetWires2A1.push(e[0]);
|
|
@@ -2060,27 +2004,27 @@ class Ti {
|
|
|
2060
2004
|
switch (this.LineInfo.Wairnum) {
|
|
2061
2005
|
case A.单分裂:
|
|
2062
2006
|
this.offsetWires11.length >= 2 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(t), this.offsetArcWires1A.forEach((I) => {
|
|
2063
|
-
this.arcLine1A1.push(
|
|
2007
|
+
this.arcLine1A1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2064
2008
|
}), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2065
2009
|
break;
|
|
2066
2010
|
case A.双分裂:
|
|
2067
2011
|
this.offsetWires11.length >= 4 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2068
|
-
this.arcLine1A1.push(
|
|
2012
|
+
this.arcLine1A1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2069
2013
|
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2070
2014
|
break;
|
|
2071
2015
|
case A.四分裂:
|
|
2072
2016
|
this.offsetWires11.length >= 8 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2073
|
-
this.arcLine1A1.push(
|
|
2017
|
+
this.arcLine1A1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2074
2018
|
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[o + 2]), u.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[o + 3]), T.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2075
2019
|
break;
|
|
2076
2020
|
case A.六分裂:
|
|
2077
2021
|
this.offsetWires11.length >= 12 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2078
|
-
this.arcLine1A1.push(
|
|
2022
|
+
this.arcLine1A1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2079
2023
|
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[o + 2]), u.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[o + 3]), T.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires11[o + 4]), e.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires11[o + 5]), c.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2080
2024
|
break;
|
|
2081
2025
|
case A.八分裂:
|
|
2082
2026
|
this.offsetWires11.length >= 16 && (t.push(this.offsetWires11[o]), t.push(this.offsetWires11[o - 8]), this.offsetArcWires1A = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1A.forEach((I) => {
|
|
2083
|
-
this.arcLine1A1.push(
|
|
2027
|
+
this.arcLine1A1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2084
2028
|
}), l.push(this.offsetWires11[o + 1]), l.push(this.offsetWires11[o - 7]), this.offsetArcWires1A = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires11[o + 2]), u.push(this.offsetWires11[o - 6]), this.offsetArcWires1A = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires11[o + 3]), T.push(this.offsetWires11[o - 5]), this.offsetArcWires1A = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires11[o + 4]), e.push(this.offsetWires11[o - 4]), this.offsetArcWires1A = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires11[o + 5]), c.push(this.offsetWires11[o - 3]), this.offsetArcWires1A = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires11[o + 6]), m.push(this.offsetWires11[o - 2]), this.offsetArcWires1A = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires11[o + 7]), b.push(this.offsetWires11[o - 1]), this.offsetArcWires1A = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1A, "导线1_A8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)));
|
|
2085
2029
|
break;
|
|
2086
2030
|
}
|
|
@@ -2090,27 +2034,27 @@ class Ti {
|
|
|
2090
2034
|
switch (this.LineInfo.Wairnum) {
|
|
2091
2035
|
case A.单分裂:
|
|
2092
2036
|
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2093
|
-
this.arcLine1B1.push(
|
|
2037
|
+
this.arcLine1B1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2094
2038
|
});
|
|
2095
2039
|
break;
|
|
2096
2040
|
case A.双分裂:
|
|
2097
2041
|
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2098
|
-
this.arcLine1B1.push(
|
|
2042
|
+
this.arcLine1B1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2099
2043
|
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2100
2044
|
break;
|
|
2101
2045
|
case A.四分裂:
|
|
2102
2046
|
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2103
|
-
this.arcLine1B1.push(
|
|
2047
|
+
this.arcLine1B1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2104
2048
|
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[o + 2]), u.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[o + 3]), T.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2105
2049
|
break;
|
|
2106
2050
|
case A.六分裂:
|
|
2107
2051
|
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2108
|
-
this.arcLine1B1.push(
|
|
2052
|
+
this.arcLine1B1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2109
2053
|
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[o + 2]), u.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[o + 3]), T.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires12[o + 4]), e.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires12[o + 5]), c.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2110
2054
|
break;
|
|
2111
2055
|
case A.八分裂:
|
|
2112
2056
|
t.push(this.offsetWires12[o]), t.push(this.offsetWires12[o - 8]), this.offsetArcWires1B = f(t), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B1" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), this.offsetArcWires1B.forEach((I) => {
|
|
2113
|
-
this.arcLine1B1.push(
|
|
2057
|
+
this.arcLine1B1.push($(this.viewer.scene.globe.ellipsoid, I));
|
|
2114
2058
|
}), l.push(this.offsetWires12[o + 1]), l.push(this.offsetWires12[o - 7]), this.offsetArcWires1B = f(l), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B2" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), u.push(this.offsetWires12[o + 2]), u.push(this.offsetWires12[o - 6]), this.offsetArcWires1B = f(u), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B3" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), T.push(this.offsetWires12[o + 3]), T.push(this.offsetWires12[o - 5]), this.offsetArcWires1B = f(T), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B4" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), e.push(this.offsetWires12[o + 4]), e.push(this.offsetWires12[o - 4]), this.offsetArcWires1B = f(e), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B5" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), c.push(this.offsetWires12[o + 5]), c.push(this.offsetWires12[o - 3]), this.offsetArcWires1B = f(c), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B6" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), m.push(this.offsetWires12[o + 6]), m.push(this.offsetWires12[o - 2]), this.offsetArcWires1B = f(m), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B7" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor)), b.push(this.offsetWires12[o + 7]), b.push(this.offsetWires12[o - 1]), this.offsetArcWires1B = f(b), this.LineentityCollection2.add(h(this.offsetArcWires1B, "导线1_B8" + (s - 2) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireAColor));
|
|
2115
2059
|
break;
|
|
2116
2060
|
}
|
|
@@ -2200,11 +2144,11 @@ class Ti {
|
|
|
2200
2144
|
t.push(this.offsetGrouundWires11[s]), t.push(this.offsetGrouundWires11[s - 1]);
|
|
2201
2145
|
const l = [];
|
|
2202
2146
|
l.push(this.offsetGrouundWires12[s]), l.push(this.offsetGrouundWires12[s - 1]), this.offsetGrouundWires1 = f(t, 2), this.offsetGrouundWires2 = f(l, 2), this.offsetGrouundWires1.forEach((u) => {
|
|
2203
|
-
this.arcLine1D1.push(
|
|
2147
|
+
this.arcLine1D1.push($(this.viewer.scene.globe.ellipsoid, u));
|
|
2204
2148
|
}), this.LineentityCollection2.add(h(this.offsetGrouundWires1, "地线1" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD1Color)), this.LineentityCollection2.add(h(this.offsetGrouundWires2, "地线2" + (s - 1) + "-" + s, this.LineInfo.wireWidth, this.LineInfo.wireD2Color));
|
|
2205
2149
|
}
|
|
2206
2150
|
let d = 2;
|
|
2207
|
-
if (this.LineInfo.towers[s].type ==
|
|
2151
|
+
if (this.LineInfo.towers[s].type == q.耐张塔) {
|
|
2208
2152
|
switch (this.LineInfo.Wairnum) {
|
|
2209
2153
|
case A.单分裂:
|
|
2210
2154
|
o = o + d, i = i + d;
|
|
@@ -3219,7 +3163,7 @@ class Ai {
|
|
|
3219
3163
|
export {
|
|
3220
3164
|
ci as GUAPoint,
|
|
3221
3165
|
ui as InsulatorInfo,
|
|
3222
|
-
|
|
3166
|
+
D as InsulatorType,
|
|
3223
3167
|
oi as LineManager,
|
|
3224
3168
|
rs as LineNum,
|
|
3225
3169
|
si as LineType,
|
|
@@ -3229,7 +3173,7 @@ export {
|
|
|
3229
3173
|
Ci as TowerFZInfo,
|
|
3230
3174
|
li as TowerInfo,
|
|
3231
3175
|
ai as TowerLineInfo,
|
|
3232
|
-
|
|
3176
|
+
q as TowerType,
|
|
3233
3177
|
Wi as TreeType,
|
|
3234
3178
|
A as WairnumType,
|
|
3235
3179
|
Zs as drawModel
|