/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.121.1 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ import{a as et}from"./chunk-KEGO2QAF.js";import{a as U}from"./chunk-VCLF6QAW.js";import"./chunk-ZLJAD6WQ.js";import{a as y}from"./chunk-TNIFNDKP.js";import"./chunk-6HNWIIPM.js";import{a as I}from"./chunk-HHVNM4CQ.js";import{a as $}from"./chunk-KAGOYLAB.js";import"./chunk-YQI2LITO.js";import"./chunk-SC7LLDCL.js";import{a as u}from"./chunk-DGE7Y2WF.js";import"./chunk-72TOCDWD.js";import"./chunk-N6VCNCGH.js";import{b as ot}from"./chunk-J4Q6ZR4H.js";import{a as tt}from"./chunk-I4OYGRA6.js";import"./chunk-AKQNEP7V.js";import"./chunk-N6FZVG54.js";import"./chunk-GVIXCH3T.js";import{a as J}from"./chunk-YKIFKUHX.js";import{a as X}from"./chunk-T5AOQBYV.js";import{b as W,c as Y,d as z}from"./chunk-2IMMJQM5.js";import{d as K}from"./chunk-DFXB7SZL.js";import{f as Q}from"./chunk-OYLSJJLX.js";import{a as N}from"./chunk-BOISCMIO.js";import{a as i,c as x,d as m,e as P}from"./chunk-HKHWYVWA.js";import{a as q}from"./chunk-HJACR6CT.js";import"./chunk-L3ZF6YQH.js";import"./chunk-IHT3NRUE.js";import{a as f}from"./chunk-XK5OJOFF.js";import{b as B}from"./chunk-YLNT2FRE.js";import{e as g}from"./chunk-PIOASIZ6.js";var st=new i,at=new et,pt=new x,lt=new x,mt=new i,ft=new i,ut=new i,V=new i,yt=new i,ht=new i,nt=new Q,dt=new P,gt=new P,Pt=new i;function wt(e,t,o,a,h,A,r,n,p){let b=e.positions,c=ot.triangulate(e.positions2D,e.holes);c.length<3&&(c=[0,1,2]);let w=J.createTypedArray(b.length,c.length);w.set(c);let D=dt;if(a!==0){let d=Q.fromAxisAngle(r,a,nt);if(D=P.fromQuaternion(d,D),t.tangent||t.bitangent){d=Q.fromAxisAngle(r,-a,nt);let G=P.fromQuaternion(d,gt);n=i.normalize(P.multiplyByVector(G,n,n),n),t.bitangent&&(p=i.normalize(i.cross(r,n,p),p))}}else D=P.clone(P.IDENTITY,D);let j=lt;t.st&&(j.x=o.x,j.y=o.y);let k=b.length,C=k*3,L=new Float64Array(C),T=t.normal?new Float32Array(C):void 0,R=t.tangent?new Float32Array(C):void 0,S=t.bitangent?new Float32Array(C):void 0,H=t.st?new Float32Array(k*2):void 0,M=0,F=0,l=0,O=0,s=0;for(let d=0;d