1/*! For license information please see incrementallyBuildTerrainPicker.js.LICENSE.txt */ 2import{a as y}from"./chunk-BUKMP3AW.js";import{a as c}from"./chunk-D5QCMU6T.js";import"./chunk-GQG3G4OP.js";import{b as a}from"./chunk-V62DYOIH.js";import"./chunk-YQTAAITT.js";import{a as n}from"./chunk-TODZU3UG.js";import"./chunk-3XRQCEHV.js";import"./chunk-VIWNLE3Z.js";import"./chunk-4TAASUQ2.js";var b=new n,d=new n,A=[new n,new n,new n],x=new c,f=new n(.5,.5,.5),p=new n(-.5,-.5,-.5);function h(r,t){let e=new Float64Array(r.aabbs),i=Array.from({length:4},(r,t)=>{let a=n.unpack(e,6*t,b),i=n.unpack(e,6*t+3,d);return c.fromCorners(a,i,new c)}),m=new Float64Array(r.inverseTransform),o=a.unpack(m,0,new a),u=new Uint32Array(r.triangleIndices),s=new Float64Array(r.trianglePositions),p=Array.from({length:4},()=>[]);for(let a=0;a<u.length;a++){n.unpack(s,9*a,A[0]),n.unpack(s,9*a+3,A[1]),n.unpack(s,9*a+6,A[2]);let r=k(o,A);for(let n=0;n<4;n++)i[n].intersectAxisAlignedBoundingBox(r)&&p[n].push(u[a])}return{intersectingTrianglesArrays:p.map(n=>{let r=new Uint32Array(n);return t.push(r.buffer),r.buffer})}}function k(r,t){a.multiplyByPoint(r,t[0],t[0]),a.multiplyByPoint(r,t[1],t[1]),a.multiplyByPoint(r,t[2],t[2]);let e=c.fromPoints(t,x);return n.clamp(e.minimum,p,f,e.minimum),n.clamp(e.maximum,p,f,e.maximum),e}var P=y(h);export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.