ow-eengine-power 2.4.0 → 2.4.2
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 +1611 -1296
- package/dist/OW_EEngine_Power.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(S,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("cesium")):typeof define=="function"&&define.amd?define(["exports","cesium"],Z):(S=typeof globalThis<"u"?globalThis:S||self,Z(S.OW_EEngine_Power={},S.Cesium))})(this,function(S,Z){"use strict";var ft=Object.defineProperty;var ht=(S,Z,Q)=>Z in S?ft(S,Z,{enumerable:!0,configurable:!0,writable:!0,value:Q}):S[Z]=Q;var w=(S,Z,Q)=>ht(S,typeof Z!="symbol"?Z+"":Z,Q);function Q(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const h=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(o,e,h.get?h:{enumerable:!0,get:()=>a[e]})}}return o.default=a,Object.freeze(o)}const n=Q(Z);function _s(a,o,e={}){const{color:h=Z.Color.WHITE,width:s=3,clampToGround:I=!1,zIndex:W=0,dashed:A=!1,dashLength:L=10}=e,i=A?new n.PolylineDashMaterialProperty({color:h,dashLength:L}):new n.ColorMaterialProperty(h);return a.entities.add({polyline:{positions:o,width:s,material:i,clampToGround:I,zIndex:W}})}function r(a,o,e=10,h="#ba1919",s,I=!1){const W={show:!0,positions:a,clampToGround:I,width:e,material:n.Color.fromCssColorString(h),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED,granularity:I?void 0:0};return s&&(W.distanceDisplayCondition=new n.DistanceDisplayCondition(0,2e3)),{name:o,label:s?{text:o,font:"18px sans-serif",distanceDisplayCondition:new n.DistanceDisplayCondition(s[0],Math.min(s[1],5e3))}:{text:o,font:"18px sans-serif"},polyline:W}}function K(a,o,e,h,s=new n.HeadingPitchRoll(0,0,0),I=1,W){const A={show:!0,uri:h,scale:I,transition:{distanceDisplayCondition:!0,scale:!0}};return W&&(Array.isArray(W)?A.distanceDisplayCondition=new n.DistanceDisplayCondition(W[0],W[1]):A.distanceDisplayCondition=W),{id:a,name:e,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:A}}function is(a,o,e,h={}){const{pointColor:s=Z.Color.YELLOW,pointSize:I=12,labelColor:W=Z.Color.WHITE,fontSize:A=16,pixelOffset:L=[0,-20],heightReference:i=Z.HeightReference.NONE}=h;return a.entities.add({position:o,point:{color:s,pixelSize:I,heightReference:i,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)},label:{text:e,font:`${A}px sans-serif`,fillColor:W,pixelOffset:new n.Cartesian2(...L),style:Z.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:Z.Color.BLACK,heightReference:i,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)}})}var N=63710088e-1,us={centimeters:N*100,centimetres:N*100,degrees:N/111325,feet:N*3.28084,inches:N*39.37,kilometers:N/1e3,kilometres:N/1e3,meters:N,metres:N,miles:N/1609.344,millimeters:N*1e3,millimetres:N*1e3,nauticalmiles:N/1852,radians:1,yards:N*1.0936};function x(a,o,e){e===void 0&&(e={});var h={type:"Feature"};return(e.id===0||e.id)&&(h.id=e.id),e.bbox&&(h.bbox=e.bbox),h.properties=o||{},h.geometry=a,h}function q(a,o,e){if(e===void 0&&(e={}),!a)throw new Error("coordinates is required");if(!Array.isArray(a))throw new Error("coordinates must be an Array");if(a.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Cs(a[0])||!Cs(a[1]))throw new Error("coordinates must contain numbers");var h={type:"Point",coordinates:a};return x(h,o,e)}function $(a,o,e){if(e===void 0&&(e={}),a.length<2)throw new Error("coordinates must be an array of two or more positions");var h={type:"LineString",coordinates:a};return x(h,o,e)}function vs(a,o){o===void 0&&(o={});var e={type:"FeatureCollection"};return o.id&&(e.id=o.id),o.bbox&&(e.bbox=o.bbox),e.features=a,e}function ls(a,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return a*e}function cs(a,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return a/e}function rs(a){var o=a%(2*Math.PI);return o*180/Math.PI}function G(a){var o=a%360;return o*Math.PI/180}function Ts(a,o,e){if(o===void 0&&(o="kilometers"),e===void 0&&(e="kilometers"),!(a>=0))throw new Error("length must be a positive number");return ls(cs(a,o),e)}function Cs(a){return!isNaN(a)&&a!==null&&!Array.isArray(a)}function ks(a){return!!a&&a.constructor===Object}function As(a,o,e){if(a!==null)for(var h,s,I,W,A,L,i,t=0,u=0,l,C=a.type,d=C==="FeatureCollection",g=C==="Feature",b=d?a.features.length:1,T=0;T<b;T++){i=d?a.features[T].geometry:g?a.geometry:a,l=i?i.type==="GeometryCollection":!1,A=l?i.geometries.length:1;for(var B=0;B<A;B++){var P=0,y=0;if(W=l?i.geometries[B]:i,W!==null){L=W.coordinates;var m=W.type;switch(t=0,m){case null:break;case"Point":if(o(L,u,T,P,y)===!1)return!1;u++,P++;break;case"LineString":case"MultiPoint":for(h=0;h<L.length;h++){if(o(L[h],u,T,P,y)===!1)return!1;u++,m==="MultiPoint"&&P++}m==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(h=0;h<L.length;h++){for(s=0;s<L[h].length-t;s++){if(o(L[h][s],u,T,P,y)===!1)return!1;u++}m==="MultiLineString"&&P++,m==="Polygon"&&y++}m==="Polygon"&&P++;break;case"MultiPolygon":for(h=0;h<L.length;h++){for(y=0,s=0;s<L[h].length;s++){for(I=0;I<L[h][s].length-t;I++){if(o(L[h][s][I],u,T,P,y)===!1)return!1;u++}y++}P++}break;case"GeometryCollection":for(h=0;h<W.geometries.length;h++)if(As(W.geometries[h],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ss(a,o){if(a.type==="Feature")o(a,0);else if(a.type==="FeatureCollection")for(var e=0;e<a.features.length&&o(a.features[e],e)!==!1;e++);}function Zs(a,o){var e,h,s,I,W,A,L,i,t,u,l=0,C=a.type==="FeatureCollection",d=a.type==="Feature",g=C?a.features.length:1;for(e=0;e<g;e++){for(A=C?a.features[e].geometry:d?a.geometry:a,i=C?a.features[e].properties:d?a.properties:{},t=C?a.features[e].bbox:d?a.bbox:void 0,u=C?a.features[e].id:d?a.id:void 0,L=A?A.type==="GeometryCollection":!1,W=L?A.geometries.length:1,s=0;s<W;s++){if(I=L?A.geometries[s]:A,I===null){if(o(null,l,i,t,u)===!1)return!1;continue}switch(I.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(I,l,i,t,u)===!1)return!1;break}case"GeometryCollection":{for(h=0;h<I.geometries.length;h++)if(o(I.geometries[h],l,i,t,u)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}l++}}function Ms(a,o){Zs(a,function(e,h,s,I,W){var A=e===null?null:e.type;switch(A){case null:case"Point":case"LineString":case"Polygon":return o(x(e,s,{bbox:I,id:W}),h,0)===!1?!1:void 0}var L;switch(A){case"MultiPoint":L="Point";break;case"MultiLineString":L="LineString";break;case"MultiPolygon":L="Polygon";break}for(var i=0;i<e.coordinates.length;i++){var t=e.coordinates[i],u={type:L,coordinates:t};if(o(x(u,s),h,i)===!1)return!1}})}function Es(a,o){Ms(a,function(e,h,s){var I=0;if(e.geometry){var W=e.geometry.type;if(!(W==="Point"||W==="MultiPoint")){var A,L=0,i=0,t=0;if(As(e,function(u,l,C,d,g){if(A===void 0||h>L||d>i||g>t){A=u,L=h,i=d,t=g,I=0;return}var b=$([A,u],e.properties);if(o(b,h,s,g,I)===!1)return!1;I++,A=u})===!1)return!1}}})}function U(a){if(!a)throw new Error("coord is required");if(!Array.isArray(a)){if(a.type==="Feature"&&a.geometry!==null&&a.geometry.type==="Point")return a.geometry.coordinates;if(a.type==="Point")return a.coordinates}if(Array.isArray(a)&&a.length>=2&&!Array.isArray(a[0])&&!Array.isArray(a[1]))return a;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ps(a,o,e){if(!a)throw new Error("No feature passed");if(!e)throw new Error(".featureOf() requires a name");if(!a||a.type!=="Feature"||!a.geometry)throw new Error("Invalid input to "+e+", Feature with geometry required");if(!a.geometry||a.geometry.type!==o)throw new Error("Invalid input to "+e+": must be a "+o+", given "+a.geometry.type)}var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V(a,o,e){e===void 0&&(e={});var h=U(a),s=U(o),I=G(s[1]-h[1]),W=G(s[0]-h[0]),A=G(h[1]),L=G(s[1]),i=Math.pow(Math.sin(I/2),2)+Math.pow(Math.sin(W/2),2)*Math.cos(A)*Math.cos(L);return ls(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)),e.units)}function Xs(a){if(!a)throw new Error("geojson is required");switch(a.type){case"Feature":return ws(a);case"FeatureCollection":return Fs(a);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return fs(a);default:throw new Error("unknown GeoJSON type")}}function ws(a){var o={type:"Feature"};return Object.keys(a).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:o[e]=a[e]}}),o.properties=Is(a.properties),o.geometry=fs(a.geometry),o}function Is(a){var o={};return a&&Object.keys(a).forEach(function(e){var h=a[e];typeof h=="object"?h===null?o[e]=null:Array.isArray(h)?o[e]=h.map(function(s){return s}):o[e]=Is(h):o[e]=h}),o}function Fs(a){var o={type:"FeatureCollection"};return Object.keys(a).forEach(function(e){switch(e){case"type":case"features":return;default:o[e]=a[e]}}),o.features=a.features.map(function(e){return ws(e)}),o}function fs(a){var o={type:a.type};return a.bbox&&(o.bbox=a.bbox),a.type==="GeometryCollection"?(o.geometries=a.geometries.map(function(e){return fs(e)}),o):(o.coordinates=ds(a.coordinates),o)}function ds(a){var o=a;return typeof o[0]!="object"?o.slice():o.map(function(e){return ds(e)})}function hs(a,o,e,h){h===void 0&&(h={});var s=U(a),I=G(s[0]),W=G(s[1]),A=G(e),L=cs(o,h.units),i=Math.asin(Math.sin(W)*Math.cos(L)+Math.cos(W)*Math.sin(L)*Math.cos(A)),t=I+Math.atan2(Math.sin(A)*Math.sin(L)*Math.cos(W),Math.cos(L)-Math.sin(W)*Math.sin(i)),u=rs(t),l=rs(i);return q([u,l],h.properties)}function es(a,o,e){if(e===void 0&&(e={}),e.final===!0)return Ys(a,o);var h=U(a),s=U(o),I=G(h[0]),W=G(s[0]),A=G(h[1]),L=G(s[1]),i=Math.sin(W-I)*Math.cos(L),t=Math.cos(A)*Math.sin(L)-Math.sin(A)*Math.cos(L)*Math.cos(W-I);return rs(Math.atan2(i,t))}function Ys(a,o){var e=es(o,a);return e=(e+180)%360,e}function Ds(a,o){var e=V(a,o),h=es(a,o),s=hs(a,e/2,h);return s}function Rs(a,o){if(!a)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var e,h=1/0,s=0;return Ss(o,function(I,W){var A=V(a,I);A<h&&(s=W,h=A)}),e=Xs(o.features[s]),e.properties.featureIndex=s,e.properties.distanceToPoint=h,e}function Os(a,o,e){e===void 0&&(e={});var h=U(a),s=U(o);s[0]+=s[0]-h[0]>180?-360:h[0]-s[0]>180?360:0;var I=Hs(h,s),W=Ts(I,"meters",e.units);return W}function Hs(a,o,e){e=e===void 0?N:Number(e);var h=e,s=a[1]*Math.PI/180,I=o[1]*Math.PI/180,W=I-s,A=Math.abs(o[0]-a[0])*Math.PI/180;A>Math.PI&&(A-=2*Math.PI);var L=Math.log(Math.tan(I/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),i=Math.abs(L)>1e-11?W/L:Math.cos(s),t=Math.sqrt(W*W+i*i*A*A),u=t*h;return u}function ns(a,o,e){if(e===void 0&&(e={}),e.method||(e.method="geodesic"),e.units||(e.units="kilometers"),!a)throw new Error("pt is required");if(Array.isArray(a)?a=q(a):a.type==="Point"?a=x(a):ps(a,"Point","point"),!o)throw new Error("line is required");Array.isArray(o)?o=$(o):o.type==="LineString"?o=x(o):ps(o,"LineString","line");var h=1/0,s=a.geometry.coordinates;return Es(o,function(I){var W=I.geometry.coordinates[0],A=I.geometry.coordinates[1],L=Ns(s,W,A,e);L<h&&(h=L)}),Ts(h,"degrees",e.units)}function Ns(a,o,e,h){var s=[e[0]-o[0],e[1]-o[1]],I=[a[0]-o[0],a[1]-o[1]],W=Ls(I,s);if(W<=0)return as(a,o,{method:h.method,units:"degrees"});var A=Ls(s,s);if(A<=W)return as(a,e,{method:h.method,units:"degrees"});var L=W/A,i=[o[0]+L*s[0],o[1]+L*s[1]];return as(a,i,{method:h.method,units:"degrees"})}function Ls(a,o){return a[0]*o[0]+a[1]*o[1]}function as(a,o,e){return e.method==="planar"?Os(a,o,e):V(a,o,e)}function Gs(a,o,e,h){if(h=h||{},!ks(h))throw new Error("options is invalid");var s,I=[];if(a.type==="Feature")s=a.geometry.coordinates;else if(a.type==="LineString")s=a.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var W=s.length,A=0,L,i,t,u=0;u<s.length&&!(o>=A&&u===s.length-1);u++){if(A>o&&I.length===0){if(L=o-A,!L)return I.push(s[u]),$(I);i=es(s[u],s[u-1])-180,t=hs(s[u],L,i,h),I.push(t.geometry.coordinates)}if(A>=e)return L=e-A,L?(i=es(s[u],s[u-1])-180,t=hs(s[u],L,i,h),I.push(t.geometry.coordinates),$(I)):(I.push(s[u]),$(I));if(A>=o&&I.push(s[u]),u===s.length-1)return $(I);A+=V(s[u],s[u+1],h)}if(A<o&&s.length===W)throw new Error("Start position is beyond line");var l=s[s.length-1];return $([l,l])}const j={units:"kilometers"};function zs(a,o,e,h){var{nearestDistance:s}=os(a,o),{nearestDistance:I}=os(a,h),{nearestDistance:W}=os(a,e);const A=Math.min(s,W,I);return A===s?o:A===W?e:h}const $s=(a,o,e)=>{debugger;const h=q(a.slice(0,2)),{nearestCoord:s}=os(a,o),I=o.findIndex(E=>E[0]==s[0]&&E[1]==s[1]);let W=[];if(I==0)W.push(o[0],o[1]);else if(I==o.length-1)W.push(o[o.length-2],o[o.length-1]);else{const E=[o[I],o[I+1]],ms=[o[I-1],o[I]];var A=ns(h,$(E),j),L=ns(h,$(ms),j);W=A>L?ms:E}console.log("附近的点",I,W);const i=$([W[0].slice(0,2),W[1].slice(0,2)]),t=q(W[0].slice(0,2)),u=q(W[1].slice(0,2));var l=ns(h,i,j),C=V(h,t,j)||0,d=Math.sqrt(C*C-l*l)||0;let g=W[0].slice(0,2);d>0&&(g=Gs(i,0,d,j).geometry.coordinates[1]);const b=V(t,u,j),T=Math.abs(W[0][2]-W[1][2]),B=Math.min(W[0][2],W[1][2]),P=Math.max(W[0][2],W[1][2]),y=W[0][2]>W[1][2]?P-d/b*T:d/b*T+B;console.log("高度差>>>>",T),console.log("最小高度>>>>",B);const m=y-a[2],_=l*1e3,v=Math.sqrt(_*_+m*m);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",m),console.log("直线距离>>>>",v);const k=n.Cartesian3.fromDegrees(a[0],a[1],a[2]),M=n.Cartesian3.fromDegrees(g[0],g[1],y);var X=Ds(q([a[0],a[1]]),q([g[0],g[1]])).geometry.coordinates;const D={position:n.Cartesian3.fromDegrees(X[0],X[1],y-m/2),name:"直线距离",label:{text:`直线距离${v.toFixed(1)}米`,fillColor:n.Color.fromCssColorString("#eff819"),font:"12px sans-serif",pixelOffset:new n.Cartesian2(0,0),scaleByDistance:new n.NearFarScalar(1e3,1.5,2e3,1),disableDepthTestDistance:Number.POSITIVE_INFINITY}},F=[];F.push(k),F.push(M);var R={polyline:{show:!0,positions:F,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};e.add(D),e.add(R)};function os(a,o){const e=q(a.slice(0,2)),h=[];o.forEach(A=>{h.push(q([A[0],A[1]]))});const s=vs(h),I=Rs(e,s),W=V(e,I,j);return{nearestCoord:I.geometry.coordinates,nearestDistance:W}}function p(a,o,e,h,s){e||(e=new n.HeadingPitchRoll);const I=n.Transforms.headingPitchRollQuaternion(a,e,h,s),W=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(I,new n.Matrix3),a,new n.Matrix4);return n.Matrix4.multiplyByPoint(W,o,new n.Cartesian3)}function z(a,o){var e=a.cartesianToCartographic(o),h=n.Math.toDegrees(e.latitude),s=n.Math.toDegrees(e.longitude),I=e.height;return[s,h,I]}function f(a,o=6){const e=[];for(var h=0;h<a.length-1;h++)e.push(...qs(a[h],a[h+1],o*-1e3,100));return e}function qs(a,o,e,h){var s=[],I=n.Cartographic.fromCartesian(a),W=n.Cartographic.fromCartesian(o),A=I.longitude*180/Math.PI,L=I.latitude*180/Math.PI,i=W.longitude*180/Math.PI,t=W.latitude*180/Math.PI,u=Math.sqrt((A-i)*(A-i)+(L-t)*(L-t)),l=u*e,C=n.Cartesian3.clone(a),d=n.Cartesian3.clone(o),g=n.Cartesian3.distance(C,n.Cartesian3.ZERO),b=n.Cartesian3.distance(d,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(d,d),n.Cartesian3.distance(C,d)==0)return s;var T=n.Cartesian3.angleBetween(C,d);s.push(a);for(var B=1;B<h-1;B++){var P=B*1/(h-1),y=1-P,m=Math.sin(y*T)/Math.sin(T),_=Math.sin(P*T)/Math.sin(T),v=n.Cartesian3.multiplyByScalar(C,m,new n.Cartesian3),k=n.Cartesian3.multiplyByScalar(d,_,new n.Cartesian3),M=n.Cartesian3.add(v,k,new n.Cartesian3),X=P*Math.PI,Y=g*y+b*P+Math.sin(X)*l;M=n.Cartesian3.multiplyByScalar(M,Y,M),s.push(M)}return s.push(o),s}class Js{constructor(){w(this,"LineID","myEntity1");w(this,"Tag","");w(this,"towers",[]);w(this,"ISPhaseSequence",!1);w(this,"Wairnum",0);w(this,"Type",0);w(this,"Trees",[]);w(this,"wireAColor","#FFFFFF");w(this,"wireBColor","#FFFFFF");w(this,"wireCColor","#FFFFFF");w(this,"wireTColor","#FFFFFF");w(this,"wireD1Color","#FFFFFF");w(this,"wireD2Color","#FFFFFF");w(this,"wireWidth",1);w(this,"LineDistanceDisplaymin",0);w(this,"LineDistanceDisplaymax",5e3)}}class Ks{constructor(){w(this,"id","");w(this,"modelid","");w(this,"lon",0);w(this,"lat",0);w(this,"alt",0);w(this,"treeH",0);w(this,"modelurl","");w(this,"treeScale",1)}}class Us{constructor(){w(this,"id","");w(this,"name","");w(this,"type",0);w(this,"Longitude",0);w(this,"Latitude",0);w(this,"Altitude",0);w(this,"RollX",0);w(this,"RollY",90);w(this,"RollZ",0);w(this,"towerScale",1);w(this,"towerHeight",0);w(this,"towerModelUri","");w(this,"towerPoint",[]);w(this,"Insulators",[]);w(this,"DistanceDisplaymin",0);w(this,"DistanceDisplaymax",1e3)}}class Vs{constructor(){w(this,"id","");w(this,"name","");w(this,"type",0);w(this,"WairFX","进");w(this,"linenum",1);w(this,"Wairnum",0);w(this,"PhaseSequence",0);w(this,"RollX",0);w(this,"RollY",0);w(this,"RollZ",0);w(this,"InsulatorScale",1);w(this,"InsulatorLength",0);w(this,"InsulatorModelUri","");w(this,"InsulatorPoint",[]);w(this,"DistanceDisplaymin",0);w(this,"DistanceDisplaymax",500)}}class js{constructor(){w(this,"name","");w(this,"X",-45);w(this,"Y",90);w(this,"Z",0)}}var H=(a=>(a[a.A相=0]="A相",a[a.B相=1]="B相",a[a.C相=2]="C相",a[a.地线1=3]="地线1",a[a.地线2=4]="地线2",a))(H||{}),J=(a=>(a[a.直线塔=0]="直线塔",a[a.耐张塔=1]="耐张塔",a[a.门架塔=2]="门架塔",a[a.换位塔=3]="换位塔",a))(J||{}),Bs=(a=>(a[a.交流单回路=0]="交流单回路",a[a.交流双回路=1]="交流双回路",a[a.直流单回路=2]="直流单回路",a[a.直流双回路=3]="直流双回路",a[a.交流四回路=4]="交流四回路",a))(Bs||{}),ts=(a=>(a[a.地线=0]="地线",a[a.回路一=1]="回路一",a[a.回路二=2]="回路二",a[a.回路三=3]="回路三",a[a.回路四=4]="回路四",a))(ts||{}),O=(a=>(a[a.悬垂串=0]="悬垂串",a[a.耐张串=1]="耐张串",a[a.跳线串=2]="跳线串",a[a.硬跳串=3]="硬跳串",a[a.V串=4]="V串",a[a.地线串=5]="地线串",a[a.绕跳临时=6]="绕跳临时",a))(O||{}),c=(a=>(a[a.单分裂=0]="单分裂",a[a.双分裂=1]="双分裂",a[a.四分裂=2]="四分裂",a[a.六分裂=3]="六分裂",a[a.八分裂=4]="八分裂",a))(c||{});class Qs{constructor(o,e,h){w(this,"viewer");w(this,"LineInfo");w(this,"Keym","");w(this,"dataSource2");w(this,"entityCollection2");w(this,"dataSourcetree");w(this,"entityCollectiontree");w(this,"dataSourceplotting");w(this,"entityCollectionplotting");w(this,"offsetTowers",[]);w(this,"offsetWires11",[]);w(this,"offsetWires12",[]);w(this,"offsetWires13",[]);w(this,"offsetWires21",[]);w(this,"offsetWires22",[]);w(this,"offsetWires23",[]);w(this,"ToffsetArcWires1A",[]);w(this,"ToffsetArcWires2A",[]);w(this,"ToffsetWires1A1",[]);w(this,"ToffsetWires1A2",[]);w(this,"ToffsetArcWires1B",[]);w(this,"ToffsetArcWires2B",[]);w(this,"ToffsetWires1B1",[]);w(this,"ToffsetWires1B2",[]);w(this,"ToffsetArcWires1C",[]);w(this,"ToffsetArcWires2C",[]);w(this,"ToffsetWires1C1",[]);w(this,"ToffsetWires1C2",[]);w(this,"ToffsetArcWires1A2",[]);w(this,"ToffsetArcWires2A2",[]);w(this,"ToffsetWires2A1",[]);w(this,"ToffsetWires2A2",[]);w(this,"ToffsetArcWires1B2",[]);w(this,"ToffsetArcWires2B2",[]);w(this,"ToffsetWires2B1",[]);w(this,"ToffsetWires2B2",[]);w(this,"ToffsetArcWires1C2",[]);w(this,"ToffsetArcWires2C2",[]);w(this,"ToffsetWires2C1",[]);w(this,"ToffsetWires2C2",[]);w(this,"offsetArcWires1A",[]);w(this,"offsetArcWires1B",[]);w(this,"offsetArcWires1C",[]);w(this,"offsetArcWires2A",[]);w(this,"offsetArcWires2B",[]);w(this,"offsetArcWires2C",[]);w(this,"offsetGrouundWires1",[]);w(this,"offsetGrouundWires2",[]);w(this,"offsetGrouundWires11",[]);w(this,"offsetGrouundWires12",[]);w(this,"arcLine1A1",[]);w(this,"arcLine1B1",[]);w(this,"arcLine1D1",[]);w(this,"treeHandler",null);this.Keym=h,this.viewer=o,this.LineInfo=e,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities,this.dataSourcetree=new n.CustomDataSource("tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.dataSourceplotting=new n.CustomDataSource("plotting"),this.entityCollectionplotting=this.dataSourceplotting.entities,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID+"daoxian"),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;this.LineInfo.towers.forEach(h=>{this.offsetTowers.push(n.Cartesian3.fromDegrees(h.Longitude,h.Latitude,h.Altitude))});let o=0,e=0;this.offsetTowers.forEach((h,s)=>{const I=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),n.Math.toRadians(this.LineInfo.towers[s].RollY),n.Math.toRadians(this.LineInfo.towers[s].RollZ));this.entityCollection2.add(K(this.LineInfo.towers[s].id,h,this.LineInfo.towers[s].name,this.LineInfo.towers[s].towerModelUri,I,this.LineInfo.towers[s].towerScale,[this.LineInfo.towers[s].DistanceDisplaymin,this.LineInfo.towers[s].DistanceDisplaymax]));let W=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0),A=0;if(this.LineInfo.towers[s].Insulators.forEach(i=>{if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.type){case O.耐张串:let u=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0);if(i.WairFX=="进"){const b=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(-180),n.Math.toRadians(180)),T=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),u);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}else{const b=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(0),n.Math.toRadians(0)),T=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),u);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}break;case O.跳线串:const l=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),C=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,C,i.name,i.InsulatorModelUri,l,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]));break;case O.地线串:const d=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),g=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,g,i.name,i.InsulatorModelUri,d,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]));break}else{const u=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),n.Math.toRadians(i.RollY),n.Math.toRadians(i.RollZ)),l=p(h,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),W);this.entityCollection2.add(K(i.id,l,i.name,i.InsulatorModelUri,u,i.InsulatorScale,[i.DistanceDisplaymin,i.DistanceDisplaymax]))}const t=[];switch(i.InsulatorPoint.forEach(u=>{u.Y=u.Y+this.LineInfo.towers[s].towerPoint[A].Y,u.Z=u.Z+this.LineInfo.towers[s].towerPoint[A].Z,t.push(p(h,new n.Cartesian3(u.X,u.Y,u.Z),W))}),i.linenum){case ts.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.PhaseSequence){case H.A相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.push(t[0]),this.ToffsetWires1A1.push(t[0]);break;case c.双分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]);break;case c.四分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]);break;case c.六分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.offsetWires11.push(t[4]),this.offsetWires11.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A1.push(t[8]),this.ToffsetWires1A1.push(t[9]),this.ToffsetWires1A1.push(t[10]),this.ToffsetWires1A1.push(t[11]);break;case c.八分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.offsetWires11.push(t[2]),this.offsetWires11.push(t[3]),this.offsetWires11.push(t[4]),this.offsetWires11.push(t[5]),this.offsetWires11.push(t[6]),this.offsetWires11.push(t[7]),this.ToffsetWires1A1.push(t[8]),this.ToffsetWires1A1.push(t[9]),this.ToffsetWires1A1.push(t[10]),this.ToffsetWires1A1.push(t[11]),this.ToffsetWires1A1.push(t[12]),this.ToffsetWires1A1.push(t[13]),this.ToffsetWires1A1.push(t[14]),this.ToffsetWires1A1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(u),this.ToffsetWires1A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires11.push(d),this.offsetWires11.push(g),this.offsetWires11.push(b),this.offsetWires11.push(T),this.ToffsetWires1A2.push(d),this.ToffsetWires1A2.push(g),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires11.push(B),this.offsetWires11.push(P),this.offsetWires11.push(y),this.offsetWires11.push(m),this.offsetWires11.push(_),this.offsetWires11.push(v),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(P),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(m),this.ToffsetWires1A2.push(_),this.ToffsetWires1A2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires11.push(k),this.offsetWires11.push(M),this.offsetWires11.push(X),this.offsetWires11.push(Y),this.offsetWires11.push(D),this.offsetWires11.push(F),this.offsetWires11.push(R),this.offsetWires11.push(E),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(R),this.ToffsetWires1A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[1]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break;case c.四分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A2.push(t[4]),this.ToffsetWires1A2.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]);break;case c.六分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]);break;case c.八分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]),this.ToffsetWires1A2.push(t[12]),this.ToffsetWires1A2.push(t[13]),this.ToffsetWires1A2.push(t[14]),this.ToffsetWires1A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires12.push(t[0]),this.ToffsetWires1B1.push(t[1]);break;case c.双分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]);break;case c.四分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]);break;case c.六分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]);break;case c.八分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.offsetWires12.push(t[6]),this.offsetWires12.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]),this.ToffsetWires1B1.push(t[12]),this.ToffsetWires1B1.push(t[13]),this.ToffsetWires1B1.push(t[14]),this.ToffsetWires1B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires12.push(u),this.ToffsetWires1B2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires12.push(l),this.offsetWires12.push(C),this.ToffsetWires1B2.push(l),this.ToffsetWires1B2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires12.push(d),this.offsetWires12.push(g),this.offsetWires12.push(b),this.offsetWires12.push(T),this.ToffsetWires1B2.push(d),this.ToffsetWires1B2.push(g),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires12.push(B),this.offsetWires12.push(P),this.offsetWires12.push(y),this.offsetWires12.push(m),this.offsetWires12.push(_),this.offsetWires12.push(v),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(P),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(m),this.ToffsetWires1B2.push(_),this.ToffsetWires1B2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires12.push(k),this.offsetWires12.push(M),this.offsetWires12.push(X),this.offsetWires12.push(Y),this.offsetWires12.push(D),this.offsetWires12.push(F),this.offsetWires12.push(R),this.offsetWires12.push(E),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(R),this.ToffsetWires1B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B2.push(t[0]);break;case c.双分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B2.push(t[2]),this.ToffsetWires1B2.push(t[3]);break;case c.四分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B2.push(t[4]),this.ToffsetWires1B2.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]);break;case c.六分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]);break;case c.八分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]),this.ToffsetWires1B2.push(t[12]),this.ToffsetWires1B2.push(t[13]),this.ToffsetWires1B2.push(t[14]),this.ToffsetWires1B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires13.push(t[0]),this.ToffsetWires1C1.push(t[1]);break;case c.双分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]);break;case c.四分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]);break;case c.六分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]);break;case c.八分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.offsetWires13.push(t[6]),this.offsetWires13.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]),this.ToffsetWires1C1.push(t[12]),this.ToffsetWires1C1.push(t[13]),this.ToffsetWires1C1.push(t[14]),this.ToffsetWires1C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires13.push(u),this.ToffsetWires1C2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires13.push(l),this.offsetWires13.push(C),this.ToffsetWires1C2.push(l),this.ToffsetWires1C2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires13.push(d),this.offsetWires13.push(g),this.offsetWires13.push(b),this.offsetWires13.push(T),this.ToffsetWires1C2.push(d),this.ToffsetWires1C2.push(g),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires13.push(B),this.offsetWires13.push(P),this.offsetWires13.push(y),this.offsetWires13.push(m),this.offsetWires13.push(_),this.offsetWires13.push(v),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(P),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(m),this.ToffsetWires1C2.push(_),this.ToffsetWires1C2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires13.push(k),this.offsetWires13.push(M),this.offsetWires13.push(X),this.offsetWires13.push(Y),this.offsetWires13.push(D),this.offsetWires13.push(F),this.offsetWires13.push(R),this.offsetWires13.push(E),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(R),this.ToffsetWires1C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C2.push(t[0]);break;case c.双分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C2.push(t[2]),this.ToffsetWires1C2.push(t[3]);break;case c.四分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C2.push(t[4]),this.ToffsetWires1C2.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]);break;case c.六分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]);break;case c.八分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]),this.ToffsetWires1C2.push(t[12]),this.ToffsetWires1C2.push(t[13]),this.ToffsetWires1C2.push(t[14]),this.ToffsetWires1C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(u=>{this.offsetWires11.push(u)});break;case H.B相:t.forEach(u=>{this.offsetWires12.push(u)});break;case H.C相:t.forEach(u=>{this.offsetWires13.push(u)});break}else if(this.LineInfo.towers[s].type==J.耐张塔)switch(A){case 2:switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.push(t[0]),this.ToffsetWires1A1.push(t[0]);break;case c.双分裂:this.offsetWires11.push(t[0]),this.offsetWires11.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[0]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires11.push(u),this.ToffsetWires1A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break}break;case 5:t.forEach(u=>{this.offsetWires12.push(u),this.ToffsetWires1B1.push(u)});break;case 6:t.forEach(u=>{this.ToffsetWires1B1.push(u),this.ToffsetWires1B2.push(u)});break;case 7:i.InsulatorPoint.forEach(u=>{const l=p(h,new n.Cartesian3(u.X*-1,u.Y,u.Z),W);this.offsetWires12.push(l),this.ToffsetWires1B2.push(l)});break;case 8:t.forEach(u=>{this.offsetWires13.push(u),this.ToffsetWires1C1.push(u)});break;case 9:t.forEach(u=>{this.ToffsetWires1C1.push(u),this.ToffsetWires1C2.push(u)});break;case 10:i.InsulatorPoint.forEach(u=>{const l=p(h,new n.Cartesian3(u.X*-1,u.Y,u.Z),W);this.offsetWires13.push(l),this.ToffsetWires1C2.push(l)});break}else switch(A){case 2:t.forEach(u=>{this.offsetWires11.push(u)});break;case 3:t.forEach(u=>{this.offsetWires12.push(u)});break;case 4:t.forEach(u=>{this.offsetWires13.push(u)});break}break;case ts.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(i.PhaseSequence){case H.A相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires21.push(t[0]),this.ToffsetWires2A1.push(t[0]);break;case c.双分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]);break;case c.四分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]);break;case c.六分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.offsetWires21.push(t[4]),this.offsetWires21.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A1.push(t[8]),this.ToffsetWires2A1.push(t[9]),this.ToffsetWires2A1.push(t[10]),this.ToffsetWires2A1.push(t[11]);break;case c.八分裂:this.offsetWires21.push(t[0]),this.offsetWires21.push(t[1]),this.offsetWires21.push(t[2]),this.offsetWires21.push(t[3]),this.offsetWires21.push(t[4]),this.offsetWires21.push(t[5]),this.offsetWires21.push(t[6]),this.offsetWires21.push(t[7]),this.ToffsetWires2A1.push(t[8]),this.ToffsetWires2A1.push(t[9]),this.ToffsetWires2A1.push(t[10]),this.ToffsetWires2A1.push(t[11]),this.ToffsetWires2A1.push(t[12]),this.ToffsetWires2A1.push(t[13]),this.ToffsetWires2A1.push(t[14]),this.ToffsetWires2A1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(u),this.ToffsetWires2A2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires21.push(l),this.offsetWires21.push(C),this.ToffsetWires2A2.push(l),this.ToffsetWires2A2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires21.push(d),this.offsetWires21.push(g),this.offsetWires21.push(b),this.offsetWires21.push(T),this.ToffsetWires2A2.push(d),this.ToffsetWires2A2.push(g),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires21.push(B),this.offsetWires21.push(P),this.offsetWires21.push(y),this.offsetWires21.push(m),this.offsetWires21.push(_),this.offsetWires21.push(v),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(P),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(m),this.ToffsetWires2A2.push(_),this.ToffsetWires2A2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires21.push(k),this.offsetWires21.push(M),this.offsetWires21.push(X),this.offsetWires21.push(Y),this.offsetWires21.push(D),this.offsetWires21.push(F),this.offsetWires21.push(R),this.offsetWires21.push(E),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(R),this.ToffsetWires2A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case c.双分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A2.push(t[2]),this.ToffsetWires2A2.push(t[3]);break;case c.四分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A2.push(t[4]),this.ToffsetWires2A2.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]);break;case c.六分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]);break;case c.八分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]),this.ToffsetWires2A2.push(t[12]),this.ToffsetWires2A2.push(t[13]),this.ToffsetWires2A2.push(t[14]),this.ToffsetWires2A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case c.双分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]);break;case c.四分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]);break;case c.六分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]);break;case c.八分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.offsetWires22.push(t[6]),this.offsetWires22.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]),this.ToffsetWires2B1.push(t[12]),this.ToffsetWires2B1.push(t[13]),this.ToffsetWires2B1.push(t[14]),this.ToffsetWires2B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(u),this.ToffsetWires2B2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires22.push(l),this.offsetWires22.push(C),this.ToffsetWires2B2.push(l),this.ToffsetWires2B2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires22.push(d),this.offsetWires22.push(g),this.offsetWires22.push(b),this.offsetWires22.push(T),this.ToffsetWires2B2.push(d),this.ToffsetWires2B2.push(g),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires22.push(B),this.offsetWires22.push(P),this.offsetWires22.push(y),this.offsetWires22.push(m),this.offsetWires22.push(_),this.offsetWires22.push(v),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(P),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(m),this.ToffsetWires2B2.push(_),this.ToffsetWires2B2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires22.push(k),this.offsetWires22.push(M),this.offsetWires22.push(X),this.offsetWires22.push(Y),this.offsetWires22.push(D),this.offsetWires22.push(F),this.offsetWires22.push(R),this.offsetWires22.push(E),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(R),this.ToffsetWires2B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case c.双分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B2.push(t[2]),this.ToffsetWires2B2.push(t[3]);break;case c.四分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B2.push(t[4]),this.ToffsetWires2B2.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]);break;case c.六分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]);break;case c.八分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]),this.ToffsetWires2B2.push(t[12]),this.ToffsetWires2B2.push(t[13]),this.ToffsetWires2B2.push(t[14]),this.ToffsetWires2B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case c.双分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]);break;case c.四分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]);break;case c.六分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]);break;case c.八分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.offsetWires23.push(t[6]),this.offsetWires23.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]),this.ToffsetWires2C1.push(t[12]),this.ToffsetWires2C1.push(t[13]),this.ToffsetWires2C1.push(t[14]),this.ToffsetWires2C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(u),this.ToffsetWires2C2.push(u);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W);this.offsetWires23.push(l),this.offsetWires23.push(C),this.ToffsetWires2C2.push(l),this.ToffsetWires2C2.push(C);break;case c.四分裂:const d=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W);this.offsetWires23.push(d),this.offsetWires23.push(g),this.offsetWires23.push(b),this.offsetWires23.push(T),this.ToffsetWires2C2.push(d),this.ToffsetWires2C2.push(g),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(T);break;case c.六分裂:const B=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W);this.offsetWires23.push(B),this.offsetWires23.push(P),this.offsetWires23.push(y),this.offsetWires23.push(m),this.offsetWires23.push(_),this.offsetWires23.push(v),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(P),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(m),this.ToffsetWires2C2.push(_),this.ToffsetWires2C2.push(v);break;case c.八分裂:const k=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),W),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),W),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),W),D=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),W),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),W),R=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),W),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),W);this.offsetWires23.push(k),this.offsetWires23.push(M),this.offsetWires23.push(X),this.offsetWires23.push(Y),this.offsetWires23.push(D),this.offsetWires23.push(F),this.offsetWires23.push(R),this.offsetWires23.push(E),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(R),this.ToffsetWires2C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case c.双分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C2.push(t[2]),this.ToffsetWires2C2.push(t[3]);break;case c.四分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C2.push(t[4]),this.ToffsetWires2C2.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]);break;case c.六分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]);break;case c.八分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]),this.ToffsetWires2C2.push(t[12]),this.ToffsetWires2C2.push(t[13]),this.ToffsetWires2C2.push(t[14]),this.ToffsetWires2C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(u=>{this.offsetWires21.push(u)});break;case H.B相:t.forEach(u=>{this.offsetWires22.push(u)});break;case H.C相:t.forEach(u=>{this.offsetWires23.push(u)});break}else if(this.LineInfo.towers[s].type==J.耐张塔)switch(A){case 11:this.offsetWires21.push(t[0]),this.ToffsetWires2A1.push(t[0]);break;case 12:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case 13:const u=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires21.push(u),this.ToffsetWires2A2.push(u);break;case 14:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case 15:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case 16:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires22.push(l),this.ToffsetWires2B2.push(l);break;case 17:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case 18:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case 19:const C=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),W);this.offsetWires23.push(C),this.ToffsetWires2C2.push(C);break}else switch(A){case 5:t.forEach(u=>{this.offsetWires21.push(u)});break;case 6:t.forEach(u=>{this.offsetWires22.push(u)});break;case 7:t.forEach(u=>{this.offsetWires23.push(u)});break}break;case ts.地线:if(this.LineInfo.ISPhaseSequence)switch(i.PhaseSequence){case H.地线1:this.offsetGrouundWires11.push(t[0]);break;case H.地线2:this.offsetGrouundWires12.push(t[0]);break}else switch(A){case 0:this.offsetGrouundWires11.push(t[0]);break;case 1:this.offsetGrouundWires12.push(t[0]);break}break}A=A+1}),this.offsetWires11.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires11.length>=2&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(i),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.双分裂:this.offsetWires11.length>=4&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.四分裂:this.offsetWires11.length>=8&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.六分裂:this.offsetWires11.length>=12&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires11[o+4]),C.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(C),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[o+5]),d.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(d),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case c.八分裂:this.offsetWires11.length>=16&&(i.push(this.offsetWires11[o]),i.push(this.offsetWires11[o-8]),this.offsetArcWires1A=f(i),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(T=>{this.arcLine1A1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires11[o+1]),t.push(this.offsetWires11[o-7]),this.offsetArcWires1A=f(t),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(u),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires11[o+3]),l.push(this.offsetWires11[o-5]),this.offsetArcWires1A=f(l),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires11[o+4]),C.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(C),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[o+5]),d.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(d),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires11[o+6]),g.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(g),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires11[o+7]),b.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(b),this.entityCollection2.add(r(this.offsetArcWires1A,"导线1_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))});break;case c.双分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires12[o+4]),C.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(C),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[o+5]),d.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(d),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires12[o]),i.push(this.offsetWires12[o-8]),this.offsetArcWires1B=f(i),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(T=>{this.arcLine1B1.push(z(this.viewer.scene.globe.ellipsoid,T))}),t.push(this.offsetWires12[o+1]),t.push(this.offsetWires12[o-7]),this.offsetArcWires1B=f(t),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(u),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires12[o+3]),l.push(this.offsetWires12[o-5]),this.offsetArcWires1B=f(l),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires12[o+4]),C.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(C),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[o+5]),d.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(d),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires12[o+6]),g.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(g),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires12[o+7]),b.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(b),this.entityCollection2.add(r(this.offsetArcWires1B,"导线1_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+4]),C.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(C),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[o+5]),d.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(d),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires13[o]),i.push(this.offsetWires13[o-8]),this.offsetArcWires1C=f(i),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires13[o+1]),t.push(this.offsetWires13[o-7]),this.offsetArcWires1C=f(t),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(u),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+3]),l.push(this.offsetWires13[o-5]),this.offsetArcWires1C=f(l),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires13[o+4]),C.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(C),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[o+5]),d.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(d),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires13[o+6]),g.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(g),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires13[o+7]),b.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(b),this.entityCollection2.add(r(this.offsetArcWires1C,"导线1_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+4]),C.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(C),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[o+5]),d.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(d),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires21[o]),i.push(this.offsetWires21[o-8]),this.offsetArcWires2A=f(i),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires21[o+1]),t.push(this.offsetWires21[o-7]),this.offsetArcWires2A=f(t),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(u),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+3]),l.push(this.offsetWires21[o-5]),this.offsetArcWires2A=f(l),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires21[o+4]),C.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(C),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[o+5]),d.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(d),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires21[o+6]),g.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(g),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires21[o+7]),b.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(b),this.entityCollection2.add(r(this.offsetArcWires2A,"导线2_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+4]),C.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(C),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[o+5]),d.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(d),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires22[o]),i.push(this.offsetWires22[o-8]),this.offsetArcWires2B=f(i),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires22[o+1]),t.push(this.offsetWires22[o-7]),this.offsetArcWires2B=f(t),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(u),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+3]),l.push(this.offsetWires22[o-5]),this.offsetArcWires2B=f(l),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires22[o+4]),C.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(C),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[o+5]),d.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(d),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires22[o+6]),g.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(g),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires22[o+7]),b.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(b),this.entityCollection2.add(r(this.offsetArcWires2B,"导线2_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&s>0){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[];switch(this.LineInfo.Wairnum){case c.单分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.双分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.四分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.六分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+4]),C.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(C),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[o+5]),d.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(d),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case c.八分裂:i.push(this.offsetWires23[o]),i.push(this.offsetWires23[o-8]),this.offsetArcWires2C=f(i),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),t.push(this.offsetWires23[o+1]),t.push(this.offsetWires23[o-7]),this.offsetArcWires2C=f(t),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(u),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+3]),l.push(this.offsetWires23[o-5]),this.offsetArcWires2C=f(l),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),C.push(this.offsetWires23[o+4]),C.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(C),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[o+5]),d.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(d),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),g.push(this.offsetWires23[o+6]),g.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(g),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires23[o+7]),b.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(b),this.entityCollection2.add(r(this.offsetArcWires2C,"导线2_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const i=[];i.push(this.offsetGrouundWires11[s]),i.push(this.offsetGrouundWires11[s-1]);const t=[];t.push(this.offsetGrouundWires12[s]),t.push(this.offsetGrouundWires12[s-1]),this.offsetGrouundWires1=f(i,2),this.offsetGrouundWires2=f(t,2),this.offsetGrouundWires1.forEach(u=>{this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid,u))}),this.entityCollection2.add(r(this.offsetGrouundWires1,"地线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(r(this.offsetGrouundWires2,"地线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}let L=2;if(this.LineInfo.towers[s].type==J.耐张塔){switch(this.LineInfo.Wairnum){case c.单分裂:o=o+L,e=e+L;break;case c.双分裂:o=o+L*2,e=e+L*2;break;case c.四分裂:o=o+L*4,e=e+L*4;break;case c.六分裂:o=o+L*6,e=e+L*6;break;case c.八分裂:o=o+L*8,e=e+L*8;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.length>=2&&(i.push(this.ToffsetWires1A1[e-2]),i.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(T.push(this.ToffsetWires1A2[e-2]),T.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1A1.length>=4&&(i.push(this.ToffsetWires1A1[e-4]),i.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-3]),t.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(T.push(this.ToffsetWires1A2[e-4]),T.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-3]),B.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1A1.length>=8&&(i.push(this.ToffsetWires1A1[e-8]),i.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-7]),t.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-6]),u.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-5]),l.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(T.push(this.ToffsetWires1A2[e-8]),T.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-7]),B.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-6]),P.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-5]),y.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1A1.length>=12&&(i.push(this.ToffsetWires1A1[e-12]),i.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-11]),t.push(this.ToffsetWires1A1[e-5]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-10]),u.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-9]),l.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[e-8]),C.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[e-7]),d.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(T.push(this.ToffsetWires1A2[e-12]),T.push(this.ToffsetWires1A2[e-6]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-11]),B.push(this.ToffsetWires1A2[e-5]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-10]),P.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-9]),y.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A2[e-8]),m.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[e-7]),_.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1A1.length>=16&&(i.push(this.ToffsetWires1A1[e-16]),i.push(this.ToffsetWires1A1[e-8]),this.ToffsetArcWires1A=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1A1[e-15]),t.push(this.ToffsetWires1A1[e-7]),this.ToffsetArcWires1A=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[e-14]),u.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[e-13]),l.push(this.ToffsetWires1A1[e-5]),this.ToffsetArcWires1A=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1A1[e-12]),C.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[e-11]),d.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A1[e-10]),g.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A1[e-9]),b.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(T.push(this.ToffsetWires1A2[e-16]),T.push(this.ToffsetWires1A2[e-8]),this.ToffsetArcWires2A=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[e-15]),B.push(this.ToffsetWires1A2[e-7]),this.ToffsetArcWires2A=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[e-14]),P.push(this.ToffsetWires1A2[e-6]),this.ToffsetArcWires2A=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[e-13]),y.push(this.ToffsetWires1A2[e-5]),this.ToffsetArcWires2A=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A2[e-12]),m.push(this.ToffsetWires1A2[e-4]),this.ToffsetArcWires2A=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[e-11]),_.push(this.ToffsetWires1A2[e-3]),this.ToffsetArcWires2A=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[e-10]),v.push(this.ToffsetWires1A2[e-2]),this.ToffsetArcWires2A=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1A2[e-9]),k.push(this.ToffsetWires1A2[e-1]),this.ToffsetArcWires2A=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.length>=2&&(i.push(this.ToffsetWires1B1[e-2]),i.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(T.push(this.ToffsetWires1B2[e-2]),T.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1B1.length>=4&&(i.push(this.ToffsetWires1B1[e-4]),i.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-3]),t.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(T.push(this.ToffsetWires1B2[e-4]),T.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-3]),B.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1B1.length>=8&&(i.push(this.ToffsetWires1B1[e-8]),i.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-7]),t.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-6]),u.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-5]),l.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(T.push(this.ToffsetWires1B2[e-8]),T.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-7]),B.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-6]),P.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-5]),y.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1B1.length>=12&&(i.push(this.ToffsetWires1B1[e-12]),i.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-11]),t.push(this.ToffsetWires1B1[e-5]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-10]),u.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-9]),l.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[e-8]),C.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[e-7]),d.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(T.push(this.ToffsetWires1B2[e-12]),T.push(this.ToffsetWires1B2[e-6]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-11]),B.push(this.ToffsetWires1B2[e-5]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-10]),P.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-9]),y.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B2[e-8]),m.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[e-7]),_.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1B1.length>=16&&(i.push(this.ToffsetWires1B1[e-16]),i.push(this.ToffsetWires1B1[e-8]),this.ToffsetArcWires1B=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1B1[e-15]),t.push(this.ToffsetWires1B1[e-7]),this.ToffsetArcWires1B=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[e-14]),u.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[e-13]),l.push(this.ToffsetWires1B1[e-5]),this.ToffsetArcWires1B=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1B1[e-12]),C.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[e-11]),d.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B1[e-10]),g.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B1[e-9]),b.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(T.push(this.ToffsetWires1B2[e-16]),T.push(this.ToffsetWires1B2[e-8]),this.ToffsetArcWires2B=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[e-15]),B.push(this.ToffsetWires1B2[e-7]),this.ToffsetArcWires2B=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[e-14]),P.push(this.ToffsetWires1B2[e-6]),this.ToffsetArcWires2B=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[e-13]),y.push(this.ToffsetWires1B2[e-5]),this.ToffsetArcWires2B=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B2[e-12]),m.push(this.ToffsetWires1B2[e-4]),this.ToffsetArcWires2B=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[e-11]),_.push(this.ToffsetWires1B2[e-3]),this.ToffsetArcWires2B=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[e-10]),v.push(this.ToffsetWires1B2[e-2]),this.ToffsetArcWires2B=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1B2[e-9]),k.push(this.ToffsetWires1B2[e-1]),this.ToffsetArcWires2B=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.length>=2&&(i.push(this.ToffsetWires1C1[e-2]),i.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(T.push(this.ToffsetWires1C2[e-2]),T.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires1C1.length>=4&&(i.push(this.ToffsetWires1C1[e-4]),i.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-3]),t.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(T.push(this.ToffsetWires1C2[e-4]),T.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-3]),B.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires1C1.length>=8&&(i.push(this.ToffsetWires1C1[e-8]),i.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-7]),t.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-6]),u.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-5]),l.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(T.push(this.ToffsetWires1C2[e-8]),T.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-7]),B.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-6]),P.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-5]),y.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires1C1.length>=12&&(i.push(this.ToffsetWires1C1[e-12]),i.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-11]),t.push(this.ToffsetWires1C1[e-5]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-10]),u.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-9]),l.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[e-8]),C.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[e-7]),d.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(T.push(this.ToffsetWires1C2[e-12]),T.push(this.ToffsetWires1C2[e-6]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-11]),B.push(this.ToffsetWires1C2[e-5]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-10]),P.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-9]),y.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C2[e-8]),m.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[e-7]),_.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires1C1.length>=16&&(i.push(this.ToffsetWires1C1[e-16]),i.push(this.ToffsetWires1C1[e-8]),this.ToffsetArcWires1C=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires1C1[e-15]),t.push(this.ToffsetWires1C1[e-7]),this.ToffsetArcWires1C=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[e-14]),u.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[e-13]),l.push(this.ToffsetWires1C1[e-5]),this.ToffsetArcWires1C=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires1C1[e-12]),C.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[e-11]),d.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C1[e-10]),g.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C1[e-9]),b.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(T.push(this.ToffsetWires1C2[e-16]),T.push(this.ToffsetWires1C2[e-8]),this.ToffsetArcWires2C=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[e-15]),B.push(this.ToffsetWires1C2[e-7]),this.ToffsetArcWires2C=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[e-14]),P.push(this.ToffsetWires1C2[e-6]),this.ToffsetArcWires2C=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[e-13]),y.push(this.ToffsetWires1C2[e-5]),this.ToffsetArcWires2C=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C2[e-12]),m.push(this.ToffsetWires1C2[e-4]),this.ToffsetArcWires2C=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[e-11]),_.push(this.ToffsetWires1C2[e-3]),this.ToffsetArcWires2C=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[e-10]),v.push(this.ToffsetWires1C2[e-2]),this.ToffsetArcWires2C=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1C2[e-9]),k.push(this.ToffsetWires1C2[e-1]),this.ToffsetArcWires2C=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.length>=2&&(i.push(this.ToffsetWires2A1[e-2]),i.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(T.push(this.ToffsetWires2A2[e-2]),T.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2A1.length>=4&&(i.push(this.ToffsetWires2A1[e-4]),i.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-3]),t.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(T.push(this.ToffsetWires2A2[e-4]),T.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-3]),B.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2A1.length>=8&&(i.push(this.ToffsetWires2A1[e-8]),i.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-7]),t.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-6]),u.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-5]),l.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(T.push(this.ToffsetWires2A2[e-8]),T.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-7]),B.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-6]),P.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-5]),y.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2A1.length>=12&&(i.push(this.ToffsetWires2A1[e-12]),i.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-11]),t.push(this.ToffsetWires2A1[e-5]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-10]),u.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-9]),l.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[e-8]),C.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[e-7]),d.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(T.push(this.ToffsetWires2A2[e-12]),T.push(this.ToffsetWires2A2[e-6]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-11]),B.push(this.ToffsetWires2A2[e-5]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-10]),P.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-9]),y.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A2[e-8]),m.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[e-7]),_.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2A1.length>=16&&(i.push(this.ToffsetWires2A1[e-16]),i.push(this.ToffsetWires2A1[e-8]),this.ToffsetArcWires1A2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2A1[e-15]),t.push(this.ToffsetWires2A1[e-7]),this.ToffsetArcWires1A2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[e-14]),u.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[e-13]),l.push(this.ToffsetWires2A1[e-5]),this.ToffsetArcWires1A2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2A1[e-12]),C.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[e-11]),d.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A1[e-10]),g.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A1[e-9]),b.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(T.push(this.ToffsetWires2A2[e-16]),T.push(this.ToffsetWires2A2[e-8]),this.ToffsetArcWires2A2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[e-15]),B.push(this.ToffsetWires2A2[e-7]),this.ToffsetArcWires2A2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[e-14]),P.push(this.ToffsetWires2A2[e-6]),this.ToffsetArcWires2A2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[e-13]),y.push(this.ToffsetWires2A2[e-5]),this.ToffsetArcWires2A2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A2[e-12]),m.push(this.ToffsetWires2A2[e-4]),this.ToffsetArcWires2A2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[e-11]),_.push(this.ToffsetWires2A2[e-3]),this.ToffsetArcWires2A2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[e-10]),v.push(this.ToffsetWires2A2[e-2]),this.ToffsetArcWires2A2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2A2[e-9]),k.push(this.ToffsetWires2A2[e-1]),this.ToffsetArcWires2A2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.length>=2&&(i.push(this.ToffsetWires2B1[e-2]),i.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(T.push(this.ToffsetWires2B2[e-2]),T.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2B1.length>=4&&(i.push(this.ToffsetWires2B1[e-4]),i.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-3]),t.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(T.push(this.ToffsetWires2B2[e-4]),T.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-3]),B.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2B1.length>=8&&(i.push(this.ToffsetWires2B1[e-8]),i.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-7]),t.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-6]),u.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-5]),l.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(T.push(this.ToffsetWires2B2[e-8]),T.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-7]),B.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-6]),P.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-5]),y.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2B1.length>=12&&(i.push(this.ToffsetWires2B1[e-12]),i.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-11]),t.push(this.ToffsetWires2B1[e-5]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-10]),u.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-9]),l.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[e-8]),C.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[e-7]),d.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(T.push(this.ToffsetWires2B2[e-12]),T.push(this.ToffsetWires2B2[e-6]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-11]),B.push(this.ToffsetWires2B2[e-5]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-10]),P.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-9]),y.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B2[e-8]),m.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[e-7]),_.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2B1.length>=16&&(i.push(this.ToffsetWires2B1[e-16]),i.push(this.ToffsetWires2B1[e-8]),this.ToffsetArcWires1B2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2B1[e-15]),t.push(this.ToffsetWires2B1[e-7]),this.ToffsetArcWires1B2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[e-14]),u.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[e-13]),l.push(this.ToffsetWires2B1[e-5]),this.ToffsetArcWires1B2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2B1[e-12]),C.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[e-11]),d.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B1[e-10]),g.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B1[e-9]),b.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(T.push(this.ToffsetWires2B2[e-16]),T.push(this.ToffsetWires2B2[e-8]),this.ToffsetArcWires2B2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[e-15]),B.push(this.ToffsetWires2B2[e-7]),this.ToffsetArcWires2B2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[e-14]),P.push(this.ToffsetWires2B2[e-6]),this.ToffsetArcWires2B2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[e-13]),y.push(this.ToffsetWires2B2[e-5]),this.ToffsetArcWires2B2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B2[e-12]),m.push(this.ToffsetWires2B2[e-4]),this.ToffsetArcWires2B2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[e-11]),_.push(this.ToffsetWires2B2[e-3]),this.ToffsetArcWires2B2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[e-10]),v.push(this.ToffsetWires2B2[e-2]),this.ToffsetArcWires2B2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2B2[e-9]),k.push(this.ToffsetWires2B2[e-1]),this.ToffsetArcWires2B2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const i=[],t=[],u=[],l=[],C=[],d=[],g=[],b=[],T=[],B=[],P=[],y=[],m=[],_=[],v=[],k=[];switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.length>=2&&(i.push(this.ToffsetWires2C1[e-2]),i.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(T.push(this.ToffsetWires2C2[e-2]),T.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.双分裂:this.ToffsetWires2C1.length>=4&&(i.push(this.ToffsetWires2C1[e-4]),i.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-3]),t.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(T.push(this.ToffsetWires2C2[e-4]),T.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-3]),B.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.四分裂:this.ToffsetWires2C1.length>=8&&(i.push(this.ToffsetWires2C1[e-8]),i.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-7]),t.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-6]),u.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-5]),l.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(T.push(this.ToffsetWires2C2[e-8]),T.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-7]),B.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-6]),P.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-5]),y.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.六分裂:this.ToffsetWires2C1.length>=12&&(i.push(this.ToffsetWires2C1[e-12]),i.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-11]),t.push(this.ToffsetWires2C1[e-5]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-10]),u.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-9]),l.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[e-8]),C.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[e-7]),d.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(T.push(this.ToffsetWires2C2[e-12]),T.push(this.ToffsetWires2C2[e-6]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-11]),B.push(this.ToffsetWires2C2[e-5]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-10]),P.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-9]),y.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C2[e-8]),m.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[e-7]),_.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case c.八分裂:this.ToffsetWires2C1.length>=16&&(i.push(this.ToffsetWires2C1[e-16]),i.push(this.ToffsetWires2C1[e-8]),this.ToffsetArcWires1C2=f(i,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),t.push(this.ToffsetWires2C1[e-15]),t.push(this.ToffsetWires2C1[e-7]),this.ToffsetArcWires1C2=f(t,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[e-14]),u.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(u,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[e-13]),l.push(this.ToffsetWires2C1[e-5]),this.ToffsetArcWires1C2=f(l,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),C.push(this.ToffsetWires2C1[e-12]),C.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(C,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[e-11]),d.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(d,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C1[e-10]),g.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(g,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C1[e-9]),b.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(b,15),this.entityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(T.push(this.ToffsetWires2C2[e-16]),T.push(this.ToffsetWires2C2[e-8]),this.ToffsetArcWires2C2=f(T,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[e-15]),B.push(this.ToffsetWires2C2[e-7]),this.ToffsetArcWires2C2=f(B,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[e-14]),P.push(this.ToffsetWires2C2[e-6]),this.ToffsetArcWires2C2=f(P,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[e-13]),y.push(this.ToffsetWires2C2[e-5]),this.ToffsetArcWires2C2=f(y,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C2[e-12]),m.push(this.ToffsetWires2C2[e-4]),this.ToffsetArcWires2C2=f(m,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[e-11]),_.push(this.ToffsetWires2C2[e-3]),this.ToffsetArcWires2C2=f(_,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[e-10]),v.push(this.ToffsetWires2C2[e-2]),this.ToffsetArcWires2C2=f(v,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2C2[e-9]),k.push(this.ToffsetWires2C2[e-1]),this.ToffsetArcWires2C2=f(k,15),this.entityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case c.单分裂:o=o+1;break;case c.双分裂:o=o+2;break;case c.四分裂:o=o+4;break;case c.六分裂:o=o+6;break;case c.八分裂:o=o+8;break}})}addTreeData(o){this.LineInfo.Trees.push(o)}loadTree(){this.LineInfo.Trees.forEach(o=>{const e=n.Cartesian3.fromDegrees(o.lon,o.lat,0);this.entityCollectiontree.add({id:"tree-"+o.id,position:e,model:{show:!0,uri:o.modelurl,scale:o.treeH/o.treeScale,incrementallyLoadTextures:!0,runAnimations:!0,clampAnimations:!0,shadows:n.ShadowMode.DISABLED,heightReference:n.HeightReference.RELATIVE_TO_GROUND,silhouetteColor:n.Color.RED,silhouetteSize:0,color:n.Color.WHITE,colorBlendMode:n.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.5,imageBasedLightingFactor:new n.Cartesian2(1,1),lightColor:void 0}})})}calcResult(o){const e=zs(o,this.arcLine1A1,this.arcLine1B1,this.arcLine1D1);$s(o,e,this.entityCollectionplotting)}loadTreeListen(){this.treeHandler&&this.removeTreeListen();const o=(e,h)=>{var I;const s=e.scene.pick(h);if(n.defined(s)){const W=n.defaultValue(s.id,(I=s.primitive)==null?void 0:I.id);if(W instanceof n.Entity)return W}};this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(e=>{var s;const h=o(this.viewer,e.position);if(h&&h.id&&h.id.startsWith("tree-")){const I=h.id.replace("tree-",""),W=(s=this.LineInfo.Trees)==null?void 0:s.find(A=>{var L;return((L=A.id)==null?void 0:L.toString())===I});if(W){const A=[W.lon,W.lat,Number(W.lat||0)+Number(W.treeH||0)];console.log("拾取树木:",W,"坐标:",A),this.calcResult(A)}}},n.ScreenSpaceEventType.LEFT_CLICK),this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.viewer.dataSources.remove(this.dataSourceplotting),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.LineInfo.Trees.forEach(o=>{if(o){const e=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(e)}}),this.viewer.dataSources.add(this.dataSourceplotting)}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.entityCollection2.show=!0)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSourcetree),this.entityCollectiontree.show=!0)}RemoveTreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSourcetree),this.entityCollectiontree.show=!1)}LineSpriteLineinit(){n.Material._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new n.Color(1,1,0,1),speed:2},source:`
|
|
1
|
+
(function(S,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("cesium")):typeof define=="function"&&define.amd?define(["exports","cesium"],Z):(S=typeof globalThis<"u"?globalThis:S||self,Z(S.OW_EEngine_Power={},S.Cesium))})(this,function(S,Z){"use strict";var ni=Object.defineProperty;var ai=(S,Z,ss)=>Z in S?ni(S,Z,{enumerable:!0,configurable:!0,writable:!0,value:ss}):S[Z]=ss;var p=(S,Z,ss)=>ai(S,typeof Z!="symbol"?Z+"":Z,ss);function ss(W){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(W){for(const i in W)if(i!=="default"){const f=Object.getOwnPropertyDescriptor(W,i);Object.defineProperty(o,i,f.get?f:{enumerable:!0,get:()=>W[i]})}}return o.default=W,Object.freeze(o)}const n=ss(Z);function Ms(W,o,i={}){const{color:f=Z.Color.WHITE,width:s=3,clampToGround:C=!1,zIndex:a=0,dashed:L=!1,dashLength:A=10}=i,d=L?new n.PolylineDashMaterialProperty({color:f,dashLength:A}):new n.ColorMaterialProperty(f);return W.entities.add({polyline:{positions:o,width:s,material:d,clampToGround:C,zIndex:a}})}function r(W,o,i=10,f="#ba1919",s,C=!1){const a={show:!0,positions:W,clampToGround:C,width:i,material:n.Color.fromCssColorString(f),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED,granularity:C?void 0:0};let L;return L=[0,1e5],a.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:a}}function cs(W,o,i,f,s=new n.HeadingPitchRoll(0,0,0),C=1,a){const L={show:!0,uri:f,scale:C,transition:{distanceDisplayCondition:!0,scale:!0}};return a&&(Array.isArray(a)?L.distanceDisplayCondition=new n.DistanceDisplayCondition(a[0],a[1]):L.distanceDisplayCondition=a),{id:W,name:i,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:L}}function os(W,o,i,f={}){const{pointColor:s=Z.Color.YELLOW,pointSize:C=12,labelColor:a=Z.Color.WHITE,fontSize:L=16,pixelOffset:A=[0,-20],heightReference:d=Z.HeightReference.NONE}=f;return W.entities.add({position:o,point:{color:s,pixelSize:C,heightReference:d,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)},label:{text:i,font:`${L}px sans-serif`,fillColor:a,pixelOffset:new n.Cartesian2(...A),style:Z.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:Z.Color.BLACK,heightReference:d,distanceDisplayCondition:new n.DistanceDisplayCondition(0,100)}})}var $=63710088e-1,Ts={centimeters:$*100,centimetres:$*100,degrees:$/111325,feet:$*3.28084,inches:$*39.37,kilometers:$/1e3,kilometres:$/1e3,meters:$,metres:$,miles:$/1609.344,millimeters:$*1e3,millimetres:$*1e3,nauticalmiles:$/1852,radians:1,yards:$*1.0936};function is(W,o,i){i===void 0&&(i={});var f={type:"Feature"};return(i.id===0||i.id)&&(f.id=i.id),i.bbox&&(f.bbox=i.bbox),f.properties=o||{},f.geometry=W,f}function U(W,o,i){if(i===void 0&&(i={}),!W)throw new Error("coordinates is required");if(!Array.isArray(W))throw new Error("coordinates must be an Array");if(W.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ws(W[0])||!ws(W[1]))throw new Error("coordinates must contain numbers");var f={type:"Point",coordinates:W};return is(f,o,i)}function V(W,o,i){if(i===void 0&&(i={}),W.length<2)throw new Error("coordinates must be an array of two or more positions");var f={type:"LineString",coordinates:W};return is(f,o,i)}function ks(W,o){o===void 0&&(o={});var i={type:"FeatureCollection"};return o.id&&(i.id=o.id),o.bbox&&(i.bbox=o.bbox),i.features=W,i}function Cs(W,o){o===void 0&&(o="kilometers");var i=Ts[o];if(!i)throw new Error(o+" units is invalid");return W*i}function As(W,o){o===void 0&&(o="kilometers");var i=Ts[o];if(!i)throw new Error(o+" units is invalid");return W/i}function fs(W){var o=W%(2*Math.PI);return o*180/Math.PI}function q(W){var o=W%360;return o*Math.PI/180}function ps(W,o,i){if(o===void 0&&(o="kilometers"),i===void 0&&(i="kilometers"),!(W>=0))throw new Error("length must be a positive number");return Cs(As(W,o),i)}function ws(W){return!isNaN(W)&&W!==null&&!Array.isArray(W)}function Ss(W){return!!W&&W.constructor===Object}function Ls(W,o,i){if(W!==null)for(var f,s,C,a,L,A,d,t=0,l=0,u,e=W.type,c=e==="FeatureCollection",B=e==="Feature",m=c?W.features.length:1,b=0;b<m;b++){d=c?W.features[b].geometry:B?W.geometry:W,u=d?d.type==="GeometryCollection":!1,L=u?d.geometries.length:1;for(var w=0;w<L;w++){var P=0,g=0;if(a=u?d.geometries[w]:d,a!==null){A=a.coordinates;var y=a.type;switch(t=0,y){case null:break;case"Point":if(o(A,l,b,P,g)===!1)return!1;l++,P++;break;case"LineString":case"MultiPoint":for(f=0;f<A.length;f++){if(o(A[f],l,b,P,g)===!1)return!1;l++,y==="MultiPoint"&&P++}y==="LineString"&&P++;break;case"Polygon":case"MultiLineString":for(f=0;f<A.length;f++){for(s=0;s<A[f].length-t;s++){if(o(A[f][s],l,b,P,g)===!1)return!1;l++}y==="MultiLineString"&&P++,y==="Polygon"&&g++}y==="Polygon"&&P++;break;case"MultiPolygon":for(f=0;f<A.length;f++){for(g=0,s=0;s<A[f].length;s++){for(C=0;C<A[f][s].length-t;C++){if(o(A[f][s][C],l,b,P,g)===!1)return!1;l++}g++}P++}break;case"GeometryCollection":for(f=0;f<a.geometries.length;f++)if(Ls(a.geometries[f],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Zs(W,o){if(W.type==="Feature")o(W,0);else if(W.type==="FeatureCollection")for(var i=0;i<W.features.length&&o(W.features[i],i)!==!1;i++);}function Rs(W,o){var i,f,s,C,a,L,A,d,t,l,u=0,e=W.type==="FeatureCollection",c=W.type==="Feature",B=e?W.features.length:1;for(i=0;i<B;i++){for(L=e?W.features[i].geometry:c?W.geometry:W,d=e?W.features[i].properties:c?W.properties:{},t=e?W.features[i].bbox:c?W.bbox:void 0,l=e?W.features[i].id:c?W.id:void 0,A=L?L.type==="GeometryCollection":!1,a=A?L.geometries.length:1,s=0;s<a;s++){if(C=A?L.geometries[s]:L,C===null){if(o(null,u,d,t,l)===!1)return!1;continue}switch(C.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(C,u,d,t,l)===!1)return!1;break}case"GeometryCollection":{for(f=0;f<C.geometries.length;f++)if(o(C.geometries[f],u,d,t,l)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}u++}}function Es(W,o){Rs(W,function(i,f,s,C,a){var L=i===null?null:i.type;switch(L){case null:case"Point":case"LineString":case"Polygon":return o(is(i,s,{bbox:C,id:a}),f,0)===!1?!1:void 0}var A;switch(L){case"MultiPoint":A="Point";break;case"MultiLineString":A="LineString";break;case"MultiPolygon":A="Polygon";break}for(var d=0;d<i.coordinates.length;d++){var t=i.coordinates[d],l={type:A,coordinates:t};if(o(is(l,s),f,d)===!1)return!1}})}function Xs(W,o){Es(W,function(i,f,s){var C=0;if(i.geometry){var a=i.geometry.type;if(!(a==="Point"||a==="MultiPoint")){var L,A=0,d=0,t=0;if(Ls(i,function(l,u,e,c,B){if(L===void 0||f>A||c>d||B>t){L=l,A=f,d=c,t=B,C=0;return}var m=V([L,l],i.properties);if(o(m,f,s,B,C)===!1)return!1;C++,L=l})===!1)return!1}}})}function j(W){if(!W)throw new Error("coord is required");if(!Array.isArray(W)){if(W.type==="Feature"&&W.geometry!==null&&W.geometry.type==="Point")return W.geometry.coordinates;if(W.type==="Point")return W.coordinates}if(Array.isArray(W)&&W.length>=2&&!Array.isArray(W[0])&&!Array.isArray(W[1]))return W;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Is(W,o,i){if(!W)throw new Error("No feature passed");if(!i)throw new Error(".featureOf() requires a name");if(!W||W.type!=="Feature"||!W.geometry)throw new Error("Invalid input to "+i+", Feature with geometry required");if(!W.geometry||W.geometry.type!==o)throw new Error("Invalid input to "+i+": must be a "+o+", given "+W.geometry.type)}var ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q(W,o,i){i===void 0&&(i={});var f=j(W),s=j(o),C=q(s[1]-f[1]),a=q(s[0]-f[0]),L=q(f[1]),A=q(s[1]),d=Math.pow(Math.sin(C/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(L)*Math.cos(A);return Cs(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)),i.units)}function Ys(W){if(!W)throw new Error("geojson is required");switch(W.type){case"Feature":return ds(W);case"FeatureCollection":return Fs(W);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return ns(W);default:throw new Error("unknown GeoJSON type")}}function ds(W){var o={type:"Feature"};return Object.keys(W).forEach(function(i){switch(i){case"type":case"properties":case"geometry":return;default:o[i]=W[i]}}),o.properties=Bs(W.properties),o.geometry=ns(W.geometry),o}function Bs(W){var o={};return W&&Object.keys(W).forEach(function(i){var f=W[i];typeof f=="object"?f===null?o[i]=null:Array.isArray(f)?o[i]=f.map(function(s){return s}):o[i]=Bs(f):o[i]=f}),o}function Fs(W){var o={type:"FeatureCollection"};return Object.keys(W).forEach(function(i){switch(i){case"type":case"features":return;default:o[i]=W[i]}}),o.features=W.features.map(function(i){return ds(i)}),o}function ns(W){var o={type:W.type};return W.bbox&&(o.bbox=W.bbox),W.type==="GeometryCollection"?(o.geometries=W.geometries.map(function(i){return ns(i)}),o):(o.coordinates=Ps(W.coordinates),o)}function Ps(W){var o=W;return typeof o[0]!="object"?o.slice():o.map(function(i){return Ps(i)})}function as(W,o,i,f){f===void 0&&(f={});var s=j(W),C=q(s[0]),a=q(s[1]),L=q(i),A=As(o,f.units),d=Math.asin(Math.sin(a)*Math.cos(A)+Math.cos(a)*Math.sin(A)*Math.cos(L)),t=C+Math.atan2(Math.sin(L)*Math.sin(A)*Math.cos(a),Math.cos(A)-Math.sin(a)*Math.sin(d)),l=fs(t),u=fs(d);return U([l,u],f.properties)}function rs(W,o,i){if(i===void 0&&(i={}),i.final===!0)return Ds(W,o);var f=j(W),s=j(o),C=q(f[0]),a=q(s[0]),L=q(f[1]),A=q(s[1]),d=Math.sin(a-C)*Math.cos(A),t=Math.cos(L)*Math.sin(A)-Math.sin(L)*Math.cos(A)*Math.cos(a-C);return fs(Math.atan2(d,t))}function Ds(W,o){var i=rs(o,W);return i=(i+180)%360,i}function Hs(W,o){var i=Q(W,o),f=rs(W,o),s=as(W,i/2,f);return s}function Os(W,o){if(!W)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var i,f=1/0,s=0;return Zs(o,function(C,a){var L=Q(W,C);L<f&&(s=a,f=L)}),i=Ys(o.features[s]),i.properties.featureIndex=s,i.properties.distanceToPoint=f,i}function Ns(W,o,i){i===void 0&&(i={});var f=j(W),s=j(o);s[0]+=s[0]-f[0]>180?-360:f[0]-s[0]>180?360:0;var C=Gs(f,s),a=ps(C,"meters",i.units);return a}function Gs(W,o,i){i=i===void 0?$:Number(i);var f=i,s=W[1]*Math.PI/180,C=o[1]*Math.PI/180,a=C-s,L=Math.abs(o[0]-W[0])*Math.PI/180;L>Math.PI&&(L-=2*Math.PI);var A=Math.log(Math.tan(C/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),d=Math.abs(A)>1e-11?a/A:Math.cos(s),t=Math.sqrt(a*a+d*d*L*L),l=t*f;return l}function Ws(W,o,i){if(i===void 0&&(i={}),i.method||(i.method="geodesic"),i.units||(i.units="kilometers"),!W)throw new Error("pt is required");if(Array.isArray(W)?W=U(W):W.type==="Point"?W=is(W):Is(W,"Point","point"),!o)throw new Error("line is required");Array.isArray(o)?o=V(o):o.type==="LineString"?o=is(o):Is(o,"LineString","line");var f=1/0,s=W.geometry.coordinates;return Xs(o,function(C){var a=C.geometry.coordinates[0],L=C.geometry.coordinates[1],A=zs(s,a,L,i);A<f&&(f=A)}),ps(f,"degrees",i.units)}function zs(W,o,i,f){var s=[i[0]-o[0],i[1]-o[1]],C=[W[0]-o[0],W[1]-o[1]],a=ys(C,s);if(a<=0)return ls(W,o,{method:f.method,units:"degrees"});var L=ys(s,s);if(L<=a)return ls(W,i,{method:f.method,units:"degrees"});var A=a/L,d=[o[0]+A*s[0],o[1]+A*s[1]];return ls(W,d,{method:f.method,units:"degrees"})}function ys(W,o){return W[0]*o[0]+W[1]*o[1]}function ls(W,o,i){return i.method==="planar"?Ns(W,o,i):Q(W,o,i)}function $s(W,o,i,f){if(f=f||{},!Ss(f))throw new Error("options is invalid");var s,C=[];if(W.type==="Feature")s=W.geometry.coordinates;else if(W.type==="LineString")s=W.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var a=s.length,L=0,A,d,t,l=0;l<s.length&&!(o>=L&&l===s.length-1);l++){if(L>o&&C.length===0){if(A=o-L,!A)return C.push(s[l]),V(C);d=rs(s[l],s[l-1])-180,t=as(s[l],A,d,f),C.push(t.geometry.coordinates)}if(L>=i)return A=i-L,A?(d=rs(s[l],s[l-1])-180,t=as(s[l],A,d,f),C.push(t.geometry.coordinates),V(C)):(C.push(s[l]),V(C));if(L>=o&&C.push(s[l]),l===s.length-1)return V(C);L+=Q(s[l],s[l+1],f)}if(L<o&&s.length===a)throw new Error("Start position is beyond line");var u=s[s.length-1];return V([u,u])}const x={units:"kilometers"};function qs(W,o,i,f){var{nearestDistance:s}=hs(W,o),{nearestDistance:C}=hs(W,f),{nearestDistance:a}=hs(W,i);const L=Math.min(s,a,C);return L===s?o:L===a?i:f}const Ks=(W,o,i)=>{debugger;const f=U(W.slice(0,2)),{nearestCoord:s}=hs(W,o),C=o.findIndex(R=>R[0]==s[0]&&R[1]==s[1]);let a=[];if(C==0)a.push(o[0],o[1]);else if(C==o.length-1)a.push(o[o.length-2],o[o.length-1]);else{const R=[o[C],o[C+1]],D=[o[C-1],o[C]];var L=Ws(f,V(R),x),A=Ws(f,V(D),x);a=L>A?D:R}console.log("附近的点",C,a);const d=V([a[0].slice(0,2),a[1].slice(0,2)]),t=U(a[0].slice(0,2)),l=U(a[1].slice(0,2));var u=Ws(f,d,x),e=Q(f,t,x)||0,c=Math.sqrt(e*e-u*u)||0;let B=a[0].slice(0,2);c>0&&(B=$s(d,0,c,x).geometry.coordinates[1]);const m=Q(t,l,x),b=Math.abs(a[0][2]-a[1][2]),w=Math.min(a[0][2],a[1][2]),P=Math.max(a[0][2],a[1][2]),g=a[0][2]>a[1][2]?P-c/m*b:c/m*b+w;console.log("高度差>>>>",b),console.log("最小高度>>>>",w);const y=g-W[2],_=u*1e3,v=Math.sqrt(_*_+y*y);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",y),console.log("直线距离>>>>",v);const k=n.Cartesian3.fromDegrees(W[0],W[1],W[2]),M=n.Cartesian3.fromDegrees(B[0],B[1],g);var E=Hs(U([W[0],W[1]]),U([B[0],B[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(k),X.push(M);var O={polyline:{show:!0,positions:X,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};i.add(H),i.add(O)};function hs(W,o){const i=U(W.slice(0,2)),f=[];o.forEach(L=>{f.push(U([L[0],L[1]]))});const s=ks(f),C=Os(i,s),a=Q(i,C,x);return{nearestCoord:C.geometry.coordinates,nearestDistance:a}}function I(W,o,i,f,s){i||(i=new n.HeadingPitchRoll);const C=n.Transforms.headingPitchRollQuaternion(W,i,f,s),a=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(C,new n.Matrix3),W,new n.Matrix4);return n.Matrix4.multiplyByPoint(a,o,new n.Cartesian3)}function K(W,o){var i=W.cartesianToCartographic(o),f=n.Math.toDegrees(i.latitude),s=n.Math.toDegrees(i.longitude),C=i.height;return[s,f,C]}function h(W,o=6){const i=[];for(var f=0;f<W.length-1;f++)i.push(...Js(W[f],W[f+1],o*-1e3,100));return i}function Js(W,o,i,f){var s=[],C=n.Cartographic.fromCartesian(W),a=n.Cartographic.fromCartesian(o),L=C.longitude*180/Math.PI,A=C.latitude*180/Math.PI,d=a.longitude*180/Math.PI,t=a.latitude*180/Math.PI,l=Math.sqrt((L-d)*(L-d)+(A-t)*(A-t)),u=l*i,e=n.Cartesian3.clone(W),c=n.Cartesian3.clone(o),B=n.Cartesian3.distance(e,n.Cartesian3.ZERO),m=n.Cartesian3.distance(c,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(e,e),n.Cartesian3.normalize(c,c),n.Cartesian3.distance(e,c)==0)return s;var b=n.Cartesian3.angleBetween(e,c);s.push(W);for(var w=1;w<f-1;w++){var P=w*1/(f-1),g=1-P,y=Math.sin(g*b)/Math.sin(b),_=Math.sin(P*b)/Math.sin(b),v=n.Cartesian3.multiplyByScalar(e,y,new n.Cartesian3),k=n.Cartesian3.multiplyByScalar(c,_,new n.Cartesian3),M=n.Cartesian3.add(v,k,new n.Cartesian3),E=P*Math.PI,F=B*g+m*P+Math.sin(E)*u;M=n.Cartesian3.multiplyByScalar(M,F,M),s.push(M)}return s.push(o),s}class Vs{constructor(){p(this,"LineID","myEntity1");p(this,"Tag","");p(this,"towers",[]);p(this,"ISPhaseSequence",!1);p(this,"Wairnum",0);p(this,"Type",0);p(this,"Trees",[]);p(this,"wireAColor","#FFFFFF");p(this,"wireBColor","#FFFFFF");p(this,"wireCColor","#FFFFFF");p(this,"wireTColor","#FFFFFF");p(this,"wireD1Color","#FFFFFF");p(this,"wireD2Color","#FFFFFF");p(this,"wireWidth",1);p(this,"LineDistanceDisplaymin",0);p(this,"LineDistanceDisplaymax",5e3)}}class Us{constructor(){p(this,"id","");p(this,"modelid","");p(this,"lon",0);p(this,"lat",0);p(this,"alt",0);p(this,"treeH",0);p(this,"modelurl","");p(this,"treeScale",1)}}class js{constructor(){p(this,"id","");p(this,"name","");p(this,"type",0);p(this,"Longitude",0);p(this,"Latitude",0);p(this,"Altitude",0);p(this,"RollX",0);p(this,"RollY",90);p(this,"RollZ",0);p(this,"towerScale",1);p(this,"towerHeight",0);p(this,"towerModelUri","");p(this,"towerPoint",[]);p(this,"Insulators",[]);p(this,"DistanceDisplaymin",0);p(this,"DistanceDisplaymax",1e3)}}class Qs{constructor(){p(this,"id","");p(this,"name","");p(this,"type",0);p(this,"WairFX","进");p(this,"linenum",1);p(this,"Wairnum",0);p(this,"PhaseSequence",0);p(this,"RollX",0);p(this,"RollY",0);p(this,"RollZ",0);p(this,"InsulatorScale",1);p(this,"InsulatorLength",0);p(this,"InsulatorModelUri","");p(this,"InsulatorPoint",[]);p(this,"DistanceDisplaymin",0);p(this,"DistanceDisplaymax",500)}}class xs{constructor(){p(this,"name","");p(this,"X",-45);p(this,"Y",90);p(this,"Z",0)}}var z=(W=>(W[W.A相=0]="A相",W[W.B相=1]="B相",W[W.C相=2]="C相",W[W.地线1=3]="地线1",W[W.地线2=4]="地线2",W))(z||{}),J=(W=>(W[W.直线塔=0]="直线塔",W[W.耐张塔=1]="耐张塔",W[W.门架塔=2]="门架塔",W[W.换位塔=3]="换位塔",W))(J||{}),gs=(W=>(W[W.交流单回路=0]="交流单回路",W[W.交流双回路=1]="交流双回路",W[W.直流单回路=2]="直流单回路",W[W.直流双回路=3]="直流双回路",W[W.交流四回路=4]="交流四回路",W))(gs||{}),es=(W=>(W[W.地线=0]="地线",W[W.回路一=1]="回路一",W[W.回路二=2]="回路二",W[W.回路三=3]="回路三",W[W.回路四=4]="回路四",W))(es||{}),Y=(W=>(W[W.悬垂串=0]="悬垂串",W[W.耐张串=1]="耐张串",W[W.跳线串=2]="跳线串",W[W.硬跳串=3]="硬跳串",W[W.V串=4]="V串",W[W.地线串=5]="地线串",W[W.绕跳临时=6]="绕跳临时",W))(Y||{}),T=(W=>(W[W.单分裂=0]="单分裂",W[W.双分裂=1]="双分裂",W[W.四分裂=2]="四分裂",W[W.六分裂=3]="六分裂",W[W.八分裂=4]="八分裂",W))(T||{});class si{constructor(o,i,f){p(this,"viewer");p(this,"LineInfo");p(this,"Keym","");p(this,"dataSource2");p(this,"entityCollection2");p(this,"dataSourcetree");p(this,"entityCollectiontree");p(this,"dataSourceplotting");p(this,"entityCollectionplotting");p(this,"LinedataSource2");p(this,"LineentityCollection2");p(this,"offsetTowers",[]);p(this,"towerWirePoints",new Map);p(this,"loadedWireSegments",new Set);p(this,"isDynamicLoadingEnabled",!0);p(this,"loadedTowerIndices",new Set);p(this,"cameraMoveHandler",null);p(this,"offsetWires11",[]);p(this,"offsetWires12",[]);p(this,"offsetWires13",[]);p(this,"offsetWires21",[]);p(this,"offsetWires22",[]);p(this,"offsetWires23",[]);p(this,"ToffsetArcWires1A",[]);p(this,"ToffsetArcWires2A",[]);p(this,"ToffsetWires1A1",[]);p(this,"ToffsetWires1A2",[]);p(this,"ToffsetArcWires1B",[]);p(this,"ToffsetArcWires2B",[]);p(this,"ToffsetWires1B1",[]);p(this,"ToffsetWires1B2",[]);p(this,"ToffsetArcWires1C",[]);p(this,"ToffsetArcWires2C",[]);p(this,"ToffsetWires1C1",[]);p(this,"ToffsetWires1C2",[]);p(this,"ToffsetArcWires1A2",[]);p(this,"ToffsetArcWires2A2",[]);p(this,"ToffsetWires2A1",[]);p(this,"ToffsetWires2A2",[]);p(this,"ToffsetArcWires1B2",[]);p(this,"ToffsetArcWires2B2",[]);p(this,"ToffsetWires2B1",[]);p(this,"ToffsetWires2B2",[]);p(this,"ToffsetArcWires1C2",[]);p(this,"ToffsetArcWires2C2",[]);p(this,"ToffsetWires2C1",[]);p(this,"ToffsetWires2C2",[]);p(this,"offsetArcWires1A",[]);p(this,"offsetArcWires1B",[]);p(this,"offsetArcWires1C",[]);p(this,"offsetArcWires2A",[]);p(this,"offsetArcWires2B",[]);p(this,"offsetArcWires2C",[]);p(this,"offsetGrouundWires1",[]);p(this,"offsetGrouundWires2",[]);p(this,"offsetGrouundWires11",[]);p(this,"offsetGrouundWires12",[]);p(this,"arcLine1A1",[]);p(this,"arcLine1B1",[]);p(this,"arcLine1D1",[]);p(this,"modelCache",new Map);p(this,"treeHandler",null);this.Keym=f,this.viewer=o,this.LineInfo=i,this.dataSource2=new n.CustomDataSource(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities,this.dataSourcetree=new n.CustomDataSource("tree"),this.entityCollectiontree=this.dataSourcetree.entities,this.dataSourceplotting=new n.CustomDataSource("plotting"),this.entityCollectionplotting=this.dataSourceplotting.entities,this.LinedataSource2=new n.CustomDataSource(this.LineInfo.LineID+"daoxian"),this.LineentityCollection2=this.LinedataSource2.entities}createModelCacheKey(o,i,f,s){return`${o}_${i}_${f}_${s}`}getCachedModelConfig(o,i,f,s){const C=Math.max(0,f),a=Math.min(s,5e4),L=this.createModelCacheKey(o,i,C,a);if(!this.modelCache.has(L)){const A={uri:o,scale:i,distanceDisplayCondition:[C,a]};this.modelCache.set(L,A)}return this.modelCache.get(L)}addModelToCollection(o,i,f,s,C,a,L){const A=this.getCachedModelConfig(s,a,L[0],L[1]);this.entityCollection2.add(cs(o,i,f,A.uri,C,A.scale,A.distanceDisplayCondition))}setupCameraMoveListener(){this.cameraMoveHandler&&this.cameraMoveHandler(),this.cameraMoveHandler=this.viewer.camera.moveEnd.addEventListener(()=>{this.updateVisibleTowers()})}getVisibleTowerIndices(){var A;if(!this.viewer.camera||this.offsetTowers.length===0)return{start:0,end:0};const o=this.viewer.camera.position,i=((A=this.viewer.camera.positionCartographic)==null?void 0:A.height)||1e3;let f=5;i>5e4?f=2:i>1e4?f=3:i>5e3?f=5:f=10;let s=0,C=Number.MAX_VALUE;for(let d=0;d<this.offsetTowers.length;d++){const t=n.Cartesian3.distance(o,this.offsetTowers[d]);t<C&&(C=t,s=d)}const a=Math.max(0,s-f),L=Math.min(this.offsetTowers.length-1,s+f);return{start:a,end:L}}updateVisibleTowers(){const{start:o,end:i}=this.getVisibleTowerIndices();this.loadTowersInRange(o,i)}initializeLineData(){this.Keym=="OW_JPS_EEngin_001"&&this.LineInfo.towers.forEach(o=>{this.offsetTowers.push(n.Cartesian3.fromDegrees(o.Longitude,o.Latitude,o.Altitude))})}loadTowersInRange(o,i){if(o<0||i>=this.LineInfo.towers.length)return;const f=Math.max(0,o-1),s=Math.min(this.LineInfo.towers.length-1,i+1);for(let C=f;C<=s;C++)this.loadedTowerIndices.has(C)||(this.loadTowerAndCollectWirePoints(C),this.loadedTowerIndices.add(C));for(let C=f;C<s;C++){const a=`${C}-${C+1}`;this.loadedWireSegments.has(a)||(this.loadWireSegmentBetweenTowers(C,C+1),this.loadedWireSegments.add(a))}}loadTowerAndCollectWirePoints(o){const i=this.offsetTowers[o],f=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,i,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,f,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),C=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[o].RollX),0,0);let a=0;const L=[];this.LineInfo.towers[o].Insulators.forEach(A=>{const d=I(i,new n.Cartesian3(this.LineInfo.towers[o].towerPoint[a].X,this.LineInfo.towers[o].towerPoint[a].Y,this.LineInfo.towers[o].towerPoint[a].Z),this.LineInfo.towers[o].type===J.耐张塔?C:s);let t;if(this.LineInfo.towers[o].type===J.耐张塔)switch(A.type){case Y.耐张串:t=A.WairFX==="进"?new n.HeadingPitchRoll(n.Math.toRadians(A.RollX),n.Math.toRadians(-180),n.Math.toRadians(180)):new n.HeadingPitchRoll(n.Math.toRadians(A.RollX),n.Math.toRadians(0),n.Math.toRadians(0));break;case Y.跳线串:t=new n.HeadingPitchRoll(n.Math.toRadians(A.RollX),n.Math.toRadians(A.RollY),n.Math.toRadians(A.RollZ));break;case Y.地线串:t=new n.HeadingPitchRoll(n.Math.toRadians(A.RollX),n.Math.toRadians(A.RollY),n.Math.toRadians(A.RollZ));break;default:t=new n.HeadingPitchRoll(n.Math.toRadians(A.RollX),n.Math.toRadians(A.RollY),n.Math.toRadians(A.RollZ))}else t=new n.HeadingPitchRoll(n.Math.toRadians(A.RollX),n.Math.toRadians(A.RollY),n.Math.toRadians(A.RollZ));this.addModelToCollection(A.id,d,A.name,A.InsulatorModelUri,t,A.InsulatorScale,[A.DistanceDisplaymin,A.DistanceDisplaymax]);const l={insulator:A,insulatorIndex:a,position:i,lineroll:s,WairPoint:[]};A.InsulatorPoint.forEach(u=>{u.Y=u.Y+this.LineInfo.towers[o].towerPoint[a].Y,u.Z=u.Z+this.LineInfo.towers[o].towerPoint[a].Z,l.WairPoint.push(I(i,new n.Cartesian3(u.X,u.Y,u.Z),s))}),L.push(l),a++}),this.towerWirePoints.set(o,L)}loadWireSegmentBetweenTowers(o,i){const f=this.towerWirePoints.get(o),s=this.towerWirePoints.get(i);!f||!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,i=this.entityCollection2;this.entityCollection2=o,this.loadAllTowersAtOnce();const f=[];o.values.forEach(s=>{var C;s.name&&(s.name.includes("导线")||s.name.includes("daoxian")||(C=s.id)!=null&&C.toString().includes("daoxian"))&&f.push(s)}),this.entityCollection2=i,f.forEach(s=>{this.entityCollection2.add(s)}),o.removeAll()}loadAllTowersAtOnce(){let o=0,i=0;this.offsetTowers.forEach((f,s)=>{const C=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,f,this.LineInfo.towers[s].name,this.LineInfo.towers[s].towerModelUri,C,this.LineInfo.towers[s].towerScale,[this.LineInfo.towers[s].DistanceDisplaymin,this.LineInfo.towers[s].DistanceDisplaymax]);const a=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0),L=new n.HeadingPitchRoll(n.Math.toRadians(this.LineInfo.towers[s].RollX),0,0);let A=0;if(this.LineInfo.towers[s].Insulators.forEach(t=>{const l=I(f,new n.Cartesian3(this.LineInfo.towers[s].towerPoint[A].X,this.LineInfo.towers[s].towerPoint[A].Y,this.LineInfo.towers[s].towerPoint[A].Z),this.LineInfo.towers[s].type===J.耐张塔?L:a);let u;if(this.LineInfo.towers[s].type===J.耐张塔)switch(t.type){case Y.耐张串:u=t.WairFX==="进"?new n.HeadingPitchRoll(n.Math.toRadians(t.RollX),n.Math.toRadians(-180),n.Math.toRadians(180)):new n.HeadingPitchRoll(n.Math.toRadians(t.RollX),n.Math.toRadians(0),n.Math.toRadians(0));break;case Y.跳线串:u=new n.HeadingPitchRoll(n.Math.toRadians(t.RollX),n.Math.toRadians(t.RollY),n.Math.toRadians(t.RollZ));break;case Y.地线串:u=new n.HeadingPitchRoll(n.Math.toRadians(t.RollX),n.Math.toRadians(t.RollY),n.Math.toRadians(t.RollZ));break;default:u=new n.HeadingPitchRoll(n.Math.toRadians(t.RollX),n.Math.toRadians(t.RollY),n.Math.toRadians(t.RollZ))}else u=new n.HeadingPitchRoll(n.Math.toRadians(t.RollX),n.Math.toRadians(t.RollY),n.Math.toRadians(t.RollZ));this.addModelToCollection(t.id,l,t.name,t.InsulatorModelUri,u,t.InsulatorScale,[t.DistanceDisplaymin,t.DistanceDisplaymax]);const e=[];switch(t.InsulatorPoint.forEach(c=>{c.Y=c.Y+this.LineInfo.towers[s].towerPoint[A].Y,c.Z=c.Z+this.LineInfo.towers[s].towerPoint[A].Z,e.push(I(f,new n.Cartesian3(c.X,c.Y,c.Z),a))}),t.linenum){case es.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(t.PhaseSequence){case z.A相:if(t.type==Y.耐张串)if(t.WairFX=="进")switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires11.push(e[0]),this.ToffsetWires1A1.push(e[0]);break;case T.双分裂:this.offsetWires11.push(e[0]),this.offsetWires11.push(e[1]),this.ToffsetWires1A1.push(e[2]),this.ToffsetWires1A1.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires11.push(c),this.ToffsetWires1A2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires11.push(B),this.offsetWires11.push(m),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(m);break;case T.四分裂:const b=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),w=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),P=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),g=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a);this.offsetWires11.push(b),this.offsetWires11.push(w),this.offsetWires11.push(P),this.offsetWires11.push(g),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(w),this.ToffsetWires1A2.push(P),this.ToffsetWires1A2.push(g);break;case T.六分裂:const y=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),_=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),v=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),k=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),M=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),E=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a);this.offsetWires11.push(y),this.offsetWires11.push(_),this.offsetWires11.push(v),this.offsetWires11.push(k),this.offsetWires11.push(M),this.offsetWires11.push(E),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(_),this.ToffsetWires1A2.push(v),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(E);break;case T.八分裂:const F=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),H=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),X=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),O=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),R=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),D=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a),N=I(f,new n.Cartesian3(t.InsulatorPoint[6].X*-1,t.InsulatorPoint[6].Y,t.InsulatorPoint[6].Z),a),G=I(f,new n.Cartesian3(t.InsulatorPoint[7].X*-1,t.InsulatorPoint[7].Y,t.InsulatorPoint[7].Z),a);this.offsetWires11.push(F),this.offsetWires11.push(H),this.offsetWires11.push(X),this.offsetWires11.push(O),this.offsetWires11.push(R),this.offsetWires11.push(D),this.offsetWires11.push(N),this.offsetWires11.push(G),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(H),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(R),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(G);break}else if(t.type==Y.跳线串)switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A2.push(e[1]);break;case T.双分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A1.push(e[1]),this.ToffsetWires1A2.push(e[2]),this.ToffsetWires1A2.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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(t.type==Y.耐张串)if(t.WairFX=="进")switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires12.push(e[0]),this.ToffsetWires1B1.push(e[1]);break;case T.双分裂:this.offsetWires12.push(e[0]),this.offsetWires12.push(e[1]),this.ToffsetWires1B1.push(e[2]),this.ToffsetWires1B1.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires12.push(c),this.ToffsetWires1B2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires12.push(B),this.offsetWires12.push(m),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(m);break;case T.四分裂:const b=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),w=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),P=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),g=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a);this.offsetWires12.push(b),this.offsetWires12.push(w),this.offsetWires12.push(P),this.offsetWires12.push(g),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(w),this.ToffsetWires1B2.push(P),this.ToffsetWires1B2.push(g);break;case T.六分裂:const y=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),_=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),v=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),k=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),M=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),E=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a);this.offsetWires12.push(y),this.offsetWires12.push(_),this.offsetWires12.push(v),this.offsetWires12.push(k),this.offsetWires12.push(M),this.offsetWires12.push(E),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(_),this.ToffsetWires1B2.push(v),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(E);break;case T.八分裂:const F=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),H=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),X=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),O=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),R=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),D=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a),N=I(f,new n.Cartesian3(t.InsulatorPoint[6].X*-1,t.InsulatorPoint[6].Y,t.InsulatorPoint[6].Z),a),G=I(f,new n.Cartesian3(t.InsulatorPoint[7].X*-1,t.InsulatorPoint[7].Y,t.InsulatorPoint[7].Z),a);this.offsetWires12.push(F),this.offsetWires12.push(H),this.offsetWires12.push(X),this.offsetWires12.push(O),this.offsetWires12.push(R),this.offsetWires12.push(D),this.offsetWires12.push(N),this.offsetWires12.push(G),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(H),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(R),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(G);break}else if(t.type==Y.跳线串)switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B2.push(e[0]);break;case T.双分裂:this.ToffsetWires1B1.push(e[0]),this.ToffsetWires1B1.push(e[1]),this.ToffsetWires1B2.push(e[2]),this.ToffsetWires1B2.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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(t.type==Y.耐张串)if(t.WairFX=="进")switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires13.push(e[0]),this.ToffsetWires1C1.push(e[1]);break;case T.双分裂:this.offsetWires13.push(e[0]),this.offsetWires13.push(e[1]),this.ToffsetWires1C1.push(e[2]),this.ToffsetWires1C1.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires13.push(c),this.ToffsetWires1C2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires13.push(B),this.offsetWires13.push(m),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(m);break;case T.四分裂:const b=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),w=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),P=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),g=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a);this.offsetWires13.push(b),this.offsetWires13.push(w),this.offsetWires13.push(P),this.offsetWires13.push(g),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(w),this.ToffsetWires1C2.push(P),this.ToffsetWires1C2.push(g);break;case T.六分裂:const y=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),_=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),v=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),k=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),M=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),E=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a);this.offsetWires13.push(y),this.offsetWires13.push(_),this.offsetWires13.push(v),this.offsetWires13.push(k),this.offsetWires13.push(M),this.offsetWires13.push(E),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(_),this.ToffsetWires1C2.push(v),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(E);break;case T.八分裂:const F=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),H=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),X=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),O=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),R=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),D=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a),N=I(f,new n.Cartesian3(t.InsulatorPoint[6].X*-1,t.InsulatorPoint[6].Y,t.InsulatorPoint[6].Z),a),G=I(f,new n.Cartesian3(t.InsulatorPoint[7].X*-1,t.InsulatorPoint[7].Y,t.InsulatorPoint[7].Z),a);this.offsetWires13.push(F),this.offsetWires13.push(H),this.offsetWires13.push(X),this.offsetWires13.push(O),this.offsetWires13.push(R),this.offsetWires13.push(D),this.offsetWires13.push(N),this.offsetWires13.push(G),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(H),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(R),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(G);break}else if(t.type==Y.跳线串)switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C2.push(e[0]);break;case T.双分裂:this.ToffsetWires1C1.push(e[0]),this.ToffsetWires1C1.push(e[1]),this.ToffsetWires1C2.push(e[2]),this.ToffsetWires1C2.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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(t.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==J.耐张塔)switch(A){case 2:switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires11.push(e[0]),this.ToffsetWires1A1.push(e[0]);break;case T.双分裂: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 T.单分裂:this.ToffsetWires1A1.push(e[0]),this.ToffsetWires1A2.push(e[0]);break;case T.双分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires11.push(c),this.ToffsetWires1A2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires11.push(B),this.offsetWires11.push(m),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(m);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:t.InsulatorPoint.forEach(c=>{const B=I(f,new n.Cartesian3(c.X*-1,c.Y,c.Z),a);this.offsetWires12.push(B),this.ToffsetWires1B2.push(B)});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:t.InsulatorPoint.forEach(c=>{const B=I(f,new n.Cartesian3(c.X*-1,c.Y,c.Z),a);this.offsetWires13.push(B),this.ToffsetWires1C2.push(B)});break}else switch(A){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 es.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[s].type==J.耐张塔)switch(t.PhaseSequence){case z.A相:if(t.type==Y.耐张串)if(t.WairFX=="进")switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires21.push(e[0]),this.ToffsetWires2A1.push(e[0]);break;case T.双分裂:this.offsetWires21.push(e[0]),this.offsetWires21.push(e[1]),this.ToffsetWires2A1.push(e[2]),this.ToffsetWires2A1.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires21.push(c),this.ToffsetWires2A2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires21.push(B),this.offsetWires21.push(m),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(m);break;case T.四分裂:const b=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),w=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),P=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),g=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a);this.offsetWires21.push(b),this.offsetWires21.push(w),this.offsetWires21.push(P),this.offsetWires21.push(g),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(w),this.ToffsetWires2A2.push(P),this.ToffsetWires2A2.push(g);break;case T.六分裂:const y=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),_=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),v=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),k=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),M=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),E=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a);this.offsetWires21.push(y),this.offsetWires21.push(_),this.offsetWires21.push(v),this.offsetWires21.push(k),this.offsetWires21.push(M),this.offsetWires21.push(E),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(_),this.ToffsetWires2A2.push(v),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(E);break;case T.八分裂:const F=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),H=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),X=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),O=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),R=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),D=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a),N=I(f,new n.Cartesian3(t.InsulatorPoint[6].X*-1,t.InsulatorPoint[6].Y,t.InsulatorPoint[6].Z),a),G=I(f,new n.Cartesian3(t.InsulatorPoint[7].X*-1,t.InsulatorPoint[7].Y,t.InsulatorPoint[7].Z),a);this.offsetWires21.push(F),this.offsetWires21.push(H),this.offsetWires21.push(X),this.offsetWires21.push(O),this.offsetWires21.push(R),this.offsetWires21.push(D),this.offsetWires21.push(N),this.offsetWires21.push(G),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(H),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(R),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(G);break}else if(t.type==Y.跳线串)switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A2.push(e[0]);break;case T.双分裂:this.ToffsetWires2A1.push(e[0]),this.ToffsetWires2A1.push(e[1]),this.ToffsetWires2A2.push(e[2]),this.ToffsetWires2A2.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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(t.type==Y.耐张串)if(t.WairFX=="进")switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires22.push(e[0]),this.ToffsetWires2B1.push(e[0]);break;case T.双分裂:this.offsetWires22.push(e[0]),this.offsetWires22.push(e[1]),this.ToffsetWires2B1.push(e[2]),this.ToffsetWires2B1.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires22.push(c),this.ToffsetWires2B2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires22.push(B),this.offsetWires22.push(m),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(m);break;case T.四分裂:const b=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),w=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),P=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),g=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a);this.offsetWires22.push(b),this.offsetWires22.push(w),this.offsetWires22.push(P),this.offsetWires22.push(g),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(w),this.ToffsetWires2B2.push(P),this.ToffsetWires2B2.push(g);break;case T.六分裂:const y=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),_=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),v=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),k=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),M=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),E=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a);this.offsetWires22.push(y),this.offsetWires22.push(_),this.offsetWires22.push(v),this.offsetWires22.push(k),this.offsetWires22.push(M),this.offsetWires22.push(E),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(_),this.ToffsetWires2B2.push(v),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(E);break;case T.八分裂:const F=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),H=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),X=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),O=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),R=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),D=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a),N=I(f,new n.Cartesian3(t.InsulatorPoint[6].X*-1,t.InsulatorPoint[6].Y,t.InsulatorPoint[6].Z),a),G=I(f,new n.Cartesian3(t.InsulatorPoint[7].X*-1,t.InsulatorPoint[7].Y,t.InsulatorPoint[7].Z),a);this.offsetWires22.push(F),this.offsetWires22.push(H),this.offsetWires22.push(X),this.offsetWires22.push(O),this.offsetWires22.push(R),this.offsetWires22.push(D),this.offsetWires22.push(N),this.offsetWires22.push(G),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(H),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(R),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(G);break}else if(t.type==Y.跳线串)switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B2.push(e[0]);break;case T.双分裂:this.ToffsetWires2B1.push(e[0]),this.ToffsetWires2B1.push(e[1]),this.ToffsetWires2B2.push(e[2]),this.ToffsetWires2B2.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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(t.type==Y.耐张串)if(t.WairFX=="进")switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires23.push(e[0]),this.ToffsetWires2C1.push(e[0]);break;case T.双分裂:this.offsetWires23.push(e[0]),this.offsetWires23.push(e[1]),this.ToffsetWires2C1.push(e[2]),this.ToffsetWires2C1.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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 T.单分裂:const c=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires23.push(c),this.ToffsetWires2C2.push(c);break;case T.双分裂:const B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),m=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a);this.offsetWires23.push(B),this.offsetWires23.push(m),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(m);break;case T.四分裂:const b=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),w=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),P=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),g=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a);this.offsetWires23.push(b),this.offsetWires23.push(w),this.offsetWires23.push(P),this.offsetWires23.push(g),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(w),this.ToffsetWires2C2.push(P),this.ToffsetWires2C2.push(g);break;case T.六分裂:const y=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),_=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),v=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),k=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),M=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),E=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a);this.offsetWires23.push(y),this.offsetWires23.push(_),this.offsetWires23.push(v),this.offsetWires23.push(k),this.offsetWires23.push(M),this.offsetWires23.push(E),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(_),this.ToffsetWires2C2.push(v),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(E);break;case T.八分裂:const F=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a),H=I(f,new n.Cartesian3(t.InsulatorPoint[1].X*-1,t.InsulatorPoint[1].Y,t.InsulatorPoint[1].Z),a),X=I(f,new n.Cartesian3(t.InsulatorPoint[2].X*-1,t.InsulatorPoint[2].Y,t.InsulatorPoint[2].Z),a),O=I(f,new n.Cartesian3(t.InsulatorPoint[3].X*-1,t.InsulatorPoint[3].Y,t.InsulatorPoint[3].Z),a),R=I(f,new n.Cartesian3(t.InsulatorPoint[4].X*-1,t.InsulatorPoint[4].Y,t.InsulatorPoint[4].Z),a),D=I(f,new n.Cartesian3(t.InsulatorPoint[5].X*-1,t.InsulatorPoint[5].Y,t.InsulatorPoint[5].Z),a),N=I(f,new n.Cartesian3(t.InsulatorPoint[6].X*-1,t.InsulatorPoint[6].Y,t.InsulatorPoint[6].Z),a),G=I(f,new n.Cartesian3(t.InsulatorPoint[7].X*-1,t.InsulatorPoint[7].Y,t.InsulatorPoint[7].Z),a);this.offsetWires23.push(F),this.offsetWires23.push(H),this.offsetWires23.push(X),this.offsetWires23.push(O),this.offsetWires23.push(R),this.offsetWires23.push(D),this.offsetWires23.push(N),this.offsetWires23.push(G),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(H),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(R),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(G);break}else if(t.type==Y.跳线串)switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C2.push(e[0]);break;case T.双分裂:this.ToffsetWires2C1.push(e[0]),this.ToffsetWires2C1.push(e[1]),this.ToffsetWires2C2.push(e[2]),this.ToffsetWires2C2.push(e[3]);break;case T.四分裂: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 T.六分裂: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 T.八分裂: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(t.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==J.耐张塔)switch(A){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=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);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 B=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires22.push(B),this.ToffsetWires2B2.push(B);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 m=I(f,new n.Cartesian3(t.InsulatorPoint[0].X*-1,t.InsulatorPoint[0].Y,t.InsulatorPoint[0].Z),a);this.offsetWires23.push(m),this.ToffsetWires2C2.push(m);break}else switch(A){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 es.地线:if(this.LineInfo.ISPhaseSequence)switch(t.PhaseSequence){case z.地线1:this.offsetGrouundWires11.push(e[0]);break;case z.地线2:this.offsetGrouundWires12.push(e[0]);break}else switch(A){case 0:this.offsetGrouundWires11.push(e[0]);break;case 1:this.offsetGrouundWires12.push(e[0]);break}break}A=A+1}),this.offsetWires11.length>0&&s>0){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.offsetWires11.length>=2&&(t.push(this.offsetWires11[o]),t.push(this.offsetWires11[o-1]),this.offsetArcWires1A=h(t),this.offsetArcWires1A.forEach(w=>{this.arcLine1A1.push(K(this.viewer.scene.globe.ellipsoid,w))}),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case T.双分裂:this.offsetWires11.length>=4&&(t.push(this.offsetWires11[o]),t.push(this.offsetWires11[o-2]),this.offsetArcWires1A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(w=>{this.arcLine1A1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires11[o+1]),l.push(this.offsetWires11[o-1]),this.offsetArcWires1A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case T.四分裂:this.offsetWires11.length>=8&&(t.push(this.offsetWires11[o]),t.push(this.offsetWires11[o-4]),this.offsetArcWires1A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(w=>{this.arcLine1A1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires11[o+1]),l.push(this.offsetWires11[o-3]),this.offsetArcWires1A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-2]),this.offsetArcWires1A=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires11[o+3]),e.push(this.offsetWires11[o-1]),this.offsetArcWires1A=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case T.六分裂:this.offsetWires11.length>=12&&(t.push(this.offsetWires11[o]),t.push(this.offsetWires11[o-6]),this.offsetArcWires1A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(w=>{this.arcLine1A1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires11[o+1]),l.push(this.offsetWires11[o-5]),this.offsetArcWires1A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-4]),this.offsetArcWires1A=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires11[o+3]),e.push(this.offsetWires11[o-3]),this.offsetArcWires1A=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires11[o+4]),c.push(this.offsetWires11[o-2]),this.offsetArcWires1A=h(c),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires11[o+5]),B.push(this.offsetWires11[o-1]),this.offsetArcWires1A=h(B),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case T.八分裂:this.offsetWires11.length>=16&&(t.push(this.offsetWires11[o]),t.push(this.offsetWires11[o-8]),this.offsetArcWires1A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1A.forEach(w=>{this.arcLine1A1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires11[o+1]),l.push(this.offsetWires11[o-7]),this.offsetArcWires1A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires11[o+2]),u.push(this.offsetWires11[o-6]),this.offsetArcWires1A=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires11[o+3]),e.push(this.offsetWires11[o-5]),this.offsetArcWires1A=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires11[o+4]),c.push(this.offsetWires11[o-4]),this.offsetArcWires1A=h(c),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires11[o+5]),B.push(this.offsetWires11[o-3]),this.offsetArcWires1A=h(B),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[o+6]),m.push(this.offsetWires11[o-2]),this.offsetArcWires1A=h(m),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires11[o+7]),b.push(this.offsetWires11[o-1]),this.offsetArcWires1A=h(b),this.LineentityCollection2.add(r(this.offsetArcWires1A,"导线1_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&s>0){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[];switch(this.LineInfo.Wairnum){case T.单分裂:t.push(this.offsetWires12[o]),t.push(this.offsetWires12[o-1]),this.offsetArcWires1B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(w=>{this.arcLine1B1.push(K(this.viewer.scene.globe.ellipsoid,w))});break;case T.双分裂:t.push(this.offsetWires12[o]),t.push(this.offsetWires12[o-2]),this.offsetArcWires1B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(w=>{this.arcLine1B1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires12[o+1]),l.push(this.offsetWires12[o-1]),this.offsetArcWires1B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.四分裂:t.push(this.offsetWires12[o]),t.push(this.offsetWires12[o-4]),this.offsetArcWires1B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(w=>{this.arcLine1B1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires12[o+1]),l.push(this.offsetWires12[o-3]),this.offsetArcWires1B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-2]),this.offsetArcWires1B=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires12[o+3]),e.push(this.offsetWires12[o-1]),this.offsetArcWires1B=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.六分裂:t.push(this.offsetWires12[o]),t.push(this.offsetWires12[o-6]),this.offsetArcWires1B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(w=>{this.arcLine1B1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires12[o+1]),l.push(this.offsetWires12[o-5]),this.offsetArcWires1B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-4]),this.offsetArcWires1B=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires12[o+3]),e.push(this.offsetWires12[o-3]),this.offsetArcWires1B=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires12[o+4]),c.push(this.offsetWires12[o-2]),this.offsetArcWires1B=h(c),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires12[o+5]),B.push(this.offsetWires12[o-1]),this.offsetArcWires1B=h(B),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.八分裂:t.push(this.offsetWires12[o]),t.push(this.offsetWires12[o-8]),this.offsetArcWires1B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),this.offsetArcWires1B.forEach(w=>{this.arcLine1B1.push(K(this.viewer.scene.globe.ellipsoid,w))}),l.push(this.offsetWires12[o+1]),l.push(this.offsetWires12[o-7]),this.offsetArcWires1B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires12[o+2]),u.push(this.offsetWires12[o-6]),this.offsetArcWires1B=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires12[o+3]),e.push(this.offsetWires12[o-5]),this.offsetArcWires1B=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires12[o+4]),c.push(this.offsetWires12[o-4]),this.offsetArcWires1B=h(c),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires12[o+5]),B.push(this.offsetWires12[o-3]),this.offsetArcWires1B=h(B),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[o+6]),m.push(this.offsetWires12[o-2]),this.offsetArcWires1B=h(m),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires12[o+7]),b.push(this.offsetWires12[o-1]),this.offsetArcWires1B=h(b),this.LineentityCollection2.add(r(this.offsetArcWires1B,"导线1_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&s>0){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[];switch(this.LineInfo.Wairnum){case T.单分裂:t.push(this.offsetWires13[o]),t.push(this.offsetWires13[o-1]),this.offsetArcWires1C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.双分裂:t.push(this.offsetWires13[o]),t.push(this.offsetWires13[o-2]),this.offsetArcWires1C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-1]),this.offsetArcWires1C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.四分裂:t.push(this.offsetWires13[o]),t.push(this.offsetWires13[o-4]),this.offsetArcWires1C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-3]),this.offsetArcWires1C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-2]),this.offsetArcWires1C=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+3]),e.push(this.offsetWires13[o-1]),this.offsetArcWires1C=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.六分裂:t.push(this.offsetWires13[o]),t.push(this.offsetWires13[o-6]),this.offsetArcWires1C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-5]),this.offsetArcWires1C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-4]),this.offsetArcWires1C=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+3]),e.push(this.offsetWires13[o-3]),this.offsetArcWires1C=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires13[o+4]),c.push(this.offsetWires13[o-2]),this.offsetArcWires1C=h(c),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires13[o+5]),B.push(this.offsetWires13[o-1]),this.offsetArcWires1C=h(B),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.八分裂:t.push(this.offsetWires13[o]),t.push(this.offsetWires13[o-8]),this.offsetArcWires1C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires13[o+1]),l.push(this.offsetWires13[o-7]),this.offsetArcWires1C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires13[o+2]),u.push(this.offsetWires13[o-6]),this.offsetArcWires1C=h(u),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires13[o+3]),e.push(this.offsetWires13[o-5]),this.offsetArcWires1C=h(e),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires13[o+4]),c.push(this.offsetWires13[o-4]),this.offsetArcWires1C=h(c),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires13[o+5]),B.push(this.offsetWires13[o-3]),this.offsetArcWires1C=h(B),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[o+6]),m.push(this.offsetWires13[o-2]),this.offsetArcWires1C=h(m),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires13[o+7]),b.push(this.offsetWires13[o-1]),this.offsetArcWires1C=h(b),this.LineentityCollection2.add(r(this.offsetArcWires1C,"导线1_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&s>0){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[];switch(this.LineInfo.Wairnum){case T.单分裂:t.push(this.offsetWires21[o]),t.push(this.offsetWires21[o-1]),this.offsetArcWires2A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.双分裂:t.push(this.offsetWires21[o]),t.push(this.offsetWires21[o-2]),this.offsetArcWires2A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-1]),this.offsetArcWires2A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.四分裂:t.push(this.offsetWires21[o]),t.push(this.offsetWires21[o-4]),this.offsetArcWires2A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-3]),this.offsetArcWires2A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-2]),this.offsetArcWires2A=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+3]),e.push(this.offsetWires21[o-1]),this.offsetArcWires2A=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.六分裂:t.push(this.offsetWires21[o]),t.push(this.offsetWires21[o-6]),this.offsetArcWires2A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-5]),this.offsetArcWires2A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-4]),this.offsetArcWires2A=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+3]),e.push(this.offsetWires21[o-3]),this.offsetArcWires2A=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires21[o+4]),c.push(this.offsetWires21[o-2]),this.offsetArcWires2A=h(c),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires21[o+5]),B.push(this.offsetWires21[o-1]),this.offsetArcWires2A=h(B),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.八分裂:t.push(this.offsetWires21[o]),t.push(this.offsetWires21[o-8]),this.offsetArcWires2A=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires21[o+1]),l.push(this.offsetWires21[o-7]),this.offsetArcWires2A=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires21[o+2]),u.push(this.offsetWires21[o-6]),this.offsetArcWires2A=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires21[o+3]),e.push(this.offsetWires21[o-5]),this.offsetArcWires2A=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires21[o+4]),c.push(this.offsetWires21[o-4]),this.offsetArcWires2A=h(c),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires21[o+5]),B.push(this.offsetWires21[o-3]),this.offsetArcWires2A=h(B),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[o+6]),m.push(this.offsetWires21[o-2]),this.offsetArcWires2A=h(m),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires21[o+7]),b.push(this.offsetWires21[o-1]),this.offsetArcWires2A=h(b),this.LineentityCollection2.add(r(this.offsetArcWires2A,"导线2_A8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&s>0){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[];switch(this.LineInfo.Wairnum){case T.单分裂:t.push(this.offsetWires22[o]),t.push(this.offsetWires22[o-1]),this.offsetArcWires2B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.双分裂:t.push(this.offsetWires22[o]),t.push(this.offsetWires22[o-2]),this.offsetArcWires2B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-1]),this.offsetArcWires2B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.四分裂:t.push(this.offsetWires22[o]),t.push(this.offsetWires22[o-4]),this.offsetArcWires2B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-3]),this.offsetArcWires2B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-2]),this.offsetArcWires2B=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+3]),e.push(this.offsetWires22[o-1]),this.offsetArcWires2B=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.六分裂:t.push(this.offsetWires22[o]),t.push(this.offsetWires22[o-6]),this.offsetArcWires2B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-5]),this.offsetArcWires2B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-4]),this.offsetArcWires2B=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+3]),e.push(this.offsetWires22[o-3]),this.offsetArcWires2B=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires22[o+4]),c.push(this.offsetWires22[o-2]),this.offsetArcWires2B=h(c),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires22[o+5]),B.push(this.offsetWires22[o-1]),this.offsetArcWires2B=h(B),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.八分裂:t.push(this.offsetWires22[o]),t.push(this.offsetWires22[o-8]),this.offsetArcWires2B=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires22[o+1]),l.push(this.offsetWires22[o-7]),this.offsetArcWires2B=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires22[o+2]),u.push(this.offsetWires22[o-6]),this.offsetArcWires2B=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires22[o+3]),e.push(this.offsetWires22[o-5]),this.offsetArcWires2B=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires22[o+4]),c.push(this.offsetWires22[o-4]),this.offsetArcWires2B=h(c),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires22[o+5]),B.push(this.offsetWires22[o-3]),this.offsetArcWires2B=h(B),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[o+6]),m.push(this.offsetWires22[o-2]),this.offsetArcWires2B=h(m),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires22[o+7]),b.push(this.offsetWires22[o-1]),this.offsetArcWires2B=h(b),this.LineentityCollection2.add(r(this.offsetArcWires2B,"导线2_B8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&s>0){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[];switch(this.LineInfo.Wairnum){case T.单分裂:t.push(this.offsetWires23[o]),t.push(this.offsetWires23[o-1]),this.offsetArcWires2C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.双分裂:t.push(this.offsetWires23[o]),t.push(this.offsetWires23[o-2]),this.offsetArcWires2C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-1]),this.offsetArcWires2C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.四分裂:t.push(this.offsetWires23[o]),t.push(this.offsetWires23[o-4]),this.offsetArcWires2C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-3]),this.offsetArcWires2C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-2]),this.offsetArcWires2C=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+3]),e.push(this.offsetWires23[o-1]),this.offsetArcWires2C=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.六分裂:t.push(this.offsetWires23[o]),t.push(this.offsetWires23[o-6]),this.offsetArcWires2C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-5]),this.offsetArcWires2C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-4]),this.offsetArcWires2C=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+3]),e.push(this.offsetWires23[o-3]),this.offsetArcWires2C=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires23[o+4]),c.push(this.offsetWires23[o-2]),this.offsetArcWires2C=h(c),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires23[o+5]),B.push(this.offsetWires23[o-1]),this.offsetArcWires2C=h(B),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case T.八分裂:t.push(this.offsetWires23[o]),t.push(this.offsetWires23[o-8]),this.offsetArcWires2C=h(t),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C1"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),l.push(this.offsetWires23[o+1]),l.push(this.offsetWires23[o-7]),this.offsetArcWires2C=h(l),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C2"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),u.push(this.offsetWires23[o+2]),u.push(this.offsetWires23[o-6]),this.offsetArcWires2C=h(u),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C3"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),e.push(this.offsetWires23[o+3]),e.push(this.offsetWires23[o-5]),this.offsetArcWires2C=h(e),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C4"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),c.push(this.offsetWires23[o+4]),c.push(this.offsetWires23[o-4]),this.offsetArcWires2C=h(c),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C5"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),B.push(this.offsetWires23[o+5]),B.push(this.offsetWires23[o-3]),this.offsetArcWires2C=h(B),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C6"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[o+6]),m.push(this.offsetWires23[o-2]),this.offsetArcWires2C=h(m),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C7"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),b.push(this.offsetWires23[o+7]),b.push(this.offsetWires23[o-1]),this.offsetArcWires2C=h(b),this.LineentityCollection2.add(r(this.offsetArcWires2C,"导线2_C8"+(s-2)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const t=[];t.push(this.offsetGrouundWires11[s]),t.push(this.offsetGrouundWires11[s-1]);const l=[];l.push(this.offsetGrouundWires12[s]),l.push(this.offsetGrouundWires12[s-1]),this.offsetGrouundWires1=h(t,2),this.offsetGrouundWires2=h(l,2),this.offsetGrouundWires1.forEach(u=>{this.arcLine1D1.push(K(this.viewer.scene.globe.ellipsoid,u))}),this.LineentityCollection2.add(r(this.offsetGrouundWires1,"地线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.LineentityCollection2.add(r(this.offsetGrouundWires2,"地线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}let d=2;if(this.LineInfo.towers[s].type==J.耐张塔){switch(this.LineInfo.Wairnum){case T.单分裂:o=o+d,i=i+d;break;case T.双分裂:o=o+d*2,i=i+d*2;break;case T.四分裂:o=o+d*4,i=i+d*4;break;case T.六分裂:o=o+d*6,i=i+d*6;break;case T.八分裂:o=o+d*8,i=i+d*8;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[],w=[],P=[],g=[],y=[],_=[],v=[],k=[],M=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires1A1.length>=2&&(t.push(this.ToffsetWires1A1[i-2]),t.push(this.ToffsetWires1A1[i-1]),this.ToffsetArcWires1A=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(w.push(this.ToffsetWires1A2[i-2]),w.push(this.ToffsetWires1A2[i-1]),this.ToffsetArcWires2A=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.双分裂:this.ToffsetWires1A1.length>=4&&(t.push(this.ToffsetWires1A1[i-4]),t.push(this.ToffsetWires1A1[i-2]),this.ToffsetArcWires1A=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[i-3]),l.push(this.ToffsetWires1A1[i-1]),this.ToffsetArcWires1A=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(w.push(this.ToffsetWires1A2[i-4]),w.push(this.ToffsetWires1A2[i-2]),this.ToffsetArcWires2A=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[i-3]),P.push(this.ToffsetWires1A2[i-1]),this.ToffsetArcWires2A=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.四分裂:this.ToffsetWires1A1.length>=8&&(t.push(this.ToffsetWires1A1[i-8]),t.push(this.ToffsetWires1A1[i-4]),this.ToffsetArcWires1A=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[i-7]),l.push(this.ToffsetWires1A1[i-3]),this.ToffsetArcWires1A=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[i-6]),u.push(this.ToffsetWires1A1[i-2]),this.ToffsetArcWires1A=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[i-5]),e.push(this.ToffsetWires1A1[i-1]),this.ToffsetArcWires1A=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(w.push(this.ToffsetWires1A2[i-8]),w.push(this.ToffsetWires1A2[i-4]),this.ToffsetArcWires2A=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[i-7]),P.push(this.ToffsetWires1A2[i-3]),this.ToffsetArcWires2A=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[i-6]),g.push(this.ToffsetWires1A2[i-2]),this.ToffsetArcWires2A=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[i-5]),y.push(this.ToffsetWires1A2[i-1]),this.ToffsetArcWires2A=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.六分裂:this.ToffsetWires1A1.length>=12&&(t.push(this.ToffsetWires1A1[i-12]),t.push(this.ToffsetWires1A1[i-6]),this.ToffsetArcWires1A=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[i-11]),l.push(this.ToffsetWires1A1[i-5]),this.ToffsetArcWires1A=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[i-10]),u.push(this.ToffsetWires1A1[i-4]),this.ToffsetArcWires1A=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[i-9]),e.push(this.ToffsetWires1A1[i-3]),this.ToffsetArcWires1A=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1A1[i-8]),c.push(this.ToffsetWires1A1[i-2]),this.ToffsetArcWires1A=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A1[i-7]),B.push(this.ToffsetWires1A1[i-1]),this.ToffsetArcWires1A=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(w.push(this.ToffsetWires1A2[i-12]),w.push(this.ToffsetWires1A2[i-6]),this.ToffsetArcWires2A=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[i-11]),P.push(this.ToffsetWires1A2[i-5]),this.ToffsetArcWires2A=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[i-10]),g.push(this.ToffsetWires1A2[i-4]),this.ToffsetArcWires2A=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[i-9]),y.push(this.ToffsetWires1A2[i-3]),this.ToffsetArcWires2A=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[i-8]),_.push(this.ToffsetWires1A2[i-2]),this.ToffsetArcWires2A=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[i-7]),v.push(this.ToffsetWires1A2[i-1]),this.ToffsetArcWires2A=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.八分裂:this.ToffsetWires1A1.length>=16&&(t.push(this.ToffsetWires1A1[i-16]),t.push(this.ToffsetWires1A1[i-8]),this.ToffsetArcWires1A=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1A1[i-15]),l.push(this.ToffsetWires1A1[i-7]),this.ToffsetArcWires1A=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1A1[i-14]),u.push(this.ToffsetWires1A1[i-6]),this.ToffsetArcWires1A=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1A1[i-13]),e.push(this.ToffsetWires1A1[i-5]),this.ToffsetArcWires1A=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1A1[i-12]),c.push(this.ToffsetWires1A1[i-4]),this.ToffsetArcWires1A=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A1[i-11]),B.push(this.ToffsetWires1A1[i-3]),this.ToffsetArcWires1A=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[i-10]),m.push(this.ToffsetWires1A1[i-2]),this.ToffsetArcWires1A=h(m,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A1[i-9]),b.push(this.ToffsetWires1A1[i-1]),this.ToffsetArcWires1A=h(b,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A,"1A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(w.push(this.ToffsetWires1A2[i-16]),w.push(this.ToffsetWires1A2[i-8]),this.ToffsetArcWires2A=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1A2[i-15]),P.push(this.ToffsetWires1A2[i-7]),this.ToffsetArcWires2A=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1A2[i-14]),g.push(this.ToffsetWires1A2[i-6]),this.ToffsetArcWires2A=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A2[i-13]),y.push(this.ToffsetWires1A2[i-5]),this.ToffsetArcWires2A=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1A2[i-12]),_.push(this.ToffsetWires1A2[i-4]),this.ToffsetArcWires2A=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1A2[i-11]),v.push(this.ToffsetWires1A2[i-3]),this.ToffsetArcWires2A=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1A2[i-10]),k.push(this.ToffsetWires1A2[i-2]),this.ToffsetArcWires2A=h(k,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1A2[i-9]),M.push(this.ToffsetWires1A2[i-1]),this.ToffsetArcWires2A=h(M,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A,"1A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[],w=[],P=[],g=[],y=[],_=[],v=[],k=[],M=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires1B1.length>=2&&(t.push(this.ToffsetWires1B1[i-2]),t.push(this.ToffsetWires1B1[i-1]),this.ToffsetArcWires1B=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(w.push(this.ToffsetWires1B2[i-2]),w.push(this.ToffsetWires1B2[i-1]),this.ToffsetArcWires2B=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.双分裂:this.ToffsetWires1B1.length>=4&&(t.push(this.ToffsetWires1B1[i-4]),t.push(this.ToffsetWires1B1[i-2]),this.ToffsetArcWires1B=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[i-3]),l.push(this.ToffsetWires1B1[i-1]),this.ToffsetArcWires1B=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(w.push(this.ToffsetWires1B2[i-4]),w.push(this.ToffsetWires1B2[i-2]),this.ToffsetArcWires2B=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[i-3]),P.push(this.ToffsetWires1B2[i-1]),this.ToffsetArcWires2B=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.四分裂:this.ToffsetWires1B1.length>=8&&(t.push(this.ToffsetWires1B1[i-8]),t.push(this.ToffsetWires1B1[i-4]),this.ToffsetArcWires1B=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[i-7]),l.push(this.ToffsetWires1B1[i-3]),this.ToffsetArcWires1B=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[i-6]),u.push(this.ToffsetWires1B1[i-2]),this.ToffsetArcWires1B=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[i-5]),e.push(this.ToffsetWires1B1[i-1]),this.ToffsetArcWires1B=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(w.push(this.ToffsetWires1B2[i-8]),w.push(this.ToffsetWires1B2[i-4]),this.ToffsetArcWires2B=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[i-7]),P.push(this.ToffsetWires1B2[i-3]),this.ToffsetArcWires2B=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[i-6]),g.push(this.ToffsetWires1B2[i-2]),this.ToffsetArcWires2B=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[i-5]),y.push(this.ToffsetWires1B2[i-1]),this.ToffsetArcWires2B=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.六分裂:this.ToffsetWires1B1.length>=12&&(t.push(this.ToffsetWires1B1[i-12]),t.push(this.ToffsetWires1B1[i-6]),this.ToffsetArcWires1B=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[i-11]),l.push(this.ToffsetWires1B1[i-5]),this.ToffsetArcWires1B=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[i-10]),u.push(this.ToffsetWires1B1[i-4]),this.ToffsetArcWires1B=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[i-9]),e.push(this.ToffsetWires1B1[i-3]),this.ToffsetArcWires1B=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1B1[i-8]),c.push(this.ToffsetWires1B1[i-2]),this.ToffsetArcWires1B=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B1[i-7]),B.push(this.ToffsetWires1B1[i-1]),this.ToffsetArcWires1B=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(w.push(this.ToffsetWires1B2[i-12]),w.push(this.ToffsetWires1B2[i-6]),this.ToffsetArcWires2B=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[i-11]),P.push(this.ToffsetWires1B2[i-5]),this.ToffsetArcWires2B=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[i-10]),g.push(this.ToffsetWires1B2[i-4]),this.ToffsetArcWires2B=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[i-9]),y.push(this.ToffsetWires1B2[i-3]),this.ToffsetArcWires2B=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[i-8]),_.push(this.ToffsetWires1B2[i-2]),this.ToffsetArcWires2B=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[i-7]),v.push(this.ToffsetWires1B2[i-1]),this.ToffsetArcWires2B=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.八分裂:this.ToffsetWires1B1.length>=16&&(t.push(this.ToffsetWires1B1[i-16]),t.push(this.ToffsetWires1B1[i-8]),this.ToffsetArcWires1B=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1B1[i-15]),l.push(this.ToffsetWires1B1[i-7]),this.ToffsetArcWires1B=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1B1[i-14]),u.push(this.ToffsetWires1B1[i-6]),this.ToffsetArcWires1B=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1B1[i-13]),e.push(this.ToffsetWires1B1[i-5]),this.ToffsetArcWires1B=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1B1[i-12]),c.push(this.ToffsetWires1B1[i-4]),this.ToffsetArcWires1B=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B1[i-11]),B.push(this.ToffsetWires1B1[i-3]),this.ToffsetArcWires1B=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[i-10]),m.push(this.ToffsetWires1B1[i-2]),this.ToffsetArcWires1B=h(m,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B1[i-9]),b.push(this.ToffsetWires1B1[i-1]),this.ToffsetArcWires1B=h(b,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B,"1B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(w.push(this.ToffsetWires1B2[i-16]),w.push(this.ToffsetWires1B2[i-8]),this.ToffsetArcWires2B=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1B2[i-15]),P.push(this.ToffsetWires1B2[i-7]),this.ToffsetArcWires2B=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1B2[i-14]),g.push(this.ToffsetWires1B2[i-6]),this.ToffsetArcWires2B=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B2[i-13]),y.push(this.ToffsetWires1B2[i-5]),this.ToffsetArcWires2B=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1B2[i-12]),_.push(this.ToffsetWires1B2[i-4]),this.ToffsetArcWires2B=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1B2[i-11]),v.push(this.ToffsetWires1B2[i-3]),this.ToffsetArcWires2B=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1B2[i-10]),k.push(this.ToffsetWires1B2[i-2]),this.ToffsetArcWires2B=h(k,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1B2[i-9]),M.push(this.ToffsetWires1B2[i-1]),this.ToffsetArcWires2B=h(M,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B,"1B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[],w=[],P=[],g=[],y=[],_=[],v=[],k=[],M=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires1C1.length>=2&&(t.push(this.ToffsetWires1C1[i-2]),t.push(this.ToffsetWires1C1[i-1]),this.ToffsetArcWires1C=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(w.push(this.ToffsetWires1C2[i-2]),w.push(this.ToffsetWires1C2[i-1]),this.ToffsetArcWires2C=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.双分裂:this.ToffsetWires1C1.length>=4&&(t.push(this.ToffsetWires1C1[i-4]),t.push(this.ToffsetWires1C1[i-2]),this.ToffsetArcWires1C=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[i-3]),l.push(this.ToffsetWires1C1[i-1]),this.ToffsetArcWires1C=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(w.push(this.ToffsetWires1C2[i-4]),w.push(this.ToffsetWires1C2[i-2]),this.ToffsetArcWires2C=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[i-3]),P.push(this.ToffsetWires1C2[i-1]),this.ToffsetArcWires2C=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.四分裂:this.ToffsetWires1C1.length>=8&&(t.push(this.ToffsetWires1C1[i-8]),t.push(this.ToffsetWires1C1[i-4]),this.ToffsetArcWires1C=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[i-7]),l.push(this.ToffsetWires1C1[i-3]),this.ToffsetArcWires1C=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[i-6]),u.push(this.ToffsetWires1C1[i-2]),this.ToffsetArcWires1C=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[i-5]),e.push(this.ToffsetWires1C1[i-1]),this.ToffsetArcWires1C=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(w.push(this.ToffsetWires1C2[i-8]),w.push(this.ToffsetWires1C2[i-4]),this.ToffsetArcWires2C=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[i-7]),P.push(this.ToffsetWires1C2[i-3]),this.ToffsetArcWires2C=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[i-6]),g.push(this.ToffsetWires1C2[i-2]),this.ToffsetArcWires2C=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[i-5]),y.push(this.ToffsetWires1C2[i-1]),this.ToffsetArcWires2C=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.六分裂:this.ToffsetWires1C1.length>=12&&(t.push(this.ToffsetWires1C1[i-12]),t.push(this.ToffsetWires1C1[i-6]),this.ToffsetArcWires1C=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[i-11]),l.push(this.ToffsetWires1C1[i-5]),this.ToffsetArcWires1C=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[i-10]),u.push(this.ToffsetWires1C1[i-4]),this.ToffsetArcWires1C=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[i-9]),e.push(this.ToffsetWires1C1[i-3]),this.ToffsetArcWires1C=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1C1[i-8]),c.push(this.ToffsetWires1C1[i-2]),this.ToffsetArcWires1C=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C1[i-7]),B.push(this.ToffsetWires1C1[i-1]),this.ToffsetArcWires1C=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(w.push(this.ToffsetWires1C2[i-12]),w.push(this.ToffsetWires1C2[i-6]),this.ToffsetArcWires2C=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[i-11]),P.push(this.ToffsetWires1C2[i-5]),this.ToffsetArcWires2C=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[i-10]),g.push(this.ToffsetWires1C2[i-4]),this.ToffsetArcWires2C=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[i-9]),y.push(this.ToffsetWires1C2[i-3]),this.ToffsetArcWires2C=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[i-8]),_.push(this.ToffsetWires1C2[i-2]),this.ToffsetArcWires2C=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[i-7]),v.push(this.ToffsetWires1C2[i-1]),this.ToffsetArcWires2C=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.八分裂:this.ToffsetWires1C1.length>=16&&(t.push(this.ToffsetWires1C1[i-16]),t.push(this.ToffsetWires1C1[i-8]),this.ToffsetArcWires1C=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires1C1[i-15]),l.push(this.ToffsetWires1C1[i-7]),this.ToffsetArcWires1C=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires1C1[i-14]),u.push(this.ToffsetWires1C1[i-6]),this.ToffsetArcWires1C=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires1C1[i-13]),e.push(this.ToffsetWires1C1[i-5]),this.ToffsetArcWires1C=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires1C1[i-12]),c.push(this.ToffsetWires1C1[i-4]),this.ToffsetArcWires1C=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C1[i-11]),B.push(this.ToffsetWires1C1[i-3]),this.ToffsetArcWires1C=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[i-10]),m.push(this.ToffsetWires1C1[i-2]),this.ToffsetArcWires1C=h(m,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C1[i-9]),b.push(this.ToffsetWires1C1[i-1]),this.ToffsetArcWires1C=h(b,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C,"1C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(w.push(this.ToffsetWires1C2[i-16]),w.push(this.ToffsetWires1C2[i-8]),this.ToffsetArcWires2C=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires1C2[i-15]),P.push(this.ToffsetWires1C2[i-7]),this.ToffsetArcWires2C=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires1C2[i-14]),g.push(this.ToffsetWires1C2[i-6]),this.ToffsetArcWires2C=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C2[i-13]),y.push(this.ToffsetWires1C2[i-5]),this.ToffsetArcWires2C=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires1C2[i-12]),_.push(this.ToffsetWires1C2[i-4]),this.ToffsetArcWires2C=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires1C2[i-11]),v.push(this.ToffsetWires1C2[i-3]),this.ToffsetArcWires2C=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires1C2[i-10]),k.push(this.ToffsetWires1C2[i-2]),this.ToffsetArcWires2C=h(k,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires1C2[i-9]),M.push(this.ToffsetWires1C2[i-1]),this.ToffsetArcWires2C=h(M,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C,"1C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[],w=[],P=[],g=[],y=[],_=[],v=[],k=[],M=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires2A1.length>=2&&(t.push(this.ToffsetWires2A1[i-2]),t.push(this.ToffsetWires2A1[i-1]),this.ToffsetArcWires1A2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(w.push(this.ToffsetWires2A2[i-2]),w.push(this.ToffsetWires2A2[i-1]),this.ToffsetArcWires2A2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.双分裂:this.ToffsetWires2A1.length>=4&&(t.push(this.ToffsetWires2A1[i-4]),t.push(this.ToffsetWires2A1[i-2]),this.ToffsetArcWires1A2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[i-3]),l.push(this.ToffsetWires2A1[i-1]),this.ToffsetArcWires1A2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(w.push(this.ToffsetWires2A2[i-4]),w.push(this.ToffsetWires2A2[i-2]),this.ToffsetArcWires2A2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[i-3]),P.push(this.ToffsetWires2A2[i-1]),this.ToffsetArcWires2A2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.四分裂:this.ToffsetWires2A1.length>=8&&(t.push(this.ToffsetWires2A1[i-8]),t.push(this.ToffsetWires2A1[i-4]),this.ToffsetArcWires1A2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[i-7]),l.push(this.ToffsetWires2A1[i-3]),this.ToffsetArcWires1A2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[i-6]),u.push(this.ToffsetWires2A1[i-2]),this.ToffsetArcWires1A2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[i-5]),e.push(this.ToffsetWires2A1[i-1]),this.ToffsetArcWires1A2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(w.push(this.ToffsetWires2A2[i-8]),w.push(this.ToffsetWires2A2[i-4]),this.ToffsetArcWires2A2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[i-7]),P.push(this.ToffsetWires2A2[i-3]),this.ToffsetArcWires2A2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[i-6]),g.push(this.ToffsetWires2A2[i-2]),this.ToffsetArcWires2A2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[i-5]),y.push(this.ToffsetWires2A2[i-1]),this.ToffsetArcWires2A2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.六分裂:this.ToffsetWires2A1.length>=12&&(t.push(this.ToffsetWires2A1[i-12]),t.push(this.ToffsetWires2A1[i-6]),this.ToffsetArcWires1A2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[i-11]),l.push(this.ToffsetWires2A1[i-5]),this.ToffsetArcWires1A2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[i-10]),u.push(this.ToffsetWires2A1[i-4]),this.ToffsetArcWires1A2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[i-9]),e.push(this.ToffsetWires2A1[i-3]),this.ToffsetArcWires1A2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2A1[i-8]),c.push(this.ToffsetWires2A1[i-2]),this.ToffsetArcWires1A2=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A1[i-7]),B.push(this.ToffsetWires2A1[i-1]),this.ToffsetArcWires1A2=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(w.push(this.ToffsetWires2A2[i-12]),w.push(this.ToffsetWires2A2[i-6]),this.ToffsetArcWires2A2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[i-11]),P.push(this.ToffsetWires2A2[i-5]),this.ToffsetArcWires2A2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[i-10]),g.push(this.ToffsetWires2A2[i-4]),this.ToffsetArcWires2A2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[i-9]),y.push(this.ToffsetWires2A2[i-3]),this.ToffsetArcWires2A2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[i-8]),_.push(this.ToffsetWires2A2[i-2]),this.ToffsetArcWires2A2=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[i-7]),v.push(this.ToffsetWires2A2[i-1]),this.ToffsetArcWires2A2=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.八分裂:this.ToffsetWires2A1.length>=16&&(t.push(this.ToffsetWires2A1[i-16]),t.push(this.ToffsetWires2A1[i-8]),this.ToffsetArcWires1A2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2A1[i-15]),l.push(this.ToffsetWires2A1[i-7]),this.ToffsetArcWires1A2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2A1[i-14]),u.push(this.ToffsetWires2A1[i-6]),this.ToffsetArcWires1A2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2A1[i-13]),e.push(this.ToffsetWires2A1[i-5]),this.ToffsetArcWires1A2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2A1[i-12]),c.push(this.ToffsetWires2A1[i-4]),this.ToffsetArcWires1A2=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A1[i-11]),B.push(this.ToffsetWires2A1[i-3]),this.ToffsetArcWires1A2=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[i-10]),m.push(this.ToffsetWires2A1[i-2]),this.ToffsetArcWires1A2=h(m,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A1[i-9]),b.push(this.ToffsetWires2A1[i-1]),this.ToffsetArcWires1A2=h(b,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1A2,"2A1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(w.push(this.ToffsetWires2A2[i-16]),w.push(this.ToffsetWires2A2[i-8]),this.ToffsetArcWires2A2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2A2[i-15]),P.push(this.ToffsetWires2A2[i-7]),this.ToffsetArcWires2A2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2A2[i-14]),g.push(this.ToffsetWires2A2[i-6]),this.ToffsetArcWires2A2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A2[i-13]),y.push(this.ToffsetWires2A2[i-5]),this.ToffsetArcWires2A2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2A2[i-12]),_.push(this.ToffsetWires2A2[i-4]),this.ToffsetArcWires2A2=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2A2[i-11]),v.push(this.ToffsetWires2A2[i-3]),this.ToffsetArcWires2A2=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2A2[i-10]),k.push(this.ToffsetWires2A2[i-2]),this.ToffsetArcWires2A2=h(k,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2A2[i-9]),M.push(this.ToffsetWires2A2[i-1]),this.ToffsetArcWires2A2=h(M,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2A2,"2A2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[],w=[],P=[],g=[],y=[],_=[],v=[],k=[],M=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires2B1.length>=2&&(t.push(this.ToffsetWires2B1[i-2]),t.push(this.ToffsetWires2B1[i-1]),this.ToffsetArcWires1B2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(w.push(this.ToffsetWires2B2[i-2]),w.push(this.ToffsetWires2B2[i-1]),this.ToffsetArcWires2B2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.双分裂:this.ToffsetWires2B1.length>=4&&(t.push(this.ToffsetWires2B1[i-4]),t.push(this.ToffsetWires2B1[i-2]),this.ToffsetArcWires1B2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[i-3]),l.push(this.ToffsetWires2B1[i-1]),this.ToffsetArcWires1B2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(w.push(this.ToffsetWires2B2[i-4]),w.push(this.ToffsetWires2B2[i-2]),this.ToffsetArcWires2B2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[i-3]),P.push(this.ToffsetWires2B2[i-1]),this.ToffsetArcWires2B2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.四分裂:this.ToffsetWires2B1.length>=8&&(t.push(this.ToffsetWires2B1[i-8]),t.push(this.ToffsetWires2B1[i-4]),this.ToffsetArcWires1B2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[i-7]),l.push(this.ToffsetWires2B1[i-3]),this.ToffsetArcWires1B2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[i-6]),u.push(this.ToffsetWires2B1[i-2]),this.ToffsetArcWires1B2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[i-5]),e.push(this.ToffsetWires2B1[i-1]),this.ToffsetArcWires1B2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(w.push(this.ToffsetWires2B2[i-8]),w.push(this.ToffsetWires2B2[i-4]),this.ToffsetArcWires2B2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[i-7]),P.push(this.ToffsetWires2B2[i-3]),this.ToffsetArcWires2B2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[i-6]),g.push(this.ToffsetWires2B2[i-2]),this.ToffsetArcWires2B2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[i-5]),y.push(this.ToffsetWires2B2[i-1]),this.ToffsetArcWires2B2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.六分裂:this.ToffsetWires2B1.length>=12&&(t.push(this.ToffsetWires2B1[i-12]),t.push(this.ToffsetWires2B1[i-6]),this.ToffsetArcWires1B2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[i-11]),l.push(this.ToffsetWires2B1[i-5]),this.ToffsetArcWires1B2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[i-10]),u.push(this.ToffsetWires2B1[i-4]),this.ToffsetArcWires1B2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[i-9]),e.push(this.ToffsetWires2B1[i-3]),this.ToffsetArcWires1B2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2B1[i-8]),c.push(this.ToffsetWires2B1[i-2]),this.ToffsetArcWires1B2=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B1[i-7]),B.push(this.ToffsetWires2B1[i-1]),this.ToffsetArcWires1B2=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(w.push(this.ToffsetWires2B2[i-12]),w.push(this.ToffsetWires2B2[i-6]),this.ToffsetArcWires2B2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[i-11]),P.push(this.ToffsetWires2B2[i-5]),this.ToffsetArcWires2B2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[i-10]),g.push(this.ToffsetWires2B2[i-4]),this.ToffsetArcWires2B2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[i-9]),y.push(this.ToffsetWires2B2[i-3]),this.ToffsetArcWires2B2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[i-8]),_.push(this.ToffsetWires2B2[i-2]),this.ToffsetArcWires2B2=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[i-7]),v.push(this.ToffsetWires2B2[i-1]),this.ToffsetArcWires2B2=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.八分裂:this.ToffsetWires2B1.length>=16&&(t.push(this.ToffsetWires2B1[i-16]),t.push(this.ToffsetWires2B1[i-8]),this.ToffsetArcWires1B2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2B1[i-15]),l.push(this.ToffsetWires2B1[i-7]),this.ToffsetArcWires1B2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2B1[i-14]),u.push(this.ToffsetWires2B1[i-6]),this.ToffsetArcWires1B2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2B1[i-13]),e.push(this.ToffsetWires2B1[i-5]),this.ToffsetArcWires1B2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2B1[i-12]),c.push(this.ToffsetWires2B1[i-4]),this.ToffsetArcWires1B2=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B1[i-11]),B.push(this.ToffsetWires2B1[i-3]),this.ToffsetArcWires1B2=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[i-10]),m.push(this.ToffsetWires2B1[i-2]),this.ToffsetArcWires1B2=h(m,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B1[i-9]),b.push(this.ToffsetWires2B1[i-1]),this.ToffsetArcWires1B2=h(b,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1B2,"2B1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(w.push(this.ToffsetWires2B2[i-16]),w.push(this.ToffsetWires2B2[i-8]),this.ToffsetArcWires2B2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2B2[i-15]),P.push(this.ToffsetWires2B2[i-7]),this.ToffsetArcWires2B2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2B2[i-14]),g.push(this.ToffsetWires2B2[i-6]),this.ToffsetArcWires2B2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B2[i-13]),y.push(this.ToffsetWires2B2[i-5]),this.ToffsetArcWires2B2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2B2[i-12]),_.push(this.ToffsetWires2B2[i-4]),this.ToffsetArcWires2B2=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2B2[i-11]),v.push(this.ToffsetWires2B2[i-3]),this.ToffsetArcWires2B2=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2B2[i-10]),k.push(this.ToffsetWires2B2[i-2]),this.ToffsetArcWires2B2=h(k,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2B2[i-9]),M.push(this.ToffsetWires2B2[i-1]),this.ToffsetArcWires2B2=h(M,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2B2,"2B2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const t=[],l=[],u=[],e=[],c=[],B=[],m=[],b=[],w=[],P=[],g=[],y=[],_=[],v=[],k=[],M=[];switch(this.LineInfo.Wairnum){case T.单分裂:this.ToffsetWires2C1.length>=2&&(t.push(this.ToffsetWires2C1[i-2]),t.push(this.ToffsetWires2C1[i-1]),this.ToffsetArcWires1C2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(w.push(this.ToffsetWires2C2[i-2]),w.push(this.ToffsetWires2C2[i-1]),this.ToffsetArcWires2C2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.双分裂:this.ToffsetWires2C1.length>=4&&(t.push(this.ToffsetWires2C1[i-4]),t.push(this.ToffsetWires2C1[i-2]),this.ToffsetArcWires1C2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[i-3]),l.push(this.ToffsetWires2C1[i-1]),this.ToffsetArcWires1C2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(w.push(this.ToffsetWires2C2[i-4]),w.push(this.ToffsetWires2C2[i-2]),this.ToffsetArcWires2C2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[i-3]),P.push(this.ToffsetWires2C2[i-1]),this.ToffsetArcWires2C2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.四分裂:this.ToffsetWires2C1.length>=8&&(t.push(this.ToffsetWires2C1[i-8]),t.push(this.ToffsetWires2C1[i-4]),this.ToffsetArcWires1C2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[i-7]),l.push(this.ToffsetWires2C1[i-3]),this.ToffsetArcWires1C2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[i-6]),u.push(this.ToffsetWires2C1[i-2]),this.ToffsetArcWires1C2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[i-5]),e.push(this.ToffsetWires2C1[i-1]),this.ToffsetArcWires1C2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(w.push(this.ToffsetWires2C2[i-8]),w.push(this.ToffsetWires2C2[i-4]),this.ToffsetArcWires2C2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[i-7]),P.push(this.ToffsetWires2C2[i-3]),this.ToffsetArcWires2C2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[i-6]),g.push(this.ToffsetWires2C2[i-2]),this.ToffsetArcWires2C2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[i-5]),y.push(this.ToffsetWires2C2[i-1]),this.ToffsetArcWires2C2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.六分裂:this.ToffsetWires2C1.length>=12&&(t.push(this.ToffsetWires2C1[i-12]),t.push(this.ToffsetWires2C1[i-6]),this.ToffsetArcWires1C2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[i-11]),l.push(this.ToffsetWires2C1[i-5]),this.ToffsetArcWires1C2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[i-10]),u.push(this.ToffsetWires2C1[i-4]),this.ToffsetArcWires1C2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[i-9]),e.push(this.ToffsetWires2C1[i-3]),this.ToffsetArcWires1C2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2C1[i-8]),c.push(this.ToffsetWires2C1[i-2]),this.ToffsetArcWires1C2=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C1[i-7]),B.push(this.ToffsetWires2C1[i-1]),this.ToffsetArcWires1C2=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(w.push(this.ToffsetWires2C2[i-12]),w.push(this.ToffsetWires2C2[i-6]),this.ToffsetArcWires2C2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[i-11]),P.push(this.ToffsetWires2C2[i-5]),this.ToffsetArcWires2C2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[i-10]),g.push(this.ToffsetWires2C2[i-4]),this.ToffsetArcWires2C2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[i-9]),y.push(this.ToffsetWires2C2[i-3]),this.ToffsetArcWires2C2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[i-8]),_.push(this.ToffsetWires2C2[i-2]),this.ToffsetArcWires2C2=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[i-7]),v.push(this.ToffsetWires2C2[i-1]),this.ToffsetArcWires2C2=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case T.八分裂:this.ToffsetWires2C1.length>=16&&(t.push(this.ToffsetWires2C1[i-16]),t.push(this.ToffsetWires2C1[i-8]),this.ToffsetArcWires1C2=h(t,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),l.push(this.ToffsetWires2C1[i-15]),l.push(this.ToffsetWires2C1[i-7]),this.ToffsetArcWires1C2=h(l,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),u.push(this.ToffsetWires2C1[i-14]),u.push(this.ToffsetWires2C1[i-6]),this.ToffsetArcWires1C2=h(u,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),e.push(this.ToffsetWires2C1[i-13]),e.push(this.ToffsetWires2C1[i-5]),this.ToffsetArcWires1C2=h(e,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),c.push(this.ToffsetWires2C1[i-12]),c.push(this.ToffsetWires2C1[i-4]),this.ToffsetArcWires1C2=h(c,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C1[i-11]),B.push(this.ToffsetWires2C1[i-3]),this.ToffsetArcWires1C2=h(B,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[i-10]),m.push(this.ToffsetWires2C1[i-2]),this.ToffsetArcWires1C2=h(m,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C1[i-9]),b.push(this.ToffsetWires2C1[i-1]),this.ToffsetArcWires1C2=h(b,15),this.LineentityCollection2.add(r(this.ToffsetArcWires1C2,"2C1跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(w.push(this.ToffsetWires2C2[i-16]),w.push(this.ToffsetWires2C2[i-8]),this.ToffsetArcWires2C2=h(w,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线1"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),P.push(this.ToffsetWires2C2[i-15]),P.push(this.ToffsetWires2C2[i-7]),this.ToffsetArcWires2C2=h(P,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线2"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),g.push(this.ToffsetWires2C2[i-14]),g.push(this.ToffsetWires2C2[i-6]),this.ToffsetArcWires2C2=h(g,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线3"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C2[i-13]),y.push(this.ToffsetWires2C2[i-5]),this.ToffsetArcWires2C2=h(y,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线4"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),_.push(this.ToffsetWires2C2[i-12]),_.push(this.ToffsetWires2C2[i-4]),this.ToffsetArcWires2C2=h(_,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线5"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),v.push(this.ToffsetWires2C2[i-11]),v.push(this.ToffsetWires2C2[i-3]),this.ToffsetArcWires2C2=h(v,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线6"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),k.push(this.ToffsetWires2C2[i-10]),k.push(this.ToffsetWires2C2[i-2]),this.ToffsetArcWires2C2=h(k,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线7"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),M.push(this.ToffsetWires2C2[i-9]),M.push(this.ToffsetWires2C2[i-1]),this.ToffsetArcWires2C2=h(M,15),this.LineentityCollection2.add(r(this.ToffsetArcWires2C2,"2C2跳线8"+(s-1)+"-"+s,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case T.单分裂:o=o+1;break;case T.双分裂:o=o+2;break;case T.四分裂:o=o+4;break;case T.六分裂:o=o+6;break;case T.八分裂:o=o+8;break}})}addTreeData(o){this.LineInfo.Trees.push(o)}loadTree(){this.LineInfo.Trees.forEach(o=>{const i=n.Cartesian3.fromDegrees(o.lon,o.lat,0);this.entityCollectiontree.add({id:"tree-"+o.id,position:i,model:{show:!0,uri:o.modelurl,scale:o.treeH/o.treeScale,incrementallyLoadTextures:!0,runAnimations:!0,clampAnimations:!0,shadows:n.ShadowMode.DISABLED,heightReference:n.HeightReference.RELATIVE_TO_GROUND,silhouetteColor:n.Color.RED,silhouetteSize:0,color:n.Color.WHITE,colorBlendMode:n.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.5,imageBasedLightingFactor:new n.Cartesian2(1,1),lightColor:void 0}})})}calcResult(o){const i=qs(o,this.arcLine1A1,this.arcLine1B1,this.arcLine1D1);Ks(o,i,this.entityCollectionplotting)}loadTreeListen(){this.treeHandler&&this.removeTreeListen();const o=(i,f)=>{var C;const s=i.scene.pick(f);if(n.defined(s)){const a=n.defaultValue(s.id,(C=s.primitive)==null?void 0:C.id);if(a instanceof n.Entity)return a}};this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(i=>{var s;const f=o(this.viewer,i.position);if(f&&f.id&&f.id.startsWith("tree-")){const C=f.id.replace("tree-",""),a=(s=this.LineInfo.Trees)==null?void 0:s.find(L=>{var A;return((A=L.id)==null?void 0:A.toString())===C});if(a){const L=[a.lon,a.lat,Number(a.lat||0)+Number(a.treeH||0)];console.log("拾取树木:",a,"坐标:",L),this.calcResult(L)}}},n.ScreenSpaceEventType.LEFT_CLICK),this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.viewer.dataSources.remove(this.dataSourceplotting),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.LineInfo.Trees.forEach(o=>{if(o){const i=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(i)}}),this.viewer.dataSources.add(this.dataSourceplotting)}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.entityCollection2.show=!0,this.viewer.dataSources.add(this.LinedataSource2),this.LineentityCollection2.show=!0)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSourcetree),this.entityCollectiontree.show=!0)}RemoveTreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSourcetree),this.entityCollectiontree.show=!1)}LineSpriteLineinit(){n.Material._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new n.Color(1,1,0,1),speed:2},source:`
|
|
2
2
|
uniform vec4 color;
|
|
3
3
|
const float pi = 3.1415926;
|
|
4
4
|
czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
material.alpha = 1.0 - fract(st.s * 2.0 + time);
|
|
11
11
|
return material;
|
|
12
12
|
}
|
|
13
|
-
`},translucent:function(){return!0}})}setLineVisible(o){this.Keym=="OW_JPS_EEngin_001"&&(this.entityCollection2.show=o)}RemoveLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSource2),this.entityCollection2.show=!1)}}class
|
|
14
|
-
`),
|
|
15
|
-
`),
|
|
16
|
-
`),
|
|
17
|
-
`;const s=new n.HeadingPitchRoll(n.Math.toRadians(
|
|
18
|
-
`}),
|
|
19
|
-
`;const
|
|
20
|
-
`}),s}static downloadCSV(o,
|
|
13
|
+
`},translucent:function(){return!0}})}setLineVisible(o){this.Keym=="OW_JPS_EEngin_001"&&(this.entityCollection2.show=o,this.LineentityCollection2.show=o)}RemoveLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.remove(this.dataSource2),this.entityCollection2.show=!1,this.viewer.dataSources.remove(this.LinedataSource2),this.LineentityCollection2.show=!1,this.cameraMoveHandler&&(this.cameraMoveHandler(),this.cameraMoveHandler=null),this.loadedTowerIndices.clear(),this.modelCache.clear())}}class ii{constructor(){p(this,"id","");p(this,"name","");p(this,"towerFZinfo","");p(this,"towerDisFile","");p(this,"stressFileContent","");p(this,"streesistrue",0);p(this,"TowerMemberColor","#FFFFFF");p(this,"TowerMembersWidth",2);p(this,"Longitude",0);p(this,"Latitude",0);p(this,"Altitude",0);p(this,"RollX",0);p(this,"RollY",90);p(this,"RollZ",0)}}function ti(W){debugger;const o=W.split(`
|
|
14
|
+
`),i=[],f=[],s=/^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,C=/^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;for(const a of o){const L=a.trim();if(!L)continue;const A=L.match(s);if(A){i.push({id:parseInt(A[1]),x:parseFloat(A[2]),y:parseFloat(A[3]),z:parseFloat(A[4]),flag:parseInt(A[5])});continue}const d=L.match(C);d&&f.push({from:parseInt(d[1]),to:parseInt(d[2]),type:parseInt(d[3])})}return{TowerNodes:i,connections:f}}function ei(W){const o=W.split(`
|
|
15
|
+
`),i=[];for(const f of o){if(!f.trim())continue;const s=f.trim().split(/\s+/).filter(L=>L!==""),C=parseInt(s[0]);if(isNaN(C))continue;const a=[];for(let L=1;L<s.length;L+=3){const A=parseFloat(s[L]),d=parseFloat(s[L+1]),t=parseFloat(s[L+2]);if(!isNaN(A)&&!isNaN(d)&&!isNaN(t)){const l=Math.floor((L-1)/3)+1;a.push({timeStep:l,x:A,y:d,z:t})}}i.push({nodeId:C,displacements:a})}return i}function ms(W){const o={};return W.forEach(i=>{i.displacements.forEach(f=>{o[f.timeStep]||(o[f.timeStep]=[]),o[f.timeStep].push({nodeId:i.nodeId,...f})})}),o}function oi(W){const o=W.split(`
|
|
16
|
+
`),i=[];for(const s of o){if(!s.trim())continue;const C=s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);if(C){const a=C[1].replace(/\s+/g,""),L=C[2].trim().split(/\s+/).map(Number);i.push({elementId:a,stressRatios:L})}}const f=[];if(i.length>0){const s=i[0].stressRatios.length;for(let C=0;C<s;C++){const a={timeIndex:C,elements:[]};for(const L of i){let A;const d=L.stressRatios[C];d>1?A=Z.Color.RED:d>.95&&d<=1?A=Z.Color.PINK:d>.85&&d<=.95?A=Z.Color.YELLOW:d>.7&&d<=.85?A=Z.Color.GREEN:A=Z.Color.BLUE,a.elements.push({elementId:L.elementId,stressRatio:d,ylbColor:A})}f.push(a)}}return{byElement:i,byTime:f}}class bs{constructor(o){p(this,"viewer");p(this,"lines",[]);this.viewer=o}addLine(o,i){const f=Ms(this.viewer,o,i);return this.lines.push(f),f}removeAll(){this.lines.forEach(o=>this.viewer.entities.remove(o)),this.lines=[]}}var _s={exports:{}};(function(W,o){(function(i,f){f()})(ts,function(){function i(d,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}function f(d,t,l){var u=new XMLHttpRequest;u.open("GET",d),u.responseType="blob",u.onload=function(){A(u.response,t,l)},u.onerror=function(){console.error("could not download file")},u.send()}function s(d){var t=new XMLHttpRequest;t.open("HEAD",d,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function C(d){try{d.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(t)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ts=="object"&&ts.global===ts?ts:void 0,L=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!L?function(d,t,l){var u=a.URL||a.webkitURL,e=document.createElement("a");t=t||d.name||"download",e.download=t,e.rel="noopener",typeof d=="string"?(e.href=d,e.origin===location.origin?C(e):s(e.href)?f(d,t,l):C(e,e.target="_blank")):(e.href=u.createObjectURL(d),setTimeout(function(){u.revokeObjectURL(e.href)},4e4),setTimeout(function(){C(e)},0))}:"msSaveOrOpenBlob"in navigator?function(d,t,l){if(t=t||d.name||"download",typeof d!="string")navigator.msSaveOrOpenBlob(i(d,l),t);else if(s(d))f(d,t,l);else{var u=document.createElement("a");u.href=d,u.target="_blank",setTimeout(function(){C(u)})}}:function(d,t,l,u){if(u=u||open("","_blank"),u&&(u.document.title=u.document.body.innerText="downloading..."),typeof d=="string")return f(d,t,l);var e=d.type==="application/octet-stream",c=/constructor/i.test(a.HTMLElement)||a.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent);if((B||e&&c||L)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var P=m.result;P=B?P:P.replace(/^data:[^;]*;/,"data:attachment/file;"),u?u.location.href=P:location=P,u=null},m.readAsDataURL(d)}else{var b=a.URL||a.webkitURL,w=b.createObjectURL(d);u?u.location=w:location.href=w,u=null,setTimeout(function(){b.revokeObjectURL(w)},4e4)}});a.saveAs=A.saveAs=A,W.exports=A})})(_s);var us=_s.exports;const vs=require("shp-write");class ri{constructor(o,i,f){p(this,"towerNodes",[]);p(this,"connections",[]);p(this,"towerFZS");this.towerNodes=o,this.connections=i,this.towerFZS=f}async exportTowerToSHP(){try{const o=await this.generatePointFeatures(),i=await this.generateLineFeatures();await this.generateSHPFiles(o,i),console.log("SHP文件导出成功")}catch(o){console.error("导出SHP文件失败:",o)}}async generatePointFeatures(){const o=[],i=new n.HeadingPitchRoll(n.Math.toRadians(this.towerFZS.RollX),this.towerFZS.RollY,this.towerFZS.RollZ),f=n.Cartesian3.fromDegrees(this.towerFZS.Longitude,this.towerFZS.Latitude,this.towerFZS.Altitude);for(const s of this.towerNodes){const C=new n.Cartesian3(s.x,s.y,s.z),a=this.getPositionByHprAndOffset(f,C,i),L=n.Ellipsoid.WGS84.cartesianToCartographic(a),A=n.Math.toDegrees(L.longitude),d=n.Math.toDegrees(L.latitude),t=L.height,l={type:"Feature",geometry:{type:"Point",coordinates:[A,d]},properties:{id:s.id,node_id:s.id,x:s.x,y:s.y,z:s.z,longitude:A,latitude:d,height:t,elevation:t,type:"tower_node"}};o.push(l)}return o}async generateLineFeatures(){const o=[],i=new n.HeadingPitchRoll(n.Math.toRadians(this.towerFZS.RollX),this.towerFZS.RollY,this.towerFZS.RollZ),f=n.Cartesian3.fromDegrees(this.towerFZS.Longitude,this.towerFZS.Latitude,this.towerFZS.Altitude);for(const s of this.connections){const C=this.towerNodes.find(g=>g.id===s.from),a=this.towerNodes.find(g=>g.id===s.to);if(!C||!a)continue;const L=new n.Cartesian3(C.x,C.y,C.z),A=new n.Cartesian3(a.x,a.y,a.z),d=this.getPositionByHprAndOffset(f,L,i),t=this.getPositionByHprAndOffset(f,A,i),l=n.Ellipsoid.WGS84.cartesianToCartographic(d),u=n.Ellipsoid.WGS84.cartesianToCartographic(t),e=n.Math.toDegrees(l.longitude),c=n.Math.toDegrees(l.latitude),B=l.height,m=n.Math.toDegrees(u.longitude),b=n.Math.toDegrees(u.latitude),w=u.height,P={type:"Feature",geometry:{type:"LineString",coordinates:[[e,c],[m,b]]},properties:{id:`${s.from}-${s.to}`,from_node:s.from,to_node:s.to,from_height:B,to_height:w,avg_height:(B+w)/2,length:this.calculateDistance(d,t),type:"tower_member",width:this.towerFZS.TowerMembersWidth,from_longitude:e,from_latitude:c,to_longitude:m,to_latitude:b}};o.push(P)}return o}async generateSHPFiles(o,i){try{if(o.length>0){const f={type:"FeatureCollection",features:o},s=vs.point(f);this.downloadSHPFiles(s,"tower_nodes")}if(i.length>0){const f={type:"FeatureCollection",features:i},s=vs.line(f);this.downloadSHPFiles(s,"tower_members")}}catch(f){console.error("生成SHP文件时出错:",f),await this.alternativeExport(o,i)}}downloadSHPFiles(o,i){const f=new Blob([o],{type:"application/zip"});us.saveAs(f,`${i}.zip`)}async alternativeExport(o,i){if(console.log("使用备用方案导出为GeoJSON格式"),o.length>0){const f={type:"FeatureCollection",features:o};this.downloadJSON(f,"tower_nodes.geojson")}if(i.length>0){const f={type:"FeatureCollection",features:i};this.downloadJSON(f,"tower_members.geojson")}}downloadJSON(o,i){const f=new Blob([JSON.stringify(o,null,2)],{type:"application/json"});us.saveAs(f,i)}calculateDistance(o,i){return n.Cartesian3.distance(o,i)}getPositionByHprAndOffset(o,i,f){const s=n.Transforms.headingPitchRollToFixedFrame(o,f);return n.Matrix4.multiplyByPoint(s,i,new n.Cartesian3)}}class hi{static async exportToCSV(o,i,f){const s=this.exportNodesToCSV(o,f);this.downloadCSV(s,"tower_nodes.csv");const C=this.exportConnectionsToCSV(i,o,f);this.downloadCSV(C,"tower_connections.csv")}static exportNodesToCSV(o,i){let f=`ID,X,Y,Z,Longitude,Latitude,Height
|
|
17
|
+
`;const s=new n.HeadingPitchRoll(n.Math.toRadians(i.RollX),i.RollY,i.RollZ),C=n.Cartesian3.fromDegrees(i.Longitude,i.Latitude,i.Altitude);return o.forEach(a=>{const L=new n.Cartesian3(a.x,a.y,a.z),A=this.getPositionByHprAndOffset(C,L,s),d=n.Ellipsoid.WGS84.cartesianToCartographic(A),t=n.Math.toDegrees(d.longitude),l=n.Math.toDegrees(d.latitude),u=d.height;f+=`${a.id},${a.x},${a.y},${a.z},${t},${l},${u}
|
|
18
|
+
`}),f}static exportConnectionsToCSV(o,i,f){let s=`FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
|
|
19
|
+
`;const C=new n.HeadingPitchRoll(n.Math.toRadians(f.RollX),f.RollY,f.RollZ),a=n.Cartesian3.fromDegrees(f.Longitude,f.Latitude,f.Altitude);return o.forEach(L=>{const A=i.find(B=>B.id===L.from),d=i.find(B=>B.id===L.to);if(!A||!d)return;const t=new n.Cartesian3(A.x,A.y,A.z),l=new n.Cartesian3(d.x,d.y,d.z),u=this.getPositionByHprAndOffset(a,t,C),e=this.getPositionByHprAndOffset(a,l,C),c=n.Cartesian3.distance(u,e);s+=`${L.from},${L.to},${A.x},${A.y},${A.z},${d.x},${d.y},${d.z},${c}
|
|
20
|
+
`}),s}static downloadCSV(o,i){const f=new Blob([o],{type:"text/csv;charset=utf-8;"});us.saveAs(f,i)}static getPositionByHprAndOffset(o,i,f){const s=n.Transforms.headingPitchRollToFixedFrame(o,f);return n.Matrix4.multiplyByPoint(s,i,new n.Cartesian3)}}class fi{constructor(o,i,f){p(this,"viewer");p(this,"TowerFZS");p(this,"Keym","");p(this,"dataSource2");p(this,"entityCollection2");p(this,"pointEntities",[]);p(this,"TowerLineManager");p(this,"TowerNodes",[]);p(this,"connections",[]);p(this,"displacementData",[]);p(this,"byTimes",[]);p(this,"_animationInterval",null);this.Keym=f,this.viewer=o,this.TowerFZS=i,this.dataSource2=new n.CustomDataSource(this.TowerFZS.id),this.entityCollection2=this.dataSource2.entities,this.TowerLineManager=new bs(this.viewer)}initSHPExporter(){}loadfile(){if(this.Keym!="OW_JPS_EEngin_001")return;const{TowerNodes:o,connections:i}=ti(this.TowerFZS.towerFZinfo);this.TowerNodes=o,this.connections=i,this.displacementData=ei(this.TowerFZS.towerDisFile);const{byTime:f}=oi(this.TowerFZS.stressFileContent);this.byTimes=f;debugger}loadFZTower(){if(this.Keym!="OW_JPS_EEngin_001")return;let o=new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ);const i=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(f=>{const s=this.TowerNodes.find(l=>l.id===f.from),C=this.TowerNodes.find(l=>l.id===f.to),a=[],L=new n.Cartesian3(s==null?void 0:s.x,s==null?void 0:s.y,s==null?void 0:s.z);a.push(I(i,L,o));const A=os(this.viewer,a[0],(s==null?void 0:s.id)+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(A);const d=new n.Cartesian3(C==null?void 0:C.x,C==null?void 0:C.y,C==null?void 0:C.z);a.push(I(i,d,o));const t=os(this.viewer,a[1],(s==null?void 0:s.id)+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(t),this.TowerLineManager.addLine(a)}),this.initSHPExporter()}async exportToSHP(){await new ri(this.TowerNodes,this.connections,this.TowerFZS).exportTowerToSHP()}async exportToCSV(){await hi.exportToCSV(this.TowerNodes,this.connections,this.TowerFZS)}loadFZDISTower(o){if(this.Keym!=="OW_JPS_EEngin_001")return;const f=ms(this.displacementData)[o],s=this.byTimes.find(L=>L.timeIndex===o);debugger;if(!f){console.warn(`未找到时间步 ${o} 的位移数据`);return}const C=new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ),a=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(L=>{const A=this.TowerNodes.find(y=>y.id===L.from),d=this.TowerNodes.find(y=>y.id===L.to);if(!A||!d){console.warn(`找不到连接 ${L.from}->${L.to} 的节点`);return}debugger;const t=f.find(y=>y.nodeId===L.from),l=f.find(y=>y.nodeId===L.to);if(!t||!l){console.warn(`找不到连接 ${L.from}->${L.to} 的位移数据`);return}const u=new n.Cartesian3(A.x-t.x,A.y-t.y,A.z-t.z),e=new n.Cartesian3(d.x-l.x,d.y-l.y,d.z-l.z),c=I(a,u,C),B=os(this.viewer,c,L.from+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(B);const m=I(a,e,C),b=os(this.viewer,m,L.to+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(b);const w=[c,m],P=L.from+"-"+L.to,g=s==null?void 0:s.elements.find(y=>y.elementId===P);debugger;this.TowerLineManager.addLine(w,{color:g==null?void 0:g.ylbColor,width:3,clampToGround:!1,zIndex:0,dashed:!1,dashLength:10})})}loadFZDISTower1(o){if(this.Keym!="OW_JPS_EEngin_001")return;const i=ms(this.displacementData);let f=new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ);const s=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(C=>{const a=this.TowerNodes.find(e=>e.id===C.from),L=i[o].find(e=>e.nodeId===C.from),A=this.TowerNodes.find(e=>e.id===C.to),d=i[o].find(e=>e.nodeId===C.to),t=[],l=new n.Cartesian3(a.x-L.x,a.y-L.y,a.z-L.z);t.push(I(s,l,f));const u=new n.Cartesian3(A.x-d.x,A.y-d.y,A.z-d.z);t.push(I(s,u,f));debugger;this.entityCollection2.add(r(t,C.from+""+C.to,this.TowerFZS.TowerMembersWidth,this.TowerFZS.TowerMemberColor))})}loadAllFZDisTower(){if(this.Keym!=="OW_JPS_EEngin_001")return;if(!this.displacementData||this.displacementData.length===0){console.warn("没有可用的位移数据");return}let o=1;const i=this.displacementData.length;this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null);const f=()=>{if(this.viewer.dataSources.contains(this.dataSource2)&&this.viewer.dataSources.remove(this.dataSource2,!0),o>i){o=1;return}this.dataSource2=new n.CustomDataSource("fztower"),this.entityCollection2=this.dataSource2.entities;try{this.loadFZDISTower(o),this.loadFZModel(),console.log(`正在显示位移帧: ${o}/${i}`),o++}catch(s){console.error("加载位移帧时出错:",s),this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null)}};f(),this._animationInterval=setInterval(f,300)}stopDisplacementAnimation(){this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null)}toggleAnimation(o){o?this.stopDisplacementAnimation():this.loadAllFZDisTower()}loadFZModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}setFZModelVisible(o){this.Keym=="OW_JPS_EEngin_001"&&(this.entityCollection2.show=o)}RemoveFZModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.TowerLineManager.removeAll(),this.pointEntities.forEach(o=>this.viewer.entities.remove(o)),this.pointEntities.length=0)}}S.GUAPoint=xs,S.InsulatorInfo=Qs,S.InsulatorType=Y,S.LineManager=bs,S.LineNum=es,S.LineType=gs,S.OWEEgineFZManager=fi,S.OWEEgineManager=si,S.PhaseSType=z,S.TowerFZInfo=ii,S.TowerInfo=js,S.TowerLineInfo=Vs,S.TowerType=J,S.TreeType=Us,S.WairnumType=T,S.drawModel=cs,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|