ow-eengine-power 2.3.3 → 2.3.5

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.
@@ -723,7 +723,7 @@ function p(W, o, e, h, s) {
723
723
  }
724
724
  function O(W, o) {
725
725
  var e = W.cartesianToCartographic(o), h = n.Math.toDegrees(e.latitude), s = n.Math.toDegrees(e.longitude), I = e.height;
726
- return new n.Cartesian3(s, h, I);
726
+ return [s, h, I];
727
727
  }
728
728
  function f(W, o = 6) {
729
729
  const e = [];
@@ -1891,7 +1891,7 @@ class ft {
1891
1891
  const e = n.Cartesian3.fromDegrees(
1892
1892
  o.lon,
1893
1893
  o.lat,
1894
- o.alt
1894
+ 0
1895
1895
  );
1896
1896
  this.entityCollectiontree.add({
1897
1897
  id: "tree-" + o.id,
@@ -1940,9 +1940,9 @@ class ft {
1940
1940
  calcResult(o) {
1941
1941
  const e = zs(
1942
1942
  o,
1943
- this.arcLine1A1.map((h) => [h.x, h.y, h.z]),
1944
- this.arcLine1B1.map((h) => [h.x, h.y, h.z]),
1945
- this.arcLine1D1.map((h) => [h.x, h.y, h.z])
1943
+ this.arcLine1A1,
1944
+ this.arcLine1B1,
1945
+ this.arcLine1D1
1946
1946
  );
1947
1947
  $s(o, e, this.entityCollectionplotting);
1948
1948
  }
@@ -1962,7 +1962,7 @@ class ft {
1962
1962
  };
1963
1963
  this.treeHandler = new n.ScreenSpaceEventHandler(this.viewer.canvas), this.treeHandler.setInputAction((e) => {
1964
1964
  var s;
1965
- const h = o(this.viewer, e.endPosition);
1965
+ const h = o(this.viewer, e.position);
1966
1966
  if (h && h.id && h.id.startsWith("tree-")) {
1967
1967
  const I = h.id.replace("tree-", ""), u = (s = this.LineInfo.Trees) == null ? void 0 : s.find((A) => {
1968
1968
  var L;
@@ -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 rt=Object.defineProperty;var ft=(S,Z,Q)=>Z in S?rt(S,Z,{enumerable:!0,configurable:!0,writable:!0,value:Q}):S[Z]=Q;var d=(S,Z,Q)=>ft(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:u=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:u}})}function r(a,o,e=10,h="#ba1919"){return{name:o,label:{text:o,font:"18px sans-serif"},polyline:{show:!0,positions:a,clampToGround:!1,width:e,material:n.Color.fromCssColorString(h),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED}}}function K(a,o,e,h,s=new n.HeadingPitchRoll(0,0,0),I=1){return{id:a,name:e,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:{show:!0,uri:h,scale:I,heightReference:n.HeightReference.NONE}}}function is(a,o,e,h={}){const{pointColor:s=Z.Color.YELLOW,pointSize:I=12,labelColor:u=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:u,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,u,A,L,i,t=0,W=0,l,C=a.type,w=C==="FeatureCollection",g=C==="Feature",b=w?a.features.length:1,T=0;T<b;T++){i=w?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(u=l?i.geometries[B]:i,u!==null){L=u.coordinates;var m=u.type;switch(t=0,m){case null:break;case"Point":if(o(L,W,T,P,y)===!1)return!1;W++,P++;break;case"LineString":case"MultiPoint":for(h=0;h<L.length;h++){if(o(L[h],W,T,P,y)===!1)return!1;W++,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],W,T,P,y)===!1)return!1;W++}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],W,T,P,y)===!1)return!1;W++}y++}P++}break;case"GeometryCollection":for(h=0;h<u.geometries.length;h++)if(As(u.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,u,A,L,i,t,W,l=0,C=a.type==="FeatureCollection",w=a.type==="Feature",g=C?a.features.length:1;for(e=0;e<g;e++){for(A=C?a.features[e].geometry:w?a.geometry:a,i=C?a.features[e].properties:w?a.properties:{},t=C?a.features[e].bbox:w?a.bbox:void 0,W=C?a.features[e].id:w?a.id:void 0,L=A?A.type==="GeometryCollection":!1,u=L?A.geometries.length:1,s=0;s<u;s++){if(I=L?A.geometries[s]:A,I===null){if(o(null,l,i,t,W)===!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,W)===!1)return!1;break}case"GeometryCollection":{for(h=0;h<I.geometries.length;h++)if(o(I.geometries[h],l,i,t,W)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}l++}}function Ms(a,o){Zs(a,function(e,h,s,I,u){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:u}),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],W={type:L,coordinates:t};if(o(x(W,s),h,i)===!1)return!1}})}function Es(a,o){Ms(a,function(e,h,s){var I=0;if(e.geometry){var u=e.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var A,L=0,i=0,t=0;if(As(e,function(W,l,C,w,g){if(A===void 0||h>L||w>i||g>t){A=W,L=h,i=w,t=g,I=0;return}var b=$([A,W],e.properties);if(o(b,h,s,g,I)===!1)return!1;I++,A=W})===!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]),u=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(u/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]),u=G(s[1]),A=G(e),L=cs(o,h.units),i=Math.asin(Math.sin(u)*Math.cos(L)+Math.cos(u)*Math.sin(L)*Math.cos(A)),t=I+Math.atan2(Math.sin(A)*Math.sin(L)*Math.cos(u),Math.cos(L)-Math.sin(u)*Math.sin(i)),W=rs(t),l=rs(i);return q([W,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]),u=G(s[0]),A=G(h[1]),L=G(s[1]),i=Math.sin(u-I)*Math.cos(L),t=Math.cos(A)*Math.sin(L)-Math.sin(A)*Math.cos(L)*Math.cos(u-I);return rs(Math.atan2(i,t))}function Ys(a,o){var e=es(o,a);return e=(e+180)%360,e}function Rs(a,o){var e=V(a,o),h=es(a,o),s=hs(a,e/2,h);return s}function Ds(a,o){if(!a)throw new Error("targetPoint is required");if(!o)throw new Error("points is required");var e,h=1/0,s=0;return Ss(o,function(I,u){var A=V(a,I);A<h&&(s=u,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),u=Ts(I,"meters",e.units);return u}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,u=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?u/L:Math.cos(s),t=Math.sqrt(u*u+i*i*A*A),W=t*h;return W}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 u=I.geometry.coordinates[0],A=I.geometry.coordinates[1],L=Ns(s,u,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]],u=Ls(I,s);if(u<=0)return as(a,o,{method:h.method,units:"degrees"});var A=Ls(s,s);if(A<=u)return as(a,e,{method:h.method,units:"degrees"});var L=u/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 u=s.length,A=0,L,i,t,W=0;W<s.length&&!(o>=A&&W===s.length-1);W++){if(A>o&&I.length===0){if(L=o-A,!L)return I.push(s[W]),$(I);i=es(s[W],s[W-1])-180,t=hs(s[W],L,i,h),I.push(t.geometry.coordinates)}if(A>=e)return L=e-A,L?(i=es(s[W],s[W-1])-180,t=hs(s[W],L,i,h),I.push(t.geometry.coordinates),$(I)):(I.push(s[W]),$(I));if(A>=o&&I.push(s[W]),W===s.length-1)return $(I);A+=V(s[W],s[W+1],h)}if(A<o&&s.length===u)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:u}=os(a,e);const A=Math.min(s,u,I);return A===s?o:A===u?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 u=[];if(I==0)u.push(o[0],o[1]);else if(I==o.length-1)u.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);u=A>L?ms:E}console.log("附近的点",I,u);const i=$([u[0].slice(0,2),u[1].slice(0,2)]),t=q(u[0].slice(0,2)),W=q(u[1].slice(0,2));var l=ns(h,i,j),C=V(h,t,j)||0,w=Math.sqrt(C*C-l*l)||0;let g=u[0].slice(0,2);w>0&&(g=Gs(i,0,w,j).geometry.coordinates[1]);const b=V(t,W,j),T=Math.abs(u[0][2]-u[1][2]),B=Math.min(u[0][2],u[1][2]),P=Math.max(u[0][2],u[1][2]),y=u[0][2]>u[1][2]?P-w/b*T:w/b*T+B;console.log("高度差>>>>",T),console.log("最小高度>>>>",B);const m=y-a[2],_=l*1e3,v=Math.sqrt(_*_+m*m);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",m),console.log("直线距离>>>>",v);const k=n.Cartesian3.fromDegrees(a[0],a[1],a[2]),M=n.Cartesian3.fromDegrees(g[0],g[1],y);var X=Rs(q([a[0],a[1]]),q([g[0],g[1]])).geometry.coordinates;const R={position:n.Cartesian3.fromDegrees(X[0],X[1],y-m/2),name:"直线距离",label:{text:`直线距离${v.toFixed(1)}米`,fillColor:n.Color.fromCssColorString("#eff819"),font:"12px sans-serif",pixelOffset:new n.Cartesian2(0,0),scaleByDistance:new n.NearFarScalar(1e3,1.5,2e3,1),disableDepthTestDistance:Number.POSITIVE_INFINITY}},F=[];F.push(k),F.push(M);var D={polyline:{show:!0,positions:F,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};e.add(R),e.add(D)};function os(a,o){const e=q(a.slice(0,2)),h=[];o.forEach(A=>{h.push(q([A[0],A[1]]))});const s=vs(h),I=Ds(e,s),u=V(e,I,j);return{nearestCoord:I.geometry.coordinates,nearestDistance:u}}function p(a,o,e,h,s){e||(e=new n.HeadingPitchRoll);const I=n.Transforms.headingPitchRollQuaternion(a,e,h,s),u=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(I,new n.Matrix3),a,new n.Matrix4);return n.Matrix4.multiplyByPoint(u,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 new n.Cartesian3(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),u=n.Cartographic.fromCartesian(o),A=I.longitude*180/Math.PI,L=I.latitude*180/Math.PI,i=u.longitude*180/Math.PI,t=u.latitude*180/Math.PI,W=Math.sqrt((A-i)*(A-i)+(L-t)*(L-t)),l=W*e,C=n.Cartesian3.clone(a),w=n.Cartesian3.clone(o),g=n.Cartesian3.distance(C,n.Cartesian3.ZERO),b=n.Cartesian3.distance(w,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(w,w),n.Cartesian3.distance(C,w)==0)return s;var T=n.Cartesian3.angleBetween(C,w);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(w,_,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(){d(this,"LineID","myEntity1");d(this,"Tag","");d(this,"towers",[]);d(this,"ISPhaseSequence",!1);d(this,"Wairnum",0);d(this,"Type",0);d(this,"Trees",[]);d(this,"wireAColor","#FFFFFF");d(this,"wireBColor","#FFFFFF");d(this,"wireCColor","#FFFFFF");d(this,"wireTColor","#FFFFFF");d(this,"wireD1Color","#FFFFFF");d(this,"wireD2Color","#FFFFFF");d(this,"wireWidth",1)}}class Ks{constructor(){d(this,"id","");d(this,"name","");d(this,"type",0);d(this,"Longitude",0);d(this,"Latitude",0);d(this,"Altitude",0);d(this,"RollX",0);d(this,"RollY",90);d(this,"RollZ",0);d(this,"towerScale",1);d(this,"towerHeight",0);d(this,"towerModelUri","");d(this,"towerPoint",[]);d(this,"Insulators",[])}}class Us{constructor(){d(this,"id","");d(this,"name","");d(this,"type",0);d(this,"WairFX","进");d(this,"linenum",1);d(this,"Wairnum",0);d(this,"PhaseSequence",0);d(this,"RollX",0);d(this,"RollY",0);d(this,"RollZ",0);d(this,"InsulatorScale",1);d(this,"InsulatorLength",0);d(this,"InsulatorModelUri","");d(this,"InsulatorPoint",[])}}class Vs{constructor(){d(this,"name","");d(this,"X",-45);d(this,"Y",90);d(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 js{constructor(o,e,h){d(this,"viewer");d(this,"LineInfo");d(this,"Keym","");d(this,"dataSource2");d(this,"entityCollection2");d(this,"dataSourcetree");d(this,"entityCollectiontree");d(this,"dataSourceplotting");d(this,"entityCollectionplotting");d(this,"offsetTowers",[]);d(this,"offsetWires11",[]);d(this,"offsetWires12",[]);d(this,"offsetWires13",[]);d(this,"offsetWires21",[]);d(this,"offsetWires22",[]);d(this,"offsetWires23",[]);d(this,"ToffsetArcWires1A",[]);d(this,"ToffsetArcWires2A",[]);d(this,"ToffsetWires1A1",[]);d(this,"ToffsetWires1A2",[]);d(this,"ToffsetArcWires1B",[]);d(this,"ToffsetArcWires2B",[]);d(this,"ToffsetWires1B1",[]);d(this,"ToffsetWires1B2",[]);d(this,"ToffsetArcWires1C",[]);d(this,"ToffsetArcWires2C",[]);d(this,"ToffsetWires1C1",[]);d(this,"ToffsetWires1C2",[]);d(this,"ToffsetArcWires1A2",[]);d(this,"ToffsetArcWires2A2",[]);d(this,"ToffsetWires2A1",[]);d(this,"ToffsetWires2A2",[]);d(this,"ToffsetArcWires1B2",[]);d(this,"ToffsetArcWires2B2",[]);d(this,"ToffsetWires2B1",[]);d(this,"ToffsetWires2B2",[]);d(this,"ToffsetArcWires1C2",[]);d(this,"ToffsetArcWires2C2",[]);d(this,"ToffsetWires2C1",[]);d(this,"ToffsetWires2C2",[]);d(this,"offsetArcWires1A",[]);d(this,"offsetArcWires1B",[]);d(this,"offsetArcWires1C",[]);d(this,"offsetArcWires2A",[]);d(this,"offsetArcWires2B",[]);d(this,"offsetArcWires2C",[]);d(this,"offsetGrouundWires1",[]);d(this,"offsetGrouundWires2",[]);d(this,"offsetGrouundWires11",[]);d(this,"offsetGrouundWires12",[]);d(this,"arcLine1A1",[]);d(this,"arcLine1B1",[]);d(this,"arcLine1D1",[]);d(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));let u=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 W=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),W);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale))}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),W);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale))}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),u);this.entityCollection2.add(K(i.id,C,i.name,i.InsulatorModelUri,l,i.InsulatorScale));break;case O.地线串:const w=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),u);this.entityCollection2.add(K(i.id,g,i.name,i.InsulatorModelUri,w,i.InsulatorScale));break}else{const W=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),u);this.entityCollection2.add(K(i.id,l,i.name,i.InsulatorModelUri,W,i.InsulatorScale))}const t=[];switch(i.InsulatorPoint.forEach(W=>{W.Y=W.Y+this.LineInfo.towers[s].towerPoint[A].Y,W.Z=W.Z+this.LineInfo.towers[s].towerPoint[A].Z,t.push(p(h,new n.Cartesian3(W.X,W.Y,W.Z),u))}),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 W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires11.push(W),this.ToffsetWires1A2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires11.push(w),this.offsetWires11.push(g),this.offsetWires11.push(b),this.offsetWires11.push(T),this.ToffsetWires1A2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires11.push(k),this.offsetWires11.push(M),this.offsetWires11.push(X),this.offsetWires11.push(Y),this.offsetWires11.push(R),this.offsetWires11.push(F),this.offsetWires11.push(D),this.offsetWires11.push(E),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(R),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[1]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break;case c.四分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A2.push(t[4]),this.ToffsetWires1A2.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]);break;case c.六分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]);break;case c.八分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]),this.ToffsetWires1A2.push(t[12]),this.ToffsetWires1A2.push(t[13]),this.ToffsetWires1A2.push(t[14]),this.ToffsetWires1A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires12.push(t[0]),this.ToffsetWires1B1.push(t[1]);break;case c.双分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]);break;case c.四分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]);break;case c.六分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]);break;case c.八分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.offsetWires12.push(t[6]),this.offsetWires12.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]),this.ToffsetWires1B1.push(t[12]),this.ToffsetWires1B1.push(t[13]),this.ToffsetWires1B1.push(t[14]),this.ToffsetWires1B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires12.push(W),this.ToffsetWires1B2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires12.push(l),this.offsetWires12.push(C),this.ToffsetWires1B2.push(l),this.ToffsetWires1B2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires12.push(w),this.offsetWires12.push(g),this.offsetWires12.push(b),this.offsetWires12.push(T),this.ToffsetWires1B2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires12.push(k),this.offsetWires12.push(M),this.offsetWires12.push(X),this.offsetWires12.push(Y),this.offsetWires12.push(R),this.offsetWires12.push(F),this.offsetWires12.push(D),this.offsetWires12.push(E),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(R),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B2.push(t[0]);break;case c.双分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B2.push(t[2]),this.ToffsetWires1B2.push(t[3]);break;case c.四分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B2.push(t[4]),this.ToffsetWires1B2.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]);break;case c.六分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]);break;case c.八分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]),this.ToffsetWires1B2.push(t[12]),this.ToffsetWires1B2.push(t[13]),this.ToffsetWires1B2.push(t[14]),this.ToffsetWires1B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires13.push(t[0]),this.ToffsetWires1C1.push(t[1]);break;case c.双分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]);break;case c.四分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]);break;case c.六分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]);break;case c.八分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.offsetWires13.push(t[6]),this.offsetWires13.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]),this.ToffsetWires1C1.push(t[12]),this.ToffsetWires1C1.push(t[13]),this.ToffsetWires1C1.push(t[14]),this.ToffsetWires1C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires13.push(W),this.ToffsetWires1C2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires13.push(l),this.offsetWires13.push(C),this.ToffsetWires1C2.push(l),this.ToffsetWires1C2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires13.push(w),this.offsetWires13.push(g),this.offsetWires13.push(b),this.offsetWires13.push(T),this.ToffsetWires1C2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires13.push(k),this.offsetWires13.push(M),this.offsetWires13.push(X),this.offsetWires13.push(Y),this.offsetWires13.push(R),this.offsetWires13.push(F),this.offsetWires13.push(D),this.offsetWires13.push(E),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(R),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C2.push(t[0]);break;case c.双分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C2.push(t[2]),this.ToffsetWires1C2.push(t[3]);break;case c.四分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C2.push(t[4]),this.ToffsetWires1C2.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]);break;case c.六分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]);break;case c.八分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]),this.ToffsetWires1C2.push(t[12]),this.ToffsetWires1C2.push(t[13]),this.ToffsetWires1C2.push(t[14]),this.ToffsetWires1C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(W=>{this.offsetWires11.push(W)});break;case H.B相:t.forEach(W=>{this.offsetWires12.push(W)});break;case H.C相:t.forEach(W=>{this.offsetWires13.push(W)});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 W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires11.push(W),this.ToffsetWires1A2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break}break;case 5:t.forEach(W=>{this.offsetWires12.push(W),this.ToffsetWires1B1.push(W)});break;case 6:t.forEach(W=>{this.ToffsetWires1B1.push(W),this.ToffsetWires1B2.push(W)});break;case 7:i.InsulatorPoint.forEach(W=>{const l=p(h,new n.Cartesian3(W.X*-1,W.Y,W.Z),u);this.offsetWires12.push(l),this.ToffsetWires1B2.push(l)});break;case 8:t.forEach(W=>{this.offsetWires13.push(W),this.ToffsetWires1C1.push(W)});break;case 9:t.forEach(W=>{this.ToffsetWires1C1.push(W),this.ToffsetWires1C2.push(W)});break;case 10:i.InsulatorPoint.forEach(W=>{const l=p(h,new n.Cartesian3(W.X*-1,W.Y,W.Z),u);this.offsetWires13.push(l),this.ToffsetWires1C2.push(l)});break}else switch(A){case 2:t.forEach(W=>{this.offsetWires11.push(W)});break;case 3:t.forEach(W=>{this.offsetWires12.push(W)});break;case 4:t.forEach(W=>{this.offsetWires13.push(W)});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 W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires21.push(W),this.ToffsetWires2A2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires21.push(l),this.offsetWires21.push(C),this.ToffsetWires2A2.push(l),this.ToffsetWires2A2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires21.push(w),this.offsetWires21.push(g),this.offsetWires21.push(b),this.offsetWires21.push(T),this.ToffsetWires2A2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires21.push(k),this.offsetWires21.push(M),this.offsetWires21.push(X),this.offsetWires21.push(Y),this.offsetWires21.push(R),this.offsetWires21.push(F),this.offsetWires21.push(D),this.offsetWires21.push(E),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(R),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case c.双分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A2.push(t[2]),this.ToffsetWires2A2.push(t[3]);break;case c.四分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A2.push(t[4]),this.ToffsetWires2A2.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]);break;case c.六分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]);break;case c.八分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]),this.ToffsetWires2A2.push(t[12]),this.ToffsetWires2A2.push(t[13]),this.ToffsetWires2A2.push(t[14]),this.ToffsetWires2A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case c.双分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]);break;case c.四分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]);break;case c.六分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]);break;case c.八分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.offsetWires22.push(t[6]),this.offsetWires22.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]),this.ToffsetWires2B1.push(t[12]),this.ToffsetWires2B1.push(t[13]),this.ToffsetWires2B1.push(t[14]),this.ToffsetWires2B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires22.push(W),this.ToffsetWires2B2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires22.push(l),this.offsetWires22.push(C),this.ToffsetWires2B2.push(l),this.ToffsetWires2B2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires22.push(w),this.offsetWires22.push(g),this.offsetWires22.push(b),this.offsetWires22.push(T),this.ToffsetWires2B2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires22.push(k),this.offsetWires22.push(M),this.offsetWires22.push(X),this.offsetWires22.push(Y),this.offsetWires22.push(R),this.offsetWires22.push(F),this.offsetWires22.push(D),this.offsetWires22.push(E),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(R),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case c.双分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B2.push(t[2]),this.ToffsetWires2B2.push(t[3]);break;case c.四分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B2.push(t[4]),this.ToffsetWires2B2.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]);break;case c.六分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]);break;case c.八分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]),this.ToffsetWires2B2.push(t[12]),this.ToffsetWires2B2.push(t[13]),this.ToffsetWires2B2.push(t[14]),this.ToffsetWires2B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case c.双分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]);break;case c.四分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]);break;case c.六分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]);break;case c.八分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.offsetWires23.push(t[6]),this.offsetWires23.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]),this.ToffsetWires2C1.push(t[12]),this.ToffsetWires2C1.push(t[13]),this.ToffsetWires2C1.push(t[14]),this.ToffsetWires2C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires23.push(W),this.ToffsetWires2C2.push(W);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires23.push(l),this.offsetWires23.push(C),this.ToffsetWires2C2.push(l),this.ToffsetWires2C2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires23.push(w),this.offsetWires23.push(g),this.offsetWires23.push(b),this.offsetWires23.push(T),this.ToffsetWires2C2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires23.push(k),this.offsetWires23.push(M),this.offsetWires23.push(X),this.offsetWires23.push(Y),this.offsetWires23.push(R),this.offsetWires23.push(F),this.offsetWires23.push(D),this.offsetWires23.push(E),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(R),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case c.双分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C2.push(t[2]),this.ToffsetWires2C2.push(t[3]);break;case c.四分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C2.push(t[4]),this.ToffsetWires2C2.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]);break;case c.六分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]);break;case c.八分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]),this.ToffsetWires2C2.push(t[12]),this.ToffsetWires2C2.push(t[13]),this.ToffsetWires2C2.push(t[14]),this.ToffsetWires2C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(W=>{this.offsetWires21.push(W)});break;case H.B相:t.forEach(W=>{this.offsetWires22.push(W)});break;case H.C相:t.forEach(W=>{this.offsetWires23.push(W)});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 W=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires21.push(W),this.ToffsetWires2A2.push(W);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),u);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),u);this.offsetWires23.push(C),this.ToffsetWires2C2.push(C);break}else switch(A){case 5:t.forEach(W=>{this.offsetWires21.push(W)});break;case 6:t.forEach(W=>{this.offsetWires22.push(W)});break;case 7:t.forEach(W=>{this.offsetWires23.push(W)});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=[],W=[],l=[],C=[],w=[],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)),W.push(this.offsetWires11[o+2]),W.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(W),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)),W.push(this.offsetWires11[o+2]),W.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(W),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)),w.push(this.offsetWires11[o+5]),w.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(w),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)),W.push(this.offsetWires11[o+2]),W.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(W),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)),w.push(this.offsetWires11[o+5]),w.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(w),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=[],W=[],l=[],C=[],w=[],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)),W.push(this.offsetWires12[o+2]),W.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(W),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)),W.push(this.offsetWires12[o+2]),W.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(W),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)),w.push(this.offsetWires12[o+5]),w.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(w),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)),W.push(this.offsetWires12[o+2]),W.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(W),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)),w.push(this.offsetWires12[o+5]),w.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(w),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=[],W=[],l=[],C=[],w=[],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)),W.push(this.offsetWires13[o+2]),W.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(W),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)),W.push(this.offsetWires13[o+2]),W.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(W),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)),w.push(this.offsetWires13[o+5]),w.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(w),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)),W.push(this.offsetWires13[o+2]),W.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(W),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)),w.push(this.offsetWires13[o+5]),w.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(w),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=[],W=[],l=[],C=[],w=[],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)),W.push(this.offsetWires21[o+2]),W.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(W),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)),W.push(this.offsetWires21[o+2]),W.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(W),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)),w.push(this.offsetWires21[o+5]),w.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(w),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)),W.push(this.offsetWires21[o+2]),W.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(W),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)),w.push(this.offsetWires21[o+5]),w.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(w),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=[],W=[],l=[],C=[],w=[],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)),W.push(this.offsetWires22[o+2]),W.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(W),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)),W.push(this.offsetWires22[o+2]),W.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(W),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)),w.push(this.offsetWires22[o+5]),w.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(w),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)),W.push(this.offsetWires22[o+2]),W.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(W),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)),w.push(this.offsetWires22[o+5]),w.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(w),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=[],W=[],l=[],C=[],w=[],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)),W.push(this.offsetWires23[o+2]),W.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(W),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)),W.push(this.offsetWires23[o+2]),W.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(W),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)),w.push(this.offsetWires23[o+5]),w.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(w),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)),W.push(this.offsetWires23[o+2]),W.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(W),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)),w.push(this.offsetWires23[o+5]),w.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(w),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(W=>{this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid,W))}),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=[],W=[],l=[],C=[],w=[],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)),W.push(this.ToffsetWires1A1[e-6]),W.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(W,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)),W.push(this.ToffsetWires1A1[e-10]),W.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(W,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)),w.push(this.ToffsetWires1A1[e-7]),w.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(w,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)),W.push(this.ToffsetWires1A1[e-14]),W.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(W,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)),w.push(this.ToffsetWires1A1[e-11]),w.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(w,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=[],W=[],l=[],C=[],w=[],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)),W.push(this.ToffsetWires1B1[e-6]),W.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(W,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)),W.push(this.ToffsetWires1B1[e-10]),W.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(W,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)),w.push(this.ToffsetWires1B1[e-7]),w.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(w,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)),W.push(this.ToffsetWires1B1[e-14]),W.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(W,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)),w.push(this.ToffsetWires1B1[e-11]),w.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(w,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=[],W=[],l=[],C=[],w=[],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)),W.push(this.ToffsetWires1C1[e-6]),W.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(W,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)),W.push(this.ToffsetWires1C1[e-10]),W.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(W,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)),w.push(this.ToffsetWires1C1[e-7]),w.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(w,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)),W.push(this.ToffsetWires1C1[e-14]),W.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(W,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)),w.push(this.ToffsetWires1C1[e-11]),w.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(w,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=[],W=[],l=[],C=[],w=[],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)),W.push(this.ToffsetWires2A1[e-6]),W.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(W,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)),W.push(this.ToffsetWires2A1[e-10]),W.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(W,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)),w.push(this.ToffsetWires2A1[e-7]),w.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(w,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)),W.push(this.ToffsetWires2A1[e-14]),W.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(W,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)),w.push(this.ToffsetWires2A1[e-11]),w.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(w,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=[],W=[],l=[],C=[],w=[],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)),W.push(this.ToffsetWires2B1[e-6]),W.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(W,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)),W.push(this.ToffsetWires2B1[e-10]),W.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(W,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)),w.push(this.ToffsetWires2B1[e-7]),w.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(w,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)),W.push(this.ToffsetWires2B1[e-14]),W.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(W,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)),w.push(this.ToffsetWires2B1[e-11]),w.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(w,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=[],W=[],l=[],C=[],w=[],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)),W.push(this.ToffsetWires2C1[e-6]),W.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(W,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)),W.push(this.ToffsetWires2C1[e-10]),W.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(W,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)),w.push(this.ToffsetWires2C1[e-7]),w.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(w,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)),W.push(this.ToffsetWires2C1[e-14]),W.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(W,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)),w.push(this.ToffsetWires2C1[e-11]),w.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(w,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}})}loadTree(){this.LineInfo.Trees.forEach(o=>{const e=n.Cartesian3.fromDegrees(o.lon,o.lat,o.alt);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.map(h=>[h.x,h.y,h.z]),this.arcLine1B1.map(h=>[h.x,h.y,h.z]),this.arcLine1D1.map(h=>[h.x,h.y,h.z]));$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 u=n.defaultValue(s.id,(I=s.primitive)==null?void 0:I.id);if(u instanceof n.Entity)return u}};this.treeHandler=new n.ScreenSpaceEventHandler(this.viewer.canvas),this.treeHandler.setInputAction(e=>{var s;const h=o(this.viewer,e.endPosition);if(h&&h.id&&h.id.startsWith("tree-")){const I=h.id.replace("tree-",""),u=(s=this.LineInfo.Trees)==null?void 0:s.find(A=>{var L;return((L=A.id)==null?void 0:L.toString())===I});if(u){const A=[u.lon,u.lat,Number(u.lat||0)+Number(u.treeH||0)];console.log("拾取树木:",u,"坐标:",A),this.calcResult(A)}}},n.ScreenSpaceEventType.LEFT_CLICK),this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.viewer.dataSources.remove(this.dataSourceplotting),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.LineInfo.Trees.forEach(o=>{if(o){const e=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(e)}}),this.viewer.dataSources.add(this.dataSourceplotting)}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSourcetree),this.viewer.entities.show)}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 rt=Object.defineProperty;var ft=(S,Z,Q)=>Z in S?rt(S,Z,{enumerable:!0,configurable:!0,writable:!0,value:Q}):S[Z]=Q;var d=(S,Z,Q)=>ft(S,typeof Z!="symbol"?Z+"":Z,Q);function Q(W){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(W){for(const e in W)if(e!=="default"){const h=Object.getOwnPropertyDescriptor(W,e);Object.defineProperty(o,e,h.get?h:{enumerable:!0,get:()=>W[e]})}}return o.default=W,Object.freeze(o)}const n=Q(Z);function _s(W,o,e={}){const{color:h=Z.Color.WHITE,width:s=3,clampToGround:I=!1,zIndex:u=0,dashed:A=!1,dashLength:L=10}=e,i=A?new n.PolylineDashMaterialProperty({color:h,dashLength:L}):new n.ColorMaterialProperty(h);return W.entities.add({polyline:{positions:o,width:s,material:i,clampToGround:I,zIndex:u}})}function r(W,o,e=10,h="#ba1919"){return{name:o,label:{text:o,font:"18px sans-serif"},polyline:{show:!0,positions:W,clampToGround:!1,width:e,material:n.Color.fromCssColorString(h),arcType:n.ArcType.NONE,shadows:n.ShadowMode.DISABLED}}}function K(W,o,e,h,s=new n.HeadingPitchRoll(0,0,0),I=1){return{id:W,name:e,position:o,orientation:n.Transforms.headingPitchRollQuaternion(o,s),model:{show:!0,uri:h,scale:I,heightReference:n.HeightReference.NONE}}}function is(W,o,e,h={}){const{pointColor:s=Z.Color.YELLOW,pointSize:I=12,labelColor:u=Z.Color.WHITE,fontSize:A=16,pixelOffset:L=[0,-20],heightReference:i=Z.HeightReference.NONE}=h;return W.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:u,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(W,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=W,h}function q(W,o,e){if(e===void 0&&(e={}),!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(!Cs(W[0])||!Cs(W[1]))throw new Error("coordinates must contain numbers");var h={type:"Point",coordinates:W};return x(h,o,e)}function $(W,o,e){if(e===void 0&&(e={}),W.length<2)throw new Error("coordinates must be an array of two or more positions");var h={type:"LineString",coordinates:W};return x(h,o,e)}function vs(W,o){o===void 0&&(o={});var e={type:"FeatureCollection"};return o.id&&(e.id=o.id),o.bbox&&(e.bbox=o.bbox),e.features=W,e}function ls(W,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return W*e}function cs(W,o){o===void 0&&(o="kilometers");var e=us[o];if(!e)throw new Error(o+" units is invalid");return W/e}function rs(W){var o=W%(2*Math.PI);return o*180/Math.PI}function G(W){var o=W%360;return o*Math.PI/180}function Ts(W,o,e){if(o===void 0&&(o="kilometers"),e===void 0&&(e="kilometers"),!(W>=0))throw new Error("length must be a positive number");return ls(cs(W,o),e)}function Cs(W){return!isNaN(W)&&W!==null&&!Array.isArray(W)}function ks(W){return!!W&&W.constructor===Object}function As(W,o,e){if(W!==null)for(var h,s,I,u,A,L,i,t=0,a=0,l,C=W.type,w=C==="FeatureCollection",g=C==="Feature",b=w?W.features.length:1,T=0;T<b;T++){i=w?W.features[T].geometry:g?W.geometry:W,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(u=l?i.geometries[B]:i,u!==null){L=u.coordinates;var m=u.type;switch(t=0,m){case null:break;case"Point":if(o(L,a,T,P,y)===!1)return!1;a++,P++;break;case"LineString":case"MultiPoint":for(h=0;h<L.length;h++){if(o(L[h],a,T,P,y)===!1)return!1;a++,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],a,T,P,y)===!1)return!1;a++}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],a,T,P,y)===!1)return!1;a++}y++}P++}break;case"GeometryCollection":for(h=0;h<u.geometries.length;h++)if(As(u.geometries[h],o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ss(W,o){if(W.type==="Feature")o(W,0);else if(W.type==="FeatureCollection")for(var e=0;e<W.features.length&&o(W.features[e],e)!==!1;e++);}function Zs(W,o){var e,h,s,I,u,A,L,i,t,a,l=0,C=W.type==="FeatureCollection",w=W.type==="Feature",g=C?W.features.length:1;for(e=0;e<g;e++){for(A=C?W.features[e].geometry:w?W.geometry:W,i=C?W.features[e].properties:w?W.properties:{},t=C?W.features[e].bbox:w?W.bbox:void 0,a=C?W.features[e].id:w?W.id:void 0,L=A?A.type==="GeometryCollection":!1,u=L?A.geometries.length:1,s=0;s<u;s++){if(I=L?A.geometries[s]:A,I===null){if(o(null,l,i,t,a)===!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,a)===!1)return!1;break}case"GeometryCollection":{for(h=0;h<I.geometries.length;h++)if(o(I.geometries[h],l,i,t,a)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}l++}}function Ms(W,o){Zs(W,function(e,h,s,I,u){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:u}),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],a={type:L,coordinates:t};if(o(x(a,s),h,i)===!1)return!1}})}function Es(W,o){Ms(W,function(e,h,s){var I=0;if(e.geometry){var u=e.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var A,L=0,i=0,t=0;if(As(e,function(a,l,C,w,g){if(A===void 0||h>L||w>i||g>t){A=a,L=h,i=w,t=g,I=0;return}var b=$([A,a],e.properties);if(o(b,h,s,g,I)===!1)return!1;I++,A=a})===!1)return!1}}})}function U(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 ps(W,o,e){if(!W)throw new Error("No feature passed");if(!e)throw new Error(".featureOf() requires a name");if(!W||W.type!=="Feature"||!W.geometry)throw new Error("Invalid input to "+e+", Feature with geometry required");if(!W.geometry||W.geometry.type!==o)throw new Error("Invalid input to "+e+": must be a "+o+", given "+W.geometry.type)}var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V(W,o,e){e===void 0&&(e={});var h=U(W),s=U(o),I=G(s[1]-h[1]),u=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(u/2),2)*Math.cos(A)*Math.cos(L);return ls(2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i)),e.units)}function Xs(W){if(!W)throw new Error("geojson is required");switch(W.type){case"Feature":return ws(W);case"FeatureCollection":return Fs(W);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return fs(W);default:throw new Error("unknown GeoJSON type")}}function ws(W){var o={type:"Feature"};return Object.keys(W).forEach(function(e){switch(e){case"type":case"properties":case"geometry":return;default:o[e]=W[e]}}),o.properties=Is(W.properties),o.geometry=fs(W.geometry),o}function Is(W){var o={};return W&&Object.keys(W).forEach(function(e){var h=W[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(W){var o={type:"FeatureCollection"};return Object.keys(W).forEach(function(e){switch(e){case"type":case"features":return;default:o[e]=W[e]}}),o.features=W.features.map(function(e){return ws(e)}),o}function fs(W){var o={type:W.type};return W.bbox&&(o.bbox=W.bbox),W.type==="GeometryCollection"?(o.geometries=W.geometries.map(function(e){return fs(e)}),o):(o.coordinates=ds(W.coordinates),o)}function ds(W){var o=W;return typeof o[0]!="object"?o.slice():o.map(function(e){return ds(e)})}function hs(W,o,e,h){h===void 0&&(h={});var s=U(W),I=G(s[0]),u=G(s[1]),A=G(e),L=cs(o,h.units),i=Math.asin(Math.sin(u)*Math.cos(L)+Math.cos(u)*Math.sin(L)*Math.cos(A)),t=I+Math.atan2(Math.sin(A)*Math.sin(L)*Math.cos(u),Math.cos(L)-Math.sin(u)*Math.sin(i)),a=rs(t),l=rs(i);return q([a,l],h.properties)}function es(W,o,e){if(e===void 0&&(e={}),e.final===!0)return Ys(W,o);var h=U(W),s=U(o),I=G(h[0]),u=G(s[0]),A=G(h[1]),L=G(s[1]),i=Math.sin(u-I)*Math.cos(L),t=Math.cos(A)*Math.sin(L)-Math.sin(A)*Math.cos(L)*Math.cos(u-I);return rs(Math.atan2(i,t))}function Ys(W,o){var e=es(o,W);return e=(e+180)%360,e}function Rs(W,o){var e=V(W,o),h=es(W,o),s=hs(W,e/2,h);return s}function Ds(W,o){if(!W)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,u){var A=V(W,I);A<h&&(s=u,h=A)}),e=Xs(o.features[s]),e.properties.featureIndex=s,e.properties.distanceToPoint=h,e}function Os(W,o,e){e===void 0&&(e={});var h=U(W),s=U(o);s[0]+=s[0]-h[0]>180?-360:h[0]-s[0]>180?360:0;var I=Hs(h,s),u=Ts(I,"meters",e.units);return u}function Hs(W,o,e){e=e===void 0?N:Number(e);var h=e,s=W[1]*Math.PI/180,I=o[1]*Math.PI/180,u=I-s,A=Math.abs(o[0]-W[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?u/L:Math.cos(s),t=Math.sqrt(u*u+i*i*A*A),a=t*h;return a}function ns(W,o,e){if(e===void 0&&(e={}),e.method||(e.method="geodesic"),e.units||(e.units="kilometers"),!W)throw new Error("pt is required");if(Array.isArray(W)?W=q(W):W.type==="Point"?W=x(W):ps(W,"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=W.geometry.coordinates;return Es(o,function(I){var u=I.geometry.coordinates[0],A=I.geometry.coordinates[1],L=Ns(s,u,A,e);L<h&&(h=L)}),Ts(h,"degrees",e.units)}function Ns(W,o,e,h){var s=[e[0]-o[0],e[1]-o[1]],I=[W[0]-o[0],W[1]-o[1]],u=Ls(I,s);if(u<=0)return Ws(W,o,{method:h.method,units:"degrees"});var A=Ls(s,s);if(A<=u)return Ws(W,e,{method:h.method,units:"degrees"});var L=u/A,i=[o[0]+L*s[0],o[1]+L*s[1]];return Ws(W,i,{method:h.method,units:"degrees"})}function Ls(W,o){return W[0]*o[0]+W[1]*o[1]}function Ws(W,o,e){return e.method==="planar"?Os(W,o,e):V(W,o,e)}function Gs(W,o,e,h){if(h=h||{},!ks(h))throw new Error("options is invalid");var s,I=[];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 u=s.length,A=0,L,i,t,a=0;a<s.length&&!(o>=A&&a===s.length-1);a++){if(A>o&&I.length===0){if(L=o-A,!L)return I.push(s[a]),$(I);i=es(s[a],s[a-1])-180,t=hs(s[a],L,i,h),I.push(t.geometry.coordinates)}if(A>=e)return L=e-A,L?(i=es(s[a],s[a-1])-180,t=hs(s[a],L,i,h),I.push(t.geometry.coordinates),$(I)):(I.push(s[a]),$(I));if(A>=o&&I.push(s[a]),a===s.length-1)return $(I);A+=V(s[a],s[a+1],h)}if(A<o&&s.length===u)throw new Error("Start position is beyond line");var l=s[s.length-1];return $([l,l])}const j={units:"kilometers"};function zs(W,o,e,h){var{nearestDistance:s}=os(W,o),{nearestDistance:I}=os(W,h),{nearestDistance:u}=os(W,e);const A=Math.min(s,u,I);return A===s?o:A===u?e:h}const $s=(W,o,e)=>{debugger;const h=q(W.slice(0,2)),{nearestCoord:s}=os(W,o),I=o.findIndex(E=>E[0]==s[0]&&E[1]==s[1]);let u=[];if(I==0)u.push(o[0],o[1]);else if(I==o.length-1)u.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);u=A>L?ms:E}console.log("附近的点",I,u);const i=$([u[0].slice(0,2),u[1].slice(0,2)]),t=q(u[0].slice(0,2)),a=q(u[1].slice(0,2));var l=ns(h,i,j),C=V(h,t,j)||0,w=Math.sqrt(C*C-l*l)||0;let g=u[0].slice(0,2);w>0&&(g=Gs(i,0,w,j).geometry.coordinates[1]);const b=V(t,a,j),T=Math.abs(u[0][2]-u[1][2]),B=Math.min(u[0][2],u[1][2]),P=Math.max(u[0][2],u[1][2]),y=u[0][2]>u[1][2]?P-w/b*T:w/b*T+B;console.log("高度差>>>>",T),console.log("最小高度>>>>",B);const m=y-W[2],_=l*1e3,v=Math.sqrt(_*_+m*m);console.log("水平距离>>>>",_),console.log("竖直距离>>>>",m),console.log("直线距离>>>>",v);const k=n.Cartesian3.fromDegrees(W[0],W[1],W[2]),M=n.Cartesian3.fromDegrees(g[0],g[1],y);var X=Rs(q([W[0],W[1]]),q([g[0],g[1]])).geometry.coordinates;const R={position:n.Cartesian3.fromDegrees(X[0],X[1],y-m/2),name:"直线距离",label:{text:`直线距离${v.toFixed(1)}米`,fillColor:n.Color.fromCssColorString("#eff819"),font:"12px sans-serif",pixelOffset:new n.Cartesian2(0,0),scaleByDistance:new n.NearFarScalar(1e3,1.5,2e3,1),disableDepthTestDistance:Number.POSITIVE_INFINITY}},F=[];F.push(k),F.push(M);var D={polyline:{show:!0,positions:F,clampToGround:!1,width:2,material:n.Color.RED,shadows:n.ShadowMode.DISABLED}};e.add(R),e.add(D)};function os(W,o){const e=q(W.slice(0,2)),h=[];o.forEach(A=>{h.push(q([A[0],A[1]]))});const s=vs(h),I=Ds(e,s),u=V(e,I,j);return{nearestCoord:I.geometry.coordinates,nearestDistance:u}}function p(W,o,e,h,s){e||(e=new n.HeadingPitchRoll);const I=n.Transforms.headingPitchRollQuaternion(W,e,h,s),u=n.Matrix4.fromRotationTranslation(n.Matrix3.fromQuaternion(I,new n.Matrix3),W,new n.Matrix4);return n.Matrix4.multiplyByPoint(u,o,new n.Cartesian3)}function z(W,o){var e=W.cartesianToCartographic(o),h=n.Math.toDegrees(e.latitude),s=n.Math.toDegrees(e.longitude),I=e.height;return[s,h,I]}function f(W,o=6){const e=[];for(var h=0;h<W.length-1;h++)e.push(...qs(W[h],W[h+1],o*-1e3,100));return e}function qs(W,o,e,h){var s=[],I=n.Cartographic.fromCartesian(W),u=n.Cartographic.fromCartesian(o),A=I.longitude*180/Math.PI,L=I.latitude*180/Math.PI,i=u.longitude*180/Math.PI,t=u.latitude*180/Math.PI,a=Math.sqrt((A-i)*(A-i)+(L-t)*(L-t)),l=a*e,C=n.Cartesian3.clone(W),w=n.Cartesian3.clone(o),g=n.Cartesian3.distance(C,n.Cartesian3.ZERO),b=n.Cartesian3.distance(w,n.Cartesian3.ZERO);if(n.Cartesian3.normalize(C,C),n.Cartesian3.normalize(w,w),n.Cartesian3.distance(C,w)==0)return s;var T=n.Cartesian3.angleBetween(C,w);s.push(W);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(w,_,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(){d(this,"LineID","myEntity1");d(this,"Tag","");d(this,"towers",[]);d(this,"ISPhaseSequence",!1);d(this,"Wairnum",0);d(this,"Type",0);d(this,"Trees",[]);d(this,"wireAColor","#FFFFFF");d(this,"wireBColor","#FFFFFF");d(this,"wireCColor","#FFFFFF");d(this,"wireTColor","#FFFFFF");d(this,"wireD1Color","#FFFFFF");d(this,"wireD2Color","#FFFFFF");d(this,"wireWidth",1)}}class Ks{constructor(){d(this,"id","");d(this,"name","");d(this,"type",0);d(this,"Longitude",0);d(this,"Latitude",0);d(this,"Altitude",0);d(this,"RollX",0);d(this,"RollY",90);d(this,"RollZ",0);d(this,"towerScale",1);d(this,"towerHeight",0);d(this,"towerModelUri","");d(this,"towerPoint",[]);d(this,"Insulators",[])}}class Us{constructor(){d(this,"id","");d(this,"name","");d(this,"type",0);d(this,"WairFX","进");d(this,"linenum",1);d(this,"Wairnum",0);d(this,"PhaseSequence",0);d(this,"RollX",0);d(this,"RollY",0);d(this,"RollZ",0);d(this,"InsulatorScale",1);d(this,"InsulatorLength",0);d(this,"InsulatorModelUri","");d(this,"InsulatorPoint",[])}}class Vs{constructor(){d(this,"name","");d(this,"X",-45);d(this,"Y",90);d(this,"Z",0)}}var H=(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))(H||{}),J=(W=>(W[W.直线塔=0]="直线塔",W[W.耐张塔=1]="耐张塔",W[W.门架塔=2]="门架塔",W[W.换位塔=3]="换位塔",W))(J||{}),Bs=(W=>(W[W.交流单回路=0]="交流单回路",W[W.交流双回路=1]="交流双回路",W[W.直流单回路=2]="直流单回路",W[W.直流双回路=3]="直流双回路",W[W.交流四回路=4]="交流四回路",W))(Bs||{}),ts=(W=>(W[W.地线=0]="地线",W[W.回路一=1]="回路一",W[W.回路二=2]="回路二",W[W.回路三=3]="回路三",W[W.回路四=4]="回路四",W))(ts||{}),O=(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))(O||{}),c=(W=>(W[W.单分裂=0]="单分裂",W[W.双分裂=1]="双分裂",W[W.四分裂=2]="四分裂",W[W.六分裂=3]="六分裂",W[W.八分裂=4]="八分裂",W))(c||{});class js{constructor(o,e,h){d(this,"viewer");d(this,"LineInfo");d(this,"Keym","");d(this,"dataSource2");d(this,"entityCollection2");d(this,"dataSourcetree");d(this,"entityCollectiontree");d(this,"dataSourceplotting");d(this,"entityCollectionplotting");d(this,"offsetTowers",[]);d(this,"offsetWires11",[]);d(this,"offsetWires12",[]);d(this,"offsetWires13",[]);d(this,"offsetWires21",[]);d(this,"offsetWires22",[]);d(this,"offsetWires23",[]);d(this,"ToffsetArcWires1A",[]);d(this,"ToffsetArcWires2A",[]);d(this,"ToffsetWires1A1",[]);d(this,"ToffsetWires1A2",[]);d(this,"ToffsetArcWires1B",[]);d(this,"ToffsetArcWires2B",[]);d(this,"ToffsetWires1B1",[]);d(this,"ToffsetWires1B2",[]);d(this,"ToffsetArcWires1C",[]);d(this,"ToffsetArcWires2C",[]);d(this,"ToffsetWires1C1",[]);d(this,"ToffsetWires1C2",[]);d(this,"ToffsetArcWires1A2",[]);d(this,"ToffsetArcWires2A2",[]);d(this,"ToffsetWires2A1",[]);d(this,"ToffsetWires2A2",[]);d(this,"ToffsetArcWires1B2",[]);d(this,"ToffsetArcWires2B2",[]);d(this,"ToffsetWires2B1",[]);d(this,"ToffsetWires2B2",[]);d(this,"ToffsetArcWires1C2",[]);d(this,"ToffsetArcWires2C2",[]);d(this,"ToffsetWires2C1",[]);d(this,"ToffsetWires2C2",[]);d(this,"offsetArcWires1A",[]);d(this,"offsetArcWires1B",[]);d(this,"offsetArcWires1C",[]);d(this,"offsetArcWires2A",[]);d(this,"offsetArcWires2B",[]);d(this,"offsetArcWires2C",[]);d(this,"offsetGrouundWires1",[]);d(this,"offsetGrouundWires2",[]);d(this,"offsetGrouundWires11",[]);d(this,"offsetGrouundWires12",[]);d(this,"arcLine1A1",[]);d(this,"arcLine1B1",[]);d(this,"arcLine1D1",[]);d(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));let u=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 a=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),a);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale))}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),a);this.entityCollection2.add(K(i.id,T,i.name,i.InsulatorModelUri,b,i.InsulatorScale))}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),u);this.entityCollection2.add(K(i.id,C,i.name,i.InsulatorModelUri,l,i.InsulatorScale));break;case O.地线串:const w=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),u);this.entityCollection2.add(K(i.id,g,i.name,i.InsulatorModelUri,w,i.InsulatorScale));break}else{const a=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),u);this.entityCollection2.add(K(i.id,l,i.name,i.InsulatorModelUri,a,i.InsulatorScale))}const t=[];switch(i.InsulatorPoint.forEach(a=>{a.Y=a.Y+this.LineInfo.towers[s].towerPoint[A].Y,a.Z=a.Z+this.LineInfo.towers[s].towerPoint[A].Z,t.push(p(h,new n.Cartesian3(a.X,a.Y,a.Z),u))}),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 a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires11.push(a),this.ToffsetWires1A2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires11.push(w),this.offsetWires11.push(g),this.offsetWires11.push(b),this.offsetWires11.push(T),this.ToffsetWires1A2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires11.push(k),this.offsetWires11.push(M),this.offsetWires11.push(X),this.offsetWires11.push(Y),this.offsetWires11.push(R),this.offsetWires11.push(F),this.offsetWires11.push(D),this.offsetWires11.push(E),this.ToffsetWires1A2.push(k),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(X),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(R),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A2.push(t[1]);break;case c.双分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A2.push(t[2]),this.ToffsetWires1A2.push(t[3]);break;case c.四分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A2.push(t[4]),this.ToffsetWires1A2.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]);break;case c.六分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A2.push(t[6]),this.ToffsetWires1A2.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]);break;case c.八分裂:this.ToffsetWires1A1.push(t[0]),this.ToffsetWires1A1.push(t[1]),this.ToffsetWires1A1.push(t[2]),this.ToffsetWires1A1.push(t[3]),this.ToffsetWires1A1.push(t[4]),this.ToffsetWires1A1.push(t[5]),this.ToffsetWires1A1.push(t[6]),this.ToffsetWires1A1.push(t[7]),this.ToffsetWires1A2.push(t[8]),this.ToffsetWires1A2.push(t[9]),this.ToffsetWires1A2.push(t[10]),this.ToffsetWires1A2.push(t[11]),this.ToffsetWires1A2.push(t[12]),this.ToffsetWires1A2.push(t[13]),this.ToffsetWires1A2.push(t[14]),this.ToffsetWires1A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires12.push(t[0]),this.ToffsetWires1B1.push(t[1]);break;case c.双分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]);break;case c.四分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]);break;case c.六分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]);break;case c.八分裂:this.offsetWires12.push(t[0]),this.offsetWires12.push(t[1]),this.offsetWires12.push(t[2]),this.offsetWires12.push(t[3]),this.offsetWires12.push(t[4]),this.offsetWires12.push(t[5]),this.offsetWires12.push(t[6]),this.offsetWires12.push(t[7]),this.ToffsetWires1B1.push(t[8]),this.ToffsetWires1B1.push(t[9]),this.ToffsetWires1B1.push(t[10]),this.ToffsetWires1B1.push(t[11]),this.ToffsetWires1B1.push(t[12]),this.ToffsetWires1B1.push(t[13]),this.ToffsetWires1B1.push(t[14]),this.ToffsetWires1B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires12.push(a),this.ToffsetWires1B2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires12.push(l),this.offsetWires12.push(C),this.ToffsetWires1B2.push(l),this.ToffsetWires1B2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires12.push(w),this.offsetWires12.push(g),this.offsetWires12.push(b),this.offsetWires12.push(T),this.ToffsetWires1B2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires12.push(k),this.offsetWires12.push(M),this.offsetWires12.push(X),this.offsetWires12.push(Y),this.offsetWires12.push(R),this.offsetWires12.push(F),this.offsetWires12.push(D),this.offsetWires12.push(E),this.ToffsetWires1B2.push(k),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(X),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(R),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B2.push(t[0]);break;case c.双分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B2.push(t[2]),this.ToffsetWires1B2.push(t[3]);break;case c.四分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B2.push(t[4]),this.ToffsetWires1B2.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]);break;case c.六分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B2.push(t[6]),this.ToffsetWires1B2.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]);break;case c.八分裂:this.ToffsetWires1B1.push(t[0]),this.ToffsetWires1B1.push(t[1]),this.ToffsetWires1B1.push(t[2]),this.ToffsetWires1B1.push(t[3]),this.ToffsetWires1B1.push(t[4]),this.ToffsetWires1B1.push(t[5]),this.ToffsetWires1B1.push(t[6]),this.ToffsetWires1B1.push(t[7]),this.ToffsetWires1B2.push(t[8]),this.ToffsetWires1B2.push(t[9]),this.ToffsetWires1B2.push(t[10]),this.ToffsetWires1B2.push(t[11]),this.ToffsetWires1B2.push(t[12]),this.ToffsetWires1B2.push(t[13]),this.ToffsetWires1B2.push(t[14]),this.ToffsetWires1B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires13.push(t[0]),this.ToffsetWires1C1.push(t[1]);break;case c.双分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]);break;case c.四分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]);break;case c.六分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]);break;case c.八分裂:this.offsetWires13.push(t[0]),this.offsetWires13.push(t[1]),this.offsetWires13.push(t[2]),this.offsetWires13.push(t[3]),this.offsetWires13.push(t[4]),this.offsetWires13.push(t[5]),this.offsetWires13.push(t[6]),this.offsetWires13.push(t[7]),this.ToffsetWires1C1.push(t[8]),this.ToffsetWires1C1.push(t[9]),this.ToffsetWires1C1.push(t[10]),this.ToffsetWires1C1.push(t[11]),this.ToffsetWires1C1.push(t[12]),this.ToffsetWires1C1.push(t[13]),this.ToffsetWires1C1.push(t[14]),this.ToffsetWires1C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires13.push(a),this.ToffsetWires1C2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires13.push(l),this.offsetWires13.push(C),this.ToffsetWires1C2.push(l),this.ToffsetWires1C2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires13.push(w),this.offsetWires13.push(g),this.offsetWires13.push(b),this.offsetWires13.push(T),this.ToffsetWires1C2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires13.push(k),this.offsetWires13.push(M),this.offsetWires13.push(X),this.offsetWires13.push(Y),this.offsetWires13.push(R),this.offsetWires13.push(F),this.offsetWires13.push(D),this.offsetWires13.push(E),this.ToffsetWires1C2.push(k),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(X),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(R),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C2.push(t[0]);break;case c.双分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C2.push(t[2]),this.ToffsetWires1C2.push(t[3]);break;case c.四分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C2.push(t[4]),this.ToffsetWires1C2.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]);break;case c.六分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C2.push(t[6]),this.ToffsetWires1C2.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]);break;case c.八分裂:this.ToffsetWires1C1.push(t[0]),this.ToffsetWires1C1.push(t[1]),this.ToffsetWires1C1.push(t[2]),this.ToffsetWires1C1.push(t[3]),this.ToffsetWires1C1.push(t[4]),this.ToffsetWires1C1.push(t[5]),this.ToffsetWires1C1.push(t[6]),this.ToffsetWires1C1.push(t[7]),this.ToffsetWires1C2.push(t[8]),this.ToffsetWires1C2.push(t[9]),this.ToffsetWires1C2.push(t[10]),this.ToffsetWires1C2.push(t[11]),this.ToffsetWires1C2.push(t[12]),this.ToffsetWires1C2.push(t[13]),this.ToffsetWires1C2.push(t[14]),this.ToffsetWires1C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(a=>{this.offsetWires11.push(a)});break;case H.B相:t.forEach(a=>{this.offsetWires12.push(a)});break;case H.C相:t.forEach(a=>{this.offsetWires13.push(a)});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 a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires11.push(a),this.ToffsetWires1A2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires11.push(l),this.offsetWires11.push(C),this.ToffsetWires1A2.push(l),this.ToffsetWires1A2.push(C);break}break;case 5:t.forEach(a=>{this.offsetWires12.push(a),this.ToffsetWires1B1.push(a)});break;case 6:t.forEach(a=>{this.ToffsetWires1B1.push(a),this.ToffsetWires1B2.push(a)});break;case 7:i.InsulatorPoint.forEach(a=>{const l=p(h,new n.Cartesian3(a.X*-1,a.Y,a.Z),u);this.offsetWires12.push(l),this.ToffsetWires1B2.push(l)});break;case 8:t.forEach(a=>{this.offsetWires13.push(a),this.ToffsetWires1C1.push(a)});break;case 9:t.forEach(a=>{this.ToffsetWires1C1.push(a),this.ToffsetWires1C2.push(a)});break;case 10:i.InsulatorPoint.forEach(a=>{const l=p(h,new n.Cartesian3(a.X*-1,a.Y,a.Z),u);this.offsetWires13.push(l),this.ToffsetWires1C2.push(l)});break}else switch(A){case 2:t.forEach(a=>{this.offsetWires11.push(a)});break;case 3:t.forEach(a=>{this.offsetWires12.push(a)});break;case 4:t.forEach(a=>{this.offsetWires13.push(a)});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 a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires21.push(a),this.ToffsetWires2A2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires21.push(l),this.offsetWires21.push(C),this.ToffsetWires2A2.push(l),this.ToffsetWires2A2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires21.push(w),this.offsetWires21.push(g),this.offsetWires21.push(b),this.offsetWires21.push(T),this.ToffsetWires2A2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires21.push(k),this.offsetWires21.push(M),this.offsetWires21.push(X),this.offsetWires21.push(Y),this.offsetWires21.push(R),this.offsetWires21.push(F),this.offsetWires21.push(D),this.offsetWires21.push(E),this.ToffsetWires2A2.push(k),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(X),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(R),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A2.push(t[0]);break;case c.双分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A2.push(t[2]),this.ToffsetWires2A2.push(t[3]);break;case c.四分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A2.push(t[4]),this.ToffsetWires2A2.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]);break;case c.六分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A2.push(t[6]),this.ToffsetWires2A2.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]);break;case c.八分裂:this.ToffsetWires2A1.push(t[0]),this.ToffsetWires2A1.push(t[1]),this.ToffsetWires2A1.push(t[2]),this.ToffsetWires2A1.push(t[3]),this.ToffsetWires2A1.push(t[4]),this.ToffsetWires2A1.push(t[5]),this.ToffsetWires2A1.push(t[6]),this.ToffsetWires2A1.push(t[7]),this.ToffsetWires2A2.push(t[8]),this.ToffsetWires2A2.push(t[9]),this.ToffsetWires2A2.push(t[10]),this.ToffsetWires2A2.push(t[11]),this.ToffsetWires2A2.push(t[12]),this.ToffsetWires2A2.push(t[13]),this.ToffsetWires2A2.push(t[14]),this.ToffsetWires2A2.push(t[15]);break}break;case H.B相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires22.push(t[0]),this.ToffsetWires2B1.push(t[0]);break;case c.双分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]);break;case c.四分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]);break;case c.六分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]);break;case c.八分裂:this.offsetWires22.push(t[0]),this.offsetWires22.push(t[1]),this.offsetWires22.push(t[2]),this.offsetWires22.push(t[3]),this.offsetWires22.push(t[4]),this.offsetWires22.push(t[5]),this.offsetWires22.push(t[6]),this.offsetWires22.push(t[7]),this.ToffsetWires2B1.push(t[8]),this.ToffsetWires2B1.push(t[9]),this.ToffsetWires2B1.push(t[10]),this.ToffsetWires2B1.push(t[11]),this.ToffsetWires2B1.push(t[12]),this.ToffsetWires2B1.push(t[13]),this.ToffsetWires2B1.push(t[14]),this.ToffsetWires2B1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires22.push(a),this.ToffsetWires2B2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires22.push(l),this.offsetWires22.push(C),this.ToffsetWires2B2.push(l),this.ToffsetWires2B2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires22.push(w),this.offsetWires22.push(g),this.offsetWires22.push(b),this.offsetWires22.push(T),this.ToffsetWires2B2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires22.push(k),this.offsetWires22.push(M),this.offsetWires22.push(X),this.offsetWires22.push(Y),this.offsetWires22.push(R),this.offsetWires22.push(F),this.offsetWires22.push(D),this.offsetWires22.push(E),this.ToffsetWires2B2.push(k),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(X),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(R),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B2.push(t[0]);break;case c.双分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B2.push(t[2]),this.ToffsetWires2B2.push(t[3]);break;case c.四分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B2.push(t[4]),this.ToffsetWires2B2.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]);break;case c.六分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B2.push(t[6]),this.ToffsetWires2B2.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]);break;case c.八分裂:this.ToffsetWires2B1.push(t[0]),this.ToffsetWires2B1.push(t[1]),this.ToffsetWires2B1.push(t[2]),this.ToffsetWires2B1.push(t[3]),this.ToffsetWires2B1.push(t[4]),this.ToffsetWires2B1.push(t[5]),this.ToffsetWires2B1.push(t[6]),this.ToffsetWires2B1.push(t[7]),this.ToffsetWires2B2.push(t[8]),this.ToffsetWires2B2.push(t[9]),this.ToffsetWires2B2.push(t[10]),this.ToffsetWires2B2.push(t[11]),this.ToffsetWires2B2.push(t[12]),this.ToffsetWires2B2.push(t[13]),this.ToffsetWires2B2.push(t[14]),this.ToffsetWires2B2.push(t[15]);break}break;case H.C相:if(i.type==O.耐张串)if(i.WairFX=="进")switch(this.LineInfo.Wairnum){case c.单分裂:this.offsetWires23.push(t[0]),this.ToffsetWires2C1.push(t[0]);break;case c.双分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]);break;case c.四分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]);break;case c.六分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]);break;case c.八分裂:this.offsetWires23.push(t[0]),this.offsetWires23.push(t[1]),this.offsetWires23.push(t[2]),this.offsetWires23.push(t[3]),this.offsetWires23.push(t[4]),this.offsetWires23.push(t[5]),this.offsetWires23.push(t[6]),this.offsetWires23.push(t[7]),this.ToffsetWires2C1.push(t[8]),this.ToffsetWires2C1.push(t[9]),this.ToffsetWires2C1.push(t[10]),this.ToffsetWires2C1.push(t[11]),this.ToffsetWires2C1.push(t[12]),this.ToffsetWires2C1.push(t[13]),this.ToffsetWires2C1.push(t[14]),this.ToffsetWires2C1.push(t[15]);break}else switch(this.LineInfo.Wairnum){case c.单分裂:const a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires23.push(a),this.ToffsetWires2C2.push(a);break;case c.双分裂:const l=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),C=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u);this.offsetWires23.push(l),this.offsetWires23.push(C),this.ToffsetWires2C2.push(l),this.ToffsetWires2C2.push(C);break;case c.四分裂:const w=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u),g=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),b=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),T=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u);this.offsetWires23.push(w),this.offsetWires23.push(g),this.offsetWires23.push(b),this.offsetWires23.push(T),this.ToffsetWires2C2.push(w),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),u),P=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),y=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),m=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),_=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),v=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u);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),u),M=p(h,new n.Cartesian3(i.InsulatorPoint[1].X*-1,i.InsulatorPoint[1].Y,i.InsulatorPoint[1].Z),u),X=p(h,new n.Cartesian3(i.InsulatorPoint[2].X*-1,i.InsulatorPoint[2].Y,i.InsulatorPoint[2].Z),u),Y=p(h,new n.Cartesian3(i.InsulatorPoint[3].X*-1,i.InsulatorPoint[3].Y,i.InsulatorPoint[3].Z),u),R=p(h,new n.Cartesian3(i.InsulatorPoint[4].X*-1,i.InsulatorPoint[4].Y,i.InsulatorPoint[4].Z),u),F=p(h,new n.Cartesian3(i.InsulatorPoint[5].X*-1,i.InsulatorPoint[5].Y,i.InsulatorPoint[5].Z),u),D=p(h,new n.Cartesian3(i.InsulatorPoint[6].X*-1,i.InsulatorPoint[6].Y,i.InsulatorPoint[6].Z),u),E=p(h,new n.Cartesian3(i.InsulatorPoint[7].X*-1,i.InsulatorPoint[7].Y,i.InsulatorPoint[7].Z),u);this.offsetWires23.push(k),this.offsetWires23.push(M),this.offsetWires23.push(X),this.offsetWires23.push(Y),this.offsetWires23.push(R),this.offsetWires23.push(F),this.offsetWires23.push(D),this.offsetWires23.push(E),this.ToffsetWires2C2.push(k),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(X),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(R),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(E);break}else if(i.type==O.跳线串)switch(this.LineInfo.Wairnum){case c.单分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C2.push(t[0]);break;case c.双分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C2.push(t[2]),this.ToffsetWires2C2.push(t[3]);break;case c.四分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C2.push(t[4]),this.ToffsetWires2C2.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]);break;case c.六分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C2.push(t[6]),this.ToffsetWires2C2.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]);break;case c.八分裂:this.ToffsetWires2C1.push(t[0]),this.ToffsetWires2C1.push(t[1]),this.ToffsetWires2C1.push(t[2]),this.ToffsetWires2C1.push(t[3]),this.ToffsetWires2C1.push(t[4]),this.ToffsetWires2C1.push(t[5]),this.ToffsetWires2C1.push(t[6]),this.ToffsetWires2C1.push(t[7]),this.ToffsetWires2C2.push(t[8]),this.ToffsetWires2C2.push(t[9]),this.ToffsetWires2C2.push(t[10]),this.ToffsetWires2C2.push(t[11]),this.ToffsetWires2C2.push(t[12]),this.ToffsetWires2C2.push(t[13]),this.ToffsetWires2C2.push(t[14]),this.ToffsetWires2C2.push(t[15]);break}break}else switch(i.PhaseSequence){case H.A相:t.forEach(a=>{this.offsetWires21.push(a)});break;case H.B相:t.forEach(a=>{this.offsetWires22.push(a)});break;case H.C相:t.forEach(a=>{this.offsetWires23.push(a)});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 a=p(h,new n.Cartesian3(i.InsulatorPoint[0].X*-1,i.InsulatorPoint[0].Y,i.InsulatorPoint[0].Z),u);this.offsetWires21.push(a),this.ToffsetWires2A2.push(a);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),u);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),u);this.offsetWires23.push(C),this.ToffsetWires2C2.push(C);break}else switch(A){case 5:t.forEach(a=>{this.offsetWires21.push(a)});break;case 6:t.forEach(a=>{this.offsetWires22.push(a)});break;case 7:t.forEach(a=>{this.offsetWires23.push(a)});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=[],a=[],l=[],C=[],w=[],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)),a.push(this.offsetWires11[o+2]),a.push(this.offsetWires11[o-2]),this.offsetArcWires1A=f(a),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)),a.push(this.offsetWires11[o+2]),a.push(this.offsetWires11[o-4]),this.offsetArcWires1A=f(a),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)),w.push(this.offsetWires11[o+5]),w.push(this.offsetWires11[o-1]),this.offsetArcWires1A=f(w),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)),a.push(this.offsetWires11[o+2]),a.push(this.offsetWires11[o-6]),this.offsetArcWires1A=f(a),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)),w.push(this.offsetWires11[o+5]),w.push(this.offsetWires11[o-3]),this.offsetArcWires1A=f(w),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=[],a=[],l=[],C=[],w=[],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)),a.push(this.offsetWires12[o+2]),a.push(this.offsetWires12[o-2]),this.offsetArcWires1B=f(a),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)),a.push(this.offsetWires12[o+2]),a.push(this.offsetWires12[o-4]),this.offsetArcWires1B=f(a),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)),w.push(this.offsetWires12[o+5]),w.push(this.offsetWires12[o-1]),this.offsetArcWires1B=f(w),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)),a.push(this.offsetWires12[o+2]),a.push(this.offsetWires12[o-6]),this.offsetArcWires1B=f(a),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)),w.push(this.offsetWires12[o+5]),w.push(this.offsetWires12[o-3]),this.offsetArcWires1B=f(w),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=[],a=[],l=[],C=[],w=[],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)),a.push(this.offsetWires13[o+2]),a.push(this.offsetWires13[o-2]),this.offsetArcWires1C=f(a),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)),a.push(this.offsetWires13[o+2]),a.push(this.offsetWires13[o-4]),this.offsetArcWires1C=f(a),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)),w.push(this.offsetWires13[o+5]),w.push(this.offsetWires13[o-1]),this.offsetArcWires1C=f(w),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)),a.push(this.offsetWires13[o+2]),a.push(this.offsetWires13[o-6]),this.offsetArcWires1C=f(a),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)),w.push(this.offsetWires13[o+5]),w.push(this.offsetWires13[o-3]),this.offsetArcWires1C=f(w),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=[],a=[],l=[],C=[],w=[],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)),a.push(this.offsetWires21[o+2]),a.push(this.offsetWires21[o-2]),this.offsetArcWires2A=f(a),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)),a.push(this.offsetWires21[o+2]),a.push(this.offsetWires21[o-4]),this.offsetArcWires2A=f(a),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)),w.push(this.offsetWires21[o+5]),w.push(this.offsetWires21[o-1]),this.offsetArcWires2A=f(w),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)),a.push(this.offsetWires21[o+2]),a.push(this.offsetWires21[o-6]),this.offsetArcWires2A=f(a),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)),w.push(this.offsetWires21[o+5]),w.push(this.offsetWires21[o-3]),this.offsetArcWires2A=f(w),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=[],a=[],l=[],C=[],w=[],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)),a.push(this.offsetWires22[o+2]),a.push(this.offsetWires22[o-2]),this.offsetArcWires2B=f(a),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)),a.push(this.offsetWires22[o+2]),a.push(this.offsetWires22[o-4]),this.offsetArcWires2B=f(a),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)),w.push(this.offsetWires22[o+5]),w.push(this.offsetWires22[o-1]),this.offsetArcWires2B=f(w),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)),a.push(this.offsetWires22[o+2]),a.push(this.offsetWires22[o-6]),this.offsetArcWires2B=f(a),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)),w.push(this.offsetWires22[o+5]),w.push(this.offsetWires22[o-3]),this.offsetArcWires2B=f(w),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=[],a=[],l=[],C=[],w=[],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)),a.push(this.offsetWires23[o+2]),a.push(this.offsetWires23[o-2]),this.offsetArcWires2C=f(a),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)),a.push(this.offsetWires23[o+2]),a.push(this.offsetWires23[o-4]),this.offsetArcWires2C=f(a),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)),w.push(this.offsetWires23[o+5]),w.push(this.offsetWires23[o-1]),this.offsetArcWires2C=f(w),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)),a.push(this.offsetWires23[o+2]),a.push(this.offsetWires23[o-6]),this.offsetArcWires2C=f(a),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)),w.push(this.offsetWires23[o+5]),w.push(this.offsetWires23[o-3]),this.offsetArcWires2C=f(w),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(a=>{this.arcLine1D1.push(z(this.viewer.scene.globe.ellipsoid,a))}),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=[],a=[],l=[],C=[],w=[],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)),a.push(this.ToffsetWires1A1[e-6]),a.push(this.ToffsetWires1A1[e-2]),this.ToffsetArcWires1A=f(a,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)),a.push(this.ToffsetWires1A1[e-10]),a.push(this.ToffsetWires1A1[e-4]),this.ToffsetArcWires1A=f(a,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)),w.push(this.ToffsetWires1A1[e-7]),w.push(this.ToffsetWires1A1[e-1]),this.ToffsetArcWires1A=f(w,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)),a.push(this.ToffsetWires1A1[e-14]),a.push(this.ToffsetWires1A1[e-6]),this.ToffsetArcWires1A=f(a,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)),w.push(this.ToffsetWires1A1[e-11]),w.push(this.ToffsetWires1A1[e-3]),this.ToffsetArcWires1A=f(w,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=[],a=[],l=[],C=[],w=[],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)),a.push(this.ToffsetWires1B1[e-6]),a.push(this.ToffsetWires1B1[e-2]),this.ToffsetArcWires1B=f(a,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)),a.push(this.ToffsetWires1B1[e-10]),a.push(this.ToffsetWires1B1[e-4]),this.ToffsetArcWires1B=f(a,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)),w.push(this.ToffsetWires1B1[e-7]),w.push(this.ToffsetWires1B1[e-1]),this.ToffsetArcWires1B=f(w,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)),a.push(this.ToffsetWires1B1[e-14]),a.push(this.ToffsetWires1B1[e-6]),this.ToffsetArcWires1B=f(a,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)),w.push(this.ToffsetWires1B1[e-11]),w.push(this.ToffsetWires1B1[e-3]),this.ToffsetArcWires1B=f(w,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=[],a=[],l=[],C=[],w=[],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)),a.push(this.ToffsetWires1C1[e-6]),a.push(this.ToffsetWires1C1[e-2]),this.ToffsetArcWires1C=f(a,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)),a.push(this.ToffsetWires1C1[e-10]),a.push(this.ToffsetWires1C1[e-4]),this.ToffsetArcWires1C=f(a,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)),w.push(this.ToffsetWires1C1[e-7]),w.push(this.ToffsetWires1C1[e-1]),this.ToffsetArcWires1C=f(w,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)),a.push(this.ToffsetWires1C1[e-14]),a.push(this.ToffsetWires1C1[e-6]),this.ToffsetArcWires1C=f(a,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)),w.push(this.ToffsetWires1C1[e-11]),w.push(this.ToffsetWires1C1[e-3]),this.ToffsetArcWires1C=f(w,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=[],a=[],l=[],C=[],w=[],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)),a.push(this.ToffsetWires2A1[e-6]),a.push(this.ToffsetWires2A1[e-2]),this.ToffsetArcWires1A2=f(a,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)),a.push(this.ToffsetWires2A1[e-10]),a.push(this.ToffsetWires2A1[e-4]),this.ToffsetArcWires1A2=f(a,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)),w.push(this.ToffsetWires2A1[e-7]),w.push(this.ToffsetWires2A1[e-1]),this.ToffsetArcWires1A2=f(w,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)),a.push(this.ToffsetWires2A1[e-14]),a.push(this.ToffsetWires2A1[e-6]),this.ToffsetArcWires1A2=f(a,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)),w.push(this.ToffsetWires2A1[e-11]),w.push(this.ToffsetWires2A1[e-3]),this.ToffsetArcWires1A2=f(w,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=[],a=[],l=[],C=[],w=[],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)),a.push(this.ToffsetWires2B1[e-6]),a.push(this.ToffsetWires2B1[e-2]),this.ToffsetArcWires1B2=f(a,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)),a.push(this.ToffsetWires2B1[e-10]),a.push(this.ToffsetWires2B1[e-4]),this.ToffsetArcWires1B2=f(a,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)),w.push(this.ToffsetWires2B1[e-7]),w.push(this.ToffsetWires2B1[e-1]),this.ToffsetArcWires1B2=f(w,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)),a.push(this.ToffsetWires2B1[e-14]),a.push(this.ToffsetWires2B1[e-6]),this.ToffsetArcWires1B2=f(a,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)),w.push(this.ToffsetWires2B1[e-11]),w.push(this.ToffsetWires2B1[e-3]),this.ToffsetArcWires1B2=f(w,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=[],a=[],l=[],C=[],w=[],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)),a.push(this.ToffsetWires2C1[e-6]),a.push(this.ToffsetWires2C1[e-2]),this.ToffsetArcWires1C2=f(a,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)),a.push(this.ToffsetWires2C1[e-10]),a.push(this.ToffsetWires2C1[e-4]),this.ToffsetArcWires1C2=f(a,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)),w.push(this.ToffsetWires2C1[e-7]),w.push(this.ToffsetWires2C1[e-1]),this.ToffsetArcWires1C2=f(w,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)),a.push(this.ToffsetWires2C1[e-14]),a.push(this.ToffsetWires2C1[e-6]),this.ToffsetArcWires1C2=f(a,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)),w.push(this.ToffsetWires2C1[e-11]),w.push(this.ToffsetWires2C1[e-3]),this.ToffsetArcWires1C2=f(w,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}})}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 u=n.defaultValue(s.id,(I=s.primitive)==null?void 0:I.id);if(u instanceof n.Entity)return u}};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-",""),u=(s=this.LineInfo.Trees)==null?void 0:s.find(A=>{var L;return((L=A.id)==null?void 0:L.toString())===I});if(u){const A=[u.lon,u.lat,Number(u.lat||0)+Number(u.treeH||0)];console.log("拾取树木:",u,"坐标:",A),this.calcResult(A)}}},n.ScreenSpaceEventType.LEFT_CLICK),this.viewer.dataSources.add(this.dataSourceplotting),this.entityCollectionplotting.show=!0}removeTreeListen(){this.treeHandler&&(this.treeHandler.destroy(),this.treeHandler=null),this.dataSourceplotting&&(this.viewer.dataSources.remove(this.dataSourceplotting),this.entityCollectionplotting.show=!1)}LineChannelTerrainVerification(){this.LineInfo.Trees.forEach(o=>{if(o){const e=[o.lon,o.lat,Number(o.alt||0)+Number(o.treeH||0)];this.calcResult(e)}}),this.viewer.dataSources.add(this.dataSourceplotting)}clearTreeDistanceResults(){this.removeTreeListen()}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}loadtreeModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSourcetree),this.viewer.entities.show)}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 Qs{constructor(){d(this,"id","");d(this,"name","");d(this,"towerFZinfo","");d(this,"towerDisFile","");d(this,"stressFileContent","");d(this,"streesistrue",0);d(this,"TowerMemberColor","#FFFFFF");d(this,"TowerMembersWidth",2);d(this,"Longitude",0);d(this,"Latitude",0);d(this,"Altitude",0);d(this,"RollX",0);d(this,"RollY",90);d(this,"RollZ",0)}}function xs(a){debugger;const o=a.split(`
14
- `),e=[],h=[],s=/^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,I=/^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;for(const u of o){const A=u.trim();if(!A)continue;const L=A.match(s);if(L){e.push({id:parseInt(L[1]),x:parseFloat(L[2]),y:parseFloat(L[3]),z:parseFloat(L[4]),flag:parseInt(L[5])});continue}const i=A.match(I);i&&h.push({from:parseInt(i[1]),to:parseInt(i[2]),type:parseInt(i[3])})}return{TowerNodes:e,connections:h}}function st(a){const o=a.split(`
15
- `),e=[];for(const h of o){if(!h.trim())continue;const s=h.trim().split(/\s+/).filter(A=>A!==""),I=parseInt(s[0]);if(isNaN(I))continue;const u=[];for(let A=1;A<s.length;A+=3){const L=parseFloat(s[A]),i=parseFloat(s[A+1]),t=parseFloat(s[A+2]);if(!isNaN(L)&&!isNaN(i)&&!isNaN(t)){const W=Math.floor((A-1)/3)+1;u.push({timeStep:W,x:L,y:i,z:t})}}e.push({nodeId:I,displacements:u})}return e}function Ps(a){const o={};return a.forEach(e=>{e.displacements.forEach(h=>{o[h.timeStep]||(o[h.timeStep]=[]),o[h.timeStep].push({nodeId:e.nodeId,...h})})}),o}function tt(a){const o=a.split(`
16
- `),e=[];for(const s of o){if(!s.trim())continue;const I=s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);if(I){const u=I[1].replace(/\s+/g,""),A=I[2].trim().split(/\s+/).map(Number);e.push({elementId:u,stressRatios:A})}}const h=[];if(e.length>0){const s=e[0].stressRatios.length;for(let I=0;I<s;I++){const u={timeIndex:I,elements:[]};for(const A of e){let L;const i=A.stressRatios[I];i>1?L=Z.Color.RED:i>.95&&i<=1?L=Z.Color.PINK:i>.85&&i<=.95?L=Z.Color.YELLOW:i>.7&&i<=.85?L=Z.Color.GREEN:L=Z.Color.BLUE,u.elements.push({elementId:A.elementId,stressRatio:i,ylbColor:L})}h.push(u)}}return{byElement:e,byTime:h}}class ys{constructor(o){d(this,"viewer");d(this,"lines",[]);this.viewer=o}addLine(o,e){const h=_s(this.viewer,o,e);return this.lines.push(h),h}removeAll(){this.lines.forEach(o=>this.viewer.entities.remove(o)),this.lines=[]}}var gs={exports:{}};(function(a,o){(function(e,h){h()})(ss,function(){function e(i,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(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}function h(i,t,W){var l=new XMLHttpRequest;l.open("GET",i),l.responseType="blob",l.onload=function(){L(l.response,t,W)},l.onerror=function(){console.error("could not download file")},l.send()}function s(i){var t=new XMLHttpRequest;t.open("HEAD",i,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function I(i){try{i.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),i.dispatchEvent(t)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ss=="object"&&ss.global===ss?ss:void 0,A=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),L=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!A?function(i,t,W){var l=u.URL||u.webkitURL,C=document.createElement("a");t=t||i.name||"download",C.download=t,C.rel="noopener",typeof i=="string"?(C.href=i,C.origin===location.origin?I(C):s(C.href)?h(i,t,W):I(C,C.target="_blank")):(C.href=l.createObjectURL(i),setTimeout(function(){l.revokeObjectURL(C.href)},4e4),setTimeout(function(){I(C)},0))}:"msSaveOrOpenBlob"in navigator?function(i,t,W){if(t=t||i.name||"download",typeof i!="string")navigator.msSaveOrOpenBlob(e(i,W),t);else if(s(i))h(i,t,W);else{var l=document.createElement("a");l.href=i,l.target="_blank",setTimeout(function(){I(l)})}}:function(i,t,W,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof i=="string")return h(i,t,W);var C=i.type==="application/octet-stream",w=/constructor/i.test(u.HTMLElement)||u.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||C&&w||A)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var P=b.result;P=g?P:P.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=P:location=P,l=null},b.readAsDataURL(i)}else{var T=u.URL||u.webkitURL,B=T.createObjectURL(i);l?l.location=B:location.href=B,l=null,setTimeout(function(){T.revokeObjectURL(B)},4e4)}});u.saveAs=L.saveAs=L,a.exports=L})})(gs);var Ws=gs.exports;const bs=require("shp-write");class it{constructor(o,e,h){d(this,"towerNodes",[]);d(this,"connections",[]);d(this,"towerFZS");this.towerNodes=o,this.connections=e,this.towerFZS=h}async exportTowerToSHP(){try{const o=await this.generatePointFeatures(),e=await this.generateLineFeatures();await this.generateSHPFiles(o,e),console.log("SHP文件导出成功")}catch(o){console.error("导出SHP文件失败:",o)}}async generatePointFeatures(){const o=[],e=new n.HeadingPitchRoll(n.Math.toRadians(this.towerFZS.RollX),this.towerFZS.RollY,this.towerFZS.RollZ),h=n.Cartesian3.fromDegrees(this.towerFZS.Longitude,this.towerFZS.Latitude,this.towerFZS.Altitude);for(const s of this.towerNodes){const I=new n.Cartesian3(s.x,s.y,s.z),u=this.getPositionByHprAndOffset(h,I,e),A=n.Ellipsoid.WGS84.cartesianToCartographic(u),L=n.Math.toDegrees(A.longitude),i=n.Math.toDegrees(A.latitude),t=A.height,W={type:"Feature",geometry:{type:"Point",coordinates:[L,i]},properties:{id:s.id,node_id:s.id,x:s.x,y:s.y,z:s.z,longitude:L,latitude:i,height:t,elevation:t,type:"tower_node"}};o.push(W)}return o}async generateLineFeatures(){const o=[],e=new n.HeadingPitchRoll(n.Math.toRadians(this.towerFZS.RollX),this.towerFZS.RollY,this.towerFZS.RollZ),h=n.Cartesian3.fromDegrees(this.towerFZS.Longitude,this.towerFZS.Latitude,this.towerFZS.Altitude);for(const s of this.connections){const I=this.towerNodes.find(y=>y.id===s.from),u=this.towerNodes.find(y=>y.id===s.to);if(!I||!u)continue;const A=new n.Cartesian3(I.x,I.y,I.z),L=new n.Cartesian3(u.x,u.y,u.z),i=this.getPositionByHprAndOffset(h,A,e),t=this.getPositionByHprAndOffset(h,L,e),W=n.Ellipsoid.WGS84.cartesianToCartographic(i),l=n.Ellipsoid.WGS84.cartesianToCartographic(t),C=n.Math.toDegrees(W.longitude),w=n.Math.toDegrees(W.latitude),g=W.height,b=n.Math.toDegrees(l.longitude),T=n.Math.toDegrees(l.latitude),B=l.height,P={type:"Feature",geometry:{type:"LineString",coordinates:[[C,w],[b,T]]},properties:{id:`${s.from}-${s.to}`,from_node:s.from,to_node:s.to,from_height:g,to_height:B,avg_height:(g+B)/2,length:this.calculateDistance(i,t),type:"tower_member",width:this.towerFZS.TowerMembersWidth,from_longitude:C,from_latitude:w,to_longitude:b,to_latitude:T}};o.push(P)}return o}async generateSHPFiles(o,e){try{if(o.length>0){const h={type:"FeatureCollection",features:o},s=bs.point(h);this.downloadSHPFiles(s,"tower_nodes")}if(e.length>0){const h={type:"FeatureCollection",features:e},s=bs.line(h);this.downloadSHPFiles(s,"tower_members")}}catch(h){console.error("生成SHP文件时出错:",h),await this.alternativeExport(o,e)}}downloadSHPFiles(o,e){const h=new Blob([o],{type:"application/zip"});Ws.saveAs(h,`${e}.zip`)}async alternativeExport(o,e){if(console.log("使用备用方案导出为GeoJSON格式"),o.length>0){const h={type:"FeatureCollection",features:o};this.downloadJSON(h,"tower_nodes.geojson")}if(e.length>0){const h={type:"FeatureCollection",features:e};this.downloadJSON(h,"tower_members.geojson")}}downloadJSON(o,e){const h=new Blob([JSON.stringify(o,null,2)],{type:"application/json"});Ws.saveAs(h,e)}calculateDistance(o,e){return n.Cartesian3.distance(o,e)}getPositionByHprAndOffset(o,e,h){const s=n.Transforms.headingPitchRollToFixedFrame(o,h);return n.Matrix4.multiplyByPoint(s,e,new n.Cartesian3)}}class et{static async exportToCSV(o,e,h){const s=this.exportNodesToCSV(o,h);this.downloadCSV(s,"tower_nodes.csv");const I=this.exportConnectionsToCSV(e,o,h);this.downloadCSV(I,"tower_connections.csv")}static exportNodesToCSV(o,e){let h=`ID,X,Y,Z,Longitude,Latitude,Height
17
- `;const s=new n.HeadingPitchRoll(n.Math.toRadians(e.RollX),e.RollY,e.RollZ),I=n.Cartesian3.fromDegrees(e.Longitude,e.Latitude,e.Altitude);return o.forEach(u=>{const A=new n.Cartesian3(u.x,u.y,u.z),L=this.getPositionByHprAndOffset(I,A,s),i=n.Ellipsoid.WGS84.cartesianToCartographic(L),t=n.Math.toDegrees(i.longitude),W=n.Math.toDegrees(i.latitude),l=i.height;h+=`${u.id},${u.x},${u.y},${u.z},${t},${W},${l}
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 Qs{constructor(){d(this,"id","");d(this,"name","");d(this,"towerFZinfo","");d(this,"towerDisFile","");d(this,"stressFileContent","");d(this,"streesistrue",0);d(this,"TowerMemberColor","#FFFFFF");d(this,"TowerMembersWidth",2);d(this,"Longitude",0);d(this,"Latitude",0);d(this,"Altitude",0);d(this,"RollX",0);d(this,"RollY",90);d(this,"RollZ",0)}}function xs(W){debugger;const o=W.split(`
14
+ `),e=[],h=[],s=/^\s*(\d+)\s+([\d.-]+)\s+([\d.-]+)\s+([\d.-]+)\s+(-?\d+)/,I=/^\s*(\d+)\s+(\d+)\s+(\d+)\s*(?:#|$)/;for(const u of o){const A=u.trim();if(!A)continue;const L=A.match(s);if(L){e.push({id:parseInt(L[1]),x:parseFloat(L[2]),y:parseFloat(L[3]),z:parseFloat(L[4]),flag:parseInt(L[5])});continue}const i=A.match(I);i&&h.push({from:parseInt(i[1]),to:parseInt(i[2]),type:parseInt(i[3])})}return{TowerNodes:e,connections:h}}function st(W){const o=W.split(`
15
+ `),e=[];for(const h of o){if(!h.trim())continue;const s=h.trim().split(/\s+/).filter(A=>A!==""),I=parseInt(s[0]);if(isNaN(I))continue;const u=[];for(let A=1;A<s.length;A+=3){const L=parseFloat(s[A]),i=parseFloat(s[A+1]),t=parseFloat(s[A+2]);if(!isNaN(L)&&!isNaN(i)&&!isNaN(t)){const a=Math.floor((A-1)/3)+1;u.push({timeStep:a,x:L,y:i,z:t})}}e.push({nodeId:I,displacements:u})}return e}function Ps(W){const o={};return W.forEach(e=>{e.displacements.forEach(h=>{o[h.timeStep]||(o[h.timeStep]=[]),o[h.timeStep].push({nodeId:e.nodeId,...h})})}),o}function tt(W){const o=W.split(`
16
+ `),e=[];for(const s of o){if(!s.trim())continue;const I=s.match(/^\s*(\d+-\s*\d+)\s+((?:\d+\.\d+\s*)+)/);if(I){const u=I[1].replace(/\s+/g,""),A=I[2].trim().split(/\s+/).map(Number);e.push({elementId:u,stressRatios:A})}}const h=[];if(e.length>0){const s=e[0].stressRatios.length;for(let I=0;I<s;I++){const u={timeIndex:I,elements:[]};for(const A of e){let L;const i=A.stressRatios[I];i>1?L=Z.Color.RED:i>.95&&i<=1?L=Z.Color.PINK:i>.85&&i<=.95?L=Z.Color.YELLOW:i>.7&&i<=.85?L=Z.Color.GREEN:L=Z.Color.BLUE,u.elements.push({elementId:A.elementId,stressRatio:i,ylbColor:L})}h.push(u)}}return{byElement:e,byTime:h}}class ys{constructor(o){d(this,"viewer");d(this,"lines",[]);this.viewer=o}addLine(o,e){const h=_s(this.viewer,o,e);return this.lines.push(h),h}removeAll(){this.lines.forEach(o=>this.viewer.entities.remove(o)),this.lines=[]}}var gs={exports:{}};(function(W,o){(function(e,h){h()})(ss,function(){function e(i,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(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}function h(i,t,a){var l=new XMLHttpRequest;l.open("GET",i),l.responseType="blob",l.onload=function(){L(l.response,t,a)},l.onerror=function(){console.error("could not download file")},l.send()}function s(i){var t=new XMLHttpRequest;t.open("HEAD",i,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function I(i){try{i.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),i.dispatchEvent(t)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ss=="object"&&ss.global===ss?ss:void 0,A=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),L=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!A?function(i,t,a){var l=u.URL||u.webkitURL,C=document.createElement("a");t=t||i.name||"download",C.download=t,C.rel="noopener",typeof i=="string"?(C.href=i,C.origin===location.origin?I(C):s(C.href)?h(i,t,a):I(C,C.target="_blank")):(C.href=l.createObjectURL(i),setTimeout(function(){l.revokeObjectURL(C.href)},4e4),setTimeout(function(){I(C)},0))}:"msSaveOrOpenBlob"in navigator?function(i,t,a){if(t=t||i.name||"download",typeof i!="string")navigator.msSaveOrOpenBlob(e(i,a),t);else if(s(i))h(i,t,a);else{var l=document.createElement("a");l.href=i,l.target="_blank",setTimeout(function(){I(l)})}}:function(i,t,a,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof i=="string")return h(i,t,a);var C=i.type==="application/octet-stream",w=/constructor/i.test(u.HTMLElement)||u.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||C&&w||A)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var P=b.result;P=g?P:P.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=P:location=P,l=null},b.readAsDataURL(i)}else{var T=u.URL||u.webkitURL,B=T.createObjectURL(i);l?l.location=B:location.href=B,l=null,setTimeout(function(){T.revokeObjectURL(B)},4e4)}});u.saveAs=L.saveAs=L,W.exports=L})})(gs);var as=gs.exports;const bs=require("shp-write");class it{constructor(o,e,h){d(this,"towerNodes",[]);d(this,"connections",[]);d(this,"towerFZS");this.towerNodes=o,this.connections=e,this.towerFZS=h}async exportTowerToSHP(){try{const o=await this.generatePointFeatures(),e=await this.generateLineFeatures();await this.generateSHPFiles(o,e),console.log("SHP文件导出成功")}catch(o){console.error("导出SHP文件失败:",o)}}async generatePointFeatures(){const o=[],e=new n.HeadingPitchRoll(n.Math.toRadians(this.towerFZS.RollX),this.towerFZS.RollY,this.towerFZS.RollZ),h=n.Cartesian3.fromDegrees(this.towerFZS.Longitude,this.towerFZS.Latitude,this.towerFZS.Altitude);for(const s of this.towerNodes){const I=new n.Cartesian3(s.x,s.y,s.z),u=this.getPositionByHprAndOffset(h,I,e),A=n.Ellipsoid.WGS84.cartesianToCartographic(u),L=n.Math.toDegrees(A.longitude),i=n.Math.toDegrees(A.latitude),t=A.height,a={type:"Feature",geometry:{type:"Point",coordinates:[L,i]},properties:{id:s.id,node_id:s.id,x:s.x,y:s.y,z:s.z,longitude:L,latitude:i,height:t,elevation:t,type:"tower_node"}};o.push(a)}return o}async generateLineFeatures(){const o=[],e=new n.HeadingPitchRoll(n.Math.toRadians(this.towerFZS.RollX),this.towerFZS.RollY,this.towerFZS.RollZ),h=n.Cartesian3.fromDegrees(this.towerFZS.Longitude,this.towerFZS.Latitude,this.towerFZS.Altitude);for(const s of this.connections){const I=this.towerNodes.find(y=>y.id===s.from),u=this.towerNodes.find(y=>y.id===s.to);if(!I||!u)continue;const A=new n.Cartesian3(I.x,I.y,I.z),L=new n.Cartesian3(u.x,u.y,u.z),i=this.getPositionByHprAndOffset(h,A,e),t=this.getPositionByHprAndOffset(h,L,e),a=n.Ellipsoid.WGS84.cartesianToCartographic(i),l=n.Ellipsoid.WGS84.cartesianToCartographic(t),C=n.Math.toDegrees(a.longitude),w=n.Math.toDegrees(a.latitude),g=a.height,b=n.Math.toDegrees(l.longitude),T=n.Math.toDegrees(l.latitude),B=l.height,P={type:"Feature",geometry:{type:"LineString",coordinates:[[C,w],[b,T]]},properties:{id:`${s.from}-${s.to}`,from_node:s.from,to_node:s.to,from_height:g,to_height:B,avg_height:(g+B)/2,length:this.calculateDistance(i,t),type:"tower_member",width:this.towerFZS.TowerMembersWidth,from_longitude:C,from_latitude:w,to_longitude:b,to_latitude:T}};o.push(P)}return o}async generateSHPFiles(o,e){try{if(o.length>0){const h={type:"FeatureCollection",features:o},s=bs.point(h);this.downloadSHPFiles(s,"tower_nodes")}if(e.length>0){const h={type:"FeatureCollection",features:e},s=bs.line(h);this.downloadSHPFiles(s,"tower_members")}}catch(h){console.error("生成SHP文件时出错:",h),await this.alternativeExport(o,e)}}downloadSHPFiles(o,e){const h=new Blob([o],{type:"application/zip"});as.saveAs(h,`${e}.zip`)}async alternativeExport(o,e){if(console.log("使用备用方案导出为GeoJSON格式"),o.length>0){const h={type:"FeatureCollection",features:o};this.downloadJSON(h,"tower_nodes.geojson")}if(e.length>0){const h={type:"FeatureCollection",features:e};this.downloadJSON(h,"tower_members.geojson")}}downloadJSON(o,e){const h=new Blob([JSON.stringify(o,null,2)],{type:"application/json"});as.saveAs(h,e)}calculateDistance(o,e){return n.Cartesian3.distance(o,e)}getPositionByHprAndOffset(o,e,h){const s=n.Transforms.headingPitchRollToFixedFrame(o,h);return n.Matrix4.multiplyByPoint(s,e,new n.Cartesian3)}}class et{static async exportToCSV(o,e,h){const s=this.exportNodesToCSV(o,h);this.downloadCSV(s,"tower_nodes.csv");const I=this.exportConnectionsToCSV(e,o,h);this.downloadCSV(I,"tower_connections.csv")}static exportNodesToCSV(o,e){let h=`ID,X,Y,Z,Longitude,Latitude,Height
17
+ `;const s=new n.HeadingPitchRoll(n.Math.toRadians(e.RollX),e.RollY,e.RollZ),I=n.Cartesian3.fromDegrees(e.Longitude,e.Latitude,e.Altitude);return o.forEach(u=>{const A=new n.Cartesian3(u.x,u.y,u.z),L=this.getPositionByHprAndOffset(I,A,s),i=n.Ellipsoid.WGS84.cartesianToCartographic(L),t=n.Math.toDegrees(i.longitude),a=n.Math.toDegrees(i.latitude),l=i.height;h+=`${u.id},${u.x},${u.y},${u.z},${t},${a},${l}
18
18
  `}),h}static exportConnectionsToCSV(o,e,h){let s=`FromNode,ToNode,FromX,FromY,FromZ,ToX,ToY,ToZ,Length
19
- `;const I=new n.HeadingPitchRoll(n.Math.toRadians(h.RollX),h.RollY,h.RollZ),u=n.Cartesian3.fromDegrees(h.Longitude,h.Latitude,h.Altitude);return o.forEach(A=>{const L=e.find(g=>g.id===A.from),i=e.find(g=>g.id===A.to);if(!L||!i)return;const t=new n.Cartesian3(L.x,L.y,L.z),W=new n.Cartesian3(i.x,i.y,i.z),l=this.getPositionByHprAndOffset(u,t,I),C=this.getPositionByHprAndOffset(u,W,I),w=n.Cartesian3.distance(l,C);s+=`${A.from},${A.to},${L.x},${L.y},${L.z},${i.x},${i.y},${i.z},${w}
20
- `}),s}static downloadCSV(o,e){const h=new Blob([o],{type:"text/csv;charset=utf-8;"});Ws.saveAs(h,e)}static getPositionByHprAndOffset(o,e,h){const s=n.Transforms.headingPitchRollToFixedFrame(o,h);return n.Matrix4.multiplyByPoint(s,e,new n.Cartesian3)}}class ot{constructor(o,e,h){d(this,"viewer");d(this,"TowerFZS");d(this,"Keym","");d(this,"dataSource2");d(this,"entityCollection2");d(this,"pointEntities",[]);d(this,"TowerLineManager");d(this,"TowerNodes",[]);d(this,"connections",[]);d(this,"displacementData",[]);d(this,"byTimes",[]);d(this,"_animationInterval",null);this.Keym=h,this.viewer=o,this.TowerFZS=e,this.dataSource2=new n.CustomDataSource(this.TowerFZS.id),this.entityCollection2=this.dataSource2.entities,this.TowerLineManager=new ys(this.viewer)}initSHPExporter(){}loadfile(){if(this.Keym!="OW_JPS_EEngin_001")return;const{TowerNodes:o,connections:e}=xs(this.TowerFZS.towerFZinfo);this.TowerNodes=o,this.connections=e,this.displacementData=st(this.TowerFZS.towerDisFile);const{byTime:h}=tt(this.TowerFZS.stressFileContent);this.byTimes=h;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 e=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(h=>{const s=this.TowerNodes.find(W=>W.id===h.from),I=this.TowerNodes.find(W=>W.id===h.to),u=[],A=new n.Cartesian3(s==null?void 0:s.x,s==null?void 0:s.y,s==null?void 0:s.z);u.push(p(e,A,o));const L=is(this.viewer,u[0],(s==null?void 0:s.id)+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(L);const i=new n.Cartesian3(I==null?void 0:I.x,I==null?void 0:I.y,I==null?void 0:I.z);u.push(p(e,i,o));const t=is(this.viewer,u[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(u)}),this.initSHPExporter()}async exportToSHP(){await new it(this.TowerNodes,this.connections,this.TowerFZS).exportTowerToSHP()}async exportToCSV(){await et.exportToCSV(this.TowerNodes,this.connections,this.TowerFZS)}loadFZDISTower(o){if(this.Keym!=="OW_JPS_EEngin_001")return;const h=Ps(this.displacementData)[o],s=this.byTimes.find(A=>A.timeIndex===o);debugger;if(!h){console.warn(`未找到时间步 ${o} 的位移数据`);return}const I=new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ),u=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(A=>{const L=this.TowerNodes.find(m=>m.id===A.from),i=this.TowerNodes.find(m=>m.id===A.to);if(!L||!i){console.warn(`找不到连接 ${A.from}->${A.to} 的节点`);return}debugger;const t=h.find(m=>m.nodeId===A.from),W=h.find(m=>m.nodeId===A.to);if(!t||!W){console.warn(`找不到连接 ${A.from}->${A.to} 的位移数据`);return}const l=new n.Cartesian3(L.x-t.x,L.y-t.y,L.z-t.z),C=new n.Cartesian3(i.x-W.x,i.y-W.y,i.z-W.z),w=p(u,l,I),g=is(this.viewer,w,A.from+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(g);const b=p(u,C,I),T=is(this.viewer,b,A.to+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(T);const B=[w,b],P=A.from+"-"+A.to,y=s==null?void 0:s.elements.find(m=>m.elementId===P);debugger;this.TowerLineManager.addLine(B,{color:y==null?void 0:y.ylbColor,width:3,clampToGround:!1,zIndex:0,dashed:!1,dashLength:10})})}loadFZDISTower1(o){if(this.Keym!="OW_JPS_EEngin_001")return;const e=Ps(this.displacementData);let h=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(I=>{const u=this.TowerNodes.find(C=>C.id===I.from),A=e[o].find(C=>C.nodeId===I.from),L=this.TowerNodes.find(C=>C.id===I.to),i=e[o].find(C=>C.nodeId===I.to),t=[],W=new n.Cartesian3(u.x-A.x,u.y-A.y,u.z-A.z);t.push(p(s,W,h));const l=new n.Cartesian3(L.x-i.x,L.y-i.y,L.z-i.z);t.push(p(s,l,h));debugger;this.entityCollection2.add(r(t,I.from+""+I.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 e=this.displacementData.length;this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null);const h=()=>{if(this.viewer.dataSources.contains(this.dataSource2)&&this.viewer.dataSources.remove(this.dataSource2,!0),o>e){o=1;return}this.dataSource2=new n.CustomDataSource("fztower"),this.entityCollection2=this.dataSource2.entities;try{this.loadFZDISTower(o),this.loadFZModel(),console.log(`正在显示位移帧: ${o}/${e}`),o++}catch(s){console.error("加载位移帧时出错:",s),this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null)}};h(),this._animationInterval=setInterval(h,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=Vs,S.InsulatorInfo=Us,S.InsulatorType=O,S.LineManager=ys,S.LineNum=ts,S.LineType=Bs,S.OWEEgineFZManager=ot,S.OWEEgineManager=js,S.PhaseSType=H,S.TowerFZInfo=Qs,S.TowerInfo=Ks,S.TowerLineInfo=Js,S.TowerType=J,S.WairnumType=c,S.drawModel=K,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
19
+ `;const I=new n.HeadingPitchRoll(n.Math.toRadians(h.RollX),h.RollY,h.RollZ),u=n.Cartesian3.fromDegrees(h.Longitude,h.Latitude,h.Altitude);return o.forEach(A=>{const L=e.find(g=>g.id===A.from),i=e.find(g=>g.id===A.to);if(!L||!i)return;const t=new n.Cartesian3(L.x,L.y,L.z),a=new n.Cartesian3(i.x,i.y,i.z),l=this.getPositionByHprAndOffset(u,t,I),C=this.getPositionByHprAndOffset(u,a,I),w=n.Cartesian3.distance(l,C);s+=`${A.from},${A.to},${L.x},${L.y},${L.z},${i.x},${i.y},${i.z},${w}
20
+ `}),s}static downloadCSV(o,e){const h=new Blob([o],{type:"text/csv;charset=utf-8;"});as.saveAs(h,e)}static getPositionByHprAndOffset(o,e,h){const s=n.Transforms.headingPitchRollToFixedFrame(o,h);return n.Matrix4.multiplyByPoint(s,e,new n.Cartesian3)}}class ot{constructor(o,e,h){d(this,"viewer");d(this,"TowerFZS");d(this,"Keym","");d(this,"dataSource2");d(this,"entityCollection2");d(this,"pointEntities",[]);d(this,"TowerLineManager");d(this,"TowerNodes",[]);d(this,"connections",[]);d(this,"displacementData",[]);d(this,"byTimes",[]);d(this,"_animationInterval",null);this.Keym=h,this.viewer=o,this.TowerFZS=e,this.dataSource2=new n.CustomDataSource(this.TowerFZS.id),this.entityCollection2=this.dataSource2.entities,this.TowerLineManager=new ys(this.viewer)}initSHPExporter(){}loadfile(){if(this.Keym!="OW_JPS_EEngin_001")return;const{TowerNodes:o,connections:e}=xs(this.TowerFZS.towerFZinfo);this.TowerNodes=o,this.connections=e,this.displacementData=st(this.TowerFZS.towerDisFile);const{byTime:h}=tt(this.TowerFZS.stressFileContent);this.byTimes=h;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 e=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(h=>{const s=this.TowerNodes.find(a=>a.id===h.from),I=this.TowerNodes.find(a=>a.id===h.to),u=[],A=new n.Cartesian3(s==null?void 0:s.x,s==null?void 0:s.y,s==null?void 0:s.z);u.push(p(e,A,o));const L=is(this.viewer,u[0],(s==null?void 0:s.id)+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(L);const i=new n.Cartesian3(I==null?void 0:I.x,I==null?void 0:I.y,I==null?void 0:I.z);u.push(p(e,i,o));const t=is(this.viewer,u[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(u)}),this.initSHPExporter()}async exportToSHP(){await new it(this.TowerNodes,this.connections,this.TowerFZS).exportTowerToSHP()}async exportToCSV(){await et.exportToCSV(this.TowerNodes,this.connections,this.TowerFZS)}loadFZDISTower(o){if(this.Keym!=="OW_JPS_EEngin_001")return;const h=Ps(this.displacementData)[o],s=this.byTimes.find(A=>A.timeIndex===o);debugger;if(!h){console.warn(`未找到时间步 ${o} 的位移数据`);return}const I=new n.HeadingPitchRoll(n.Math.toRadians(this.TowerFZS.RollX),this.TowerFZS.RollY,this.TowerFZS.RollZ),u=n.Cartesian3.fromDegrees(this.TowerFZS.Longitude,this.TowerFZS.Latitude,this.TowerFZS.Altitude);this.connections.forEach(A=>{const L=this.TowerNodes.find(m=>m.id===A.from),i=this.TowerNodes.find(m=>m.id===A.to);if(!L||!i){console.warn(`找不到连接 ${A.from}->${A.to} 的节点`);return}debugger;const t=h.find(m=>m.nodeId===A.from),a=h.find(m=>m.nodeId===A.to);if(!t||!a){console.warn(`找不到连接 ${A.from}->${A.to} 的位移数据`);return}const l=new n.Cartesian3(L.x-t.x,L.y-t.y,L.z-t.z),C=new n.Cartesian3(i.x-a.x,i.y-a.y,i.z-a.z),w=p(u,l,I),g=is(this.viewer,w,A.from+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(g);const b=p(u,C,I),T=is(this.viewer,b,A.to+"",{pointColor:n.Color.RED,labelColor:n.Color.GOLD,fontSize:18,pixelOffset:[0,-30]});this.pointEntities.push(T);const B=[w,b],P=A.from+"-"+A.to,y=s==null?void 0:s.elements.find(m=>m.elementId===P);debugger;this.TowerLineManager.addLine(B,{color:y==null?void 0:y.ylbColor,width:3,clampToGround:!1,zIndex:0,dashed:!1,dashLength:10})})}loadFZDISTower1(o){if(this.Keym!="OW_JPS_EEngin_001")return;const e=Ps(this.displacementData);let h=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(I=>{const u=this.TowerNodes.find(C=>C.id===I.from),A=e[o].find(C=>C.nodeId===I.from),L=this.TowerNodes.find(C=>C.id===I.to),i=e[o].find(C=>C.nodeId===I.to),t=[],a=new n.Cartesian3(u.x-A.x,u.y-A.y,u.z-A.z);t.push(p(s,a,h));const l=new n.Cartesian3(L.x-i.x,L.y-i.y,L.z-i.z);t.push(p(s,l,h));debugger;this.entityCollection2.add(r(t,I.from+""+I.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 e=this.displacementData.length;this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null);const h=()=>{if(this.viewer.dataSources.contains(this.dataSource2)&&this.viewer.dataSources.remove(this.dataSource2,!0),o>e){o=1;return}this.dataSource2=new n.CustomDataSource("fztower"),this.entityCollection2=this.dataSource2.entities;try{this.loadFZDISTower(o),this.loadFZModel(),console.log(`正在显示位移帧: ${o}/${e}`),o++}catch(s){console.error("加载位移帧时出错:",s),this._animationInterval&&(clearInterval(this._animationInterval),this._animationInterval=null)}};h(),this._animationInterval=setInterval(h,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=Vs,S.InsulatorInfo=Us,S.InsulatorType=O,S.LineManager=ys,S.LineNum=ts,S.LineType=Bs,S.OWEEgineFZManager=ot,S.OWEEgineManager=js,S.PhaseSType=H,S.TowerFZInfo=Qs,S.TowerInfo=Ks,S.TowerLineInfo=Js,S.TowerType=J,S.WairnumType=c,S.drawModel=K,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ow-eengine-power",
3
3
  "private": false,
4
- "version": "2.3.3",
4
+ "version": "2.3.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",