UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

3 lines (2 loc) 514 B
import{F as t,ai as e,U as n,j as o}from"./index-DFZFpUG-.esm.min.js";function s(s,i,f,r,a){const c=s.componentType,m=s.count,g=new(5126===c?t:5125===c?e:5123===c?n:o)(m*r),p=(i.byteOffset??0)+(s.byteOffset??0),y=i.byteStride;for(let t=0;t<m;t++){const e=p+t*y;for(let n=0;n<r;n++){const o=e+n*a;g[t*r+n]=5126===c?f.getFloat32(o,!0):5125===c?f.getUint32(o,!0):5123===c?f.getUint16(o,!0):f.getUint8(o)}}return g}export{s as copyStridedAttribute}; //# sourceMappingURL=gltf-strided-attribute-DTNaShix.esm.min.js.map