From f373e0c0797e1800bf066fdfbb748bb9242230f6 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期二, 08 七月 2025 17:46:02 +0800
Subject: [PATCH] 泥位计

---
 public/CimSDK/Workers/chunk-FU7ULJPM.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/public/CimSDK/Workers/chunk-FU7ULJPM.js b/public/CimSDK/Workers/chunk-FU7ULJPM.js
new file mode 100644
index 0000000..7aec154
--- /dev/null
+++ b/public/CimSDK/Workers/chunk-FU7ULJPM.js
@@ -0,0 +1,6 @@
+/**
+ * SmartEarth WebSDK - https://websdk.terra-it.cn
+ * Version 5.4.1
+ */
+
+import{f as N}from"./chunk-RQCJJCAO.js";import{b as n,f as b}from"./chunk-UMC5CP2H.js";import{a as V}from"./chunk-72V3KRTJ.js";var C={},q=new n,L=new n,Q=new N,G=new b;C.pointOnEllipsoid=function(l,y,x,I,w,O,S,m,z,i){return A(l,y,x,I,w,O,S,m,z,i)};function A(l,y,x,I,w,O,S,m,z,i){let a=l+y;n.multiplyByScalar(I,Math.cos(a),q),n.multiplyByScalar(x,Math.sin(a),L),n.add(q,L,q);let f=Math.cos(l);f=f*f;let u=Math.sin(l);u=u*u;let h=O/Math.sqrt(S*f+w*u)/m;return N.fromAxisAngle(q,h,Q),b.fromQuaternion(Q,G),b.multiplyByVector(G,z,i),n.normalize(i,i),n.multiplyByScalar(i,m,i),i}var U=new n,Z=new n,j=new n,v=new n;C.raisePositionsToHeight=function(l,y,x){let I=y.ellipsoid,w=y.height,O=y.extrudedHeight,S=x?l.length/3*2:l.length/3,m=new Float64Array(S*3),z=l.length,i=x?z:0;for(let a=0;a<z;a+=3){let f=a+1,u=a+2,r=n.fromArray(l,a,U);I.scaleToGeodeticSurface(r,r);let h=n.clone(r,Z),M=I.geodeticSurfaceNormal(r,v),T=n.multiplyByScalar(M,w,j);n.add(r,T,r),x&&(n.multiplyByScalar(M,O,T),n.add(h,T,h),m[a+i]=h.x,m[f+i]=h.y,m[u+i]=h.z),m[a]=r.x,m[f]=r.y,m[u]=r.z}return m};var D=new n,J=new n,K=new n;C.computeEllipsePositions=function(l,y,x){let I=l.semiMinorAxis,w=l.semiMajorAxis,O=l.rotation,S=l.center,m=l.granularity*8,z=I*I,i=w*w,a=w*I,f=n.magnitude(S),u=n.normalize(S,D),r=n.cross(n.UNIT_Z,S,J);r=n.normalize(r,r);let h=n.cross(u,r,K),M=1+Math.ceil(V.PI_OVER_TWO/m),T=V.PI_OVER_TWO/(M-1),p=V.PI_OVER_TWO-M*T;p<0&&(M-=Math.ceil(Math.abs(p)/T));let k=2*(M*(M+2)),e=y?new Array(k*3):void 0,o=0,t=U,s=Z,H=M*4*3,_=H-1,R=0,c=x?new Array(H):void 0,P,g,E,W,d;for(p=V.PI_OVER_TWO,t=A(p,O,h,r,z,a,i,f,u,t),y&&(e[o++]=t.x,e[o++]=t.y,e[o++]=t.z),x&&(c[_--]=t.z,c[_--]=t.y,c[_--]=t.x),p=V.PI_OVER_TWO-T,P=1;P<M+1;++P){if(t=A(p,O,h,r,z,a,i,f,u,t),s=A(Math.PI-p,O,h,r,z,a,i,f,u,s),y){for(e[o++]=t.x,e[o++]=t.y,e[o++]=t.z,E=2*P+2,g=1;g<E-1;++g)W=g/(E-1),d=n.lerp(t,s,W,j),e[o++]=d.x,e[o++]=d.y,e[o++]=d.z;e[o++]=s.x,e[o++]=s.y,e[o++]=s.z}x&&(c[_--]=t.z,c[_--]=t.y,c[_--]=t.x,c[R++]=s.x,c[R++]=s.y,c[R++]=s.z),p=V.PI_OVER_TWO-(P+1)*T}for(P=M;P>1;--P){if(p=V.PI_OVER_TWO-(P-1)*T,t=A(-p,O,h,r,z,a,i,f,u,t),s=A(p+Math.PI,O,h,r,z,a,i,f,u,s),y){for(e[o++]=t.x,e[o++]=t.y,e[o++]=t.z,E=2*(P-1)+2,g=1;g<E-1;++g)W=g/(E-1),d=n.lerp(t,s,W,j),e[o++]=d.x,e[o++]=d.y,e[o++]=d.z;e[o++]=s.x,e[o++]=s.y,e[o++]=s.z}x&&(c[_--]=t.z,c[_--]=t.y,c[_--]=t.x,c[R++]=s.x,c[R++]=s.y,c[R++]=s.z)}p=V.PI_OVER_TWO,t=A(-p,O,h,r,z,a,i,f,u,t);let B={};return y&&(e[o++]=t.x,e[o++]=t.y,e[o++]=t.z,B.positions=e,B.numPts=M),x&&(c[_--]=t.z,c[_--]=t.y,c[_--]=t.x,B.outerPositions=c),B};var tt=C;export{tt as a};

--
Gitblit v1.9.3