PageSourceSearch

https://next3d.ai/_next/static/chunks/1196.97ad1131fc034eba.js

js next3d.ai collected 2026-09-24 12:09:12 UTC 7,052 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="30fbc01c-69d8-4659-a9e8-288b32fde9de",e._sentryDebugIdIdentifier="sentry-dbid-30fbc01c-69d8-4659-a9e8-288b32fde9de")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1196],{81196:(e,t,r)=>{r.r(t),r.d(t,{PLYLoader:()=>a});var n=r(7978);let s=new n.Q1f;class a extends n.aHM{load(e,t,r,s){let a=this,o=new n.Y9S(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(r){try{t(a.parse(r))}catch(t){s?s(t):console.error(t),a.manager.itemError(e)}},r,s)}setPropertyNameMapping(e){this.propertyNameMapping=e}setCustomPropertyNameMapping(e){this.customPropertyMapping=e}parse(e){let t;function r(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="",s=/^ply([\s\S]*)end_header(\r\n|\r|\n)/.exec(e);null!==s&&(n=s[1]);let a={comments:[],elements:[],headerLength:r,objInfo:""},o=n.split(/\r\n|\r|\n/);for(let e=0;e<o.length;e++){let r=o[e];if(""===(r=r.trim()))continue;let n=r.split(/\s+/),s=n.shift();switch(r=n.join(" "),s){case"format":a.format=n[0],a.version=n[1];break;case"comment":a.comments.push(r);break;case"element":void 0!==t&&a.elements.push(t),(t={}).name=n[0],t.count=parseInt(n[1]),t.properties=[];break;case"property":t.properties.push(function(e,t){let r={type:e[0]};return"list"===r.type?(r.name=e[3],r.countType=e[1],r.itemType=e[2]):r.name=e[1],r.name in t&&(r.name=t[r.name]),r}(n,f.propertyNameMapping));break;case"obj_info":a.objInfo=r}}return void 0!==t&&a.elements.push(t),a}function a(e,t){switch(t){case"char":case"uchar":case"short":case"ushort":case"int":case"uint":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":return parseInt(e);case"float":case"double":case"float32":case"float64":return parseFloat(e)}}function l(){let e={indices:[],vertices:[],normals:[],uvs:[],faceVertexUvs:[],colors:[],faceVertexColors:[]};for(let t of Object.keys(f.customPropertyMapping))e[t]=[];return e}function i(e){let t=e.map(e=>e.name);function r(e){for(let r=0,n=e.length;r<n;r++){let n=e[r];if(t.includes(n))return n}return null}return{attrX:r(["x","px","posx"])||"x",attrY:r(["y","py","posy"])||"y",attrZ:r(["z","pz","posz"])||"z",attrNX:r(["nx","normalx"]),attrNY:r(["ny","normaly"]),attrNZ:r(["nz","normalz"]),attrS:r(["s","u","texture_u","tx"]),attrT:r(["t","v","texture_v","ty"]),attrR:r(["red","diffuse_red","r","diffuse_r"]),attrG:r(["green","diffuse_green","g","diffuse_g"]),attrB:r(["blue","diffuse_blue","b","diffuse_b"])}}function u(e,t){let r;let n=l(),s=new o(null!==(r=/end_header\s+(\S[\s\S]*\S|\S)\s*$/.exec(e))?r[1].split(/\s+/):[]);e:for(let e=0;e<t.elements.length;e++){let r=t.elements[e],o=i(r.properties);for(let e=0;e<r.count;e++){let e=function(e,t){let r={};for(let n=0;n<e.length;n++){if(t.empty())return null;if("list"===e[n].type){let s=[],o=a(t.next(),e[n].countType);for(let r=0;r<o;r++){if(t.empty())return null;s.push(a(t.next(),e[n].itemType))}r[e[n].name]=s}else r[e[n].name]=a(t.next(),e[n].type)}return r}(r.properties,s);if(!e)break e;p(n,r.name,e,o)}}return c(n)}function c(e){let t=new n.LoY;for(let r of(e.indices.length>0&&t.setIndex(e.indices),t.setAttribute("position",new n.qtW(e.vertices,3)),e.normals.length>0&&t.setAttribute("normal",new n.qtW(e.normals,3)),e.uvs.length>0&&t.setAttribute("uv",new n.qtW(e.uvs,2)),e.colors.length>0&&t.setAttribute("color",new n.qtW(e.colors,3)),(e.faceVertexUvs.length>0||e.faceVertexColors.length>0)&&(t=t.toNonIndexed(),e.faceVertexUvs.length>0&&t.setAttribute("uv",new n.qtW(e.faceVertexUvs,2)),e.faceVertexColors.length>0&&t.setAttribute("color",new n.qtW(e.faceVertexColors,3))),Object.keys(f.customPropertyMapping)))e[r].length>0&&t.setAttribute(r,new n.qtW(e[r],f.customPropertyMapping[r].length));return t.computeBoundingSphere(),t}function p(e,t,r,a){if("vertex"===t)for(let t of(e.vertices.push(r[a.attrX],r[a.attrY],r[a.attrZ]),null!==a.attrNX&&null!==a.attrNY&&null!==a.attrNZ&&e.normals.push(r[a.attrNX],r[a.attrNY],r[a.attrNZ]),null!==a.attrS&&null!==a.attrT&&e.uvs.push(r[a.attrS],r[a.attrT]),null!==a.attrR&&null!==a.attrG&&null!==a.attrB&&(s.setRGB(r[a.attrR]/255,r[a.attrG]/255,r[a.attrB]/255,n.er$),e.colors.push(s.r,s.g,s.b)),Object.keys(f.customPropertyMapping)))for(let n of f.customPropertyMapping[t])e[t].push(r[n]);else if("face"===t){let t=r.vertex_indices||r.vertex_index,o=r.texcoord;3===t.length?(e.indices.push(t[0],t[1],t[2]),o&&6===o.length&&(e.faceVertexUvs.push(o[0],o[1]),e.faceVertexUvs.push(o[2],o[3]),e.faceVertexUvs.push(o[4],o[5]))):4===t.length&&(e.indices.push(t[0],t[1],t[3]),e.indices.push(t[1],t[2],t[3])),null!==a.attrR&&null!==a.attrG&&null!==a.attrB&&(s.setRGB(r[a.attrR]/255,r[a.attrG]/255,r[a.attrB]/255,n.er$),e.faceVertexColors.push(s.r,s.g,s.b),e.faceVertexColors.push(s.r,s.g,s.b),e.faceVertexColors.push(s.r,s.g,s.b))}}let f=this;if(e instanceof ArrayBuffer){let n=new Uint8Array(e),{headerText:s,headerLength:a}=function(e){let t=0,r=!0,n="",s=[],a=new TextDecoder().decode(e.subarray(0,5)),o=/^ply\r\n/.test(a);do{let a=String.fromCharCode(e[t++]);"\n"!==a&&"\r"!==a?n+=a:("end_header"===n&&(r=!1),""!==n&&(s.push(n),n=""))}while(r&&t<e.length);return!0===o&&t++,{headerText:s.join("\r")+"\r",headerLength:t}}(n),o=r(s,a);t="ascii"===o.format?u(new TextDecoder().decode(n),o):function(e,t){let r=l(),n="binary_little_endian"===t.format,s=new DataView(e,t.headerLength),a,o=0;for(let e=0;e<t.elements.length;e++){let l=t.elements[e],u=l.properties,c=i(u);!function(e,t,r){function n(e,t,r){switch(t){case"int8":case"char":return{read:t=>e.getInt8(t),size:1};case"uint8":case"uchar":return{read:t=>e.getUint8(t),size:1};case"int16":case"short":return{read:t=>e.getInt16(t,r),size:2};case"uint16":case"ushort":return{read:t=>e.getUint16(t,r),size:2};case"int32":case"int":return{read:t=>e.getInt32(t,r),size:4};case"uint32":case"uint":return{read:t=>e.getUint32(t,r),size:4};case"float32":case"float":return{read:t=>e.getFloat32(t,r),size:4};case"float64":case"double":return{read:t=>e.getFloat64(t,r),size:8}}}for(let s=0,a=e.length;s<a;s++){let a=e[s];"list"===a.type?(a.countReader=n(t,a.countType,r),a.valueReader=n(t,a.itemType,r)):a.valueReader=n(t,a.type,r)}}(u,s,n);for(let e=0;e<l.count;e++){a=function(e,t){let r={},n=0;for(let s=0;s<t.length;s++){let a=t[s],o=a.valueReader;if("list"===a.type){let t=[],s=a.countReader.read(e+n);n+=a.countReader.size;
1for(let r=0;r<s;r++)t.push(o.read(e+n)),n+=o.size;r[a.name]=t}else r[a.name]=o.read(e+n),n+=o.size}return[r,n]}(o,u),o+=a[1];let e=a[0];p(r,l.name,e,c)}}return c(r)}(e,o)}else t=u(e,r(e));return t}constructor(e){super(e),this.propertyNameMapping={},this.customPropertyMapping={}}}class o{empty(){return this.i>=this.arr.length}next(){return this.arr[this.i++]}constructor(e){this.arr=e,this.i=0}}}}]);

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.