ow-eengine-power 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1235,8 +1235,6 @@ const es = class es {
|
|
|
1235
1235
|
initializeLineData() {
|
|
1236
1236
|
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.towers.forEach((e) => {
|
|
1237
1237
|
this.offsetTowers.push(n.Cartesian3.fromDegrees(e.Longitude, e.Latitude, e.Altitude));
|
|
1238
|
-
}), this.LineInfo.Trees.forEach((e) => {
|
|
1239
|
-
this.offsetTrees.push(n.Cartesian3.fromDegrees(e.lon, e.lat, e.alt));
|
|
1240
1238
|
}), this.autoCalculateRollX && this.calculateTowerOrientations());
|
|
1241
1239
|
}
|
|
1242
1240
|
/**
|
|
@@ -2381,7 +2379,9 @@ const es = class es {
|
|
|
2381
2379
|
* 初始化树木数据并设置动态加载(如果启用)
|
|
2382
2380
|
*/
|
|
2383
2381
|
loadTree() {
|
|
2384
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.
|
|
2382
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.LineInfo.Trees.forEach((e) => {
|
|
2383
|
+
this.offsetTrees.push(n.Cartesian3.fromDegrees(e.lon, e.lat, e.alt));
|
|
2384
|
+
}), this.viewer.dataSources.contains(this.dataSourcetree) || (this.viewer.dataSources.add(this.dataSourcetree), console.log("Added tree datasource to viewer in loadTree")), this.entityCollectiontree.show = !0, this.isDynamicLoadingEnabled ? (this.setupTreeCameraMoveListener(), this.updateVisibleTrees()) : this.loadAllTreesAtOnce());
|
|
2385
2385
|
}
|
|
2386
2386
|
/**
|
|
2387
2387
|
* 一次性加载所有树木(静态加载模式)
|
|
@@ -2539,7 +2539,7 @@ const es = class es {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
//移除树木
|
|
2541
2541
|
RemoveTreeModel() {
|
|
2542
|
-
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSourcetree), this.entityCollectiontree.show = !1
|
|
2542
|
+
this.Keym == "OW_JPS_EEngin_001" && (this.viewer.dataSources.remove(this.dataSourcetree), this.entityCollectiontree.show = !1);
|
|
2543
2543
|
}
|
|
2544
2544
|
/**
|
|
2545
2545
|
* 重新加载树木(用于切换动态/静态模式后)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(k,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("cesium")):typeof define=="function"&&define.amd?define(["exports","cesium"],R):(k=typeof globalThis<"u"?globalThis:k||self,R(k.OW_EEngine_Power={},k.Cesium))})(this,function(k,R){"use strict";var Tt=Object.defineProperty;var Ct=(k,R,is)=>R in k?Tt(k,R,{enumerable:!0,configurable:!0,writable:!0,value:is}):k[R]=is;var w=(k,R,is)=>Ct(k,typeof R!="symbol"?R+"":R,is);function is(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>a[t]})}}return o.default=a,Object.freeze(o)}const n=is(R);function Es(a,o,t={}){const{color:r=R.Color.WHITE,width:s=3,clampToGround:T=!1,zIndex:W=0,dashed:L=!1,dashLength:p=10}=t,d=L?new n.PolylineDashMaterialProperty({color:r,dashLength:p}):new n.ColorMaterialProperty(r);return a.entities.add({polyline:{positions:o,width:s,material:d,clampToGround:T,zIndex:W}})}function h(a,o,t=10,r="#ba1919",s,T=!1){const W={show:!0,positions:a,clampToGround:T,width:t,material:n.Color.fromCssColorString(r),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED,granularity:T?void 0:0};let L;return L=[0,1e5],W.distanceDisplayCondition=new n.DistanceDisplayCondition(L[0],L[1]),{name:o,label:{text:o,font:"18px sans-serif",distanceDisplayCondition:new n.DistanceDisplayCondition(L[0],Math.min(L[1],5e3))},polyline:W}}function Ws(a,o,t,r,s=new n.HeadingPitchRoll(0,0,0),T=1,W){const L={show:!0,uri:r,scale:T,transition:{distanceDisplayCondition:!0,scale:!0}};return W&&(Array.isArray(W)?L.distanceDisplayCondition=new n.DistanceDisplayCondition(W[0],W[1]):L.distanceDisplayCondition=W),{id:a,name:t,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:L}}function fs(a,o,t,r={}){const{pointColor:s=R.Color.YELLOW,pointSize:T=12,labelColor:W=R.Color.WHITE,fontSize:L=16,pixelOffset:p=[0,-20],heightReference:d=R.HeightReference.NONE}=r;return a.entities.add({position:o,point:{color:s,pixelSize:T,heightReference:d,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)},label:{text:t,font:`${L}px sans-serif`,fillColor:W,pixelOffset:new n.Cartesian2(...p),style:R.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:R.Color.BLACK,heightReference:d,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)}})}var V=63710088e-1,ws={centimeters:V*100,centimetres:V*100,degrees:V/111325,feet:V*3.28084,inches:V*39.37,kilometers:V/1e3,kilometres:V/1e3,meters:V,metres:V,miles:V/1609.344,millimeters:V*1e3,millimetres:V*1e3,nauticalmiles:V/1852,radians:1,yards:V*1.0936};function es(a,o,t){t===void 0&&(t={});var r={type:"Feature"};return(t.id===0||t.id)&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.properties=o||{},r.geometry=a,r}function j(a,o,t){if(t===void 0&&(t={}),!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(!Ps(a[0])||!Ps(a[1]))throw new Error("coordinates must contain numbers");var r={type:"Point",coordinates:a};return es(r,o,t)}function U(a,o,t){if(t===void 0&&(t={}),a.length<2)throw new Error("coordinates must be an array of two or more positions");var r={type:"LineString",coordinates:a};return es(r,o,t)}function Xs(a,o){o===void 0&&(o={});var t={type:"FeatureCollection"};return o.id&&(t.id=o.id),o.bbox&&(t.bbox=o.bbox),t.features=a,t}function Is(a,o){o===void 0&&(o="kilometers");var t=ws[o];if(!t)throw new Error(o+" units is invalid");return a*t}function ds(a,o){o===void 0&&(o="kilometers");var t=ws[o];if(!t)throw new Error(o+" units is invalid");return a/t}function ls(a){var o=a%(2*Math.PI);return o*180/Math.PI}function K(a){var o=a%360;return o*Math.PI/180}function Bs(a,o,t){if(o===void 0&&(o="kilometers"),t===void 0&&(t="kilometers"),!(a>=0))throw new Error("length must be a positive number");return Is(ds(a,o),t)}function Ps(a){return!isNaN(a)&&a!==null&&!Array.isArray(a)}function Ys(a){return!!a&&a.constructor===Object}function ys(a,o,t){if(a!==null)for(var r,s,T,W,L,p,d,i=0,l=0,u,C=a.type,e=C==="FeatureCollection",c=C==="Feature",m=e?a.features.length:1,b=0;b<m;b++){d=e?a.features[b].geometry:c?a.geometry:a,u=d?d.type==="GeometryCollection":!1,L=u?d.geometries.length:1;for(var I=0;I<L;I++){var P=0,g=0;if(W=u?d.geometries[I]:d,W!==null){p=W.coordinates;var y=W.type;switch(i=0,y){case null:break;case"Point":if(o(p,l,b,P,g)===!1)return!1;l++,P++;break;case"LineString":case"MultiPoint":for(r=0;r<p.length;r++){if(o(p[r],l,b,P,g)===!1)return!1;l++,y==="MultiPoint"&&P++}y==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(r=0;r<p.length;r++){for(s=0;s<p[r].length-i;s++){if(o(p[r][s],l,b,P,g)===!1)return!1;l++}y==="MultiLineString"&&P++,y==="Polygon"&&g++}y==="Polygon"&&P++;break;case"MultiPolygon":for(r=0;r<p.length;r++){for(g=0,s=0;s<p[r].length;s++){for(T=0;T<p[r][s].length-i;T++){if(o(p[r][s][T],l,b,P,g)===!1)return!1;l++}g++}P++}break;case"GeometryCollection":for(r=0;r<W.geometries.length;r++)if(ys(W.geometries[r],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Fs(a,o){if(a.type==="Feature")o(a,0);else if(a.type==="FeatureCollection")for(var t=0;t<a.features.length&&o(a.features[t],t)!==!1;t++);}function Ds(a,o){var t,r,s,T,W,L,p,d,i,l,u=0,C=a.type==="FeatureCollection",e=a.type==="Feature",c=C?a.features.length:1;for(t=0;t<c;t++){for(L=C?a.features[t].geometry:e?a.geometry:a,d=C?a.features[t].properties:e?a.properties:{},i=C?a.features[t].bbox:e?a.bbox:void 0,l=C?a.features[t].id:e?a.id:void 0,p=L?L.type==="GeometryCollection":!1,W=p?L.geometries.length:1,s=0;s<W;s++){if(T=p?L.geometries[s]:L,T===null){if(o(null,u,d,i,l)===!1)return!1;continue}switch(T.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(T,u,d,i,l)===!1)return!1;break}case"GeometryCollection":{for(r=0;r<T.geometries.length;r++)if(o(T.geometries[r],u,d,i,l)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}u++}}function Hs(a,o){Ds(a,function(t,r,s,T,W){var L=t===null?null:t.type;switch(L){case null:case"Point":case"LineString":case"Polygon":return o(es(t,s,{bbox:T,id:W}),r,0)===!1?!1:void 0}var p;switch(L){case"MultiPoint":p="Point";break;case"MultiLineString":p="LineString";break;case"MultiPolygon":p="Polygon";break}for(var d=0;d<t.coordinates.length;d++){var i=t.coordinates[d],l={type:p,coordinates:i};if(o(es(l,s),r,d)===!1)return!1}})}function Os(a,o){Hs(a,function(t,r,s){var T=0;if(t.geometry){var W=t.geometry.type;if(!(W==="Point"||W==="MultiPoint")){var L,p=0,d=0,i=0;if(ys(t,function(l,u,C,e,c){if(L===void 0||r>p||e>d||c>i){L=l,p=r,d=e,i=c,T=0;return}var m=U([L,l],t.properties);if(o(m,r,s,c,T)===!1)return!1;T++,L=l})===!1)return!1}}})}function x(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 gs(a,o,t){if(!a)throw new Error("No feature passed");if(!t)throw new Error(".featureOf() requires a name");if(!a||a.type!=="Feature"||!a.geometry)throw new Error("Invalid input to "+t+", Feature with geometry required");if(!a.geometry||a.geometry.type!==o)throw new Error("Invalid input to "+t+": must be a "+o+", given "+a.geometry.type)}var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ss(a,o,t){t===void 0&&(t={});var r=x(a),s=x(o),T=K(s[1]-r[1]),W=K(s[0]-r[0]),L=K(r[1]),p=K(s[1]),d=Math.pow(Math.sin(T/2),2)+Math.pow(Math.sin(W/2),2)*Math.cos(L)*Math.cos(p);return Is(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),t.units)}function $s(a){if(!a)throw new Error("geojson is required");switch(a.type){case"Feature":return ms(a);case"FeatureCollection":return Ns(a);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return us(a);default:throw new Error("unknown GeoJSON type")}}function ms(a){var o={type:"Feature"};return Object.keys(a).forEach(function(t){switch(t){case"type":case"properties":case"geometry":return;default:o[t]=a[t]}}),o.properties=bs(a.properties),o.geometry=us(a.geometry),o}function bs(a){var o={};return a&&Object.keys(a).forEach(function(t){var r=a[t];typeof r=="object"?r===null?o[t]=null:Array.isArray(r)?o[t]=r.map(function(s){return s}):o[t]=bs(r):o[t]=r}),o}function Ns(a){var o={type:"FeatureCollection"};return Object.keys(a).forEach(function(t){switch(t){case"type":case"features":return;default:o[t]=a[t]}}),o.features=a.features.map(function(t){return ms(t)}),o}function us(a){var o={type:a.type};return a.bbox&&(o.bbox=a.bbox),a.type==="GeometryCollection"?(o.geometries=a.geometries.map(function(t){return us(t)}),o):(o.coordinates=_s(a.coordinates),o)}function _s(a){var o=a;return typeof o[0]!="object"?o.slice():o.map(function(t){return _s(t)})}function cs(a,o,t,r){r===void 0&&(r={});var s=x(a),T=K(s[0]),W=K(s[1]),L=K(t),p=ds(o,r.units),d=Math.asin(Math.sin(W)*Math.cos(p)+Math.cos(W)*Math.sin(p)*Math.cos(L)),i=T+Math.atan2(Math.sin(L)*Math.sin(p)*Math.cos(W),Math.cos(p)-Math.sin(W)*Math.sin(d)),l=ls(i),u=ls(d);return j([l,u],r.properties)}function ns(a,o,t){if(t===void 0&&(t={}),t.final===!0)return Gs(a,o);var r=x(a),s=x(o),T=K(r[0]),W=K(s[0]),L=K(r[1]),p=K(s[1]),d=Math.sin(W-T)*Math.cos(p),i=Math.cos(L)*Math.sin(p)-Math.sin(L)*Math.cos(p)*Math.cos(W-T);return ls(Math.atan2(d,i))}function Gs(a,o){var t=ns(o,a);return t=(t+180)%360,t}function zs(a,o){var t=ss(a,o),r=ns(a,o),s=cs(a,t/2,r);return s}function Vs(a,o){if(!a)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var t,r=1/0,s=0;return Fs(o,function(T,W){var L=ss(a,T);L<r&&(s=W,r=L)}),t=$s(o.features[s]),t.properties.featureIndex=s,t.properties.distanceToPoint=r,t}function qs(a,o,t){t===void 0&&(t={});var r=x(a),s=x(o);s[0]+=s[0]-r[0]>180?-360:r[0]-s[0]>180?360:0;var T=Ks(r,s),W=Bs(T,"meters",t.units);return W}function Ks(a,o,t){t=t===void 0?V:Number(t);var r=t,s=a[1]*Math.PI/180,T=o[1]*Math.PI/180,W=T-s,L=Math.abs(o[0]-a[0])*Math.PI/180;L>Math.PI&&(L-=2*Math.PI);var p=Math.log(Math.tan(T/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),d=Math.abs(p)>1e-11?W/p:Math.cos(s),i=Math.sqrt(W*W+d*d*L*L),l=i*r;return l}function Ts(a,o,t){if(t===void 0&&(t={}),t.method||(t.method="geodesic"),t.units||(t.units="kilometers"),!a)throw new Error("pt is required");if(Array.isArray(a)?a=j(a):a.type==="Point"?a=es(a):gs(a,"Point","point"),!o)throw new Error("line is required");Array.isArray(o)?o=U(o):o.type==="LineString"?o=es(o):gs(o,"LineString","line");var r=1/0,s=a.geometry.coordinates;return Os(o,function(T){var W=T.geometry.coordinates[0],L=T.geometry.coordinates[1],p=Js(s,W,L,t);p<r&&(r=p)}),Bs(r,"degrees",t.units)}function Js(a,o,t,r){var s=[t[0]-o[0],t[1]-o[1]],T=[a[0]-o[0],a[1]-o[1]],W=vs(T,s);if(W<=0)return Cs(a,o,{method:r.method,units:"degrees"});var L=vs(s,s);if(L<=W)return Cs(a,t,{method:r.method,units:"degrees"});var p=W/L,d=[o[0]+p*s[0],o[1]+p*s[1]];return Cs(a,d,{method:r.method,units:"degrees"})}function vs(a,o){return a[0]*o[0]+a[1]*o[1]}function Cs(a,o,t){return t.method==="planar"?qs(a,o,t):ss(a,o,t)}function Us(a,o,t,r){if(r=r||{},!Ys(r))throw new Error("options is invalid");var s,T=[];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,L=0,p,d,i,l=0;l<s.length&&!(o>=L&&l===s.length-1);l++){if(L>o&&T.length===0){if(p=o-L,!p)return T.push(s[l]),U(T);d=ns(s[l],s[l-1])-180,i=cs(s[l],p,d,r),T.push(i.geometry.coordinates)}if(L>=t)return p=t-L,p?(d=ns(s[l],s[l-1])-180,i=cs(s[l],p,d,r),T.push(i.geometry.coordinates),U(T)):(T.push(s[l]),U(T));if(L>=o&&T.push(s[l]),l===s.length-1)return U(T);L+=ss(s[l],s[l+1],r)}if(L<o&&s.length===W)throw new Error("Start position is beyond line");var u=s[s.length-1];return U([u,u])}const ts={units:"kilometers"};function js(a,o,t,r){var{nearestDistance:s}=as(a,o),{nearestDistance:T}=as(a,r),{nearestDistance:W}=as(a,t);const L=Math.min(s,W,T);return L===s?o:L===W?t:r}const Qs=(a,o,t)=>{debugger;const r=j(a.slice(0,2)),{nearestCoord:s}=as(a,o),T=o.findIndex(Z=>Z[0]==s[0]&&Z[1]==s[1]);let W=[];if(T==0)W.push(o[0],o[1]);else if(T==o.length-1)W.push(o[o.length-2],o[o.length-1]);else{const Z=[o[T],o[T+1]],D=[o[T-1],o[T]];var L=Ts(r,U(Z),ts),p=Ts(r,U(D),ts);W=L>p?D:Z}console.log("附近的点",T,W);const d=U([W[0].slice(0,2),W[1].slice(0,2)]),i=j(W[0].slice(0,2)),l=j(W[1].slice(0,2));var u=Ts(r,d,ts),C=ss(r,i,ts)||0,e=Math.sqrt(C*C-u*u)||0;let c=W[0].slice(0,2);e>0&&(c=Us(d,0,e,ts).geometry.coordinates[1]);const m=ss(i,l,ts),b=Math.abs(W[0][2]-W[1][2]),I=Math.min(W[0][2],W[1][2]),P=Math.max(W[0][2],W[1][2]),g=W[0][2]>W[1][2]?P-e/m*b:e/m*b+I;console.log("高度差>>>>",b),console.log("最小高度>>>>",I);const y=g-a[2],_=u*1e3,v=Math.sqrt(_*_+y*y);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",y),console.log("直线距离>>>>",v);const S=n.Cartesian3.fromDegrees(a[0],a[1],a[2]),M=n.Cartesian3.fromDegrees(c[0],c[1],g);var E=zs(j([a[0],a[1]]),j([c[0],c[1]])).geometry.coordinates;const H={position:n.Cartesian3.fromDegrees(E[0],E[1],g-y/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}},X=[];X.push(S),X.push(M);var O={polyline:{show:!0,positions:X,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};t.add(H),t.add(O)};function as(a,o){const t=j(a.slice(0,2)),r=[];o.forEach(L=>{r.push(j([L[0],L[1]]))});const s=Xs(r),T=Vs(t,s),W=ss(t,T,ts);return{nearestCoord:T.geometry.coordinates,nearestDistance:W}}function B(a,o,t,r,s){t||(t=new n.HeadingPitchRoll);const T=n.Transforms.headingPitchRollQuaternion(a,t,r,s),W=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(T,new n.Matrix3),a,new n.Matrix4);return n.Matrix4.multiplyByPoint(W,o,new n.Cartesian3)}function J(a,o){var t=a.cartesianToCartographic(o),r=n.Math.toDegrees(t.latitude),s=n.Math.toDegrees(t.longitude),T=t.height;return[s,r,T]}function Q(a,o,t,r){const s=o*Math.PI/180,T=a*Math.PI/180,W=r*Math.PI/180,L=t*Math.PI/180,p=Math.sin(L-T)*Math.cos(W),d=Math.cos(s)*Math.sin(W)-Math.sin(s)*Math.cos(W)*Math.cos(L-T);let i=Math.atan2(p,d)*180/Math.PI;return i=(i+360)%360,i}function f(a,o=6){const t=[];for(var r=0;r<a.length-1;r++)t.push(...xs(a[r],a[r+1],o*-1e3,100));return t}function xs(a,o,t,r){var s=[],T=n.Cartographic.fromCartesian(a),W=n.Cartographic.fromCartesian(o),L=T.longitude*180/Math.PI,p=T.latitude*180/Math.PI,d=W.longitude*180/Math.PI,i=W.latitude*180/Math.PI,l=Math.sqrt((L-d)*(L-d)+(p-i)*(p-i)),u=l*t,C=n.Cartesian3.clone(a),e=n.Cartesian3.clone(o),c=n.Cartesian3.distance(C,n.Cartesian3.ZERO),m=n.Cartesian3.distance(e,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(e,e),n.Cartesian3.distance(C,e)==0)return s;var b=n.Cartesian3.angleBetween(C,e);s.push(a);for(var I=1;I<r-1;I++){var P=I*1/(r-1),g=1-P,y=Math.sin(g*b)/Math.sin(b),_=Math.sin(P*b)/Math.sin(b),v=n.Cartesian3.multiplyByScalar(C,y,new n.Cartesian3),S=n.Cartesian3.multiplyByScalar(e,_,new n.Cartesian3),M=n.Cartesian3.add(v,S,new n.Cartesian3),E=P*Math.PI,F=c*g+m*P+Math.sin(E)*u;M=n.Cartesian3.multiplyByScalar(M,F,M),s.push(M)}return s.push(o),s}function st(a,o,t=30){const r=a.length;if(r<=2||o===0||o===r-1)return!1;const s=Q(a[o-1].Longitude,a[o-1].Latitude,a[o].Longitude,a[o].Latitude);let W=Q(a[o].Longitude,a[o].Latitude,a[o+1].Longitude,a[o+1].Latitude)-s;return W>180&&(W-=360),W<-180&&(W+=360),Math.abs(W)>=t}function As(a,o,t=2){const r=a.length;if(r<=1)return 0;if(st(a,o,15))return o<r-1?Q(a[o].Longitude,a[o].Latitude,a[o+1].Longitude,a[o+1].Latitude):Q(a[o-1].Longitude,a[o-1].Latitude,a[o].Longitude,a[o].Latitude);let s=Math.max(0,o-t),T=Math.min(r-1,o+t);if(T-s<1)return o===r-1?Q(a[o-1].Longitude,a[o-1].Latitude,a[o].Longitude,a[o].Latitude):Q(a[o].Longitude,a[o].Latitude,a[o+1].Longitude,a[o+1].Latitude);const W=[];for(let i=s;i<T;i++){const l=Q(a[i].Longitude,a[i].Latitude,a[i+1].Longitude,a[i+1].Latitude);W.push(l)}if(W.length===1)return W[0];let L=0,p=0;for(const i of W){const l=i*Math.PI/180;L+=Math.cos(l),p+=Math.sin(l)}return(Math.atan2(p,L)*180/Math.PI+360)%360}function tt(a,o){const t=a*Math.PI/180,r=o*Math.PI/180,s=Math.cos(t),T=Math.sin(t),W=Math.cos(r),L=Math.sin(r),p=s+W,d=T+L;if(Math.abs(p)<1e-10&&Math.abs(d)<1e-10)return(a+90)%360;let i=Math.atan2(d,p)*180/Math.PI;return i=(i+360)%360,i}class it{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 et{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 ot{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 rt{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 ht{constructor(){w(this,"name","");w(this,"X",-45);w(this,"Y",90);w(this,"Z",0)}}var z=(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=(a=>(a[a.直线塔=0]="直线塔",a[a.耐张塔=1]="耐张塔",a[a.门架塔=2]="门架塔",a[a.换位塔=3]="换位塔",a))(q||{}),Ms=(a=>(a[a.交流单回路=0]="交流单回路",a[a.交流双回路=1]="交流双回路",a[a.直流单回路=2]="直流单回路",a[a.直流双回路=3]="直流双回路",a[a.交流四回路=4]="交流四回路",a))(Ms||{}),rs=(a=>(a[a.地线=0]="地线",a[a.回路一=1]="回路一",a[a.回路二=2]="回路二",a[a.回路三=3]="回路三",a[a.回路四=4]="回路四",a))(rs||{}),Y=(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))(Y||{}),A=(a=>(a[a.单分裂=0]="单分裂",a[a.双分裂=1]="双分裂",a[a.四分裂=2]="四分裂",a[a.六分裂=3]="六分裂",a[a.八分裂=4]="八分裂",a))(A||{});const hs=class hs{constructor(o,t,r){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,"LinedataSource2");w(this,"LineentityCollection2");w(this,"offsetTowers",[]);w(this,"offsetTrees",[]);w(this,"autoCalculateRollX",!0);w(this,"towerWirePoints",new Map);w(this,"loadedWireSegments",new Set);w(this,"loadedTreeIndices",new Set);w(this,"isDynamicLoadingEnabled",!0);w(this,"loadedTowerIndices",new Set);w(this,"cameraMoveHandler",null);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,"modelCache",new Map);w(this,"treeHandler",null);this.Keym=r,this.viewer=o,this.LineInfo=t,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities,this.dataSourcetree=new n.CustomDataSource(this.LineInfo.LineID+"tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.dataSourceplotting=new n.CustomDataSource("plotting"),this.entityCollectionplotting=this.dataSourceplotting.entities,this.LinedataSource2=new n.CustomDataSource(this.LineInfo.LineID+"daoxian"),this.LineentityCollection2=this.LinedataSource2.entities}createModelCacheKey(o,t,r,s){return`${o}_${t}_${r}_${s}`}getCachedModelConfig(o,t,r,s){const T=Math.max(0,r),W=Math.min(s,5e4),L=this.createModelCacheKey(o,t,T,W);if(!this.modelCache.has(L)){const p={uri:o,scale:t,distanceDisplayCondition:[T,W]};this.modelCache.set(L,p)}return this.modelCache.get(L)}addModelToCollection(o,t,r,s,T,W,L){const p=this.getCachedModelConfig(s,W,L[0],L[1]);this.entityCollection2.add(Ws(o,t,r,p.uri,T,p.scale,p.distanceDisplayCondition))}setAutoCalculateRollX(o){this.autoCalculateRollX=o}getAutoCalculateRollX(){return this.autoCalculateRollX}setDynamicLoadingEnabled(o){this.isDynamicLoadingEnabled=o}getDynamicLoadingEnabled(){return this.isDynamicLoadingEnabled}setupCameraMoveListener(){this.cameraMoveHandler&&this.cameraMoveHandler(),this.cameraMoveHandler=this.viewer.camera.moveEnd.addEventListener(()=>{this.updateVisibleTowers()})}setupTreeCameraMoveListener(){this.cameraMoveHandler||this.setupCameraMoveListener()}getVisibleTowerIndices(){var p;if(!this.viewer.camera||this.offsetTowers.length===0)return{start:0,end:0};const o=this.viewer.camera.position,t=((p=this.viewer.camera.positionCartographic)==null?void 0:p.height)||1e3;let r=5;t>5e4?r=2:t>1e4?r=3:t>5e3?r=5:r=10;let s=0,T=Number.MAX_VALUE;for(let d=0;d<this.offsetTowers.length;d++){const i=n.Cartesian3.distance(o,this.offsetTowers[d]);i<T&&(T=i,s=d)}const W=Math.max(0,s-r),L=Math.min(this.offsetTowers.length-1,s+r);return{start:W,end:L}}updateVisibleTowers(){const{start:o,end:t}=this.getVisibleTowerIndices();this.loadTowersInRange(o,t),this.updateVisibleTrees()}getVisibleTreeIndices(){var T;if(!this.viewer.camera||this.offsetTrees.length===0)return[];const o=this.viewer.camera.position,t=((T=this.viewer.camera.positionCartographic)==null?void 0:T.height)||1e3;let r=Math.max(5e3,t*2);t>5e4&&(r=1e5);const s=[];for(let W=0;W<this.offsetTrees.length;W++){const L=this.offsetTrees[W];n.Cartesian3.distance(o,L)<=r&&s.push(W)}if(s.length===0&&this.offsetTrees.length>0){const W=Math.min(20,this.offsetTrees.length);for(let L=0;L<W;L++)s.push(L)}return s}updateVisibleTrees(){const o=this.getVisibleTreeIndices(),t=[];this.loadedTreeIndices.forEach(r=>{o.includes(r)||t.push(r)}),t.forEach(r=>{const s="tree-"+this.LineInfo.Trees[r].id;this.entityCollectiontree.removeById(s),this.loadedTreeIndices.delete(r)}),o.forEach(r=>{if(!this.loadedTreeIndices.has(r))if(r>=0&&r<this.offsetTrees.length&&r<this.LineInfo.Trees.length){const s=this.offsetTrees[r],T=this.LineInfo.Trees[r];s&&T?(this.loadTreeAtIndex(r,s),this.loadedTreeIndices.add(r)):console.warn(`跳过无效的动态加载树木数据,索引: ${r}`)}else console.warn(`动态加载树木索引超出范围: ${r}`)})}initializeLineData(){this.Keym=="OW_JPS_EEngin_001"&&(this.LineInfo.towers.forEach(o=>{this.offsetTowers.push(n.Cartesian3.fromDegrees(o.Longitude,o.Latitude,o.Altitude))}),this.LineInfo.Trees.forEach(o=>{this.offsetTrees.push(n.Cartesian3.fromDegrees(o.lon,o.lat,o.alt))}),this.autoCalculateRollX&&this.calculateTowerOrientations())}calculateTowerOrientations(){const o=this.LineInfo.towers.length;if(o!==0){if(o===1){this.LineInfo.towers[0].RollX===void 0&&(this.LineInfo.towers[0].RollX=90);return}for(let t=0;t<o;t++){let r=0;if(this.LineInfo.towers[t].type===q.耐张塔)if(t===0)r=(As(this.LineInfo.towers,t,3)-90+360)%360;else if(t===o-1)r=(As(this.LineInfo.towers,t,3)-90+360)%360;else{const s=this.LineInfo.towers[t-1],T=this.LineInfo.towers[t],W=this.LineInfo.towers[t+1],L=Q(s.Longitude,s.Latitude,T.Longitude,T.Latitude),p=Q(T.Longitude,T.Latitude,W.Longitude,W.Latitude);r=(tt(L,p)-90+360)%360}else r=(As(this.LineInfo.towers,t,2)-90+360)%360;this.LineInfo.towers[t].RollX=r}}}loadTowersInRange(o,t){if(o<0||t>=this.LineInfo.towers.length)return;const r=Math.max(0,o-1),s=Math.min(this.LineInfo.towers.length-1,t+1);for(let T=r;T<=s;T++)this.loadedTowerIndices.has(T)||(this.loadTowerAndCollectWirePoints(T),this.loadedTowerIndices.add(T));for(let T=r;T<s;T++){const W=`${T}-${T+1}`;this.loadedWireSegments.has(W)||(this.loadWireSegmentBetweenTowers(T,T+1),this.loadedWireSegments.add(W))}}loadTowerAndCollectWirePoints(o){const t=this.offsetTowers[o],r=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),n.Math.toRadians(this.LineInfo.towers[o].RollY),n.Math.toRadians(this.LineInfo.towers[o].RollZ));this.addModelToCollection(this.LineInfo.towers[o].id,t,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,r,this.LineInfo.towers[o].towerScale,[this.LineInfo.towers[o].DistanceDisplaymin,this.LineInfo.towers[o].DistanceDisplaymax]);const s=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),0,0),T=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),0,0);let W=0;const L=[];this.LineInfo.towers[o].Insulators.forEach(p=>{const d=B(t,new n.Cartesian3(this.LineInfo.towers[o].towerPoint[W].X,this.LineInfo.towers[o].towerPoint[W].Y,this.LineInfo.towers[o].towerPoint[W].Z),this.LineInfo.towers[o].type===q.耐张塔?T:s);let i,l;if(this.autoCalculateRollX?l=this.LineInfo.towers[o].RollX:l=p.RollX,this.LineInfo.towers[o].type===q.耐张塔)switch(p.type){case Y.耐张串:i=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));break;case Y.跳线串:i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ));break;case Y.地线串:i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ));break;default:i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ))}else i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ));this.addModelToCollection(p.id,d,p.name,p.InsulatorModelUri,i,p.InsulatorScale,[p.DistanceDisplaymin,p.DistanceDisplaymax]);const u={insulator:p,insulatorIndex:W,position:t,lineroll:s,WairPoint:[]};p.InsulatorPoint.forEach(C=>{C.Y=C.Y+this.LineInfo.towers[o].towerPoint[W].Y,C.Z=C.Z+this.LineInfo.towers[o].towerPoint[W].Z,u.WairPoint.push(B(t,new n.Cartesian3(C.X,C.Y,C.Z),s))}),L.push(u),W++}),this.towerWirePoints.set(o,L)}loadWireSegmentBetweenTowers(o,t){const r=this.towerWirePoints.get(o),s=this.towerWirePoints.get(t);!r||!s||this.resetWireArraysForTwoTowers()}resetWireArraysForTwoTowers(){this.offsetWires11=[],this.offsetWires12=[],this.offsetWires13=[],this.offsetWires21=[],this.offsetWires22=[],this.offsetWires23=[],this.ToffsetWires1A1=[],this.ToffsetWires1A2=[]}loadLineTower(){this.Keym=="OW_JPS_EEngin_001"&&(this.initializeLineData(),this.isDynamicLoadingEnabled?(this.loadAllWiresOnly(),this.setupCameraMoveListener(),this.updateVisibleTowers()):this.loadAllTowersAtOnce())}loadAllWiresOnly(){const o=new n.EntityCollection,t=this.entityCollection2;this.entityCollection2=o,this.loadAllTowersAtOnce();const r=[];o.values.forEach(s=>{var T;s.name&&(s.name.includes("导线")||s.name.includes("daoxian")||(T=s.id)!=null&&T.toString().includes("daoxian"))&&r.push(s)}),this.entityCollection2=t,r.forEach(s=>{this.entityCollection2.add(s)}),o.removeAll()}loadAllTowersAtOnce(){let o=0,t=0;this.offsetTowers.forEach((r,s)=>{const T=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.addModelToCollection(this.LineInfo.towers[s].id,r,this.LineInfo.towers[s].name,this.LineInfo.towers[s].towerModelUri,T,this.LineInfo.towers[s].towerScale,[this.LineInfo.towers[s].DistanceDisplaymin,this.LineInfo.towers[s].DistanceDisplaymax]);const W=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0),L=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0);let p=0;if(this.LineInfo.towers[s].Insulators.forEach(i=>{const l=B(r,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[p].X,this.LineInfo.towers[s].towerPoint[p].Y,this.LineInfo.towers[s].towerPoint[p].Z),this.LineInfo.towers[s].type===q.耐张塔?L:W);let u,C;if(this.autoCalculateRollX?C=this.LineInfo.towers[s].RollX:C=i.RollX,this.LineInfo.towers[s].type===q.耐张塔)switch(i.type){case Y.耐张串:u=i.WairFX==="进"?new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(-180),n.Math.toRadians(180)):new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(0),n.Math.toRadians(0));break;case Y.跳线串:u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ));break;case Y.地线串:u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ));break;default:u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ))}else u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ));this.addModelToCollection(i.id,l,i.name,i.InsulatorModelUri,u,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]);const e=[];switch(i.InsulatorPoint.forEach(c=>{c.Y=c.Y+this.LineInfo.towers[s].towerPoint[p].Y,c.Z=c.Z+this.LineInfo.towers[s].towerPoint[p].Z,e.push(B(r,new n.Cartesian3(c.X,c.Y,c.Z),W))}),i.linenum){case rs.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==q.耐张塔)switch(i.PhaseSequence){case z.A相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires11.push(e[0]),this.ToffsetWires1A1.push(e[0]);break;case A.双分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]);break;case A.四分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.offsetWires11.push(e[2]),this.offsetWires11.push(e[3]),this.ToffsetWires1A1.push(e[4]),this.ToffsetWires1A1.push(e[5]),this.ToffsetWires1A1.push(e[6]),this.ToffsetWires1A1.push(e[7]);break;case A.六分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.offsetWires11.push(e[2]),this.offsetWires11.push(e[3]),this.offsetWires11.push(e[4]),this.offsetWires11.push(e[5]),this.ToffsetWires1A1.push(e[6]),this.ToffsetWires1A1.push(e[7]),this.ToffsetWires1A1.push(e[8]),this.ToffsetWires1A1.push(e[9]),this.ToffsetWires1A1.push(e[10]),this.ToffsetWires1A1.push(e[11]);break;case A.八分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.offsetWires11.push(e[2]),this.offsetWires11.push(e[3]),this.offsetWires11.push(e[4]),this.offsetWires11.push(e[5]),this.offsetWires11.push(e[6]),this.offsetWires11.push(e[7]),this.ToffsetWires1A1.push(e[8]),this.ToffsetWires1A1.push(e[9]),this.ToffsetWires1A1.push(e[10]),this.ToffsetWires1A1.push(e[11]),this.ToffsetWires1A1.push(e[12]),this.ToffsetWires1A1.push(e[13]),this.ToffsetWires1A1.push(e[14]),this.ToffsetWires1A1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(c),this.ToffsetWires1A2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(m),this.offsetWires11.push(b),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires11.push(_),this.offsetWires11.push(v),this.offsetWires11.push(S),this.offsetWires11.push(M),this.offsetWires11.push(E),this.offsetWires11.push(F),this.ToffsetWires1A2.push(_),this.ToffsetWires1A2.push(v),this.ToffsetWires1A2.push(S),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(E),this.ToffsetWires1A2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires11.push(H),this.offsetWires11.push(X),this.offsetWires11.push(O),this.offsetWires11.push(Z),this.offsetWires11.push(D),this.offsetWires11.push($),this.offsetWires11.push(N),this.offsetWires11.push(G),this.ToffsetWires1A2.push(H),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(Z),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push($),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A2.push(e[1]);break;case A.双分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A2.push(e[2]),this.ToffsetWires1A2.push(e[3]);break;case A.四分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]),this.ToffsetWires1A2.push(e[4]),this.ToffsetWires1A2.push(e[5]),this.ToffsetWires1A2.push(e[6]),this.ToffsetWires1A2.push(e[7]);break;case A.六分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]),this.ToffsetWires1A1.push(e[4]),this.ToffsetWires1A1.push(e[5]),this.ToffsetWires1A2.push(e[6]),this.ToffsetWires1A2.push(e[7]),this.ToffsetWires1A2.push(e[8]),this.ToffsetWires1A2.push(e[9]),this.ToffsetWires1A2.push(e[10]),this.ToffsetWires1A2.push(e[11]);break;case A.八分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]),this.ToffsetWires1A1.push(e[4]),this.ToffsetWires1A1.push(e[5]),this.ToffsetWires1A1.push(e[6]),this.ToffsetWires1A1.push(e[7]),this.ToffsetWires1A2.push(e[8]),this.ToffsetWires1A2.push(e[9]),this.ToffsetWires1A2.push(e[10]),this.ToffsetWires1A2.push(e[11]),this.ToffsetWires1A2.push(e[12]),this.ToffsetWires1A2.push(e[13]),this.ToffsetWires1A2.push(e[14]),this.ToffsetWires1A2.push(e[15]);break}break;case z.B相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires12.push(e[0]),this.ToffsetWires1B1.push(e[1]);break;case A.双分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]);break;case A.四分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.offsetWires12.push(e[2]),this.offsetWires12.push(e[3]),this.ToffsetWires1B1.push(e[4]),this.ToffsetWires1B1.push(e[5]),this.ToffsetWires1B1.push(e[6]),this.ToffsetWires1B1.push(e[7]);break;case A.六分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.offsetWires12.push(e[2]),this.offsetWires12.push(e[3]),this.offsetWires12.push(e[4]),this.offsetWires12.push(e[5]),this.ToffsetWires1B1.push(e[6]),this.ToffsetWires1B1.push(e[7]),this.ToffsetWires1B1.push(e[8]),this.ToffsetWires1B1.push(e[9]),this.ToffsetWires1B1.push(e[10]),this.ToffsetWires1B1.push(e[11]);break;case A.八分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.offsetWires12.push(e[2]),this.offsetWires12.push(e[3]),this.offsetWires12.push(e[4]),this.offsetWires12.push(e[5]),this.offsetWires12.push(e[6]),this.offsetWires12.push(e[7]),this.ToffsetWires1B1.push(e[8]),this.ToffsetWires1B1.push(e[9]),this.ToffsetWires1B1.push(e[10]),this.ToffsetWires1B1.push(e[11]),this.ToffsetWires1B1.push(e[12]),this.ToffsetWires1B1.push(e[13]),this.ToffsetWires1B1.push(e[14]),this.ToffsetWires1B1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires12.push(c),this.ToffsetWires1B2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires12.push(m),this.offsetWires12.push(b),this.ToffsetWires1B2.push(m),this.ToffsetWires1B2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires12.push(_),this.offsetWires12.push(v),this.offsetWires12.push(S),this.offsetWires12.push(M),this.offsetWires12.push(E),this.offsetWires12.push(F),this.ToffsetWires1B2.push(_),this.ToffsetWires1B2.push(v),this.ToffsetWires1B2.push(S),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(E),this.ToffsetWires1B2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires12.push(H),this.offsetWires12.push(X),this.offsetWires12.push(O),this.offsetWires12.push(Z),this.offsetWires12.push(D),this.offsetWires12.push($),this.offsetWires12.push(N),this.offsetWires12.push(G),this.ToffsetWires1B2.push(H),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(Z),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push($),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B2.push(e[0]);break;case A.双分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B2.push(e[2]),this.ToffsetWires1B2.push(e[3]);break;case A.四分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]),this.ToffsetWires1B2.push(e[4]),this.ToffsetWires1B2.push(e[5]),this.ToffsetWires1B2.push(e[6]),this.ToffsetWires1B2.push(e[7]);break;case A.六分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]),this.ToffsetWires1B1.push(e[4]),this.ToffsetWires1B1.push(e[5]),this.ToffsetWires1B2.push(e[6]),this.ToffsetWires1B2.push(e[7]),this.ToffsetWires1B2.push(e[8]),this.ToffsetWires1B2.push(e[9]),this.ToffsetWires1B2.push(e[10]),this.ToffsetWires1B2.push(e[11]);break;case A.八分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]),this.ToffsetWires1B1.push(e[4]),this.ToffsetWires1B1.push(e[5]),this.ToffsetWires1B1.push(e[6]),this.ToffsetWires1B1.push(e[7]),this.ToffsetWires1B2.push(e[8]),this.ToffsetWires1B2.push(e[9]),this.ToffsetWires1B2.push(e[10]),this.ToffsetWires1B2.push(e[11]),this.ToffsetWires1B2.push(e[12]),this.ToffsetWires1B2.push(e[13]),this.ToffsetWires1B2.push(e[14]),this.ToffsetWires1B2.push(e[15]);break}break;case z.C相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires13.push(e[0]),this.ToffsetWires1C1.push(e[1]);break;case A.双分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]);break;case A.四分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.offsetWires13.push(e[2]),this.offsetWires13.push(e[3]),this.ToffsetWires1C1.push(e[4]),this.ToffsetWires1C1.push(e[5]),this.ToffsetWires1C1.push(e[6]),this.ToffsetWires1C1.push(e[7]);break;case A.六分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.offsetWires13.push(e[2]),this.offsetWires13.push(e[3]),this.offsetWires13.push(e[4]),this.offsetWires13.push(e[5]),this.ToffsetWires1C1.push(e[6]),this.ToffsetWires1C1.push(e[7]),this.ToffsetWires1C1.push(e[8]),this.ToffsetWires1C1.push(e[9]),this.ToffsetWires1C1.push(e[10]),this.ToffsetWires1C1.push(e[11]);break;case A.八分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.offsetWires13.push(e[2]),this.offsetWires13.push(e[3]),this.offsetWires13.push(e[4]),this.offsetWires13.push(e[5]),this.offsetWires13.push(e[6]),this.offsetWires13.push(e[7]),this.ToffsetWires1C1.push(e[8]),this.ToffsetWires1C1.push(e[9]),this.ToffsetWires1C1.push(e[10]),this.ToffsetWires1C1.push(e[11]),this.ToffsetWires1C1.push(e[12]),this.ToffsetWires1C1.push(e[13]),this.ToffsetWires1C1.push(e[14]),this.ToffsetWires1C1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires13.push(c),this.ToffsetWires1C2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires13.push(m),this.offsetWires13.push(b),this.ToffsetWires1C2.push(m),this.ToffsetWires1C2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires13.push(_),this.offsetWires13.push(v),this.offsetWires13.push(S),this.offsetWires13.push(M),this.offsetWires13.push(E),this.offsetWires13.push(F),this.ToffsetWires1C2.push(_),this.ToffsetWires1C2.push(v),this.ToffsetWires1C2.push(S),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(E),this.ToffsetWires1C2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires13.push(H),this.offsetWires13.push(X),this.offsetWires13.push(O),this.offsetWires13.push(Z),this.offsetWires13.push(D),this.offsetWires13.push($),this.offsetWires13.push(N),this.offsetWires13.push(G),this.ToffsetWires1C2.push(H),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(Z),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push($),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C2.push(e[0]);break;case A.双分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C2.push(e[2]),this.ToffsetWires1C2.push(e[3]);break;case A.四分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]),this.ToffsetWires1C2.push(e[4]),this.ToffsetWires1C2.push(e[5]),this.ToffsetWires1C2.push(e[6]),this.ToffsetWires1C2.push(e[7]);break;case A.六分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]),this.ToffsetWires1C1.push(e[4]),this.ToffsetWires1C1.push(e[5]),this.ToffsetWires1C2.push(e[6]),this.ToffsetWires1C2.push(e[7]),this.ToffsetWires1C2.push(e[8]),this.ToffsetWires1C2.push(e[9]),this.ToffsetWires1C2.push(e[10]),this.ToffsetWires1C2.push(e[11]);break;case A.八分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]),this.ToffsetWires1C1.push(e[4]),this.ToffsetWires1C1.push(e[5]),this.ToffsetWires1C1.push(e[6]),this.ToffsetWires1C1.push(e[7]),this.ToffsetWires1C2.push(e[8]),this.ToffsetWires1C2.push(e[9]),this.ToffsetWires1C2.push(e[10]),this.ToffsetWires1C2.push(e[11]),this.ToffsetWires1C2.push(e[12]),this.ToffsetWires1C2.push(e[13]),this.ToffsetWires1C2.push(e[14]),this.ToffsetWires1C2.push(e[15]);break}break}else switch(i.PhaseSequence){case z.A相:e.forEach(c=>{this.offsetWires11.push(c)});break;case z.B相:e.forEach(c=>{this.offsetWires12.push(c)});break;case z.C相:e.forEach(c=>{this.offsetWires13.push(c)});break}else if(this.LineInfo.towers[s].type==q.耐张塔)switch(p){case 2:switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires11.push(e[0]),this.ToffsetWires1A1.push(e[0]);break;case A.双分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A2.push(e[0]);break;case A.双分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A2.push(e[2]),this.ToffsetWires1A2.push(e[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(c),this.ToffsetWires1A2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(m),this.offsetWires11.push(b),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(b);break}break;case 5:e.forEach(c=>{this.offsetWires12.push(c),this.ToffsetWires1B1.push(c)});break;case 6:e.forEach(c=>{this.ToffsetWires1B1.push(c),this.ToffsetWires1B2.push(c)});break;case 7:i.InsulatorPoint.forEach(c=>{const m=B(r,new n.Cartesian3(c.X*-1,c.Y,c.Z),W);this.offsetWires12.push(m),this.ToffsetWires1B2.push(m)});break;case 8:e.forEach(c=>{this.offsetWires13.push(c),this.ToffsetWires1C1.push(c)});break;case 9:e.forEach(c=>{this.ToffsetWires1C1.push(c),this.ToffsetWires1C2.push(c)});break;case 10:i.InsulatorPoint.forEach(c=>{const m=B(r,new n.Cartesian3(c.X*-1,c.Y,c.Z),W);this.offsetWires13.push(m),this.ToffsetWires1C2.push(m)});break}else switch(p){case 2:e.forEach(c=>{this.offsetWires11.push(c)});break;case 3:e.forEach(c=>{this.offsetWires12.push(c)});break;case 4:e.forEach(c=>{this.offsetWires13.push(c)});break}break;case rs.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==q.耐张塔)switch(i.PhaseSequence){case z.A相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires21.push(e[0]),this.ToffsetWires2A1.push(e[0]);break;case A.双分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]);break;case A.四分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.offsetWires21.push(e[2]),this.offsetWires21.push(e[3]),this.ToffsetWires2A1.push(e[4]),this.ToffsetWires2A1.push(e[5]),this.ToffsetWires2A1.push(e[6]),this.ToffsetWires2A1.push(e[7]);break;case A.六分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.offsetWires21.push(e[2]),this.offsetWires21.push(e[3]),this.offsetWires21.push(e[4]),this.offsetWires21.push(e[5]),this.ToffsetWires2A1.push(e[6]),this.ToffsetWires2A1.push(e[7]),this.ToffsetWires2A1.push(e[8]),this.ToffsetWires2A1.push(e[9]),this.ToffsetWires2A1.push(e[10]),this.ToffsetWires2A1.push(e[11]);break;case A.八分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.offsetWires21.push(e[2]),this.offsetWires21.push(e[3]),this.offsetWires21.push(e[4]),this.offsetWires21.push(e[5]),this.offsetWires21.push(e[6]),this.offsetWires21.push(e[7]),this.ToffsetWires2A1.push(e[8]),this.ToffsetWires2A1.push(e[9]),this.ToffsetWires2A1.push(e[10]),this.ToffsetWires2A1.push(e[11]),this.ToffsetWires2A1.push(e[12]),this.ToffsetWires2A1.push(e[13]),this.ToffsetWires2A1.push(e[14]),this.ToffsetWires2A1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(c),this.ToffsetWires2A2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires21.push(m),this.offsetWires21.push(b),this.ToffsetWires2A2.push(m),this.ToffsetWires2A2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires21.push(_),this.offsetWires21.push(v),this.offsetWires21.push(S),this.offsetWires21.push(M),this.offsetWires21.push(E),this.offsetWires21.push(F),this.ToffsetWires2A2.push(_),this.ToffsetWires2A2.push(v),this.ToffsetWires2A2.push(S),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(E),this.ToffsetWires2A2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires21.push(H),this.offsetWires21.push(X),this.offsetWires21.push(O),this.offsetWires21.push(Z),this.offsetWires21.push(D),this.offsetWires21.push($),this.offsetWires21.push(N),this.offsetWires21.push(G),this.ToffsetWires2A2.push(H),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(Z),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push($),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A2.push(e[0]);break;case A.双分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A2.push(e[2]),this.ToffsetWires2A2.push(e[3]);break;case A.四分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]),this.ToffsetWires2A2.push(e[4]),this.ToffsetWires2A2.push(e[5]),this.ToffsetWires2A2.push(e[6]),this.ToffsetWires2A2.push(e[7]);break;case A.六分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]),this.ToffsetWires2A1.push(e[4]),this.ToffsetWires2A1.push(e[5]),this.ToffsetWires2A2.push(e[6]),this.ToffsetWires2A2.push(e[7]),this.ToffsetWires2A2.push(e[8]),this.ToffsetWires2A2.push(e[9]),this.ToffsetWires2A2.push(e[10]),this.ToffsetWires2A2.push(e[11]);break;case A.八分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]),this.ToffsetWires2A1.push(e[4]),this.ToffsetWires2A1.push(e[5]),this.ToffsetWires2A1.push(e[6]),this.ToffsetWires2A1.push(e[7]),this.ToffsetWires2A2.push(e[8]),this.ToffsetWires2A2.push(e[9]),this.ToffsetWires2A2.push(e[10]),this.ToffsetWires2A2.push(e[11]),this.ToffsetWires2A2.push(e[12]),this.ToffsetWires2A2.push(e[13]),this.ToffsetWires2A2.push(e[14]),this.ToffsetWires2A2.push(e[15]);break}break;case z.B相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires22.push(e[0]),this.ToffsetWires2B1.push(e[0]);break;case A.双分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]);break;case A.四分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.offsetWires22.push(e[2]),this.offsetWires22.push(e[3]),this.ToffsetWires2B1.push(e[4]),this.ToffsetWires2B1.push(e[5]),this.ToffsetWires2B1.push(e[6]),this.ToffsetWires2B1.push(e[7]);break;case A.六分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.offsetWires22.push(e[2]),this.offsetWires22.push(e[3]),this.offsetWires22.push(e[4]),this.offsetWires22.push(e[5]),this.ToffsetWires2B1.push(e[6]),this.ToffsetWires2B1.push(e[7]),this.ToffsetWires2B1.push(e[8]),this.ToffsetWires2B1.push(e[9]),this.ToffsetWires2B1.push(e[10]),this.ToffsetWires2B1.push(e[11]);break;case A.八分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.offsetWires22.push(e[2]),this.offsetWires22.push(e[3]),this.offsetWires22.push(e[4]),this.offsetWires22.push(e[5]),this.offsetWires22.push(e[6]),this.offsetWires22.push(e[7]),this.ToffsetWires2B1.push(e[8]),this.ToffsetWires2B1.push(e[9]),this.ToffsetWires2B1.push(e[10]),this.ToffsetWires2B1.push(e[11]),this.ToffsetWires2B1.push(e[12]),this.ToffsetWires2B1.push(e[13]),this.ToffsetWires2B1.push(e[14]),this.ToffsetWires2B1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(c),this.ToffsetWires2B2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires22.push(m),this.offsetWires22.push(b),this.ToffsetWires2B2.push(m),this.ToffsetWires2B2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires22.push(_),this.offsetWires22.push(v),this.offsetWires22.push(S),this.offsetWires22.push(M),this.offsetWires22.push(E),this.offsetWires22.push(F),this.ToffsetWires2B2.push(_),this.ToffsetWires2B2.push(v),this.ToffsetWires2B2.push(S),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(E),this.ToffsetWires2B2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires22.push(H),this.offsetWires22.push(X),this.offsetWires22.push(O),this.offsetWires22.push(Z),this.offsetWires22.push(D),this.offsetWires22.push($),this.offsetWires22.push(N),this.offsetWires22.push(G),this.ToffsetWires2B2.push(H),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(Z),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push($),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B2.push(e[0]);break;case A.双分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B2.push(e[2]),this.ToffsetWires2B2.push(e[3]);break;case A.四分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]),this.ToffsetWires2B2.push(e[4]),this.ToffsetWires2B2.push(e[5]),this.ToffsetWires2B2.push(e[6]),this.ToffsetWires2B2.push(e[7]);break;case A.六分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]),this.ToffsetWires2B1.push(e[4]),this.ToffsetWires2B1.push(e[5]),this.ToffsetWires2B2.push(e[6]),this.ToffsetWires2B2.push(e[7]),this.ToffsetWires2B2.push(e[8]),this.ToffsetWires2B2.push(e[9]),this.ToffsetWires2B2.push(e[10]),this.ToffsetWires2B2.push(e[11]);break;case A.八分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]),this.ToffsetWires2B1.push(e[4]),this.ToffsetWires2B1.push(e[5]),this.ToffsetWires2B1.push(e[6]),this.ToffsetWires2B1.push(e[7]),this.ToffsetWires2B2.push(e[8]),this.ToffsetWires2B2.push(e[9]),this.ToffsetWires2B2.push(e[10]),this.ToffsetWires2B2.push(e[11]),this.ToffsetWires2B2.push(e[12]),this.ToffsetWires2B2.push(e[13]),this.ToffsetWires2B2.push(e[14]),this.ToffsetWires2B2.push(e[15]);break}break;case z.C相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires23.push(e[0]),this.ToffsetWires2C1.push(e[0]);break;case A.双分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]);break;case A.四分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.offsetWires23.push(e[2]),this.offsetWires23.push(e[3]),this.ToffsetWires2C1.push(e[4]),this.ToffsetWires2C1.push(e[5]),this.ToffsetWires2C1.push(e[6]),this.ToffsetWires2C1.push(e[7]);break;case A.六分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.offsetWires23.push(e[2]),this.offsetWires23.push(e[3]),this.offsetWires23.push(e[4]),this.offsetWires23.push(e[5]),this.ToffsetWires2C1.push(e[6]),this.ToffsetWires2C1.push(e[7]),this.ToffsetWires2C1.push(e[8]),this.ToffsetWires2C1.push(e[9]),this.ToffsetWires2C1.push(e[10]),this.ToffsetWires2C1.push(e[11]);break;case A.八分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.offsetWires23.push(e[2]),this.offsetWires23.push(e[3]),this.offsetWires23.push(e[4]),this.offsetWires23.push(e[5]),this.offsetWires23.push(e[6]),this.offsetWires23.push(e[7]),this.ToffsetWires2C1.push(e[8]),this.ToffsetWires2C1.push(e[9]),this.ToffsetWires2C1.push(e[10]),this.ToffsetWires2C1.push(e[11]),this.ToffsetWires2C1.push(e[12]),this.ToffsetWires2C1.push(e[13]),this.ToffsetWires2C1.push(e[14]),this.ToffsetWires2C1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,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;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires23.push(m),this.offsetWires23.push(b),this.ToffsetWires2C2.push(m),this.ToffsetWires2C2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires23.push(_),this.offsetWires23.push(v),this.offsetWires23.push(S),this.offsetWires23.push(M),this.offsetWires23.push(E),this.offsetWires23.push(F),this.ToffsetWires2C2.push(_),this.ToffsetWires2C2.push(v),this.ToffsetWires2C2.push(S),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(E),this.ToffsetWires2C2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires23.push(H),this.offsetWires23.push(X),this.offsetWires23.push(O),this.offsetWires23.push(Z),this.offsetWires23.push(D),this.offsetWires23.push($),this.offsetWires23.push(N),this.offsetWires23.push(G),this.ToffsetWires2C2.push(H),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(Z),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push($),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C2.push(e[0]);break;case A.双分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C2.push(e[2]),this.ToffsetWires2C2.push(e[3]);break;case A.四分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]),this.ToffsetWires2C2.push(e[4]),this.ToffsetWires2C2.push(e[5]),this.ToffsetWires2C2.push(e[6]),this.ToffsetWires2C2.push(e[7]);break;case A.六分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]),this.ToffsetWires2C1.push(e[4]),this.ToffsetWires2C1.push(e[5]),this.ToffsetWires2C2.push(e[6]),this.ToffsetWires2C2.push(e[7]),this.ToffsetWires2C2.push(e[8]),this.ToffsetWires2C2.push(e[9]),this.ToffsetWires2C2.push(e[10]),this.ToffsetWires2C2.push(e[11]);break;case A.八分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]),this.ToffsetWires2C1.push(e[4]),this.ToffsetWires2C1.push(e[5]),this.ToffsetWires2C1.push(e[6]),this.ToffsetWires2C1.push(e[7]),this.ToffsetWires2C2.push(e[8]),this.ToffsetWires2C2.push(e[9]),this.ToffsetWires2C2.push(e[10]),this.ToffsetWires2C2.push(e[11]),this.ToffsetWires2C2.push(e[12]),this.ToffsetWires2C2.push(e[13]),this.ToffsetWires2C2.push(e[14]),this.ToffsetWires2C2.push(e[15]);break}break}else switch(i.PhaseSequence){case z.A相:e.forEach(c=>{this.offsetWires21.push(c)});break;case z.B相:e.forEach(c=>{this.offsetWires22.push(c)});break;case z.C相:e.forEach(c=>{this.offsetWires23.push(c)});break}else if(this.LineInfo.towers[s].type==q.耐张塔)switch(p){case 11:this.offsetWires21.push(e[0]),this.ToffsetWires2A1.push(e[0]);break;case 12:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A2.push(e[0]);break;case 13:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(c),this.ToffsetWires2A2.push(c);break;case 14:this.offsetWires22.push(e[0]),this.ToffsetWires2B1.push(e[0]);break;case 15:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B2.push(e[0]);break;case 16:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(m),this.ToffsetWires2B2.push(m);break;case 17:this.offsetWires23.push(e[0]),this.ToffsetWires2C1.push(e[0]);break;case 18:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C2.push(e[0]);break;case 19:const b=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(b),this.ToffsetWires2C2.push(b);break}else switch(p){case 5:e.forEach(c=>{this.offsetWires21.push(c)});break;case 6:e.forEach(c=>{this.offsetWires22.push(c)});break;case 7:e.forEach(c=>{this.offsetWires23.push(c)});break}break;case rs.地线:if(this.LineInfo.ISPhaseSequence)switch(i.PhaseSequence){case z.地线1:this.offsetGrouundWires11.push(e[0]);break;case z.地线2:this.offsetGrouundWires12.push(e[0]);break}else switch(p){case 0:this.offsetGrouundWires11.push(e[0]);break;case 1:this.offsetGrouundWires12.push(e[0]);break}break}p=p+1}),this.offsetWires11.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires11.length>=2&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(i),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case A.双分裂:this.offsetWires11.length>=4&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)));break;case A.四分裂:this.offsetWires11.length>=8&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires11[o+3]),C.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case A.六分裂:this.offsetWires11.length>=12&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires11[o+3]),C.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(C),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)));break;case A.八分裂:this.offsetWires11.length>=16&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-8]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires11[o+3]),C.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(C),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)));break}}if(this.offsetWires12.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))});break;case A.双分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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));break;case A.四分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires12[o+3]),C.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires12[o+3]),C.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(C),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));break;case A.八分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-8]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires12[o+3]),C.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(C),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));break}}if(this.offsetWires13.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+3]),C.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+3]),C.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+4]),e.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires13[o+5]),c.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-8]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-7]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+3]),C.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+4]),e.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires13[o+5]),c.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[o+6]),m.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(m),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires13[o+7]),b.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(b),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+3]),C.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+3]),C.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+4]),e.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires21[o+5]),c.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-8]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-7]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+3]),C.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+4]),e.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires21[o+5]),c.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[o+6]),m.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(m),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires21[o+7]),b.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(b),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+3]),C.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+3]),C.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+4]),e.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires22[o+5]),c.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-8]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-7]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+3]),C.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+4]),e.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires22[o+5]),c.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[o+6]),m.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(m),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires22[o+7]),b.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(b),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+3]),C.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+3]),C.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+4]),e.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires23[o+5]),c.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-8]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-7]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+3]),C.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+4]),e.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires23[o+5]),c.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[o+6]),m.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(m),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires23[o+7]),b.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(b),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const i=[];i.push(this.offsetGrouundWires11[s]),i.push(this.offsetGrouundWires11[s-1]);const l=[];l.push(this.offsetGrouundWires12[s]),l.push(this.offsetGrouundWires12[s-1]),this.offsetGrouundWires1=f(i,2),this.offsetGrouundWires2=f(l,2),this.offsetGrouundWires1.forEach(u=>{this.arcLine1D1.push(J(this.viewer.scene.globe.ellipsoid,u))}),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))}let d=2;if(this.LineInfo.towers[s].type==q.耐张塔){switch(this.LineInfo.Wairnum){case A.单分裂:o=o+d,t=t+d;break;case A.双分裂:o=o+d*2,t=t+d*2;break;case A.四分裂:o=o+d*4,t=t+d*4;break;case A.六分裂:o=o+d*6,t=t+d*6;break;case A.八分裂:o=o+d*8,t=t+d*8;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1A1.length>=2&&(i.push(this.ToffsetWires1A1[t-2]),i.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(I.push(this.ToffsetWires1A2[t-2]),I.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires1A1.length>=4&&(i.push(this.ToffsetWires1A1[t-4]),i.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-3]),l.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(I.push(this.ToffsetWires1A2[t-4]),I.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-3]),P.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires1A1.length>=8&&(i.push(this.ToffsetWires1A1[t-8]),i.push(this.ToffsetWires1A1[t-4]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-7]),l.push(this.ToffsetWires1A1[t-3]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[t-6]),u.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[t-5]),C.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(I.push(this.ToffsetWires1A2[t-8]),I.push(this.ToffsetWires1A2[t-4]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-7]),P.push(this.ToffsetWires1A2[t-3]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[t-6]),g.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[t-5]),y.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires1A1.length>=12&&(i.push(this.ToffsetWires1A1[t-12]),i.push(this.ToffsetWires1A1[t-6]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-11]),l.push(this.ToffsetWires1A1[t-5]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[t-10]),u.push(this.ToffsetWires1A1[t-4]),this.ToffsetArcWires1A=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[t-9]),C.push(this.ToffsetWires1A1[t-3]),this.ToffsetArcWires1A=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[t-8]),e.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1A1[t-7]),c.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(I.push(this.ToffsetWires1A2[t-12]),I.push(this.ToffsetWires1A2[t-6]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-11]),P.push(this.ToffsetWires1A2[t-5]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[t-10]),g.push(this.ToffsetWires1A2[t-4]),this.ToffsetArcWires2A=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[t-9]),y.push(this.ToffsetWires1A2[t-3]),this.ToffsetArcWires2A=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[t-8]),_.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[t-7]),v.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires1A1.length>=16&&(i.push(this.ToffsetWires1A1[t-16]),i.push(this.ToffsetWires1A1[t-8]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-15]),l.push(this.ToffsetWires1A1[t-7]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[t-14]),u.push(this.ToffsetWires1A1[t-6]),this.ToffsetArcWires1A=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[t-13]),C.push(this.ToffsetWires1A1[t-5]),this.ToffsetArcWires1A=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[t-12]),e.push(this.ToffsetWires1A1[t-4]),this.ToffsetArcWires1A=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1A1[t-11]),c.push(this.ToffsetWires1A1[t-3]),this.ToffsetArcWires1A=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[t-10]),m.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A1[t-9]),b.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(I.push(this.ToffsetWires1A2[t-16]),I.push(this.ToffsetWires1A2[t-8]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-15]),P.push(this.ToffsetWires1A2[t-7]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[t-14]),g.push(this.ToffsetWires1A2[t-6]),this.ToffsetArcWires2A=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[t-13]),y.push(this.ToffsetWires1A2[t-5]),this.ToffsetArcWires2A=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[t-12]),_.push(this.ToffsetWires1A2[t-4]),this.ToffsetArcWires2A=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[t-11]),v.push(this.ToffsetWires1A2[t-3]),this.ToffsetArcWires2A=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires1A2[t-10]),S.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1A2[t-9]),M.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1B1.length>=2&&(i.push(this.ToffsetWires1B1[t-2]),i.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(I.push(this.ToffsetWires1B2[t-2]),I.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires1B1.length>=4&&(i.push(this.ToffsetWires1B1[t-4]),i.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-3]),l.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(I.push(this.ToffsetWires1B2[t-4]),I.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-3]),P.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires1B1.length>=8&&(i.push(this.ToffsetWires1B1[t-8]),i.push(this.ToffsetWires1B1[t-4]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-7]),l.push(this.ToffsetWires1B1[t-3]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[t-6]),u.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[t-5]),C.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(I.push(this.ToffsetWires1B2[t-8]),I.push(this.ToffsetWires1B2[t-4]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-7]),P.push(this.ToffsetWires1B2[t-3]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[t-6]),g.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[t-5]),y.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires1B1.length>=12&&(i.push(this.ToffsetWires1B1[t-12]),i.push(this.ToffsetWires1B1[t-6]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-11]),l.push(this.ToffsetWires1B1[t-5]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[t-10]),u.push(this.ToffsetWires1B1[t-4]),this.ToffsetArcWires1B=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[t-9]),C.push(this.ToffsetWires1B1[t-3]),this.ToffsetArcWires1B=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[t-8]),e.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1B1[t-7]),c.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(I.push(this.ToffsetWires1B2[t-12]),I.push(this.ToffsetWires1B2[t-6]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-11]),P.push(this.ToffsetWires1B2[t-5]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[t-10]),g.push(this.ToffsetWires1B2[t-4]),this.ToffsetArcWires2B=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[t-9]),y.push(this.ToffsetWires1B2[t-3]),this.ToffsetArcWires2B=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[t-8]),_.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[t-7]),v.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires1B1.length>=16&&(i.push(this.ToffsetWires1B1[t-16]),i.push(this.ToffsetWires1B1[t-8]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-15]),l.push(this.ToffsetWires1B1[t-7]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[t-14]),u.push(this.ToffsetWires1B1[t-6]),this.ToffsetArcWires1B=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[t-13]),C.push(this.ToffsetWires1B1[t-5]),this.ToffsetArcWires1B=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[t-12]),e.push(this.ToffsetWires1B1[t-4]),this.ToffsetArcWires1B=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1B1[t-11]),c.push(this.ToffsetWires1B1[t-3]),this.ToffsetArcWires1B=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[t-10]),m.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B1[t-9]),b.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(I.push(this.ToffsetWires1B2[t-16]),I.push(this.ToffsetWires1B2[t-8]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-15]),P.push(this.ToffsetWires1B2[t-7]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[t-14]),g.push(this.ToffsetWires1B2[t-6]),this.ToffsetArcWires2B=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[t-13]),y.push(this.ToffsetWires1B2[t-5]),this.ToffsetArcWires2B=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[t-12]),_.push(this.ToffsetWires1B2[t-4]),this.ToffsetArcWires2B=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[t-11]),v.push(this.ToffsetWires1B2[t-3]),this.ToffsetArcWires2B=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires1B2[t-10]),S.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1B2[t-9]),M.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1C1.length>=2&&(i.push(this.ToffsetWires1C1[t-2]),i.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(I.push(this.ToffsetWires1C2[t-2]),I.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires1C1.length>=4&&(i.push(this.ToffsetWires1C1[t-4]),i.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-3]),l.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(I.push(this.ToffsetWires1C2[t-4]),I.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-3]),P.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires1C1.length>=8&&(i.push(this.ToffsetWires1C1[t-8]),i.push(this.ToffsetWires1C1[t-4]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-7]),l.push(this.ToffsetWires1C1[t-3]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[t-6]),u.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[t-5]),C.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(I.push(this.ToffsetWires1C2[t-8]),I.push(this.ToffsetWires1C2[t-4]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-7]),P.push(this.ToffsetWires1C2[t-3]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[t-6]),g.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[t-5]),y.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires1C1.length>=12&&(i.push(this.ToffsetWires1C1[t-12]),i.push(this.ToffsetWires1C1[t-6]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-11]),l.push(this.ToffsetWires1C1[t-5]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[t-10]),u.push(this.ToffsetWires1C1[t-4]),this.ToffsetArcWires1C=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[t-9]),C.push(this.ToffsetWires1C1[t-3]),this.ToffsetArcWires1C=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[t-8]),e.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1C1[t-7]),c.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(I.push(this.ToffsetWires1C2[t-12]),I.push(this.ToffsetWires1C2[t-6]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-11]),P.push(this.ToffsetWires1C2[t-5]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[t-10]),g.push(this.ToffsetWires1C2[t-4]),this.ToffsetArcWires2C=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[t-9]),y.push(this.ToffsetWires1C2[t-3]),this.ToffsetArcWires2C=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[t-8]),_.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[t-7]),v.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires1C1.length>=16&&(i.push(this.ToffsetWires1C1[t-16]),i.push(this.ToffsetWires1C1[t-8]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-15]),l.push(this.ToffsetWires1C1[t-7]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[t-14]),u.push(this.ToffsetWires1C1[t-6]),this.ToffsetArcWires1C=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[t-13]),C.push(this.ToffsetWires1C1[t-5]),this.ToffsetArcWires1C=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[t-12]),e.push(this.ToffsetWires1C1[t-4]),this.ToffsetArcWires1C=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1C1[t-11]),c.push(this.ToffsetWires1C1[t-3]),this.ToffsetArcWires1C=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[t-10]),m.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C1[t-9]),b.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(I.push(this.ToffsetWires1C2[t-16]),I.push(this.ToffsetWires1C2[t-8]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-15]),P.push(this.ToffsetWires1C2[t-7]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[t-14]),g.push(this.ToffsetWires1C2[t-6]),this.ToffsetArcWires2C=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[t-13]),y.push(this.ToffsetWires1C2[t-5]),this.ToffsetArcWires2C=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[t-12]),_.push(this.ToffsetWires1C2[t-4]),this.ToffsetArcWires2C=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[t-11]),v.push(this.ToffsetWires1C2[t-3]),this.ToffsetArcWires2C=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires1C2[t-10]),S.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1C2[t-9]),M.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2A1.length>=2&&(i.push(this.ToffsetWires2A1[t-2]),i.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(I.push(this.ToffsetWires2A2[t-2]),I.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires2A1.length>=4&&(i.push(this.ToffsetWires2A1[t-4]),i.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-3]),l.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(I.push(this.ToffsetWires2A2[t-4]),I.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-3]),P.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires2A1.length>=8&&(i.push(this.ToffsetWires2A1[t-8]),i.push(this.ToffsetWires2A1[t-4]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-7]),l.push(this.ToffsetWires2A1[t-3]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[t-6]),u.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[t-5]),C.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(I.push(this.ToffsetWires2A2[t-8]),I.push(this.ToffsetWires2A2[t-4]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-7]),P.push(this.ToffsetWires2A2[t-3]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[t-6]),g.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[t-5]),y.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires2A1.length>=12&&(i.push(this.ToffsetWires2A1[t-12]),i.push(this.ToffsetWires2A1[t-6]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-11]),l.push(this.ToffsetWires2A1[t-5]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[t-10]),u.push(this.ToffsetWires2A1[t-4]),this.ToffsetArcWires1A2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[t-9]),C.push(this.ToffsetWires2A1[t-3]),this.ToffsetArcWires1A2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[t-8]),e.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2A1[t-7]),c.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(I.push(this.ToffsetWires2A2[t-12]),I.push(this.ToffsetWires2A2[t-6]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-11]),P.push(this.ToffsetWires2A2[t-5]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[t-10]),g.push(this.ToffsetWires2A2[t-4]),this.ToffsetArcWires2A2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[t-9]),y.push(this.ToffsetWires2A2[t-3]),this.ToffsetArcWires2A2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[t-8]),_.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[t-7]),v.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires2A1.length>=16&&(i.push(this.ToffsetWires2A1[t-16]),i.push(this.ToffsetWires2A1[t-8]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-15]),l.push(this.ToffsetWires2A1[t-7]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[t-14]),u.push(this.ToffsetWires2A1[t-6]),this.ToffsetArcWires1A2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[t-13]),C.push(this.ToffsetWires2A1[t-5]),this.ToffsetArcWires1A2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[t-12]),e.push(this.ToffsetWires2A1[t-4]),this.ToffsetArcWires1A2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2A1[t-11]),c.push(this.ToffsetWires2A1[t-3]),this.ToffsetArcWires1A2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[t-10]),m.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A1[t-9]),b.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(I.push(this.ToffsetWires2A2[t-16]),I.push(this.ToffsetWires2A2[t-8]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-15]),P.push(this.ToffsetWires2A2[t-7]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[t-14]),g.push(this.ToffsetWires2A2[t-6]),this.ToffsetArcWires2A2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[t-13]),y.push(this.ToffsetWires2A2[t-5]),this.ToffsetArcWires2A2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[t-12]),_.push(this.ToffsetWires2A2[t-4]),this.ToffsetArcWires2A2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[t-11]),v.push(this.ToffsetWires2A2[t-3]),this.ToffsetArcWires2A2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires2A2[t-10]),S.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2A2[t-9]),M.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2B1.length>=2&&(i.push(this.ToffsetWires2B1[t-2]),i.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(I.push(this.ToffsetWires2B2[t-2]),I.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires2B1.length>=4&&(i.push(this.ToffsetWires2B1[t-4]),i.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-3]),l.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(I.push(this.ToffsetWires2B2[t-4]),I.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-3]),P.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires2B1.length>=8&&(i.push(this.ToffsetWires2B1[t-8]),i.push(this.ToffsetWires2B1[t-4]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-7]),l.push(this.ToffsetWires2B1[t-3]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[t-6]),u.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[t-5]),C.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(I.push(this.ToffsetWires2B2[t-8]),I.push(this.ToffsetWires2B2[t-4]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-7]),P.push(this.ToffsetWires2B2[t-3]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[t-6]),g.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[t-5]),y.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires2B1.length>=12&&(i.push(this.ToffsetWires2B1[t-12]),i.push(this.ToffsetWires2B1[t-6]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-11]),l.push(this.ToffsetWires2B1[t-5]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[t-10]),u.push(this.ToffsetWires2B1[t-4]),this.ToffsetArcWires1B2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[t-9]),C.push(this.ToffsetWires2B1[t-3]),this.ToffsetArcWires1B2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[t-8]),e.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2B1[t-7]),c.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(I.push(this.ToffsetWires2B2[t-12]),I.push(this.ToffsetWires2B2[t-6]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-11]),P.push(this.ToffsetWires2B2[t-5]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[t-10]),g.push(this.ToffsetWires2B2[t-4]),this.ToffsetArcWires2B2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[t-9]),y.push(this.ToffsetWires2B2[t-3]),this.ToffsetArcWires2B2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[t-8]),_.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[t-7]),v.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires2B1.length>=16&&(i.push(this.ToffsetWires2B1[t-16]),i.push(this.ToffsetWires2B1[t-8]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-15]),l.push(this.ToffsetWires2B1[t-7]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[t-14]),u.push(this.ToffsetWires2B1[t-6]),this.ToffsetArcWires1B2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[t-13]),C.push(this.ToffsetWires2B1[t-5]),this.ToffsetArcWires1B2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[t-12]),e.push(this.ToffsetWires2B1[t-4]),this.ToffsetArcWires1B2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2B1[t-11]),c.push(this.ToffsetWires2B1[t-3]),this.ToffsetArcWires1B2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[t-10]),m.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B1[t-9]),b.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(I.push(this.ToffsetWires2B2[t-16]),I.push(this.ToffsetWires2B2[t-8]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-15]),P.push(this.ToffsetWires2B2[t-7]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[t-14]),g.push(this.ToffsetWires2B2[t-6]),this.ToffsetArcWires2B2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[t-13]),y.push(this.ToffsetWires2B2[t-5]),this.ToffsetArcWires2B2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[t-12]),_.push(this.ToffsetWires2B2[t-4]),this.ToffsetArcWires2B2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[t-11]),v.push(this.ToffsetWires2B2[t-3]),this.ToffsetArcWires2B2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires2B2[t-10]),S.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2B2[t-9]),M.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2C1.length>=2&&(i.push(this.ToffsetWires2C1[t-2]),i.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(I.push(this.ToffsetWires2C2[t-2]),I.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires2C1.length>=4&&(i.push(this.ToffsetWires2C1[t-4]),i.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-3]),l.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(I.push(this.ToffsetWires2C2[t-4]),I.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-3]),P.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires2C1.length>=8&&(i.push(this.ToffsetWires2C1[t-8]),i.push(this.ToffsetWires2C1[t-4]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-7]),l.push(this.ToffsetWires2C1[t-3]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[t-6]),u.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[t-5]),C.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(I.push(this.ToffsetWires2C2[t-8]),I.push(this.ToffsetWires2C2[t-4]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-7]),P.push(this.ToffsetWires2C2[t-3]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[t-6]),g.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[t-5]),y.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires2C1.length>=12&&(i.push(this.ToffsetWires2C1[t-12]),i.push(this.ToffsetWires2C1[t-6]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-11]),l.push(this.ToffsetWires2C1[t-5]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[t-10]),u.push(this.ToffsetWires2C1[t-4]),this.ToffsetArcWires1C2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[t-9]),C.push(this.ToffsetWires2C1[t-3]),this.ToffsetArcWires1C2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[t-8]),e.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2C1[t-7]),c.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(I.push(this.ToffsetWires2C2[t-12]),I.push(this.ToffsetWires2C2[t-6]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-11]),P.push(this.ToffsetWires2C2[t-5]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[t-10]),g.push(this.ToffsetWires2C2[t-4]),this.ToffsetArcWires2C2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[t-9]),y.push(this.ToffsetWires2C2[t-3]),this.ToffsetArcWires2C2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[t-8]),_.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[t-7]),v.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires2C1.length>=16&&(i.push(this.ToffsetWires2C1[t-16]),i.push(this.ToffsetWires2C1[t-8]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-15]),l.push(this.ToffsetWires2C1[t-7]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[t-14]),u.push(this.ToffsetWires2C1[t-6]),this.ToffsetArcWires1C2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[t-13]),C.push(this.ToffsetWires2C1[t-5]),this.ToffsetArcWires1C2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[t-12]),e.push(this.ToffsetWires2C1[t-4]),this.ToffsetArcWires1C2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2C1[t-11]),c.push(this.ToffsetWires2C1[t-3]),this.ToffsetArcWires1C2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[t-10]),m.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C1[t-9]),b.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(I.push(this.ToffsetWires2C2[t-16]),I.push(this.ToffsetWires2C2[t-8]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-15]),P.push(this.ToffsetWires2C2[t-7]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[t-14]),g.push(this.ToffsetWires2C2[t-6]),this.ToffsetArcWires2C2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[t-13]),y.push(this.ToffsetWires2C2[t-5]),this.ToffsetArcWires2C2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[t-12]),_.push(this.ToffsetWires2C2[t-4]),this.ToffsetArcWires2C2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[t-11]),v.push(this.ToffsetWires2C2[t-3]),this.ToffsetArcWires2C2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires2C2[t-10]),S.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2C2[t-9]),M.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(M,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case A.单分裂:o=o+1;break;case A.双分裂:o=o+2;break;case A.四分裂:o=o+4;break;case A.六分裂:o=o+6;break;case A.八分裂:o=o+8;break}})}addTreeData(o){this.LineInfo.Trees.push(o)}loadTree(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.contains(this.dataSourcetree)||(this.viewer.dataSources.add(this.dataSourcetree),console.log("Added tree datasource to viewer in loadTree")),this.entityCollectiontree.show=!0,this.isDynamicLoadingEnabled?(this.setupTreeCameraMoveListener(),this.updateVisibleTrees()):this.loadAllTreesAtOnce())}loadAllTreesAtOnce(){this.LineInfo.Trees.length!==this.offsetTrees.length&&console.warn(`树木数据长度 (${this.LineInfo.Trees.length}) 与位置数据长度 (${this.offsetTrees.length}) 不匹配`);const o=Math.min(this.LineInfo.Trees.length,this.offsetTrees.length);for(let t=0;t<o;t++){const r=this.LineInfo.Trees[t],s=this.offsetTrees[t];r&&s?this.loadTreeAtIndex(t,s):console.warn(`跳过无效的树木数据,索引: ${t}`)}console.log(`完成加载 ${o} 棵树木`)}loadTreeAtIndex(o,t){const r=this.LineInfo.Trees[o];if(!r.modelurl||r.modelurl.trim()===""){console.warn(`Tree ${o} has invalid model URL: ${r.modelurl}. Skipping...`);return}console.log(`Loading tree ${o}: id=${r.id}, url=${r.modelurl}, lon=${r.lon}, lat=${r.lat}, alt=${r.alt}, treeH=${r.treeH}, treeScale=${r.treeScale}`);let s=1;r.treeScale>0&&r.treeH>0?(s=r.treeH/r.treeScale,s<=0&&(s=1)):r.treeH>0&&(s=r.treeH),console.log(`Tree ${o} scale: ${s} (treeH=${r.treeH}, treeScale=${r.treeScale})`);const T=this.getCachedModelConfig(r.modelurl,s,0,2e4);this.entityCollectiontree.add(Ws("tree-"+r.id,t,"tree-"+r.id,T.uri,new n.HeadingPitchRoll(0,0,0),T.scale,T.distanceDisplayCondition)),console.log(`Tree ${o} added. Total trees in collection: ${this.entityCollectiontree.values.length}`)}flyToTree(o){if(o<0||o>=this.LineInfo.Trees.length){console.warn(`Invalid tree index: ${o}. Valid range: 0-${this.LineInfo.Trees.length-1}`);return}const t=this.LineInfo.Trees[o],r=n.Cartesian3.fromDegrees(t.lon,t.lat,t.alt+(t.treeH||0));this.viewer.camera.flyTo({destination:r,duration:2,orientation:{heading:n.Math.toRadians(0),pitch:n.Math.toRadians(-60),roll:n.Math.toRadians(0)}}),console.log(`Flying to tree ${o}: lon=${t.lon}, lat=${t.lat}, alt=${t.alt}, treeH=${t.treeH}`)}calcResult(o){const t=js(o,this.arcLine1A1,this.arcLine1B1,this.arcLine1D1);Qs(o,t,this.entityCollectionplotting)}loadTreeListen(){this.treeHandler&&this.removeTreeListen();const o=(t,r)=>{var T;const s=t.scene.pick(r);if(n.defined(s)){const W=n.defaultValue(s.id,(T=s.primitive)==null?void 0:T.id);if(W instanceof n.Entity)return W}};this.ensurePlottingDataSourceAdded(),this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(t=>{var s;const r=o(this.viewer,t.position);if(r&&r.id){const T=String(r.id);if(T.startsWith(hs.TREE_ENTITY_PREFIX)){const W=T.substring(hs.TREE_ENTITY_PREFIX.length),L=(s=this.LineInfo.Trees)==null?void 0:s.find(p=>p&&p.id&&String(p.id)===W);if(L){const p=[L.lon,L.lat,Number(L.alt||0)+Number(L.treeH||0)];console.log("拾取树木:",L,"坐标:",p),this.calcResult(p)}else console.warn(`未找到ID为 ${W} 的树木`)}}},n.ScreenSpaceEventType.LEFT_CLICK)}ensurePlottingDataSourceAdded(){this.viewer.dataSources.contains(this.dataSourceplotting)||this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.entityCollectionplotting.removeAll(),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.ensurePlottingDataSourceAdded(),this.LineInfo.Trees.forEach(o=>{if(o){const t=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(t)}})}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.entityCollection2.show=!0,this.viewer.dataSources.add(this.LinedataSource2),this.LineentityCollection2.show=!0)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.contains(this.dataSourcetree)||(this.viewer.dataSources.add(this.dataSourcetree),console.log("Added tree datasource to viewer")),this.entityCollectiontree.show=!0,console.log(`Tree entity collection show: ${this.entityCollectiontree.show}, entities count: ${this.entityCollectiontree.values.length}`))}RemoveTreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSourcetree),this.entityCollectiontree.show=!1,this.loadedTreeIndices.clear())}reloadTrees(){this.RemoveTreeModel(),this.dataSourcetree=new n.CustomDataSource(this.LineInfo.LineID+"tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.loadTree()}LineSpriteLineinit(){n.Material._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new n.Color(1,1,0,1),speed:2},source:`
|
|
1
|
+
(function(k,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("cesium")):typeof define=="function"&&define.amd?define(["exports","cesium"],R):(k=typeof globalThis<"u"?globalThis:k||self,R(k.OW_EEngine_Power={},k.Cesium))})(this,function(k,R){"use strict";var Tt=Object.defineProperty;var Ct=(k,R,is)=>R in k?Tt(k,R,{enumerable:!0,configurable:!0,writable:!0,value:is}):k[R]=is;var w=(k,R,is)=>Ct(k,typeof R!="symbol"?R+"":R,is);function is(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>a[t]})}}return o.default=a,Object.freeze(o)}const n=is(R);function Es(a,o,t={}){const{color:r=R.Color.WHITE,width:s=3,clampToGround:T=!1,zIndex:W=0,dashed:L=!1,dashLength:p=10}=t,d=L?new n.PolylineDashMaterialProperty({color:r,dashLength:p}):new n.ColorMaterialProperty(r);return a.entities.add({polyline:{positions:o,width:s,material:d,clampToGround:T,zIndex:W}})}function h(a,o,t=10,r="#ba1919",s,T=!1){const W={show:!0,positions:a,clampToGround:T,width:t,material:n.Color.fromCssColorString(r),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED,granularity:T?void 0:0};let L;return L=[0,1e5],W.distanceDisplayCondition=new n.DistanceDisplayCondition(L[0],L[1]),{name:o,label:{text:o,font:"18px sans-serif",distanceDisplayCondition:new n.DistanceDisplayCondition(L[0],Math.min(L[1],5e3))},polyline:W}}function Ws(a,o,t,r,s=new n.HeadingPitchRoll(0,0,0),T=1,W){const L={show:!0,uri:r,scale:T,transition:{distanceDisplayCondition:!0,scale:!0}};return W&&(Array.isArray(W)?L.distanceDisplayCondition=new n.DistanceDisplayCondition(W[0],W[1]):L.distanceDisplayCondition=W),{id:a,name:t,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:L}}function fs(a,o,t,r={}){const{pointColor:s=R.Color.YELLOW,pointSize:T=12,labelColor:W=R.Color.WHITE,fontSize:L=16,pixelOffset:p=[0,-20],heightReference:d=R.HeightReference.NONE}=r;return a.entities.add({position:o,point:{color:s,pixelSize:T,heightReference:d,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)},label:{text:t,font:`${L}px sans-serif`,fillColor:W,pixelOffset:new n.Cartesian2(...p),style:R.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:R.Color.BLACK,heightReference:d,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)}})}var V=63710088e-1,ws={centimeters:V*100,centimetres:V*100,degrees:V/111325,feet:V*3.28084,inches:V*39.37,kilometers:V/1e3,kilometres:V/1e3,meters:V,metres:V,miles:V/1609.344,millimeters:V*1e3,millimetres:V*1e3,nauticalmiles:V/1852,radians:1,yards:V*1.0936};function es(a,o,t){t===void 0&&(t={});var r={type:"Feature"};return(t.id===0||t.id)&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.properties=o||{},r.geometry=a,r}function j(a,o,t){if(t===void 0&&(t={}),!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(!Ps(a[0])||!Ps(a[1]))throw new Error("coordinates must contain numbers");var r={type:"Point",coordinates:a};return es(r,o,t)}function U(a,o,t){if(t===void 0&&(t={}),a.length<2)throw new Error("coordinates must be an array of two or more positions");var r={type:"LineString",coordinates:a};return es(r,o,t)}function Xs(a,o){o===void 0&&(o={});var t={type:"FeatureCollection"};return o.id&&(t.id=o.id),o.bbox&&(t.bbox=o.bbox),t.features=a,t}function Is(a,o){o===void 0&&(o="kilometers");var t=ws[o];if(!t)throw new Error(o+" units is invalid");return a*t}function ds(a,o){o===void 0&&(o="kilometers");var t=ws[o];if(!t)throw new Error(o+" units is invalid");return a/t}function ls(a){var o=a%(2*Math.PI);return o*180/Math.PI}function K(a){var o=a%360;return o*Math.PI/180}function Bs(a,o,t){if(o===void 0&&(o="kilometers"),t===void 0&&(t="kilometers"),!(a>=0))throw new Error("length must be a positive number");return Is(ds(a,o),t)}function Ps(a){return!isNaN(a)&&a!==null&&!Array.isArray(a)}function Ys(a){return!!a&&a.constructor===Object}function ys(a,o,t){if(a!==null)for(var r,s,T,W,L,p,d,i=0,l=0,u,C=a.type,e=C==="FeatureCollection",c=C==="Feature",m=e?a.features.length:1,b=0;b<m;b++){d=e?a.features[b].geometry:c?a.geometry:a,u=d?d.type==="GeometryCollection":!1,L=u?d.geometries.length:1;for(var I=0;I<L;I++){var P=0,g=0;if(W=u?d.geometries[I]:d,W!==null){p=W.coordinates;var y=W.type;switch(i=0,y){case null:break;case"Point":if(o(p,l,b,P,g)===!1)return!1;l++,P++;break;case"LineString":case"MultiPoint":for(r=0;r<p.length;r++){if(o(p[r],l,b,P,g)===!1)return!1;l++,y==="MultiPoint"&&P++}y==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(r=0;r<p.length;r++){for(s=0;s<p[r].length-i;s++){if(o(p[r][s],l,b,P,g)===!1)return!1;l++}y==="MultiLineString"&&P++,y==="Polygon"&&g++}y==="Polygon"&&P++;break;case"MultiPolygon":for(r=0;r<p.length;r++){for(g=0,s=0;s<p[r].length;s++){for(T=0;T<p[r][s].length-i;T++){if(o(p[r][s][T],l,b,P,g)===!1)return!1;l++}g++}P++}break;case"GeometryCollection":for(r=0;r<W.geometries.length;r++)if(ys(W.geometries[r],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Fs(a,o){if(a.type==="Feature")o(a,0);else if(a.type==="FeatureCollection")for(var t=0;t<a.features.length&&o(a.features[t],t)!==!1;t++);}function Ds(a,o){var t,r,s,T,W,L,p,d,i,l,u=0,C=a.type==="FeatureCollection",e=a.type==="Feature",c=C?a.features.length:1;for(t=0;t<c;t++){for(L=C?a.features[t].geometry:e?a.geometry:a,d=C?a.features[t].properties:e?a.properties:{},i=C?a.features[t].bbox:e?a.bbox:void 0,l=C?a.features[t].id:e?a.id:void 0,p=L?L.type==="GeometryCollection":!1,W=p?L.geometries.length:1,s=0;s<W;s++){if(T=p?L.geometries[s]:L,T===null){if(o(null,u,d,i,l)===!1)return!1;continue}switch(T.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(T,u,d,i,l)===!1)return!1;break}case"GeometryCollection":{for(r=0;r<T.geometries.length;r++)if(o(T.geometries[r],u,d,i,l)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}u++}}function Hs(a,o){Ds(a,function(t,r,s,T,W){var L=t===null?null:t.type;switch(L){case null:case"Point":case"LineString":case"Polygon":return o(es(t,s,{bbox:T,id:W}),r,0)===!1?!1:void 0}var p;switch(L){case"MultiPoint":p="Point";break;case"MultiLineString":p="LineString";break;case"MultiPolygon":p="Polygon";break}for(var d=0;d<t.coordinates.length;d++){var i=t.coordinates[d],l={type:p,coordinates:i};if(o(es(l,s),r,d)===!1)return!1}})}function Os(a,o){Hs(a,function(t,r,s){var T=0;if(t.geometry){var W=t.geometry.type;if(!(W==="Point"||W==="MultiPoint")){var L,p=0,d=0,i=0;if(ys(t,function(l,u,C,e,c){if(L===void 0||r>p||e>d||c>i){L=l,p=r,d=e,i=c,T=0;return}var m=U([L,l],t.properties);if(o(m,r,s,c,T)===!1)return!1;T++,L=l})===!1)return!1}}})}function x(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 gs(a,o,t){if(!a)throw new Error("No feature passed");if(!t)throw new Error(".featureOf() requires a name");if(!a||a.type!=="Feature"||!a.geometry)throw new Error("Invalid input to "+t+", Feature with geometry required");if(!a.geometry||a.geometry.type!==o)throw new Error("Invalid input to "+t+": must be a "+o+", given "+a.geometry.type)}var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ss(a,o,t){t===void 0&&(t={});var r=x(a),s=x(o),T=K(s[1]-r[1]),W=K(s[0]-r[0]),L=K(r[1]),p=K(s[1]),d=Math.pow(Math.sin(T/2),2)+Math.pow(Math.sin(W/2),2)*Math.cos(L)*Math.cos(p);return Is(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),t.units)}function $s(a){if(!a)throw new Error("geojson is required");switch(a.type){case"Feature":return ms(a);case"FeatureCollection":return Ns(a);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return us(a);default:throw new Error("unknown GeoJSON type")}}function ms(a){var o={type:"Feature"};return Object.keys(a).forEach(function(t){switch(t){case"type":case"properties":case"geometry":return;default:o[t]=a[t]}}),o.properties=bs(a.properties),o.geometry=us(a.geometry),o}function bs(a){var o={};return a&&Object.keys(a).forEach(function(t){var r=a[t];typeof r=="object"?r===null?o[t]=null:Array.isArray(r)?o[t]=r.map(function(s){return s}):o[t]=bs(r):o[t]=r}),o}function Ns(a){var o={type:"FeatureCollection"};return Object.keys(a).forEach(function(t){switch(t){case"type":case"features":return;default:o[t]=a[t]}}),o.features=a.features.map(function(t){return ms(t)}),o}function us(a){var o={type:a.type};return a.bbox&&(o.bbox=a.bbox),a.type==="GeometryCollection"?(o.geometries=a.geometries.map(function(t){return us(t)}),o):(o.coordinates=_s(a.coordinates),o)}function _s(a){var o=a;return typeof o[0]!="object"?o.slice():o.map(function(t){return _s(t)})}function cs(a,o,t,r){r===void 0&&(r={});var s=x(a),T=K(s[0]),W=K(s[1]),L=K(t),p=ds(o,r.units),d=Math.asin(Math.sin(W)*Math.cos(p)+Math.cos(W)*Math.sin(p)*Math.cos(L)),i=T+Math.atan2(Math.sin(L)*Math.sin(p)*Math.cos(W),Math.cos(p)-Math.sin(W)*Math.sin(d)),l=ls(i),u=ls(d);return j([l,u],r.properties)}function ns(a,o,t){if(t===void 0&&(t={}),t.final===!0)return Gs(a,o);var r=x(a),s=x(o),T=K(r[0]),W=K(s[0]),L=K(r[1]),p=K(s[1]),d=Math.sin(W-T)*Math.cos(p),i=Math.cos(L)*Math.sin(p)-Math.sin(L)*Math.cos(p)*Math.cos(W-T);return ls(Math.atan2(d,i))}function Gs(a,o){var t=ns(o,a);return t=(t+180)%360,t}function zs(a,o){var t=ss(a,o),r=ns(a,o),s=cs(a,t/2,r);return s}function Vs(a,o){if(!a)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var t,r=1/0,s=0;return Fs(o,function(T,W){var L=ss(a,T);L<r&&(s=W,r=L)}),t=$s(o.features[s]),t.properties.featureIndex=s,t.properties.distanceToPoint=r,t}function qs(a,o,t){t===void 0&&(t={});var r=x(a),s=x(o);s[0]+=s[0]-r[0]>180?-360:r[0]-s[0]>180?360:0;var T=Ks(r,s),W=Bs(T,"meters",t.units);return W}function Ks(a,o,t){t=t===void 0?V:Number(t);var r=t,s=a[1]*Math.PI/180,T=o[1]*Math.PI/180,W=T-s,L=Math.abs(o[0]-a[0])*Math.PI/180;L>Math.PI&&(L-=2*Math.PI);var p=Math.log(Math.tan(T/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),d=Math.abs(p)>1e-11?W/p:Math.cos(s),i=Math.sqrt(W*W+d*d*L*L),l=i*r;return l}function Ts(a,o,t){if(t===void 0&&(t={}),t.method||(t.method="geodesic"),t.units||(t.units="kilometers"),!a)throw new Error("pt is required");if(Array.isArray(a)?a=j(a):a.type==="Point"?a=es(a):gs(a,"Point","point"),!o)throw new Error("line is required");Array.isArray(o)?o=U(o):o.type==="LineString"?o=es(o):gs(o,"LineString","line");var r=1/0,s=a.geometry.coordinates;return Os(o,function(T){var W=T.geometry.coordinates[0],L=T.geometry.coordinates[1],p=Js(s,W,L,t);p<r&&(r=p)}),Bs(r,"degrees",t.units)}function Js(a,o,t,r){var s=[t[0]-o[0],t[1]-o[1]],T=[a[0]-o[0],a[1]-o[1]],W=vs(T,s);if(W<=0)return Cs(a,o,{method:r.method,units:"degrees"});var L=vs(s,s);if(L<=W)return Cs(a,t,{method:r.method,units:"degrees"});var p=W/L,d=[o[0]+p*s[0],o[1]+p*s[1]];return Cs(a,d,{method:r.method,units:"degrees"})}function vs(a,o){return a[0]*o[0]+a[1]*o[1]}function Cs(a,o,t){return t.method==="planar"?qs(a,o,t):ss(a,o,t)}function Us(a,o,t,r){if(r=r||{},!Ys(r))throw new Error("options is invalid");var s,T=[];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,L=0,p,d,i,l=0;l<s.length&&!(o>=L&&l===s.length-1);l++){if(L>o&&T.length===0){if(p=o-L,!p)return T.push(s[l]),U(T);d=ns(s[l],s[l-1])-180,i=cs(s[l],p,d,r),T.push(i.geometry.coordinates)}if(L>=t)return p=t-L,p?(d=ns(s[l],s[l-1])-180,i=cs(s[l],p,d,r),T.push(i.geometry.coordinates),U(T)):(T.push(s[l]),U(T));if(L>=o&&T.push(s[l]),l===s.length-1)return U(T);L+=ss(s[l],s[l+1],r)}if(L<o&&s.length===W)throw new Error("Start position is beyond line");var u=s[s.length-1];return U([u,u])}const ts={units:"kilometers"};function js(a,o,t,r){var{nearestDistance:s}=as(a,o),{nearestDistance:T}=as(a,r),{nearestDistance:W}=as(a,t);const L=Math.min(s,W,T);return L===s?o:L===W?t:r}const Qs=(a,o,t)=>{debugger;const r=j(a.slice(0,2)),{nearestCoord:s}=as(a,o),T=o.findIndex(Z=>Z[0]==s[0]&&Z[1]==s[1]);let W=[];if(T==0)W.push(o[0],o[1]);else if(T==o.length-1)W.push(o[o.length-2],o[o.length-1]);else{const Z=[o[T],o[T+1]],D=[o[T-1],o[T]];var L=Ts(r,U(Z),ts),p=Ts(r,U(D),ts);W=L>p?D:Z}console.log("附近的点",T,W);const d=U([W[0].slice(0,2),W[1].slice(0,2)]),i=j(W[0].slice(0,2)),l=j(W[1].slice(0,2));var u=Ts(r,d,ts),C=ss(r,i,ts)||0,e=Math.sqrt(C*C-u*u)||0;let c=W[0].slice(0,2);e>0&&(c=Us(d,0,e,ts).geometry.coordinates[1]);const m=ss(i,l,ts),b=Math.abs(W[0][2]-W[1][2]),I=Math.min(W[0][2],W[1][2]),P=Math.max(W[0][2],W[1][2]),g=W[0][2]>W[1][2]?P-e/m*b:e/m*b+I;console.log("高度差>>>>",b),console.log("最小高度>>>>",I);const y=g-a[2],_=u*1e3,v=Math.sqrt(_*_+y*y);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",y),console.log("直线距离>>>>",v);const S=n.Cartesian3.fromDegrees(a[0],a[1],a[2]),M=n.Cartesian3.fromDegrees(c[0],c[1],g);var E=zs(j([a[0],a[1]]),j([c[0],c[1]])).geometry.coordinates;const H={position:n.Cartesian3.fromDegrees(E[0],E[1],g-y/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}},X=[];X.push(S),X.push(M);var O={polyline:{show:!0,positions:X,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};t.add(H),t.add(O)};function as(a,o){const t=j(a.slice(0,2)),r=[];o.forEach(L=>{r.push(j([L[0],L[1]]))});const s=Xs(r),T=Vs(t,s),W=ss(t,T,ts);return{nearestCoord:T.geometry.coordinates,nearestDistance:W}}function B(a,o,t,r,s){t||(t=new n.HeadingPitchRoll);const T=n.Transforms.headingPitchRollQuaternion(a,t,r,s),W=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(T,new n.Matrix3),a,new n.Matrix4);return n.Matrix4.multiplyByPoint(W,o,new n.Cartesian3)}function J(a,o){var t=a.cartesianToCartographic(o),r=n.Math.toDegrees(t.latitude),s=n.Math.toDegrees(t.longitude),T=t.height;return[s,r,T]}function Q(a,o,t,r){const s=o*Math.PI/180,T=a*Math.PI/180,W=r*Math.PI/180,L=t*Math.PI/180,p=Math.sin(L-T)*Math.cos(W),d=Math.cos(s)*Math.sin(W)-Math.sin(s)*Math.cos(W)*Math.cos(L-T);let i=Math.atan2(p,d)*180/Math.PI;return i=(i+360)%360,i}function f(a,o=6){const t=[];for(var r=0;r<a.length-1;r++)t.push(...xs(a[r],a[r+1],o*-1e3,100));return t}function xs(a,o,t,r){var s=[],T=n.Cartographic.fromCartesian(a),W=n.Cartographic.fromCartesian(o),L=T.longitude*180/Math.PI,p=T.latitude*180/Math.PI,d=W.longitude*180/Math.PI,i=W.latitude*180/Math.PI,l=Math.sqrt((L-d)*(L-d)+(p-i)*(p-i)),u=l*t,C=n.Cartesian3.clone(a),e=n.Cartesian3.clone(o),c=n.Cartesian3.distance(C,n.Cartesian3.ZERO),m=n.Cartesian3.distance(e,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(e,e),n.Cartesian3.distance(C,e)==0)return s;var b=n.Cartesian3.angleBetween(C,e);s.push(a);for(var I=1;I<r-1;I++){var P=I*1/(r-1),g=1-P,y=Math.sin(g*b)/Math.sin(b),_=Math.sin(P*b)/Math.sin(b),v=n.Cartesian3.multiplyByScalar(C,y,new n.Cartesian3),S=n.Cartesian3.multiplyByScalar(e,_,new n.Cartesian3),M=n.Cartesian3.add(v,S,new n.Cartesian3),E=P*Math.PI,F=c*g+m*P+Math.sin(E)*u;M=n.Cartesian3.multiplyByScalar(M,F,M),s.push(M)}return s.push(o),s}function st(a,o,t=30){const r=a.length;if(r<=2||o===0||o===r-1)return!1;const s=Q(a[o-1].Longitude,a[o-1].Latitude,a[o].Longitude,a[o].Latitude);let W=Q(a[o].Longitude,a[o].Latitude,a[o+1].Longitude,a[o+1].Latitude)-s;return W>180&&(W-=360),W<-180&&(W+=360),Math.abs(W)>=t}function As(a,o,t=2){const r=a.length;if(r<=1)return 0;if(st(a,o,15))return o<r-1?Q(a[o].Longitude,a[o].Latitude,a[o+1].Longitude,a[o+1].Latitude):Q(a[o-1].Longitude,a[o-1].Latitude,a[o].Longitude,a[o].Latitude);let s=Math.max(0,o-t),T=Math.min(r-1,o+t);if(T-s<1)return o===r-1?Q(a[o-1].Longitude,a[o-1].Latitude,a[o].Longitude,a[o].Latitude):Q(a[o].Longitude,a[o].Latitude,a[o+1].Longitude,a[o+1].Latitude);const W=[];for(let i=s;i<T;i++){const l=Q(a[i].Longitude,a[i].Latitude,a[i+1].Longitude,a[i+1].Latitude);W.push(l)}if(W.length===1)return W[0];let L=0,p=0;for(const i of W){const l=i*Math.PI/180;L+=Math.cos(l),p+=Math.sin(l)}return(Math.atan2(p,L)*180/Math.PI+360)%360}function tt(a,o){const t=a*Math.PI/180,r=o*Math.PI/180,s=Math.cos(t),T=Math.sin(t),W=Math.cos(r),L=Math.sin(r),p=s+W,d=T+L;if(Math.abs(p)<1e-10&&Math.abs(d)<1e-10)return(a+90)%360;let i=Math.atan2(d,p)*180/Math.PI;return i=(i+360)%360,i}class it{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 et{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 ot{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 rt{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 ht{constructor(){w(this,"name","");w(this,"X",-45);w(this,"Y",90);w(this,"Z",0)}}var z=(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=(a=>(a[a.直线塔=0]="直线塔",a[a.耐张塔=1]="耐张塔",a[a.门架塔=2]="门架塔",a[a.换位塔=3]="换位塔",a))(q||{}),Ms=(a=>(a[a.交流单回路=0]="交流单回路",a[a.交流双回路=1]="交流双回路",a[a.直流单回路=2]="直流单回路",a[a.直流双回路=3]="直流双回路",a[a.交流四回路=4]="交流四回路",a))(Ms||{}),rs=(a=>(a[a.地线=0]="地线",a[a.回路一=1]="回路一",a[a.回路二=2]="回路二",a[a.回路三=3]="回路三",a[a.回路四=4]="回路四",a))(rs||{}),Y=(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))(Y||{}),A=(a=>(a[a.单分裂=0]="单分裂",a[a.双分裂=1]="双分裂",a[a.四分裂=2]="四分裂",a[a.六分裂=3]="六分裂",a[a.八分裂=4]="八分裂",a))(A||{});const hs=class hs{constructor(o,t,r){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,"LinedataSource2");w(this,"LineentityCollection2");w(this,"offsetTowers",[]);w(this,"offsetTrees",[]);w(this,"autoCalculateRollX",!0);w(this,"towerWirePoints",new Map);w(this,"loadedWireSegments",new Set);w(this,"loadedTreeIndices",new Set);w(this,"isDynamicLoadingEnabled",!0);w(this,"loadedTowerIndices",new Set);w(this,"cameraMoveHandler",null);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,"modelCache",new Map);w(this,"treeHandler",null);this.Keym=r,this.viewer=o,this.LineInfo=t,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities,this.dataSourcetree=new n.CustomDataSource(this.LineInfo.LineID+"tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.dataSourceplotting=new n.CustomDataSource("plotting"),this.entityCollectionplotting=this.dataSourceplotting.entities,this.LinedataSource2=new n.CustomDataSource(this.LineInfo.LineID+"daoxian"),this.LineentityCollection2=this.LinedataSource2.entities}createModelCacheKey(o,t,r,s){return`${o}_${t}_${r}_${s}`}getCachedModelConfig(o,t,r,s){const T=Math.max(0,r),W=Math.min(s,5e4),L=this.createModelCacheKey(o,t,T,W);if(!this.modelCache.has(L)){const p={uri:o,scale:t,distanceDisplayCondition:[T,W]};this.modelCache.set(L,p)}return this.modelCache.get(L)}addModelToCollection(o,t,r,s,T,W,L){const p=this.getCachedModelConfig(s,W,L[0],L[1]);this.entityCollection2.add(Ws(o,t,r,p.uri,T,p.scale,p.distanceDisplayCondition))}setAutoCalculateRollX(o){this.autoCalculateRollX=o}getAutoCalculateRollX(){return this.autoCalculateRollX}setDynamicLoadingEnabled(o){this.isDynamicLoadingEnabled=o}getDynamicLoadingEnabled(){return this.isDynamicLoadingEnabled}setupCameraMoveListener(){this.cameraMoveHandler&&this.cameraMoveHandler(),this.cameraMoveHandler=this.viewer.camera.moveEnd.addEventListener(()=>{this.updateVisibleTowers()})}setupTreeCameraMoveListener(){this.cameraMoveHandler||this.setupCameraMoveListener()}getVisibleTowerIndices(){var p;if(!this.viewer.camera||this.offsetTowers.length===0)return{start:0,end:0};const o=this.viewer.camera.position,t=((p=this.viewer.camera.positionCartographic)==null?void 0:p.height)||1e3;let r=5;t>5e4?r=2:t>1e4?r=3:t>5e3?r=5:r=10;let s=0,T=Number.MAX_VALUE;for(let d=0;d<this.offsetTowers.length;d++){const i=n.Cartesian3.distance(o,this.offsetTowers[d]);i<T&&(T=i,s=d)}const W=Math.max(0,s-r),L=Math.min(this.offsetTowers.length-1,s+r);return{start:W,end:L}}updateVisibleTowers(){const{start:o,end:t}=this.getVisibleTowerIndices();this.loadTowersInRange(o,t),this.updateVisibleTrees()}getVisibleTreeIndices(){var T;if(!this.viewer.camera||this.offsetTrees.length===0)return[];const o=this.viewer.camera.position,t=((T=this.viewer.camera.positionCartographic)==null?void 0:T.height)||1e3;let r=Math.max(5e3,t*2);t>5e4&&(r=1e5);const s=[];for(let W=0;W<this.offsetTrees.length;W++){const L=this.offsetTrees[W];n.Cartesian3.distance(o,L)<=r&&s.push(W)}if(s.length===0&&this.offsetTrees.length>0){const W=Math.min(20,this.offsetTrees.length);for(let L=0;L<W;L++)s.push(L)}return s}updateVisibleTrees(){const o=this.getVisibleTreeIndices(),t=[];this.loadedTreeIndices.forEach(r=>{o.includes(r)||t.push(r)}),t.forEach(r=>{const s="tree-"+this.LineInfo.Trees[r].id;this.entityCollectiontree.removeById(s),this.loadedTreeIndices.delete(r)}),o.forEach(r=>{if(!this.loadedTreeIndices.has(r))if(r>=0&&r<this.offsetTrees.length&&r<this.LineInfo.Trees.length){const s=this.offsetTrees[r],T=this.LineInfo.Trees[r];s&&T?(this.loadTreeAtIndex(r,s),this.loadedTreeIndices.add(r)):console.warn(`跳过无效的动态加载树木数据,索引: ${r}`)}else console.warn(`动态加载树木索引超出范围: ${r}`)})}initializeLineData(){this.Keym=="OW_JPS_EEngin_001"&&(this.LineInfo.towers.forEach(o=>{this.offsetTowers.push(n.Cartesian3.fromDegrees(o.Longitude,o.Latitude,o.Altitude))}),this.autoCalculateRollX&&this.calculateTowerOrientations())}calculateTowerOrientations(){const o=this.LineInfo.towers.length;if(o!==0){if(o===1){this.LineInfo.towers[0].RollX===void 0&&(this.LineInfo.towers[0].RollX=90);return}for(let t=0;t<o;t++){let r=0;if(this.LineInfo.towers[t].type===q.耐张塔)if(t===0)r=(As(this.LineInfo.towers,t,3)-90+360)%360;else if(t===o-1)r=(As(this.LineInfo.towers,t,3)-90+360)%360;else{const s=this.LineInfo.towers[t-1],T=this.LineInfo.towers[t],W=this.LineInfo.towers[t+1],L=Q(s.Longitude,s.Latitude,T.Longitude,T.Latitude),p=Q(T.Longitude,T.Latitude,W.Longitude,W.Latitude);r=(tt(L,p)-90+360)%360}else r=(As(this.LineInfo.towers,t,2)-90+360)%360;this.LineInfo.towers[t].RollX=r}}}loadTowersInRange(o,t){if(o<0||t>=this.LineInfo.towers.length)return;const r=Math.max(0,o-1),s=Math.min(this.LineInfo.towers.length-1,t+1);for(let T=r;T<=s;T++)this.loadedTowerIndices.has(T)||(this.loadTowerAndCollectWirePoints(T),this.loadedTowerIndices.add(T));for(let T=r;T<s;T++){const W=`${T}-${T+1}`;this.loadedWireSegments.has(W)||(this.loadWireSegmentBetweenTowers(T,T+1),this.loadedWireSegments.add(W))}}loadTowerAndCollectWirePoints(o){const t=this.offsetTowers[o],r=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),n.Math.toRadians(this.LineInfo.towers[o].RollY),n.Math.toRadians(this.LineInfo.towers[o].RollZ));this.addModelToCollection(this.LineInfo.towers[o].id,t,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,r,this.LineInfo.towers[o].towerScale,[this.LineInfo.towers[o].DistanceDisplaymin,this.LineInfo.towers[o].DistanceDisplaymax]);const s=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),0,0),T=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),0,0);let W=0;const L=[];this.LineInfo.towers[o].Insulators.forEach(p=>{const d=B(t,new n.Cartesian3(this.LineInfo.towers[o].towerPoint[W].X,this.LineInfo.towers[o].towerPoint[W].Y,this.LineInfo.towers[o].towerPoint[W].Z),this.LineInfo.towers[o].type===q.耐张塔?T:s);let i,l;if(this.autoCalculateRollX?l=this.LineInfo.towers[o].RollX:l=p.RollX,this.LineInfo.towers[o].type===q.耐张塔)switch(p.type){case Y.耐张串:i=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));break;case Y.跳线串:i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ));break;case Y.地线串:i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ));break;default:i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ))}else i=new n.HeadingPitchRoll(n.Math.toRadians(l),n.Math.toRadians(p.RollY),n.Math.toRadians(p.RollZ));this.addModelToCollection(p.id,d,p.name,p.InsulatorModelUri,i,p.InsulatorScale,[p.DistanceDisplaymin,p.DistanceDisplaymax]);const u={insulator:p,insulatorIndex:W,position:t,lineroll:s,WairPoint:[]};p.InsulatorPoint.forEach(C=>{C.Y=C.Y+this.LineInfo.towers[o].towerPoint[W].Y,C.Z=C.Z+this.LineInfo.towers[o].towerPoint[W].Z,u.WairPoint.push(B(t,new n.Cartesian3(C.X,C.Y,C.Z),s))}),L.push(u),W++}),this.towerWirePoints.set(o,L)}loadWireSegmentBetweenTowers(o,t){const r=this.towerWirePoints.get(o),s=this.towerWirePoints.get(t);!r||!s||this.resetWireArraysForTwoTowers()}resetWireArraysForTwoTowers(){this.offsetWires11=[],this.offsetWires12=[],this.offsetWires13=[],this.offsetWires21=[],this.offsetWires22=[],this.offsetWires23=[],this.ToffsetWires1A1=[],this.ToffsetWires1A2=[]}loadLineTower(){this.Keym=="OW_JPS_EEngin_001"&&(this.initializeLineData(),this.isDynamicLoadingEnabled?(this.loadAllWiresOnly(),this.setupCameraMoveListener(),this.updateVisibleTowers()):this.loadAllTowersAtOnce())}loadAllWiresOnly(){const o=new n.EntityCollection,t=this.entityCollection2;this.entityCollection2=o,this.loadAllTowersAtOnce();const r=[];o.values.forEach(s=>{var T;s.name&&(s.name.includes("导线")||s.name.includes("daoxian")||(T=s.id)!=null&&T.toString().includes("daoxian"))&&r.push(s)}),this.entityCollection2=t,r.forEach(s=>{this.entityCollection2.add(s)}),o.removeAll()}loadAllTowersAtOnce(){let o=0,t=0;this.offsetTowers.forEach((r,s)=>{const T=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.addModelToCollection(this.LineInfo.towers[s].id,r,this.LineInfo.towers[s].name,this.LineInfo.towers[s].towerModelUri,T,this.LineInfo.towers[s].towerScale,[this.LineInfo.towers[s].DistanceDisplaymin,this.LineInfo.towers[s].DistanceDisplaymax]);const W=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0),L=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0);let p=0;if(this.LineInfo.towers[s].Insulators.forEach(i=>{const l=B(r,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[p].X,this.LineInfo.towers[s].towerPoint[p].Y,this.LineInfo.towers[s].towerPoint[p].Z),this.LineInfo.towers[s].type===q.耐张塔?L:W);let u,C;if(this.autoCalculateRollX?C=this.LineInfo.towers[s].RollX:C=i.RollX,this.LineInfo.towers[s].type===q.耐张塔)switch(i.type){case Y.耐张串:u=i.WairFX==="进"?new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(-180),n.Math.toRadians(180)):new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(0),n.Math.toRadians(0));break;case Y.跳线串:u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ));break;case Y.地线串:u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ));break;default:u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ))}else u=new n.HeadingPitchRoll(n.Math.toRadians(C),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ));this.addModelToCollection(i.id,l,i.name,i.InsulatorModelUri,u,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]);const e=[];switch(i.InsulatorPoint.forEach(c=>{c.Y=c.Y+this.LineInfo.towers[s].towerPoint[p].Y,c.Z=c.Z+this.LineInfo.towers[s].towerPoint[p].Z,e.push(B(r,new n.Cartesian3(c.X,c.Y,c.Z),W))}),i.linenum){case rs.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==q.耐张塔)switch(i.PhaseSequence){case z.A相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires11.push(e[0]),this.ToffsetWires1A1.push(e[0]);break;case A.双分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]);break;case A.四分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.offsetWires11.push(e[2]),this.offsetWires11.push(e[3]),this.ToffsetWires1A1.push(e[4]),this.ToffsetWires1A1.push(e[5]),this.ToffsetWires1A1.push(e[6]),this.ToffsetWires1A1.push(e[7]);break;case A.六分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.offsetWires11.push(e[2]),this.offsetWires11.push(e[3]),this.offsetWires11.push(e[4]),this.offsetWires11.push(e[5]),this.ToffsetWires1A1.push(e[6]),this.ToffsetWires1A1.push(e[7]),this.ToffsetWires1A1.push(e[8]),this.ToffsetWires1A1.push(e[9]),this.ToffsetWires1A1.push(e[10]),this.ToffsetWires1A1.push(e[11]);break;case A.八分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.offsetWires11.push(e[2]),this.offsetWires11.push(e[3]),this.offsetWires11.push(e[4]),this.offsetWires11.push(e[5]),this.offsetWires11.push(e[6]),this.offsetWires11.push(e[7]),this.ToffsetWires1A1.push(e[8]),this.ToffsetWires1A1.push(e[9]),this.ToffsetWires1A1.push(e[10]),this.ToffsetWires1A1.push(e[11]),this.ToffsetWires1A1.push(e[12]),this.ToffsetWires1A1.push(e[13]),this.ToffsetWires1A1.push(e[14]),this.ToffsetWires1A1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(c),this.ToffsetWires1A2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(m),this.offsetWires11.push(b),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires11.push(_),this.offsetWires11.push(v),this.offsetWires11.push(S),this.offsetWires11.push(M),this.offsetWires11.push(E),this.offsetWires11.push(F),this.ToffsetWires1A2.push(_),this.ToffsetWires1A2.push(v),this.ToffsetWires1A2.push(S),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(E),this.ToffsetWires1A2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires11.push(H),this.offsetWires11.push(X),this.offsetWires11.push(O),this.offsetWires11.push(Z),this.offsetWires11.push(D),this.offsetWires11.push($),this.offsetWires11.push(N),this.offsetWires11.push(G),this.ToffsetWires1A2.push(H),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(Z),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push($),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A2.push(e[1]);break;case A.双分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A2.push(e[2]),this.ToffsetWires1A2.push(e[3]);break;case A.四分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]),this.ToffsetWires1A2.push(e[4]),this.ToffsetWires1A2.push(e[5]),this.ToffsetWires1A2.push(e[6]),this.ToffsetWires1A2.push(e[7]);break;case A.六分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]),this.ToffsetWires1A1.push(e[4]),this.ToffsetWires1A1.push(e[5]),this.ToffsetWires1A2.push(e[6]),this.ToffsetWires1A2.push(e[7]),this.ToffsetWires1A2.push(e[8]),this.ToffsetWires1A2.push(e[9]),this.ToffsetWires1A2.push(e[10]),this.ToffsetWires1A2.push(e[11]);break;case A.八分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]),this.ToffsetWires1A1.push(e[4]),this.ToffsetWires1A1.push(e[5]),this.ToffsetWires1A1.push(e[6]),this.ToffsetWires1A1.push(e[7]),this.ToffsetWires1A2.push(e[8]),this.ToffsetWires1A2.push(e[9]),this.ToffsetWires1A2.push(e[10]),this.ToffsetWires1A2.push(e[11]),this.ToffsetWires1A2.push(e[12]),this.ToffsetWires1A2.push(e[13]),this.ToffsetWires1A2.push(e[14]),this.ToffsetWires1A2.push(e[15]);break}break;case z.B相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires12.push(e[0]),this.ToffsetWires1B1.push(e[1]);break;case A.双分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]);break;case A.四分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.offsetWires12.push(e[2]),this.offsetWires12.push(e[3]),this.ToffsetWires1B1.push(e[4]),this.ToffsetWires1B1.push(e[5]),this.ToffsetWires1B1.push(e[6]),this.ToffsetWires1B1.push(e[7]);break;case A.六分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.offsetWires12.push(e[2]),this.offsetWires12.push(e[3]),this.offsetWires12.push(e[4]),this.offsetWires12.push(e[5]),this.ToffsetWires1B1.push(e[6]),this.ToffsetWires1B1.push(e[7]),this.ToffsetWires1B1.push(e[8]),this.ToffsetWires1B1.push(e[9]),this.ToffsetWires1B1.push(e[10]),this.ToffsetWires1B1.push(e[11]);break;case A.八分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.offsetWires12.push(e[2]),this.offsetWires12.push(e[3]),this.offsetWires12.push(e[4]),this.offsetWires12.push(e[5]),this.offsetWires12.push(e[6]),this.offsetWires12.push(e[7]),this.ToffsetWires1B1.push(e[8]),this.ToffsetWires1B1.push(e[9]),this.ToffsetWires1B1.push(e[10]),this.ToffsetWires1B1.push(e[11]),this.ToffsetWires1B1.push(e[12]),this.ToffsetWires1B1.push(e[13]),this.ToffsetWires1B1.push(e[14]),this.ToffsetWires1B1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires12.push(c),this.ToffsetWires1B2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires12.push(m),this.offsetWires12.push(b),this.ToffsetWires1B2.push(m),this.ToffsetWires1B2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires12.push(_),this.offsetWires12.push(v),this.offsetWires12.push(S),this.offsetWires12.push(M),this.offsetWires12.push(E),this.offsetWires12.push(F),this.ToffsetWires1B2.push(_),this.ToffsetWires1B2.push(v),this.ToffsetWires1B2.push(S),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(E),this.ToffsetWires1B2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires12.push(H),this.offsetWires12.push(X),this.offsetWires12.push(O),this.offsetWires12.push(Z),this.offsetWires12.push(D),this.offsetWires12.push($),this.offsetWires12.push(N),this.offsetWires12.push(G),this.ToffsetWires1B2.push(H),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(Z),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push($),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B2.push(e[0]);break;case A.双分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B2.push(e[2]),this.ToffsetWires1B2.push(e[3]);break;case A.四分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]),this.ToffsetWires1B2.push(e[4]),this.ToffsetWires1B2.push(e[5]),this.ToffsetWires1B2.push(e[6]),this.ToffsetWires1B2.push(e[7]);break;case A.六分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]),this.ToffsetWires1B1.push(e[4]),this.ToffsetWires1B1.push(e[5]),this.ToffsetWires1B2.push(e[6]),this.ToffsetWires1B2.push(e[7]),this.ToffsetWires1B2.push(e[8]),this.ToffsetWires1B2.push(e[9]),this.ToffsetWires1B2.push(e[10]),this.ToffsetWires1B2.push(e[11]);break;case A.八分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]),this.ToffsetWires1B1.push(e[4]),this.ToffsetWires1B1.push(e[5]),this.ToffsetWires1B1.push(e[6]),this.ToffsetWires1B1.push(e[7]),this.ToffsetWires1B2.push(e[8]),this.ToffsetWires1B2.push(e[9]),this.ToffsetWires1B2.push(e[10]),this.ToffsetWires1B2.push(e[11]),this.ToffsetWires1B2.push(e[12]),this.ToffsetWires1B2.push(e[13]),this.ToffsetWires1B2.push(e[14]),this.ToffsetWires1B2.push(e[15]);break}break;case z.C相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires13.push(e[0]),this.ToffsetWires1C1.push(e[1]);break;case A.双分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]);break;case A.四分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.offsetWires13.push(e[2]),this.offsetWires13.push(e[3]),this.ToffsetWires1C1.push(e[4]),this.ToffsetWires1C1.push(e[5]),this.ToffsetWires1C1.push(e[6]),this.ToffsetWires1C1.push(e[7]);break;case A.六分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.offsetWires13.push(e[2]),this.offsetWires13.push(e[3]),this.offsetWires13.push(e[4]),this.offsetWires13.push(e[5]),this.ToffsetWires1C1.push(e[6]),this.ToffsetWires1C1.push(e[7]),this.ToffsetWires1C1.push(e[8]),this.ToffsetWires1C1.push(e[9]),this.ToffsetWires1C1.push(e[10]),this.ToffsetWires1C1.push(e[11]);break;case A.八分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.offsetWires13.push(e[2]),this.offsetWires13.push(e[3]),this.offsetWires13.push(e[4]),this.offsetWires13.push(e[5]),this.offsetWires13.push(e[6]),this.offsetWires13.push(e[7]),this.ToffsetWires1C1.push(e[8]),this.ToffsetWires1C1.push(e[9]),this.ToffsetWires1C1.push(e[10]),this.ToffsetWires1C1.push(e[11]),this.ToffsetWires1C1.push(e[12]),this.ToffsetWires1C1.push(e[13]),this.ToffsetWires1C1.push(e[14]),this.ToffsetWires1C1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires13.push(c),this.ToffsetWires1C2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires13.push(m),this.offsetWires13.push(b),this.ToffsetWires1C2.push(m),this.ToffsetWires1C2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires13.push(_),this.offsetWires13.push(v),this.offsetWires13.push(S),this.offsetWires13.push(M),this.offsetWires13.push(E),this.offsetWires13.push(F),this.ToffsetWires1C2.push(_),this.ToffsetWires1C2.push(v),this.ToffsetWires1C2.push(S),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(E),this.ToffsetWires1C2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires13.push(H),this.offsetWires13.push(X),this.offsetWires13.push(O),this.offsetWires13.push(Z),this.offsetWires13.push(D),this.offsetWires13.push($),this.offsetWires13.push(N),this.offsetWires13.push(G),this.ToffsetWires1C2.push(H),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(Z),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push($),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C2.push(e[0]);break;case A.双分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C2.push(e[2]),this.ToffsetWires1C2.push(e[3]);break;case A.四分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]),this.ToffsetWires1C2.push(e[4]),this.ToffsetWires1C2.push(e[5]),this.ToffsetWires1C2.push(e[6]),this.ToffsetWires1C2.push(e[7]);break;case A.六分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]),this.ToffsetWires1C1.push(e[4]),this.ToffsetWires1C1.push(e[5]),this.ToffsetWires1C2.push(e[6]),this.ToffsetWires1C2.push(e[7]),this.ToffsetWires1C2.push(e[8]),this.ToffsetWires1C2.push(e[9]),this.ToffsetWires1C2.push(e[10]),this.ToffsetWires1C2.push(e[11]);break;case A.八分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]),this.ToffsetWires1C1.push(e[4]),this.ToffsetWires1C1.push(e[5]),this.ToffsetWires1C1.push(e[6]),this.ToffsetWires1C1.push(e[7]),this.ToffsetWires1C2.push(e[8]),this.ToffsetWires1C2.push(e[9]),this.ToffsetWires1C2.push(e[10]),this.ToffsetWires1C2.push(e[11]),this.ToffsetWires1C2.push(e[12]),this.ToffsetWires1C2.push(e[13]),this.ToffsetWires1C2.push(e[14]),this.ToffsetWires1C2.push(e[15]);break}break}else switch(i.PhaseSequence){case z.A相:e.forEach(c=>{this.offsetWires11.push(c)});break;case z.B相:e.forEach(c=>{this.offsetWires12.push(c)});break;case z.C相:e.forEach(c=>{this.offsetWires13.push(c)});break}else if(this.LineInfo.towers[s].type==q.耐张塔)switch(p){case 2:switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires11.push(e[0]),this.ToffsetWires1A1.push(e[0]);break;case A.双分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A2.push(e[0]);break;case A.双分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A2.push(e[2]),this.ToffsetWires1A2.push(e[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(c),this.ToffsetWires1A2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(m),this.offsetWires11.push(b),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(b);break}break;case 5:e.forEach(c=>{this.offsetWires12.push(c),this.ToffsetWires1B1.push(c)});break;case 6:e.forEach(c=>{this.ToffsetWires1B1.push(c),this.ToffsetWires1B2.push(c)});break;case 7:i.InsulatorPoint.forEach(c=>{const m=B(r,new n.Cartesian3(c.X*-1,c.Y,c.Z),W);this.offsetWires12.push(m),this.ToffsetWires1B2.push(m)});break;case 8:e.forEach(c=>{this.offsetWires13.push(c),this.ToffsetWires1C1.push(c)});break;case 9:e.forEach(c=>{this.ToffsetWires1C1.push(c),this.ToffsetWires1C2.push(c)});break;case 10:i.InsulatorPoint.forEach(c=>{const m=B(r,new n.Cartesian3(c.X*-1,c.Y,c.Z),W);this.offsetWires13.push(m),this.ToffsetWires1C2.push(m)});break}else switch(p){case 2:e.forEach(c=>{this.offsetWires11.push(c)});break;case 3:e.forEach(c=>{this.offsetWires12.push(c)});break;case 4:e.forEach(c=>{this.offsetWires13.push(c)});break}break;case rs.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==q.耐张塔)switch(i.PhaseSequence){case z.A相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires21.push(e[0]),this.ToffsetWires2A1.push(e[0]);break;case A.双分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]);break;case A.四分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.offsetWires21.push(e[2]),this.offsetWires21.push(e[3]),this.ToffsetWires2A1.push(e[4]),this.ToffsetWires2A1.push(e[5]),this.ToffsetWires2A1.push(e[6]),this.ToffsetWires2A1.push(e[7]);break;case A.六分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.offsetWires21.push(e[2]),this.offsetWires21.push(e[3]),this.offsetWires21.push(e[4]),this.offsetWires21.push(e[5]),this.ToffsetWires2A1.push(e[6]),this.ToffsetWires2A1.push(e[7]),this.ToffsetWires2A1.push(e[8]),this.ToffsetWires2A1.push(e[9]),this.ToffsetWires2A1.push(e[10]),this.ToffsetWires2A1.push(e[11]);break;case A.八分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.offsetWires21.push(e[2]),this.offsetWires21.push(e[3]),this.offsetWires21.push(e[4]),this.offsetWires21.push(e[5]),this.offsetWires21.push(e[6]),this.offsetWires21.push(e[7]),this.ToffsetWires2A1.push(e[8]),this.ToffsetWires2A1.push(e[9]),this.ToffsetWires2A1.push(e[10]),this.ToffsetWires2A1.push(e[11]),this.ToffsetWires2A1.push(e[12]),this.ToffsetWires2A1.push(e[13]),this.ToffsetWires2A1.push(e[14]),this.ToffsetWires2A1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(c),this.ToffsetWires2A2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires21.push(m),this.offsetWires21.push(b),this.ToffsetWires2A2.push(m),this.ToffsetWires2A2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires21.push(_),this.offsetWires21.push(v),this.offsetWires21.push(S),this.offsetWires21.push(M),this.offsetWires21.push(E),this.offsetWires21.push(F),this.ToffsetWires2A2.push(_),this.ToffsetWires2A2.push(v),this.ToffsetWires2A2.push(S),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(E),this.ToffsetWires2A2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires21.push(H),this.offsetWires21.push(X),this.offsetWires21.push(O),this.offsetWires21.push(Z),this.offsetWires21.push(D),this.offsetWires21.push($),this.offsetWires21.push(N),this.offsetWires21.push(G),this.ToffsetWires2A2.push(H),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(Z),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push($),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A2.push(e[0]);break;case A.双分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A2.push(e[2]),this.ToffsetWires2A2.push(e[3]);break;case A.四分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]),this.ToffsetWires2A2.push(e[4]),this.ToffsetWires2A2.push(e[5]),this.ToffsetWires2A2.push(e[6]),this.ToffsetWires2A2.push(e[7]);break;case A.六分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]),this.ToffsetWires2A1.push(e[4]),this.ToffsetWires2A1.push(e[5]),this.ToffsetWires2A2.push(e[6]),this.ToffsetWires2A2.push(e[7]),this.ToffsetWires2A2.push(e[8]),this.ToffsetWires2A2.push(e[9]),this.ToffsetWires2A2.push(e[10]),this.ToffsetWires2A2.push(e[11]);break;case A.八分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]),this.ToffsetWires2A1.push(e[4]),this.ToffsetWires2A1.push(e[5]),this.ToffsetWires2A1.push(e[6]),this.ToffsetWires2A1.push(e[7]),this.ToffsetWires2A2.push(e[8]),this.ToffsetWires2A2.push(e[9]),this.ToffsetWires2A2.push(e[10]),this.ToffsetWires2A2.push(e[11]),this.ToffsetWires2A2.push(e[12]),this.ToffsetWires2A2.push(e[13]),this.ToffsetWires2A2.push(e[14]),this.ToffsetWires2A2.push(e[15]);break}break;case z.B相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires22.push(e[0]),this.ToffsetWires2B1.push(e[0]);break;case A.双分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]);break;case A.四分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.offsetWires22.push(e[2]),this.offsetWires22.push(e[3]),this.ToffsetWires2B1.push(e[4]),this.ToffsetWires2B1.push(e[5]),this.ToffsetWires2B1.push(e[6]),this.ToffsetWires2B1.push(e[7]);break;case A.六分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.offsetWires22.push(e[2]),this.offsetWires22.push(e[3]),this.offsetWires22.push(e[4]),this.offsetWires22.push(e[5]),this.ToffsetWires2B1.push(e[6]),this.ToffsetWires2B1.push(e[7]),this.ToffsetWires2B1.push(e[8]),this.ToffsetWires2B1.push(e[9]),this.ToffsetWires2B1.push(e[10]),this.ToffsetWires2B1.push(e[11]);break;case A.八分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.offsetWires22.push(e[2]),this.offsetWires22.push(e[3]),this.offsetWires22.push(e[4]),this.offsetWires22.push(e[5]),this.offsetWires22.push(e[6]),this.offsetWires22.push(e[7]),this.ToffsetWires2B1.push(e[8]),this.ToffsetWires2B1.push(e[9]),this.ToffsetWires2B1.push(e[10]),this.ToffsetWires2B1.push(e[11]),this.ToffsetWires2B1.push(e[12]),this.ToffsetWires2B1.push(e[13]),this.ToffsetWires2B1.push(e[14]),this.ToffsetWires2B1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(c),this.ToffsetWires2B2.push(c);break;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires22.push(m),this.offsetWires22.push(b),this.ToffsetWires2B2.push(m),this.ToffsetWires2B2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires22.push(_),this.offsetWires22.push(v),this.offsetWires22.push(S),this.offsetWires22.push(M),this.offsetWires22.push(E),this.offsetWires22.push(F),this.ToffsetWires2B2.push(_),this.ToffsetWires2B2.push(v),this.ToffsetWires2B2.push(S),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(E),this.ToffsetWires2B2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires22.push(H),this.offsetWires22.push(X),this.offsetWires22.push(O),this.offsetWires22.push(Z),this.offsetWires22.push(D),this.offsetWires22.push($),this.offsetWires22.push(N),this.offsetWires22.push(G),this.ToffsetWires2B2.push(H),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(Z),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push($),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B2.push(e[0]);break;case A.双分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B2.push(e[2]),this.ToffsetWires2B2.push(e[3]);break;case A.四分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]),this.ToffsetWires2B2.push(e[4]),this.ToffsetWires2B2.push(e[5]),this.ToffsetWires2B2.push(e[6]),this.ToffsetWires2B2.push(e[7]);break;case A.六分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]),this.ToffsetWires2B1.push(e[4]),this.ToffsetWires2B1.push(e[5]),this.ToffsetWires2B2.push(e[6]),this.ToffsetWires2B2.push(e[7]),this.ToffsetWires2B2.push(e[8]),this.ToffsetWires2B2.push(e[9]),this.ToffsetWires2B2.push(e[10]),this.ToffsetWires2B2.push(e[11]);break;case A.八分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]),this.ToffsetWires2B1.push(e[4]),this.ToffsetWires2B1.push(e[5]),this.ToffsetWires2B1.push(e[6]),this.ToffsetWires2B1.push(e[7]),this.ToffsetWires2B2.push(e[8]),this.ToffsetWires2B2.push(e[9]),this.ToffsetWires2B2.push(e[10]),this.ToffsetWires2B2.push(e[11]),this.ToffsetWires2B2.push(e[12]),this.ToffsetWires2B2.push(e[13]),this.ToffsetWires2B2.push(e[14]),this.ToffsetWires2B2.push(e[15]);break}break;case z.C相:if(i.type==Y.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires23.push(e[0]),this.ToffsetWires2C1.push(e[0]);break;case A.双分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]);break;case A.四分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.offsetWires23.push(e[2]),this.offsetWires23.push(e[3]),this.ToffsetWires2C1.push(e[4]),this.ToffsetWires2C1.push(e[5]),this.ToffsetWires2C1.push(e[6]),this.ToffsetWires2C1.push(e[7]);break;case A.六分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.offsetWires23.push(e[2]),this.offsetWires23.push(e[3]),this.offsetWires23.push(e[4]),this.offsetWires23.push(e[5]),this.ToffsetWires2C1.push(e[6]),this.ToffsetWires2C1.push(e[7]),this.ToffsetWires2C1.push(e[8]),this.ToffsetWires2C1.push(e[9]),this.ToffsetWires2C1.push(e[10]),this.ToffsetWires2C1.push(e[11]);break;case A.八分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.offsetWires23.push(e[2]),this.offsetWires23.push(e[3]),this.offsetWires23.push(e[4]),this.offsetWires23.push(e[5]),this.offsetWires23.push(e[6]),this.offsetWires23.push(e[7]),this.ToffsetWires2C1.push(e[8]),this.ToffsetWires2C1.push(e[9]),this.ToffsetWires2C1.push(e[10]),this.ToffsetWires2C1.push(e[11]),this.ToffsetWires2C1.push(e[12]),this.ToffsetWires2C1.push(e[13]),this.ToffsetWires2C1.push(e[14]),this.ToffsetWires2C1.push(e[15]);break}else switch(this.LineInfo.Wairnum){case A.单分裂:const c=B(r,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;case A.双分裂:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),b=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires23.push(m),this.offsetWires23.push(b),this.ToffsetWires2C2.push(m),this.ToffsetWires2C2.push(b);break;case A.四分裂:const I=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),g=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),y=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);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);break;case A.六分裂:const _=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),v=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),S=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),M=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),E=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires23.push(_),this.offsetWires23.push(v),this.offsetWires23.push(S),this.offsetWires23.push(M),this.offsetWires23.push(E),this.offsetWires23.push(F),this.ToffsetWires2C2.push(_),this.ToffsetWires2C2.push(v),this.ToffsetWires2C2.push(S),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(E),this.ToffsetWires2C2.push(F);break;case A.八分裂:const H=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),X=B(r,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),O=B(r,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Z=B(r,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=B(r,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),$=B(r,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),N=B(r,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),G=B(r,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires23.push(H),this.offsetWires23.push(X),this.offsetWires23.push(O),this.offsetWires23.push(Z),this.offsetWires23.push(D),this.offsetWires23.push($),this.offsetWires23.push(N),this.offsetWires23.push(G),this.ToffsetWires2C2.push(H),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(Z),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push($),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(G);break}else if(i.type==Y.跳线串)switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C2.push(e[0]);break;case A.双分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C2.push(e[2]),this.ToffsetWires2C2.push(e[3]);break;case A.四分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]),this.ToffsetWires2C2.push(e[4]),this.ToffsetWires2C2.push(e[5]),this.ToffsetWires2C2.push(e[6]),this.ToffsetWires2C2.push(e[7]);break;case A.六分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]),this.ToffsetWires2C1.push(e[4]),this.ToffsetWires2C1.push(e[5]),this.ToffsetWires2C2.push(e[6]),this.ToffsetWires2C2.push(e[7]),this.ToffsetWires2C2.push(e[8]),this.ToffsetWires2C2.push(e[9]),this.ToffsetWires2C2.push(e[10]),this.ToffsetWires2C2.push(e[11]);break;case A.八分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]),this.ToffsetWires2C1.push(e[4]),this.ToffsetWires2C1.push(e[5]),this.ToffsetWires2C1.push(e[6]),this.ToffsetWires2C1.push(e[7]),this.ToffsetWires2C2.push(e[8]),this.ToffsetWires2C2.push(e[9]),this.ToffsetWires2C2.push(e[10]),this.ToffsetWires2C2.push(e[11]),this.ToffsetWires2C2.push(e[12]),this.ToffsetWires2C2.push(e[13]),this.ToffsetWires2C2.push(e[14]),this.ToffsetWires2C2.push(e[15]);break}break}else switch(i.PhaseSequence){case z.A相:e.forEach(c=>{this.offsetWires21.push(c)});break;case z.B相:e.forEach(c=>{this.offsetWires22.push(c)});break;case z.C相:e.forEach(c=>{this.offsetWires23.push(c)});break}else if(this.LineInfo.towers[s].type==q.耐张塔)switch(p){case 11:this.offsetWires21.push(e[0]),this.ToffsetWires2A1.push(e[0]);break;case 12:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A2.push(e[0]);break;case 13:const c=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(c),this.ToffsetWires2A2.push(c);break;case 14:this.offsetWires22.push(e[0]),this.ToffsetWires2B1.push(e[0]);break;case 15:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B2.push(e[0]);break;case 16:const m=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(m),this.ToffsetWires2B2.push(m);break;case 17:this.offsetWires23.push(e[0]),this.ToffsetWires2C1.push(e[0]);break;case 18:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C2.push(e[0]);break;case 19:const b=B(r,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(b),this.ToffsetWires2C2.push(b);break}else switch(p){case 5:e.forEach(c=>{this.offsetWires21.push(c)});break;case 6:e.forEach(c=>{this.offsetWires22.push(c)});break;case 7:e.forEach(c=>{this.offsetWires23.push(c)});break}break;case rs.地线:if(this.LineInfo.ISPhaseSequence)switch(i.PhaseSequence){case z.地线1:this.offsetGrouundWires11.push(e[0]);break;case z.地线2:this.offsetGrouundWires12.push(e[0]);break}else switch(p){case 0:this.offsetGrouundWires11.push(e[0]);break;case 1:this.offsetGrouundWires12.push(e[0]);break}break}p=p+1}),this.offsetWires11.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.offsetWires11.length>=2&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(i),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case A.双分裂:this.offsetWires11.length>=4&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)));break;case A.四分裂:this.offsetWires11.length>=8&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires11[o+3]),C.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case A.六分裂:this.offsetWires11.length>=12&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires11[o+3]),C.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(C),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)));break;case A.八分裂:this.offsetWires11.length>=16&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-8]),this.offsetArcWires1A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(I=>{this.arcLine1A1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires11[o+3]),C.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(C),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)));break}}if(this.offsetWires12.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))});break;case A.双分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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));break;case A.四分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires12[o+3]),C.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires12[o+3]),C.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(C),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));break;case A.八分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-8]),this.offsetArcWires1B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(I=>{this.arcLine1B1.push(J(this.viewer.scene.globe.ellipsoid,I))}),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)),C.push(this.offsetWires12[o+3]),C.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(C),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));break}}if(this.offsetWires13.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+3]),C.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+3]),C.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+4]),e.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires13[o+5]),c.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-8]),this.offsetArcWires1C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-7]),this.offsetArcWires1C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+3]),C.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+4]),e.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires13[o+5]),c.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[o+6]),m.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(m),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires13[o+7]),b.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(b),this.LineentityCollection2.add(h(this.offsetArcWires1C,"导线1_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+3]),C.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+3]),C.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+4]),e.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires21[o+5]),c.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-8]),this.offsetArcWires2A=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-7]),this.offsetArcWires2A=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+3]),C.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+4]),e.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires21[o+5]),c.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[o+6]),m.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(m),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires21[o+7]),b.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(b),this.LineentityCollection2.add(h(this.offsetArcWires2A,"导线2_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+3]),C.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+3]),C.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+4]),e.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires22[o+5]),c.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-8]),this.offsetArcWires2B=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-7]),this.offsetArcWires2B=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+3]),C.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+4]),e.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires22[o+5]),c.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[o+6]),m.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(m),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires22[o+7]),b.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(b),this.LineentityCollection2.add(h(this.offsetArcWires2B,"导线2_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&s>0){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[];switch(this.LineInfo.Wairnum){case A.单分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.双分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.四分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+3]),C.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.六分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+3]),C.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+4]),e.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires23[o+5]),c.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case A.八分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-8]),this.offsetArcWires2C=f(i),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-7]),this.offsetArcWires2C=f(l),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(u),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+3]),C.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(C),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+4]),e.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(e),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires23[o+5]),c.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(c),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[o+6]),m.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(m),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires23[o+7]),b.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(b),this.LineentityCollection2.add(h(this.offsetArcWires2C,"导线2_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const i=[];i.push(this.offsetGrouundWires11[s]),i.push(this.offsetGrouundWires11[s-1]);const l=[];l.push(this.offsetGrouundWires12[s]),l.push(this.offsetGrouundWires12[s-1]),this.offsetGrouundWires1=f(i,2),this.offsetGrouundWires2=f(l,2),this.offsetGrouundWires1.forEach(u=>{this.arcLine1D1.push(J(this.viewer.scene.globe.ellipsoid,u))}),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))}let d=2;if(this.LineInfo.towers[s].type==q.耐张塔){switch(this.LineInfo.Wairnum){case A.单分裂:o=o+d,t=t+d;break;case A.双分裂:o=o+d*2,t=t+d*2;break;case A.四分裂:o=o+d*4,t=t+d*4;break;case A.六分裂:o=o+d*6,t=t+d*6;break;case A.八分裂:o=o+d*8,t=t+d*8;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const i=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1A1.length>=2&&(i.push(this.ToffsetWires1A1[t-2]),i.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(I.push(this.ToffsetWires1A2[t-2]),I.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires1A1.length>=4&&(i.push(this.ToffsetWires1A1[t-4]),i.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-3]),l.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(I.push(this.ToffsetWires1A2[t-4]),I.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-3]),P.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires1A1.length>=8&&(i.push(this.ToffsetWires1A1[t-8]),i.push(this.ToffsetWires1A1[t-4]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-7]),l.push(this.ToffsetWires1A1[t-3]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[t-6]),u.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[t-5]),C.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(I.push(this.ToffsetWires1A2[t-8]),I.push(this.ToffsetWires1A2[t-4]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-7]),P.push(this.ToffsetWires1A2[t-3]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[t-6]),g.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[t-5]),y.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires1A1.length>=12&&(i.push(this.ToffsetWires1A1[t-12]),i.push(this.ToffsetWires1A1[t-6]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-11]),l.push(this.ToffsetWires1A1[t-5]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[t-10]),u.push(this.ToffsetWires1A1[t-4]),this.ToffsetArcWires1A=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[t-9]),C.push(this.ToffsetWires1A1[t-3]),this.ToffsetArcWires1A=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[t-8]),e.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1A1[t-7]),c.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(I.push(this.ToffsetWires1A2[t-12]),I.push(this.ToffsetWires1A2[t-6]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-11]),P.push(this.ToffsetWires1A2[t-5]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[t-10]),g.push(this.ToffsetWires1A2[t-4]),this.ToffsetArcWires2A=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[t-9]),y.push(this.ToffsetWires1A2[t-3]),this.ToffsetArcWires2A=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[t-8]),_.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[t-7]),v.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires1A1.length>=16&&(i.push(this.ToffsetWires1A1[t-16]),i.push(this.ToffsetWires1A1[t-8]),this.ToffsetArcWires1A=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[t-15]),l.push(this.ToffsetWires1A1[t-7]),this.ToffsetArcWires1A=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[t-14]),u.push(this.ToffsetWires1A1[t-6]),this.ToffsetArcWires1A=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[t-13]),C.push(this.ToffsetWires1A1[t-5]),this.ToffsetArcWires1A=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[t-12]),e.push(this.ToffsetWires1A1[t-4]),this.ToffsetArcWires1A=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1A1[t-11]),c.push(this.ToffsetWires1A1[t-3]),this.ToffsetArcWires1A=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[t-10]),m.push(this.ToffsetWires1A1[t-2]),this.ToffsetArcWires1A=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A1[t-9]),b.push(this.ToffsetWires1A1[t-1]),this.ToffsetArcWires1A=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A,"1A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(I.push(this.ToffsetWires1A2[t-16]),I.push(this.ToffsetWires1A2[t-8]),this.ToffsetArcWires2A=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[t-15]),P.push(this.ToffsetWires1A2[t-7]),this.ToffsetArcWires2A=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[t-14]),g.push(this.ToffsetWires1A2[t-6]),this.ToffsetArcWires2A=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[t-13]),y.push(this.ToffsetWires1A2[t-5]),this.ToffsetArcWires2A=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[t-12]),_.push(this.ToffsetWires1A2[t-4]),this.ToffsetArcWires2A=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[t-11]),v.push(this.ToffsetWires1A2[t-3]),this.ToffsetArcWires2A=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires1A2[t-10]),S.push(this.ToffsetWires1A2[t-2]),this.ToffsetArcWires2A=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A,"1A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1A2[t-9]),M.push(this.ToffsetWires1A2[t-1]),this.ToffsetArcWires2A=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1B1.length>=2&&(i.push(this.ToffsetWires1B1[t-2]),i.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(I.push(this.ToffsetWires1B2[t-2]),I.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires1B1.length>=4&&(i.push(this.ToffsetWires1B1[t-4]),i.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-3]),l.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(I.push(this.ToffsetWires1B2[t-4]),I.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-3]),P.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires1B1.length>=8&&(i.push(this.ToffsetWires1B1[t-8]),i.push(this.ToffsetWires1B1[t-4]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-7]),l.push(this.ToffsetWires1B1[t-3]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[t-6]),u.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[t-5]),C.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(I.push(this.ToffsetWires1B2[t-8]),I.push(this.ToffsetWires1B2[t-4]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-7]),P.push(this.ToffsetWires1B2[t-3]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[t-6]),g.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[t-5]),y.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires1B1.length>=12&&(i.push(this.ToffsetWires1B1[t-12]),i.push(this.ToffsetWires1B1[t-6]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-11]),l.push(this.ToffsetWires1B1[t-5]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[t-10]),u.push(this.ToffsetWires1B1[t-4]),this.ToffsetArcWires1B=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[t-9]),C.push(this.ToffsetWires1B1[t-3]),this.ToffsetArcWires1B=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[t-8]),e.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1B1[t-7]),c.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(I.push(this.ToffsetWires1B2[t-12]),I.push(this.ToffsetWires1B2[t-6]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-11]),P.push(this.ToffsetWires1B2[t-5]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[t-10]),g.push(this.ToffsetWires1B2[t-4]),this.ToffsetArcWires2B=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[t-9]),y.push(this.ToffsetWires1B2[t-3]),this.ToffsetArcWires2B=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[t-8]),_.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[t-7]),v.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires1B1.length>=16&&(i.push(this.ToffsetWires1B1[t-16]),i.push(this.ToffsetWires1B1[t-8]),this.ToffsetArcWires1B=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[t-15]),l.push(this.ToffsetWires1B1[t-7]),this.ToffsetArcWires1B=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[t-14]),u.push(this.ToffsetWires1B1[t-6]),this.ToffsetArcWires1B=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[t-13]),C.push(this.ToffsetWires1B1[t-5]),this.ToffsetArcWires1B=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[t-12]),e.push(this.ToffsetWires1B1[t-4]),this.ToffsetArcWires1B=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1B1[t-11]),c.push(this.ToffsetWires1B1[t-3]),this.ToffsetArcWires1B=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[t-10]),m.push(this.ToffsetWires1B1[t-2]),this.ToffsetArcWires1B=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B1[t-9]),b.push(this.ToffsetWires1B1[t-1]),this.ToffsetArcWires1B=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B,"1B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(I.push(this.ToffsetWires1B2[t-16]),I.push(this.ToffsetWires1B2[t-8]),this.ToffsetArcWires2B=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[t-15]),P.push(this.ToffsetWires1B2[t-7]),this.ToffsetArcWires2B=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[t-14]),g.push(this.ToffsetWires1B2[t-6]),this.ToffsetArcWires2B=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[t-13]),y.push(this.ToffsetWires1B2[t-5]),this.ToffsetArcWires2B=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[t-12]),_.push(this.ToffsetWires1B2[t-4]),this.ToffsetArcWires2B=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[t-11]),v.push(this.ToffsetWires1B2[t-3]),this.ToffsetArcWires2B=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires1B2[t-10]),S.push(this.ToffsetWires1B2[t-2]),this.ToffsetArcWires2B=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B,"1B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1B2[t-9]),M.push(this.ToffsetWires1B2[t-1]),this.ToffsetArcWires2B=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires1C1.length>=2&&(i.push(this.ToffsetWires1C1[t-2]),i.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(I.push(this.ToffsetWires1C2[t-2]),I.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires1C1.length>=4&&(i.push(this.ToffsetWires1C1[t-4]),i.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-3]),l.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(I.push(this.ToffsetWires1C2[t-4]),I.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-3]),P.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires1C1.length>=8&&(i.push(this.ToffsetWires1C1[t-8]),i.push(this.ToffsetWires1C1[t-4]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-7]),l.push(this.ToffsetWires1C1[t-3]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[t-6]),u.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[t-5]),C.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(I.push(this.ToffsetWires1C2[t-8]),I.push(this.ToffsetWires1C2[t-4]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-7]),P.push(this.ToffsetWires1C2[t-3]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[t-6]),g.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[t-5]),y.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires1C1.length>=12&&(i.push(this.ToffsetWires1C1[t-12]),i.push(this.ToffsetWires1C1[t-6]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-11]),l.push(this.ToffsetWires1C1[t-5]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[t-10]),u.push(this.ToffsetWires1C1[t-4]),this.ToffsetArcWires1C=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[t-9]),C.push(this.ToffsetWires1C1[t-3]),this.ToffsetArcWires1C=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[t-8]),e.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1C1[t-7]),c.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(I.push(this.ToffsetWires1C2[t-12]),I.push(this.ToffsetWires1C2[t-6]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-11]),P.push(this.ToffsetWires1C2[t-5]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[t-10]),g.push(this.ToffsetWires1C2[t-4]),this.ToffsetArcWires2C=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[t-9]),y.push(this.ToffsetWires1C2[t-3]),this.ToffsetArcWires2C=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[t-8]),_.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[t-7]),v.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires1C1.length>=16&&(i.push(this.ToffsetWires1C1[t-16]),i.push(this.ToffsetWires1C1[t-8]),this.ToffsetArcWires1C=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[t-15]),l.push(this.ToffsetWires1C1[t-7]),this.ToffsetArcWires1C=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[t-14]),u.push(this.ToffsetWires1C1[t-6]),this.ToffsetArcWires1C=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[t-13]),C.push(this.ToffsetWires1C1[t-5]),this.ToffsetArcWires1C=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[t-12]),e.push(this.ToffsetWires1C1[t-4]),this.ToffsetArcWires1C=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1C1[t-11]),c.push(this.ToffsetWires1C1[t-3]),this.ToffsetArcWires1C=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[t-10]),m.push(this.ToffsetWires1C1[t-2]),this.ToffsetArcWires1C=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C1[t-9]),b.push(this.ToffsetWires1C1[t-1]),this.ToffsetArcWires1C=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C,"1C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(I.push(this.ToffsetWires1C2[t-16]),I.push(this.ToffsetWires1C2[t-8]),this.ToffsetArcWires2C=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[t-15]),P.push(this.ToffsetWires1C2[t-7]),this.ToffsetArcWires2C=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[t-14]),g.push(this.ToffsetWires1C2[t-6]),this.ToffsetArcWires2C=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[t-13]),y.push(this.ToffsetWires1C2[t-5]),this.ToffsetArcWires2C=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[t-12]),_.push(this.ToffsetWires1C2[t-4]),this.ToffsetArcWires2C=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[t-11]),v.push(this.ToffsetWires1C2[t-3]),this.ToffsetArcWires2C=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires1C2[t-10]),S.push(this.ToffsetWires1C2[t-2]),this.ToffsetArcWires2C=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C,"1C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1C2[t-9]),M.push(this.ToffsetWires1C2[t-1]),this.ToffsetArcWires2C=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2A1.length>=2&&(i.push(this.ToffsetWires2A1[t-2]),i.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(I.push(this.ToffsetWires2A2[t-2]),I.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires2A1.length>=4&&(i.push(this.ToffsetWires2A1[t-4]),i.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-3]),l.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(I.push(this.ToffsetWires2A2[t-4]),I.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-3]),P.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires2A1.length>=8&&(i.push(this.ToffsetWires2A1[t-8]),i.push(this.ToffsetWires2A1[t-4]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-7]),l.push(this.ToffsetWires2A1[t-3]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[t-6]),u.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[t-5]),C.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(I.push(this.ToffsetWires2A2[t-8]),I.push(this.ToffsetWires2A2[t-4]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-7]),P.push(this.ToffsetWires2A2[t-3]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[t-6]),g.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[t-5]),y.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires2A1.length>=12&&(i.push(this.ToffsetWires2A1[t-12]),i.push(this.ToffsetWires2A1[t-6]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-11]),l.push(this.ToffsetWires2A1[t-5]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[t-10]),u.push(this.ToffsetWires2A1[t-4]),this.ToffsetArcWires1A2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[t-9]),C.push(this.ToffsetWires2A1[t-3]),this.ToffsetArcWires1A2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[t-8]),e.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2A1[t-7]),c.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(I.push(this.ToffsetWires2A2[t-12]),I.push(this.ToffsetWires2A2[t-6]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-11]),P.push(this.ToffsetWires2A2[t-5]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[t-10]),g.push(this.ToffsetWires2A2[t-4]),this.ToffsetArcWires2A2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[t-9]),y.push(this.ToffsetWires2A2[t-3]),this.ToffsetArcWires2A2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[t-8]),_.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[t-7]),v.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires2A1.length>=16&&(i.push(this.ToffsetWires2A1[t-16]),i.push(this.ToffsetWires2A1[t-8]),this.ToffsetArcWires1A2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[t-15]),l.push(this.ToffsetWires2A1[t-7]),this.ToffsetArcWires1A2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[t-14]),u.push(this.ToffsetWires2A1[t-6]),this.ToffsetArcWires1A2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[t-13]),C.push(this.ToffsetWires2A1[t-5]),this.ToffsetArcWires1A2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[t-12]),e.push(this.ToffsetWires2A1[t-4]),this.ToffsetArcWires1A2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2A1[t-11]),c.push(this.ToffsetWires2A1[t-3]),this.ToffsetArcWires1A2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[t-10]),m.push(this.ToffsetWires2A1[t-2]),this.ToffsetArcWires1A2=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A1[t-9]),b.push(this.ToffsetWires2A1[t-1]),this.ToffsetArcWires1A2=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1A2,"2A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(I.push(this.ToffsetWires2A2[t-16]),I.push(this.ToffsetWires2A2[t-8]),this.ToffsetArcWires2A2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[t-15]),P.push(this.ToffsetWires2A2[t-7]),this.ToffsetArcWires2A2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[t-14]),g.push(this.ToffsetWires2A2[t-6]),this.ToffsetArcWires2A2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[t-13]),y.push(this.ToffsetWires2A2[t-5]),this.ToffsetArcWires2A2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[t-12]),_.push(this.ToffsetWires2A2[t-4]),this.ToffsetArcWires2A2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[t-11]),v.push(this.ToffsetWires2A2[t-3]),this.ToffsetArcWires2A2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires2A2[t-10]),S.push(this.ToffsetWires2A2[t-2]),this.ToffsetArcWires2A2=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2A2,"2A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2A2[t-9]),M.push(this.ToffsetWires2A2[t-1]),this.ToffsetArcWires2A2=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2B1.length>=2&&(i.push(this.ToffsetWires2B1[t-2]),i.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(I.push(this.ToffsetWires2B2[t-2]),I.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires2B1.length>=4&&(i.push(this.ToffsetWires2B1[t-4]),i.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-3]),l.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(I.push(this.ToffsetWires2B2[t-4]),I.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-3]),P.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires2B1.length>=8&&(i.push(this.ToffsetWires2B1[t-8]),i.push(this.ToffsetWires2B1[t-4]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-7]),l.push(this.ToffsetWires2B1[t-3]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[t-6]),u.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[t-5]),C.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(I.push(this.ToffsetWires2B2[t-8]),I.push(this.ToffsetWires2B2[t-4]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-7]),P.push(this.ToffsetWires2B2[t-3]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[t-6]),g.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[t-5]),y.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires2B1.length>=12&&(i.push(this.ToffsetWires2B1[t-12]),i.push(this.ToffsetWires2B1[t-6]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-11]),l.push(this.ToffsetWires2B1[t-5]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[t-10]),u.push(this.ToffsetWires2B1[t-4]),this.ToffsetArcWires1B2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[t-9]),C.push(this.ToffsetWires2B1[t-3]),this.ToffsetArcWires1B2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[t-8]),e.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2B1[t-7]),c.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(I.push(this.ToffsetWires2B2[t-12]),I.push(this.ToffsetWires2B2[t-6]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-11]),P.push(this.ToffsetWires2B2[t-5]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[t-10]),g.push(this.ToffsetWires2B2[t-4]),this.ToffsetArcWires2B2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[t-9]),y.push(this.ToffsetWires2B2[t-3]),this.ToffsetArcWires2B2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[t-8]),_.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[t-7]),v.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires2B1.length>=16&&(i.push(this.ToffsetWires2B1[t-16]),i.push(this.ToffsetWires2B1[t-8]),this.ToffsetArcWires1B2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[t-15]),l.push(this.ToffsetWires2B1[t-7]),this.ToffsetArcWires1B2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[t-14]),u.push(this.ToffsetWires2B1[t-6]),this.ToffsetArcWires1B2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[t-13]),C.push(this.ToffsetWires2B1[t-5]),this.ToffsetArcWires1B2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[t-12]),e.push(this.ToffsetWires2B1[t-4]),this.ToffsetArcWires1B2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2B1[t-11]),c.push(this.ToffsetWires2B1[t-3]),this.ToffsetArcWires1B2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[t-10]),m.push(this.ToffsetWires2B1[t-2]),this.ToffsetArcWires1B2=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B1[t-9]),b.push(this.ToffsetWires2B1[t-1]),this.ToffsetArcWires1B2=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1B2,"2B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(I.push(this.ToffsetWires2B2[t-16]),I.push(this.ToffsetWires2B2[t-8]),this.ToffsetArcWires2B2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[t-15]),P.push(this.ToffsetWires2B2[t-7]),this.ToffsetArcWires2B2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[t-14]),g.push(this.ToffsetWires2B2[t-6]),this.ToffsetArcWires2B2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[t-13]),y.push(this.ToffsetWires2B2[t-5]),this.ToffsetArcWires2B2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[t-12]),_.push(this.ToffsetWires2B2[t-4]),this.ToffsetArcWires2B2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[t-11]),v.push(this.ToffsetWires2B2[t-3]),this.ToffsetArcWires2B2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires2B2[t-10]),S.push(this.ToffsetWires2B2[t-2]),this.ToffsetArcWires2B2=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2B2,"2B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2B2[t-9]),M.push(this.ToffsetWires2B2[t-1]),this.ToffsetArcWires2B2=f(M,15),this.LineentityCollection2.add(h(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=[],l=[],u=[],C=[],e=[],c=[],m=[],b=[],I=[],P=[],g=[],y=[],_=[],v=[],S=[],M=[];switch(this.LineInfo.Wairnum){case A.单分裂:this.ToffsetWires2C1.length>=2&&(i.push(this.ToffsetWires2C1[t-2]),i.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(I.push(this.ToffsetWires2C2[t-2]),I.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.双分裂:this.ToffsetWires2C1.length>=4&&(i.push(this.ToffsetWires2C1[t-4]),i.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-3]),l.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(I.push(this.ToffsetWires2C2[t-4]),I.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-3]),P.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.四分裂:this.ToffsetWires2C1.length>=8&&(i.push(this.ToffsetWires2C1[t-8]),i.push(this.ToffsetWires2C1[t-4]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-7]),l.push(this.ToffsetWires2C1[t-3]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[t-6]),u.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[t-5]),C.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(I.push(this.ToffsetWires2C2[t-8]),I.push(this.ToffsetWires2C2[t-4]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-7]),P.push(this.ToffsetWires2C2[t-3]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[t-6]),g.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[t-5]),y.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.六分裂:this.ToffsetWires2C1.length>=12&&(i.push(this.ToffsetWires2C1[t-12]),i.push(this.ToffsetWires2C1[t-6]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-11]),l.push(this.ToffsetWires2C1[t-5]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[t-10]),u.push(this.ToffsetWires2C1[t-4]),this.ToffsetArcWires1C2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[t-9]),C.push(this.ToffsetWires2C1[t-3]),this.ToffsetArcWires1C2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[t-8]),e.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2C1[t-7]),c.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(I.push(this.ToffsetWires2C2[t-12]),I.push(this.ToffsetWires2C2[t-6]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-11]),P.push(this.ToffsetWires2C2[t-5]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[t-10]),g.push(this.ToffsetWires2C2[t-4]),this.ToffsetArcWires2C2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[t-9]),y.push(this.ToffsetWires2C2[t-3]),this.ToffsetArcWires2C2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[t-8]),_.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[t-7]),v.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case A.八分裂:this.ToffsetWires2C1.length>=16&&(i.push(this.ToffsetWires2C1[t-16]),i.push(this.ToffsetWires2C1[t-8]),this.ToffsetArcWires1C2=f(i,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[t-15]),l.push(this.ToffsetWires2C1[t-7]),this.ToffsetArcWires1C2=f(l,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[t-14]),u.push(this.ToffsetWires2C1[t-6]),this.ToffsetArcWires1C2=f(u,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[t-13]),C.push(this.ToffsetWires2C1[t-5]),this.ToffsetArcWires1C2=f(C,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[t-12]),e.push(this.ToffsetWires2C1[t-4]),this.ToffsetArcWires1C2=f(e,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2C1[t-11]),c.push(this.ToffsetWires2C1[t-3]),this.ToffsetArcWires1C2=f(c,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[t-10]),m.push(this.ToffsetWires2C1[t-2]),this.ToffsetArcWires1C2=f(m,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C1[t-9]),b.push(this.ToffsetWires2C1[t-1]),this.ToffsetArcWires1C2=f(b,15),this.LineentityCollection2.add(h(this.ToffsetArcWires1C2,"2C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(I.push(this.ToffsetWires2C2[t-16]),I.push(this.ToffsetWires2C2[t-8]),this.ToffsetArcWires2C2=f(I,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[t-15]),P.push(this.ToffsetWires2C2[t-7]),this.ToffsetArcWires2C2=f(P,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[t-14]),g.push(this.ToffsetWires2C2[t-6]),this.ToffsetArcWires2C2=f(g,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[t-13]),y.push(this.ToffsetWires2C2[t-5]),this.ToffsetArcWires2C2=f(y,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[t-12]),_.push(this.ToffsetWires2C2[t-4]),this.ToffsetArcWires2C2=f(_,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[t-11]),v.push(this.ToffsetWires2C2[t-3]),this.ToffsetArcWires2C2=f(v,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),S.push(this.ToffsetWires2C2[t-10]),S.push(this.ToffsetWires2C2[t-2]),this.ToffsetArcWires2C2=f(S,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2C2[t-9]),M.push(this.ToffsetWires2C2[t-1]),this.ToffsetArcWires2C2=f(M,15),this.LineentityCollection2.add(h(this.ToffsetArcWires2C2,"2C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case A.单分裂:o=o+1;break;case A.双分裂:o=o+2;break;case A.四分裂:o=o+4;break;case A.六分裂:o=o+6;break;case A.八分裂:o=o+8;break}})}addTreeData(o){this.LineInfo.Trees.push(o)}loadTree(){this.Keym=="OW_JPS_EEngin_001"&&(this.LineInfo.Trees.forEach(o=>{this.offsetTrees.push(n.Cartesian3.fromDegrees(o.lon,o.lat,o.alt))}),this.viewer.dataSources.contains(this.dataSourcetree)||(this.viewer.dataSources.add(this.dataSourcetree),console.log("Added tree datasource to viewer in loadTree")),this.entityCollectiontree.show=!0,this.isDynamicLoadingEnabled?(this.setupTreeCameraMoveListener(),this.updateVisibleTrees()):this.loadAllTreesAtOnce())}loadAllTreesAtOnce(){this.LineInfo.Trees.length!==this.offsetTrees.length&&console.warn(`树木数据长度 (${this.LineInfo.Trees.length}) 与位置数据长度 (${this.offsetTrees.length}) 不匹配`);const o=Math.min(this.LineInfo.Trees.length,this.offsetTrees.length);for(let t=0;t<o;t++){const r=this.LineInfo.Trees[t],s=this.offsetTrees[t];r&&s?this.loadTreeAtIndex(t,s):console.warn(`跳过无效的树木数据,索引: ${t}`)}console.log(`完成加载 ${o} 棵树木`)}loadTreeAtIndex(o,t){const r=this.LineInfo.Trees[o];if(!r.modelurl||r.modelurl.trim()===""){console.warn(`Tree ${o} has invalid model URL: ${r.modelurl}. Skipping...`);return}console.log(`Loading tree ${o}: id=${r.id}, url=${r.modelurl}, lon=${r.lon}, lat=${r.lat}, alt=${r.alt}, treeH=${r.treeH}, treeScale=${r.treeScale}`);let s=1;r.treeScale>0&&r.treeH>0?(s=r.treeH/r.treeScale,s<=0&&(s=1)):r.treeH>0&&(s=r.treeH),console.log(`Tree ${o} scale: ${s} (treeH=${r.treeH}, treeScale=${r.treeScale})`);const T=this.getCachedModelConfig(r.modelurl,s,0,2e4);this.entityCollectiontree.add(Ws("tree-"+r.id,t,"tree-"+r.id,T.uri,new n.HeadingPitchRoll(0,0,0),T.scale,T.distanceDisplayCondition)),console.log(`Tree ${o} added. Total trees in collection: ${this.entityCollectiontree.values.length}`)}flyToTree(o){if(o<0||o>=this.LineInfo.Trees.length){console.warn(`Invalid tree index: ${o}. Valid range: 0-${this.LineInfo.Trees.length-1}`);return}const t=this.LineInfo.Trees[o],r=n.Cartesian3.fromDegrees(t.lon,t.lat,t.alt+(t.treeH||0));this.viewer.camera.flyTo({destination:r,duration:2,orientation:{heading:n.Math.toRadians(0),pitch:n.Math.toRadians(-60),roll:n.Math.toRadians(0)}}),console.log(`Flying to tree ${o}: lon=${t.lon}, lat=${t.lat}, alt=${t.alt}, treeH=${t.treeH}`)}calcResult(o){const t=js(o,this.arcLine1A1,this.arcLine1B1,this.arcLine1D1);Qs(o,t,this.entityCollectionplotting)}loadTreeListen(){this.treeHandler&&this.removeTreeListen();const o=(t,r)=>{var T;const s=t.scene.pick(r);if(n.defined(s)){const W=n.defaultValue(s.id,(T=s.primitive)==null?void 0:T.id);if(W instanceof n.Entity)return W}};this.ensurePlottingDataSourceAdded(),this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(t=>{var s;const r=o(this.viewer,t.position);if(r&&r.id){const T=String(r.id);if(T.startsWith(hs.TREE_ENTITY_PREFIX)){const W=T.substring(hs.TREE_ENTITY_PREFIX.length),L=(s=this.LineInfo.Trees)==null?void 0:s.find(p=>p&&p.id&&String(p.id)===W);if(L){const p=[L.lon,L.lat,Number(L.alt||0)+Number(L.treeH||0)];console.log("拾取树木:",L,"坐标:",p),this.calcResult(p)}else console.warn(`未找到ID为 ${W} 的树木`)}}},n.ScreenSpaceEventType.LEFT_CLICK)}ensurePlottingDataSourceAdded(){this.viewer.dataSources.contains(this.dataSourceplotting)||this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.entityCollectionplotting.removeAll(),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.ensurePlottingDataSourceAdded(),this.LineInfo.Trees.forEach(o=>{if(o){const t=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(t)}})}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.entityCollection2.show=!0,this.viewer.dataSources.add(this.LinedataSource2),this.LineentityCollection2.show=!0)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.contains(this.dataSourcetree)||(this.viewer.dataSources.add(this.dataSourcetree),console.log("Added tree datasource to viewer")),this.entityCollectiontree.show=!0,console.log(`Tree entity collection show: ${this.entityCollectiontree.show}, entities count: ${this.entityCollectiontree.values.length}`))}RemoveTreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSourcetree),this.entityCollectiontree.show=!1)}reloadTrees(){this.RemoveTreeModel(),this.dataSourcetree=new n.CustomDataSource(this.LineInfo.LineID+"tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.loadTree()}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.4.
|
|
4
|
+
"version": "2.4.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@turf/turf": "^6.5.0",
|
|
24
24
|
"@types/file-saver": "^2.0.7",
|
|
25
|
-
"cesium": "^1.
|
|
25
|
+
"cesium": "^1.136.0",
|
|
26
26
|
"file-saver": "^2.0.5",
|
|
27
27
|
"shp-write": "^0.3.2",
|
|
28
28
|
"typescript": "~5.6.3",
|