Files
4.0/static/sdk/3rdparty/modelloadermin.js

1 line
35 KiB
JavaScript
Raw Permalink Normal View History

2025-07-03 17:39:09 +08:00
const _0x282e8f=_0x5f2e;function _0x5f2e(_0xd2d394,_0x909786){const _0xf05e8=_0xf05e();return _0x5f2e=function(_0x5f2ecd,_0x54ff31){_0x5f2ecd=_0x5f2ecd-0x1a8;let _0x2143df=_0xf05e8[_0x5f2ecd];return _0x2143df;},_0x5f2e(_0xd2d394,_0x909786);}(function(_0x3a08bf,_0x51e0f4){const _0x44fa24=_0x5f2e,_0x3b23ce=_0x3a08bf();while(!![]){try{const _0x45cdcc=parseInt(_0x44fa24(0x228))/0x1+-parseInt(_0x44fa24(0x231))/0x2*(parseInt(_0x44fa24(0x1b4))/0x3)+parseInt(_0x44fa24(0x214))/0x4+-parseInt(_0x44fa24(0x223))/0x5+parseInt(_0x44fa24(0x204))/0x6*(-parseInt(_0x44fa24(0x26c))/0x7)+parseInt(_0x44fa24(0x23d))/0x8+parseInt(_0x44fa24(0x1d6))/0x9*(parseInt(_0x44fa24(0x202))/0xa);if(_0x45cdcc===_0x51e0f4)break;else _0x3b23ce['push'](_0x3b23ce['shift']());}catch(_0x2c156a){_0x3b23ce['push'](_0x3b23ce['shift']());}}}(_0xf05e,0xb728a));const _object_pattern=/^[og]\s*(.+)?/,_material_library_pattern=/^mtllib /,_material_use_pattern=/^usemtl /,_map_use_pattern=/^usemap /,_face_vertex_data_separator_pattern=/\s+/,_color=new Cesium[(_0x282e8f(0x1ac))]();function ParserState(){const _0x18040a=_0x282e8f,_0x97ee8a={'objects':[],'object':{},'vertices':[],'normals':[],'colors':[],'uvs':[],'materials':{},'materialLibraries':[],'startObject':function(_0x56b006,_0x515852){const _0xa0677a=_0x5f2e;if(this[_0xa0677a(0x268)]&&this[_0xa0677a(0x268)][_0xa0677a(0x215)]===![]){this[_0xa0677a(0x268)][_0xa0677a(0x242)]=_0x56b006,this[_0xa0677a(0x268)][_0xa0677a(0x215)]=_0x515852!==![];return;}const _0x5140df=this['object']&&typeof this[_0xa0677a(0x268)][_0xa0677a(0x240)]===_0xa0677a(0x25c)?this[_0xa0677a(0x268)][_0xa0677a(0x240)]():undefined;this['object']&&typeof this[_0xa0677a(0x268)][_0xa0677a(0x21d)]===_0xa0677a(0x25c)&&this[_0xa0677a(0x268)][_0xa0677a(0x21d)](!![]);this[_0xa0677a(0x268)]={'name':_0x56b006||'','fromDeclaration':_0x515852!==![],'geometry':{'vertices':[],'normals':[],'colors':[],'uvs':[],'hasUVIndices':![]},'materials':[],'smooth':!![],'startMaterial':function(_0x4e412b,_0x35baba){const _0x426864=_0xa0677a,_0x18b0a2=this[_0x426864(0x21d)](![]);_0x18b0a2&&(_0x18b0a2[_0x426864(0x233)]||_0x18b0a2[_0x426864(0x1fb)]<=0x0)&&this['materials'][_0x426864(0x21f)](_0x18b0a2['index'],0x1);const _0x8ccb46={'index':this[_0x426864(0x1eb)][_0x426864(0x1f6)],'name':_0x4e412b||'','mtllib':Array[_0x426864(0x24a)](_0x35baba)&&_0x35baba[_0x426864(0x1f6)]>0x0?_0x35baba[_0x35baba['length']-0x1]:'','smooth':_0x18b0a2!==undefined?_0x18b0a2[_0x426864(0x1b2)]:this[_0x426864(0x1b2)],'groupStart':_0x18b0a2!==undefined?_0x18b0a2[_0x426864(0x267)]:0x0,'groupEnd':-0x1,'groupCount':-0x1,'inherited':![],'clone':function(_0x434128){const _0x29ed06=_0x426864,_0x33c9a1={'index':typeof _0x434128===_0x29ed06(0x261)?_0x434128:this[_0x29ed06(0x1b1)],'name':this['name'],'mtllib':this[_0x29ed06(0x21a)],'smooth':this['smooth'],'groupStart':0x0,'groupEnd':-0x1,'groupCount':-0x1,'inherited':![]};return _0x33c9a1[_0x29ed06(0x1c8)]=this[_0x29ed06(0x1c8)][_0x29ed06(0x1e2)](_0x33c9a1),_0x33c9a1;}};return this['materials']['push'](_0x8ccb46),_0x8ccb46;},'currentMaterial':function(){const _0x46a975=_0xa0677a;if(this[_0x46a975(0x1eb)][_0x46a975(0x1f6)]>0x0)return this[_0x46a975(0x1eb)][this[_0x46a975(0x1eb)][_0x46a975(0x1f6)]-0x1];return undefined;},'_finalize':function(_0x555b7f){const _0x45d42c=_0xa0677a,_0x42b648=this[_0x45d42c(0x240)]();_0x42b648&&_0x42b648[_0x45d42c(0x267)]===-0x1&&(_0x42b648[_0x45d42c(0x267)]=this[_0x45d42c(0x264)][_0x45d42c(0x1ea)][_0x45d42c(0x1f6)]/0x3,_0x42b648[_0x45d42c(0x1fb)]=_0x42b648[_0x45d42c(0x267)]-_0x42b648[_0x45d42c(0x1ec)],_0x42b648['inherited']=![]);if(_0x555b7f&&this[_0x45d42c(0x1eb)][_0x45d42c(0x1f6)]>0x1)for(let _0x179709=this[_0x45d42c(0x1eb)][_0x45d42c(0x1f6)]-0x1;_0x179709>=0x0;_0x179709--){this[_0x45d42c(0x1eb)][_0x179709]['groupCount']<=0x0&&this['materials'][_0x45d42c(0x21f)](_0x179709,0x1);}return _0x555b7f&&this['materials'][_0x45d42c(0x1f6)]===0x0&&this['materials']['push']({'name':'','smooth':this[_0x45d42c(0x1b2)]}),_0x42b648;}};if(_0x5140df&&_0x5140df[_0xa0677a(0x242)]&&typeof _0x5140df[_0xa0677a(0x1c8)]===_0xa0677a(0x25c)){const _0x20058f=_0x51