mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-03 17:00:36 +08:00
101 lines
50 KiB
JavaScript
101 lines
50 KiB
JavaScript
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(g){var m=0;return function(){return m<g.length?{done:!1,value:g[m++]}:{done:!0}}};$jscomp.arrayIterator=function(g){return{next:$jscomp.arrayIteratorImpl(g)}};$jscomp.makeIterator=function(g){var m="undefined"!=typeof Symbol&&Symbol.iterator&&g[Symbol.iterator];return m?m.call(g):$jscomp.arrayIterator(g)};
|
|
$jscomp.getGlobal=function(g){return"undefined"!=typeof window&&window===g?g:"undefined"!=typeof global&&null!=global?global:g};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(g,m,p){g!=Array.prototype&&g!=Object.prototype&&(g[m]=p.value)};
|
|
$jscomp.polyfill=function(g,m,p,n){if(m){p=$jscomp.global;g=g.split(".");for(n=0;n<g.length-1;n++){var h=g[n];h in p||(p[h]={});p=p[h]}g=g[g.length-1];n=p[g];m=m(n);m!=n&&null!=m&&$jscomp.defineProperty(p,g,{configurable:!0,writable:!0,value:m})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
|
|
$jscomp.polyfill("Promise",function(g){function m(){this.batch_=null}function p(l){return l instanceof h?l:new h(function(h,g){h(l)})}if(g&&!$jscomp.FORCE_POLYFILL_PROMISE)return g;m.prototype.asyncExecute=function(l){if(null==this.batch_){this.batch_=[];var h=this;this.asyncExecuteFunction(function(){h.executeBatch_()})}this.batch_.push(l)};var n=$jscomp.global.setTimeout;m.prototype.asyncExecuteFunction=function(l){n(l,0)};m.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var l=
|
|
this.batch_;this.batch_=[];for(var h=0;h<l.length;++h){var g=l[h];l[h]=null;try{g()}catch(S){this.asyncThrow_(S)}}}this.batch_=null};m.prototype.asyncThrow_=function(l){this.asyncExecuteFunction(function(){throw l;})};var h=function(l){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var h=this.createResolveAndReject_();try{l(h.resolve,h.reject)}catch(R){h.reject(R)}};h.prototype.createResolveAndReject_=function(){function l(l){return function(p){g||(g=!0,l.call(h,p))}}var h=this,g=!1;
|
|
return{resolve:l(this.resolveTo_),reject:l(this.reject_)}};h.prototype.resolveTo_=function(l){if(l===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(l instanceof h)this.settleSameAsPromise_(l);else{a:switch(typeof l){case "object":var g=null!=l;break a;case "function":g=!0;break a;default:g=!1}g?this.resolveToNonPromiseObj_(l):this.fulfill_(l)}};h.prototype.resolveToNonPromiseObj_=function(l){var h=void 0;try{h=l.then}catch(R){this.reject_(R);return}"function"==typeof h?
|
|
this.settleSameAsThenable_(h,l):this.fulfill_(l)};h.prototype.reject_=function(h){this.settle_(2,h)};h.prototype.fulfill_=function(h){this.settle_(1,h)};h.prototype.settle_=function(h,g){if(0!=this.state_)throw Error("Cannot settle("+h+", "+g+"): Promise already settled in state"+this.state_);this.state_=h;this.result_=g;this.executeOnSettledCallbacks_()};h.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var h=0;h<this.onSettledCallbacks_.length;++h)F.asyncExecute(this.onSettledCallbacks_[h]);
|
|
this.onSettledCallbacks_=null}};var F=new m;h.prototype.settleSameAsPromise_=function(h){var g=this.createResolveAndReject_();h.callWhenSettled_(g.resolve,g.reject)};h.prototype.settleSameAsThenable_=function(h,g){var l=this.createResolveAndReject_();try{h.call(g,l.resolve,l.reject)}catch(S){l.reject(S)}};h.prototype.then=function(g,p){function l(h,g){return"function"==typeof h?function(g){try{m(h(g))}catch(x){n(x)}}:g}var m,n,F=new h(function(h,g){m=h;n=g});this.callWhenSettled_(l(g,m),l(p,n));return F};
|
|
h.prototype.catch=function(h){return this.then(void 0,h)};h.prototype.callWhenSettled_=function(h,g){function l(){switch(p.state_){case 1:h(p.result_);break;case 2:g(p.result_);break;default:throw Error("Unexpected state: "+p.state_);}}var p=this;null==this.onSettledCallbacks_?F.asyncExecute(l):this.onSettledCallbacks_.push(l)};h.resolve=p;h.reject=function(g){return new h(function(h,l){l(g)})};h.race=function(g){return new h(function(h,l){for(var m=$jscomp.makeIterator(g),n=m.next();!n.done;n=m.next())p(n.value).callWhenSettled_(h,
|
|
l)})};h.all=function(g){var l=$jscomp.makeIterator(g),m=l.next();return m.done?p([]):new h(function(h,g){function n(g){return function(l){F[g]=l;L--;0==L&&h(F)}}var F=[],L=0;do F.push(void 0),L++,p(m.value).callWhenSettled_(n(F.length-1),g),m=l.next();while(!m.done)})};return h},"es6","es3");$jscomp.checkEs6ConformanceViaProxy=function(){try{var g={},m=Object.create(new $jscomp.global.Proxy(g,{get:function(p,n,h){return p==g&&"q"==n&&h==m}}));return!0===m.q}catch(p){return!1}};
|
|
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.owns=function(g,m){return Object.prototype.hasOwnProperty.call(g,m)};
|
|
$jscomp.polyfill("Array.prototype.copyWithin",function(g){function m(g){g=Number(g);return Infinity===g||-Infinity===g?g:g|0}return g?g:function(g,n,h){var p=this.length;g=m(g);n=m(n);h=void 0===h?p:m(h);g=0>g?Math.max(p+g,0):Math.min(g,p);n=0>n?Math.max(p+n,0):Math.min(n,p);h=0>h?Math.max(p+h,0):Math.min(h,p);if(g<n)for(;n<h;)n in this?this[g++]=this[n++]:(delete this[g++],n++);else for(h=Math.min(h,p+n-g),g+=h-n;h>n;)--h in this?this[--g]=this[h]:delete this[--g];return this}},"es6","es3");
|
|
var DracoEncoderModule=function(){var g="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(g=g||__filename);return function(m){function p(r){return a.locateFile?a.locateFile(r,G):G+r}function n(a,d){a||l("Assertion failed: "+d)}function h(a,d){0<a%d&&(a+=d-a%d);return a}function F(r){da=r;a.HEAP8=H=new Int8Array(r);a.HEAP16=la=new Int16Array(r);a.HEAP32=B=new Int32Array(r);a.HEAPU8=ma=new Uint8Array(r);a.HEAPU16=new Uint16Array(r);
|
|
a.HEAPU32=new Uint32Array(r);a.HEAPF32=na=new Float32Array(r);a.HEAPF64=new Float64Array(r)}function l(r){if(a.onAbort)a.onAbort(r);r+="";T(r);wa=!0;r=new WebAssembly.RuntimeError("abort("+r+"). Build with -s ASSERTIONS=1 for more info.");xa(r);throw r;}function aa(a,d){return String.prototype.startsWith?a.startsWith(d):0===a.indexOf(d)}function R(){try{if(U)return new Uint8Array(U);if(ea)return ea(I);throw"both async and sync fetching of the wasm failed";}catch(r){l(r)}}function S(){return U||!fa&&
|
|
!O||"function"!==typeof fetch||aa(I,"file://")?Promise.resolve().then(R):fetch(I,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+I+"'";return a.arrayBuffer()}).catch(function(){return R()})}function ba(r){for(;0<r.length;){var d=r.shift();if("function"==typeof d)d(a);else{var b=d.func;"number"===typeof b?void 0===d.arg?oa.get(b)():oa.get(b)(d.arg):b(void 0===d.arg?null:d.arg)}}}function zc(a){this.excPtr=a;this.ptr=a-A.SIZE;this.set_type=function(a){B[this.ptr+
|
|
A.TYPE_OFFSET>>2]=a};this.get_type=function(){return B[this.ptr+A.TYPE_OFFSET>>2]};this.set_destructor=function(a){B[this.ptr+A.DESTRUCTOR_OFFSET>>2]=a};this.get_destructor=function(){return B[this.ptr+A.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(a){B[this.ptr+A.REFCOUNT_OFFSET>>2]=a};this.set_caught=function(a){H[this.ptr+A.CAUGHT_OFFSET>>0]=a?1:0};this.get_caught=function(){return 0!=H[this.ptr+A.CAUGHT_OFFSET>>0]};this.set_rethrown=function(a){H[this.ptr+A.RETHROWN_OFFSET>>0]=a?1:0};this.get_rethrown=
|
|
function(){return 0!=H[this.ptr+A.RETHROWN_OFFSET>>0]};this.init=function(a,b){this.set_type(a);this.set_destructor(b);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){B[this.ptr+A.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var a=B[this.ptr+A.REFCOUNT_OFFSET>>2];B[this.ptr+A.REFCOUNT_OFFSET>>2]=a-1;return 1===a}}function ca(){return 0<ca.uncaught_exceptions}function L(){if(!L.strings){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",
|
|
LANG:("object"===typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:pa||"./this.program"},d;for(d in ya)a[d]=ya[d];var b=[];for(d in a)b.push(d+"="+a[d]);L.strings=b}return L.strings}function ka(r){function d(){if(!ha&&(ha=!0,a.calledRun=!0,!wa)){za=!0;ba(Aa);ba(Ba);Ca(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Da.unshift(a.postRun.shift());ba(Da)}}if(!(0<
|
|
P)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Ea.unshift(a.preRun.shift());ba(Ea);0<P||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);d()},1)):d())}}function x(){}function C(a){return(a||x).__cache__}function qa(a,d){var b=C(d),c=b[a];if(c)return c;c=Object.create((d||x).prototype);c.ptr=a;return b[a]=c}function V(a){if("string"===typeof a){for(var d=0,b=0;b<a.length;++b){var c=a.charCodeAt(b);55296<=
|
|
c&&57343>=c&&(c=65536+((c&1023)<<10)|a.charCodeAt(++b)&1023);127>=c?++d:d=2047>=c?d+2:65535>=c?d+3:d+4}d=Array(d+1);b=0;c=d.length;if(0<c){c=b+c-1;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var r=a.charCodeAt(++e);f=65536+((f&1023)<<10)|r&1023}if(127>=f){if(b>=c)break;d[b++]=f}else{if(2047>=f){if(b+1>=c)break;d[b++]=192|f>>6}else{if(65535>=f){if(b+2>=c)break;d[b++]=224|f>>12}else{if(b+3>=c)break;d[b++]=240|f>>18;d[b++]=128|f>>12&63}d[b++]=128|f>>6&63}d[b++]=128|f&63}}d[b]=
|
|
0}a=k.alloc(d,H);k.copy(d,H,a)}return a}function ia(a){if("object"===typeof a){var d=k.alloc(a,H);k.copy(a,H,d);return d}return a}function ja(a){if("object"===typeof a){var d=k.alloc(a,la);k.copy(a,la,d);return d}return a}function Q(a){if("object"===typeof a){var d=k.alloc(a,B);k.copy(a,B,d);return d}return a}function W(a){if("object"===typeof a){var d=k.alloc(a,na);k.copy(a,na,d);return d}return a}function M(){throw"cannot construct a VoidPtr, no constructor in IDL";}function J(){this.ptr=Fa();C(J)[this.ptr]=
|
|
this}function v(){this.ptr=Ga();C(v)[this.ptr]=this}function D(){this.ptr=Ha();C(D)[this.ptr]=this}function y(){this.ptr=Ia();C(y)[this.ptr]=this}function K(){this.ptr=Ja();C(K)[this.ptr]=this}function E(){this.ptr=Ka();C(E)[this.ptr]=this}function z(){this.ptr=La();C(z)[this.ptr]=this}function t(){this.ptr=Ma();C(t)[this.ptr]=this}function q(){this.ptr=Na();C(q)[this.ptr]=this}function u(){this.ptr=Oa();C(u)[this.ptr]=this}function w(a){a&&"object"===typeof a&&(a=a.ptr);this.ptr=Pa(a);C(w)[this.ptr]=
|
|
this}m=m||{};var a="undefined"!==typeof m?m:{},Ca,xa;a.ready=new Promise(function(a,d){Ca=a;xa=d});var Qa=!1,Ra=!1;a.onRuntimeInitialized=function(){Qa=!0;if(Ra&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){Ra=!0;if(Qa&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(a){if("string"!==typeof a)return!1;a=a.split(".");return 2>a.length||3<a.length?!1:1==a[0]&&0<=a[1]&&3>=a[1]?!0:0!=a[0]||10<a[1]?!1:!0};var X={},N;for(N in a)a.hasOwnProperty(N)&&
|
|
(X[N]=a[N]);var pa="./this.program",fa=!1,O=!1,ra=!1,Sa=!1;fa="object"===typeof window;O="function"===typeof importScripts;ra="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;Sa=!fa&&!ra&&!O;var G="",sa,ta;if(ra){G=O?require("path").dirname(G)+"/":__dirname+"/";var ua=function(a,d){sa||(sa=require("fs"));ta||(ta=require("path"));a=ta.normalize(a);return sa.readFileSync(a,d?null:"utf8")};var ea=function(a){a=ua(a,!0);a.buffer||(a=new Uint8Array(a));
|
|
n(a.buffer);return a};1<process.argv.length&&(pa=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);process.on("uncaughtException",function(a){throw a;});process.on("unhandledRejection",l);a.inspect=function(){return"[Emscripten Module object]"}}else if(Sa)"undefined"!=typeof read&&(ua=function(a){return read(a)}),ea=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");n("object"===typeof a);return a},"undefined"!==typeof print&&("undefined"===
|
|
typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==typeof printErr?printErr:print);else if(fa||O)O?G=self.location.href:document.currentScript&&(G=document.currentScript.src),g&&(G=g),G=0!==G.indexOf("blob:")?G.substr(0,G.lastIndexOf("/")+1):"",ua=function(a){var d=new XMLHttpRequest;d.open("GET",a,!1);d.send(null);return d.responseText},O&&(ea=function(a){var d=new XMLHttpRequest;d.open("GET",a,!1);d.responseType="arraybuffer";d.send(null);return new Uint8Array(d.response)});
|
|
a.print||console.log.bind(console);var T=a.printErr||console.warn.bind(console);for(N in X)X.hasOwnProperty(N)&&(a[N]=X[N]);X=null;a.thisProgram&&(pa=a.thisProgram);var U;a.wasmBinary&&(U=a.wasmBinary);"object"!==typeof WebAssembly&&l("no native wasm support detected");var Y,oa,wa=!1;"undefined"!==typeof TextDecoder&&new TextDecoder("utf8");"undefined"!==typeof TextDecoder&&new TextDecoder("utf-16le");var H,ma,la,B,na,Ta=a.INITIAL_MEMORY||16777216;if(Y=a.wasmMemory?a.wasmMemory:new WebAssembly.Memory({initial:Ta/
|
|
65536,maximum:32768}))var da=Y.buffer;Ta=da.byteLength;F(da);var Ea=[],Aa=[],Ba=[],Da=[],za=!1,P=0,va=null,Z=null;a.preloadedImages={};a.preloadedAudios={};var I="draco_encoder.wasm";aa(I,"data:application/octet-stream;base64,")||(I=p(I));var A={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16},ya={};Aa.push({func:function(){Ua()}});var Wa={__cxa_allocate_exception:function(a){return Va(a+A.SIZE)+A.SIZE},__cxa_throw:function(a,d,b){(new zc(a)).init(d,
|
|
b);"uncaught_exception"in ca?ca.uncaught_exceptions++:ca.uncaught_exceptions=1;throw a;},abort:function(){l()},array_bounds_check_error:function(a,d){throw"Array index "+a+" out of bounds: [0,"+d+")";},emscripten_memcpy_big:function(a,d,b){ma.copyWithin(a,d,d+b)},emscripten_resize_heap:function(a){a>>>=0;var d=ma.length;if(2147483648<a)return!1;for(var b=1;4>=b;b*=2){var c=d*(1+.2/b);c=Math.min(c,a+100663296);c=Math.min(2147483648,h(Math.max(16777216,a,c),65536));a:{try{Y.grow(c-da.byteLength+65535>>>
|
|
16);F(Y.buffer);var e=1;break a}catch(f){}e=void 0}if(e)return!0}return!1},environ_get:function(a,d){var b=0;L().forEach(function(c,e){var f=d+b;e=B[a+4*e>>2]=f;for(f=0;f<c.length;++f)H[e++>>0]=c.charCodeAt(f);H[e>>0]=0;b+=c.length+1});return 0},environ_sizes_get:function(a,d){var b=L();B[a>>2]=b.length;var c=0;b.forEach(function(a){c+=a.length+1});B[d>>2]=c;return 0},memory:Y};(function(){function g(d,b){a.asm=d.exports;oa=a.asm.__indirect_function_table;P--;a.monitorRunDependencies&&a.monitorRunDependencies(P);
|
|
0==P&&(null!==va&&(clearInterval(va),va=null),Z&&(d=Z,Z=null,d()))}function d(a){g(a.instance)}function b(a){return S().then(function(a){return WebAssembly.instantiate(a,c)}).then(a,function(a){T("failed to asynchronously prepare wasm: "+a);l(a)})}var c={env:Wa,wasi_snapshot_preview1:Wa};P++;a.monitorRunDependencies&&a.monitorRunDependencies(P);if(a.instantiateWasm)try{return a.instantiateWasm(c,g)}catch(e){return T("Module.instantiateWasm callback failed with error: "+e),!1}(function(){if(U||"function"!==
|
|
typeof WebAssembly.instantiateStreaming||aa(I,"data:application/octet-stream;base64,")||aa(I,"file://")||"function"!==typeof fetch)return b(d);fetch(I,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,c).then(d,function(a){T("wasm streaming compile failed: "+a);T("falling back to ArrayBuffer instantiation");return b(d)})})})();return{}})();var Ua=a.___wasm_call_ctors=function(){return(Ua=a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)};a.___em_js__array_bounds_check_error=
|
|
function(){return(a.___em_js__array_bounds_check_error=a.asm.__em_js__array_bounds_check_error).apply(null,arguments)};var Xa=a._emscripten_bind_VoidPtr___destroy___0=function(){return(Xa=a._emscripten_bind_VoidPtr___destroy___0=a.asm.emscripten_bind_VoidPtr___destroy___0).apply(null,arguments)},Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Fa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.emscripten_bind_GeometryAttribute_GeometryAttribute_0).apply(null,
|
|
arguments)},Ya=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Ya=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.emscripten_bind_GeometryAttribute___destroy___0).apply(null,arguments)},Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ga=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.emscripten_bind_PointAttribute_PointAttribute_0).apply(null,arguments)},Za=a._emscripten_bind_PointAttribute_size_0=function(){return(Za=a._emscripten_bind_PointAttribute_size_0=
|
|
a.asm.emscripten_bind_PointAttribute_size_0).apply(null,arguments)},$a=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return($a=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.emscripten_bind_PointAttribute_attribute_type_0).apply(null,arguments)},ab=a._emscripten_bind_PointAttribute_data_type_0=function(){return(ab=a._emscripten_bind_PointAttribute_data_type_0=a.asm.emscripten_bind_PointAttribute_data_type_0).apply(null,arguments)},bb=a._emscripten_bind_PointAttribute_num_components_0=
|
|
function(){return(bb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.emscripten_bind_PointAttribute_num_components_0).apply(null,arguments)},cb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(cb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.emscripten_bind_PointAttribute_normalized_0).apply(null,arguments)},db=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(db=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.emscripten_bind_PointAttribute_byte_stride_0).apply(null,
|
|
arguments)},eb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(eb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.emscripten_bind_PointAttribute_byte_offset_0).apply(null,arguments)},fb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(fb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.emscripten_bind_PointAttribute_unique_id_0).apply(null,arguments)},gb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(gb=a._emscripten_bind_PointAttribute___destroy___0=
|
|
a.asm.emscripten_bind_PointAttribute___destroy___0).apply(null,arguments)},Ha=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ha=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.emscripten_bind_PointCloud_PointCloud_0).apply(null,arguments)},hb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(hb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.emscripten_bind_PointCloud_num_attributes_0).apply(null,arguments)},ib=a._emscripten_bind_PointCloud_num_points_0=function(){return(ib=
|
|
a._emscripten_bind_PointCloud_num_points_0=a.asm.emscripten_bind_PointCloud_num_points_0).apply(null,arguments)},jb=a._emscripten_bind_PointCloud___destroy___0=function(){return(jb=a._emscripten_bind_PointCloud___destroy___0=a.asm.emscripten_bind_PointCloud___destroy___0).apply(null,arguments)},Ia=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ia=a._emscripten_bind_Mesh_Mesh_0=a.asm.emscripten_bind_Mesh_Mesh_0).apply(null,arguments)},kb=a._emscripten_bind_Mesh_num_faces_0=function(){return(kb=a._emscripten_bind_Mesh_num_faces_0=
|
|
a.asm.emscripten_bind_Mesh_num_faces_0).apply(null,arguments)},lb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(lb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.emscripten_bind_Mesh_num_attributes_0).apply(null,arguments)},mb=a._emscripten_bind_Mesh_num_points_0=function(){return(mb=a._emscripten_bind_Mesh_num_points_0=a.asm.emscripten_bind_Mesh_num_points_0).apply(null,arguments)},nb=a._emscripten_bind_Mesh_set_num_points_1=function(){return(nb=a._emscripten_bind_Mesh_set_num_points_1=
|
|
a.asm.emscripten_bind_Mesh_set_num_points_1).apply(null,arguments)},ob=a._emscripten_bind_Mesh___destroy___0=function(){return(ob=a._emscripten_bind_Mesh___destroy___0=a.asm.emscripten_bind_Mesh___destroy___0).apply(null,arguments)},Ja=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ja=a._emscripten_bind_Metadata_Metadata_0=a.asm.emscripten_bind_Metadata_Metadata_0).apply(null,arguments)},pb=a._emscripten_bind_Metadata___destroy___0=function(){return(pb=a._emscripten_bind_Metadata___destroy___0=
|
|
a.asm.emscripten_bind_Metadata___destroy___0).apply(null,arguments)},Ka=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Ka=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.emscripten_bind_DracoInt8Array_DracoInt8Array_0).apply(null,arguments)},qb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(qb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.emscripten_bind_DracoInt8Array_GetValue_1).apply(null,arguments)},rb=a._emscripten_bind_DracoInt8Array_size_0=
|
|
function(){return(rb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.emscripten_bind_DracoInt8Array_size_0).apply(null,arguments)},sb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(sb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.emscripten_bind_DracoInt8Array___destroy___0).apply(null,arguments)},La=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=function(){return(La=a._emscripten_bind_MetadataBuilder_MetadataBuilder_0=a.asm.emscripten_bind_MetadataBuilder_MetadataBuilder_0).apply(null,
|
|
arguments)},tb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=function(){return(tb=a._emscripten_bind_MetadataBuilder_AddStringEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddStringEntry_3).apply(null,arguments)},ub=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=function(){return(ub=a._emscripten_bind_MetadataBuilder_AddIntEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddIntEntry_3).apply(null,arguments)},vb=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=function(){return(vb=a._emscripten_bind_MetadataBuilder_AddIntEntryArray_4=
|
|
a.asm.emscripten_bind_MetadataBuilder_AddIntEntryArray_4).apply(null,arguments)},wb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=function(){return(wb=a._emscripten_bind_MetadataBuilder_AddDoubleEntry_3=a.asm.emscripten_bind_MetadataBuilder_AddDoubleEntry_3).apply(null,arguments)},xb=a._emscripten_bind_MetadataBuilder___destroy___0=function(){return(xb=a._emscripten_bind_MetadataBuilder___destroy___0=a.asm.emscripten_bind_MetadataBuilder___destroy___0).apply(null,arguments)},Ma=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=
|
|
function(){return(Ma=a._emscripten_bind_PointCloudBuilder_PointCloudBuilder_0=a.asm.emscripten_bind_PointCloudBuilder_PointCloudBuilder_0).apply(null,arguments)},yb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=function(){return(yb=a._emscripten_bind_PointCloudBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddFloatAttribute_5).apply(null,arguments)},zb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=function(){return(zb=a._emscripten_bind_PointCloudBuilder_AddInt8Attribute_5=
|
|
a.asm.emscripten_bind_PointCloudBuilder_AddInt8Attribute_5).apply(null,arguments)},Ab=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=function(){return(Ab=a._emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt8Attribute_5).apply(null,arguments)},Bb=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=function(){return(Bb=a._emscripten_bind_PointCloudBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt16Attribute_5).apply(null,
|
|
arguments)},Cb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=function(){return(Cb=a._emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt16Attribute_5).apply(null,arguments)},Db=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=function(){return(Db=a._emscripten_bind_PointCloudBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddInt32Attribute_5).apply(null,arguments)},Eb=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=
|
|
function(){return(Eb=a._emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5=a.asm.emscripten_bind_PointCloudBuilder_AddUInt32Attribute_5).apply(null,arguments)},Fb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=function(){return(Fb=a._emscripten_bind_PointCloudBuilder_AddMetadata_2=a.asm.emscripten_bind_PointCloudBuilder_AddMetadata_2).apply(null,arguments)},Gb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=function(){return(Gb=a._emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3=
|
|
a.asm.emscripten_bind_PointCloudBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Hb=a._emscripten_bind_PointCloudBuilder___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloudBuilder___destroy___0=a.asm.emscripten_bind_PointCloudBuilder___destroy___0).apply(null,arguments)},Na=a._emscripten_bind_MeshBuilder_MeshBuilder_0=function(){return(Na=a._emscripten_bind_MeshBuilder_MeshBuilder_0=a.asm.emscripten_bind_MeshBuilder_MeshBuilder_0).apply(null,arguments)},Ib=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=
|
|
function(){return(Ib=a._emscripten_bind_MeshBuilder_AddFacesToMesh_3=a.asm.emscripten_bind_MeshBuilder_AddFacesToMesh_3).apply(null,arguments)},Jb=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=function(){return(Jb=a._emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttributeToMesh_5).apply(null,arguments)},Kb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=function(){return(Kb=a._emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5=
|
|
a.asm.emscripten_bind_MeshBuilder_AddInt32AttributeToMesh_5).apply(null,arguments)},Lb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=function(){return(Lb=a._emscripten_bind_MeshBuilder_AddMetadataToMesh_2=a.asm.emscripten_bind_MeshBuilder_AddMetadataToMesh_2).apply(null,arguments)},Mb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=function(){return(Mb=a._emscripten_bind_MeshBuilder_AddFloatAttribute_5=a.asm.emscripten_bind_MeshBuilder_AddFloatAttribute_5).apply(null,arguments)},Nb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=
|
|
function(){return(Nb=a._emscripten_bind_MeshBuilder_AddInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt8Attribute_5).apply(null,arguments)},Ob=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=function(){return(Ob=a._emscripten_bind_MeshBuilder_AddUInt8Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt8Attribute_5).apply(null,arguments)},Pb=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=function(){return(Pb=a._emscripten_bind_MeshBuilder_AddInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt16Attribute_5).apply(null,
|
|
arguments)},Qb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=function(){return(Qb=a._emscripten_bind_MeshBuilder_AddUInt16Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddUInt16Attribute_5).apply(null,arguments)},Rb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=function(){return(Rb=a._emscripten_bind_MeshBuilder_AddInt32Attribute_5=a.asm.emscripten_bind_MeshBuilder_AddInt32Attribute_5).apply(null,arguments)},Sb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=function(){return(Sb=a._emscripten_bind_MeshBuilder_AddUInt32Attribute_5=
|
|
a.asm.emscripten_bind_MeshBuilder_AddUInt32Attribute_5).apply(null,arguments)},Tb=a._emscripten_bind_MeshBuilder_AddMetadata_2=function(){return(Tb=a._emscripten_bind_MeshBuilder_AddMetadata_2=a.asm.emscripten_bind_MeshBuilder_AddMetadata_2).apply(null,arguments)},Ub=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=function(){return(Ub=a._emscripten_bind_MeshBuilder_SetMetadataForAttribute_3=a.asm.emscripten_bind_MeshBuilder_SetMetadataForAttribute_3).apply(null,arguments)},Vb=a._emscripten_bind_MeshBuilder___destroy___0=
|
|
function(){return(Vb=a._emscripten_bind_MeshBuilder___destroy___0=a.asm.emscripten_bind_MeshBuilder___destroy___0).apply(null,arguments)},Oa=a._emscripten_bind_Encoder_Encoder_0=function(){return(Oa=a._emscripten_bind_Encoder_Encoder_0=a.asm.emscripten_bind_Encoder_Encoder_0).apply(null,arguments)},Wb=a._emscripten_bind_Encoder_SetEncodingMethod_1=function(){return(Wb=a._emscripten_bind_Encoder_SetEncodingMethod_1=a.asm.emscripten_bind_Encoder_SetEncodingMethod_1).apply(null,arguments)},Xb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=
|
|
function(){return(Xb=a._emscripten_bind_Encoder_SetAttributeQuantization_2=a.asm.emscripten_bind_Encoder_SetAttributeQuantization_2).apply(null,arguments)},Yb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=function(){return(Yb=a._emscripten_bind_Encoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_Encoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},Zb=a._emscripten_bind_Encoder_SetSpeedOptions_2=function(){return(Zb=a._emscripten_bind_Encoder_SetSpeedOptions_2=
|
|
a.asm.emscripten_bind_Encoder_SetSpeedOptions_2).apply(null,arguments)},$b=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=function(){return($b=a._emscripten_bind_Encoder_SetTrackEncodedProperties_1=a.asm.emscripten_bind_Encoder_SetTrackEncodedProperties_1).apply(null,arguments)},ac=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=function(){return(ac=a._emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2=a.asm.emscripten_bind_Encoder_EncodeMeshToDracoBuffer_2).apply(null,arguments)},bc=
|
|
a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=function(){return(bc=a._emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3=a.asm.emscripten_bind_Encoder_EncodePointCloudToDracoBuffer_3).apply(null,arguments)},cc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=function(){return(cc=a._emscripten_bind_Encoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedPoints_0).apply(null,arguments)},dc=a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=function(){return(dc=
|
|
a._emscripten_bind_Encoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_Encoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},ec=a._emscripten_bind_Encoder___destroy___0=function(){return(ec=a._emscripten_bind_Encoder___destroy___0=a.asm.emscripten_bind_Encoder___destroy___0).apply(null,arguments)},Pa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=function(){return(Pa=a._emscripten_bind_ExpertEncoder_ExpertEncoder_1=a.asm.emscripten_bind_ExpertEncoder_ExpertEncoder_1).apply(null,arguments)},
|
|
fc=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=function(){return(fc=a._emscripten_bind_ExpertEncoder_SetEncodingMethod_1=a.asm.emscripten_bind_ExpertEncoder_SetEncodingMethod_1).apply(null,arguments)},gc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=function(){return(gc=a._emscripten_bind_ExpertEncoder_SetAttributeQuantization_2=a.asm.emscripten_bind_ExpertEncoder_SetAttributeQuantization_2).apply(null,arguments)},hc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=
|
|
function(){return(hc=a._emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5=a.asm.emscripten_bind_ExpertEncoder_SetAttributeExplicitQuantization_5).apply(null,arguments)},ic=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=function(){return(ic=a._emscripten_bind_ExpertEncoder_SetSpeedOptions_2=a.asm.emscripten_bind_ExpertEncoder_SetSpeedOptions_2).apply(null,arguments)},jc=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=function(){return(jc=a._emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1=
|
|
a.asm.emscripten_bind_ExpertEncoder_SetTrackEncodedProperties_1).apply(null,arguments)},kc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=function(){return(kc=a._emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2=a.asm.emscripten_bind_ExpertEncoder_EncodeToDracoBuffer_2).apply(null,arguments)},lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=function(){return(lc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedPoints_0).apply(null,
|
|
arguments)},mc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=function(){return(mc=a._emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0=a.asm.emscripten_bind_ExpertEncoder_GetNumberOfEncodedFaces_0).apply(null,arguments)},nc=a._emscripten_bind_ExpertEncoder___destroy___0=function(){return(nc=a._emscripten_bind_ExpertEncoder___destroy___0=a.asm.emscripten_bind_ExpertEncoder___destroy___0).apply(null,arguments)},oc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(oc=
|
|
a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.emscripten_enum_draco_GeometryAttribute_Type_INVALID).apply(null,arguments)},pc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(pc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.emscripten_enum_draco_GeometryAttribute_Type_POSITION).apply(null,arguments)},qc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(qc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.emscripten_enum_draco_GeometryAttribute_Type_NORMAL).apply(null,
|
|
arguments)},rc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(rc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.emscripten_enum_draco_GeometryAttribute_Type_COLOR).apply(null,arguments)},sc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(sc=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD).apply(null,arguments)},tc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=
|
|
function(){return(tc=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.emscripten_enum_draco_GeometryAttribute_Type_GENERIC).apply(null,arguments)},uc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(uc=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE).apply(null,arguments)},vc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(vc=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=
|
|
a.asm.emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD).apply(null,arguments)},wc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(wc=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH).apply(null,arguments)},xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=function(){return(xc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_SEQUENTIAL_ENCODING).apply(null,
|
|
arguments)},yc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=function(){return(yc=a._emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING=a.asm.emscripten_enum_draco_MeshEncoderMethod_MESH_EDGEBREAKER_ENCODING).apply(null,arguments)};a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)};a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)};a.stackRestore=function(){return(a.stackRestore=
|
|
a.asm.stackRestore).apply(null,arguments)};a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)};a._setThrew=function(){return(a._setThrew=a.asm.setThrew).apply(null,arguments)};a._free=function(){return(a._free=a.asm.free).apply(null,arguments)};var Va=a._malloc=function(){return(Va=a._malloc=a.asm.malloc).apply(null,arguments)},ha;Z=function d(){ha||ka();ha||(Z=d)};a.run=ka;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();
|
|
ka();x.prototype=Object.create(x.prototype);x.prototype.constructor=x;x.prototype.__class__=x;x.__cache__={};a.WrapperObject=x;a.getCache=C;a.wrapPointer=qa;a.castObject=function(a,b){return qa(a.ptr,b)};a.NULL=qa(0);a.destroy=function(a){if(!a.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";a.__destroy__();delete C(a.__class__)[a.ptr]};a.compare=function(a,b){return a.ptr===b.ptr};a.getPointer=function(a){return a.ptr};a.getClass=function(a){return a.__class__};var k=
|
|
{buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(k.needed){for(var d=0;d<k.temps.length;d++)a._free(k.temps[d]);k.temps.length=0;a._free(k.buffer);k.buffer=0;k.size+=k.needed;k.needed=0}k.buffer||(k.size+=128,k.buffer=a._malloc(k.size),n(k.buffer));k.pos=0},alloc:function(d,b){n(k.buffer);d=d.length*b.BYTES_PER_ELEMENT;d=d+7&-8;k.pos+d>=k.size?(n(0<d),k.needed+=d,b=a._malloc(d),k.temps.push(b)):(b=k.buffer+k.pos,k.pos+=d);return b},copy:function(a,b,c){c>>>=0;switch(b.BYTES_PER_ELEMENT){case 2:c>>>=
|
|
1;break;case 4:c>>>=2;break;case 8:c>>>=3}for(var d=0;d<a.length;d++)b[c+d]=a[d]}};M.prototype=Object.create(x.prototype);M.prototype.constructor=M;M.prototype.__class__=M;M.__cache__={};a.VoidPtr=M;M.prototype.__destroy__=M.prototype.__destroy__=function(){Xa(this.ptr)};J.prototype=Object.create(x.prototype);J.prototype.constructor=J;J.prototype.__class__=J;J.__cache__={};a.GeometryAttribute=J;J.prototype.__destroy__=J.prototype.__destroy__=function(){Ya(this.ptr)};v.prototype=Object.create(x.prototype);
|
|
v.prototype.constructor=v;v.prototype.__class__=v;v.__cache__={};a.PointAttribute=v;v.prototype.size=v.prototype.size=function(){return Za(this.ptr)};v.prototype.attribute_type=v.prototype.attribute_type=function(){return $a(this.ptr)};v.prototype.data_type=v.prototype.data_type=function(){return ab(this.ptr)};v.prototype.num_components=v.prototype.num_components=function(){return bb(this.ptr)};v.prototype.normalized=v.prototype.normalized=function(){return!!cb(this.ptr)};v.prototype.byte_stride=
|
|
v.prototype.byte_stride=function(){return db(this.ptr)};v.prototype.byte_offset=v.prototype.byte_offset=function(){return eb(this.ptr)};v.prototype.unique_id=v.prototype.unique_id=function(){return fb(this.ptr)};v.prototype.__destroy__=v.prototype.__destroy__=function(){gb(this.ptr)};D.prototype=Object.create(x.prototype);D.prototype.constructor=D;D.prototype.__class__=D;D.__cache__={};a.PointCloud=D;D.prototype.num_attributes=D.prototype.num_attributes=function(){return hb(this.ptr)};D.prototype.num_points=
|
|
D.prototype.num_points=function(){return ib(this.ptr)};D.prototype.__destroy__=D.prototype.__destroy__=function(){jb(this.ptr)};y.prototype=Object.create(x.prototype);y.prototype.constructor=y;y.prototype.__class__=y;y.__cache__={};a.Mesh=y;y.prototype.num_faces=y.prototype.num_faces=function(){return kb(this.ptr)};y.prototype.num_attributes=y.prototype.num_attributes=function(){return lb(this.ptr)};y.prototype.num_points=y.prototype.num_points=function(){return mb(this.ptr)};y.prototype.set_num_points=
|
|
y.prototype.set_num_points=function(a){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);nb(d,a)};y.prototype.__destroy__=y.prototype.__destroy__=function(){ob(this.ptr)};K.prototype=Object.create(x.prototype);K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.Metadata=K;K.prototype.__destroy__=K.prototype.__destroy__=function(){pb(this.ptr)};E.prototype=Object.create(x.prototype);E.prototype.constructor=E;E.prototype.__class__=E;E.__cache__={};a.DracoInt8Array=E;E.prototype.GetValue=
|
|
E.prototype.GetValue=function(a){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);return qb(d,a)};E.prototype.size=E.prototype.size=function(){return rb(this.ptr)};E.prototype.__destroy__=E.prototype.__destroy__=function(){sb(this.ptr)};z.prototype=Object.create(x.prototype);z.prototype.constructor=z;z.prototype.__class__=z;z.__cache__={};a.MetadataBuilder=z;z.prototype.AddStringEntry=z.prototype.AddStringEntry=function(a,b,c){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b=b&&"object"===
|
|
typeof b?b.ptr:V(b);c=c&&"object"===typeof c?c.ptr:V(c);return!!tb(d,a,b,c)};z.prototype.AddIntEntry=z.prototype.AddIntEntry=function(a,b,c){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b=b&&"object"===typeof b?b.ptr:V(b);c&&"object"===typeof c&&(c=c.ptr);return!!ub(d,a,b,c)};z.prototype.AddIntEntryArray=z.prototype.AddIntEntryArray=function(a,b,c,e){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b=b&&"object"===typeof b?b.ptr:V(b);"object"==typeof c&&(c=Q(c));e&&"object"===
|
|
typeof e&&(e=e.ptr);return!!vb(d,a,b,c,e)};z.prototype.AddDoubleEntry=z.prototype.AddDoubleEntry=function(a,b,c){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b=b&&"object"===typeof b?b.ptr:V(b);c&&"object"===typeof c&&(c=c.ptr);return!!wb(d,a,b,c)};z.prototype.__destroy__=z.prototype.__destroy__=function(){xb(this.ptr)};t.prototype=Object.create(x.prototype);t.prototype.constructor=t;t.prototype.__class__=t;t.__cache__={};a.PointCloudBuilder=t;t.prototype.AddFloatAttribute=t.prototype.AddFloatAttribute=
|
|
function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=W(f));return yb(d,a,b,c,e,f)};t.prototype.AddInt8Attribute=t.prototype.AddInt8Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ia(f));
|
|
return zb(d,a,b,c,e,f)};t.prototype.AddUInt8Attribute=t.prototype.AddUInt8Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ia(f));return Ab(d,a,b,c,e,f)};t.prototype.AddInt16Attribute=t.prototype.AddInt16Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===
|
|
typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ja(f));return Bb(d,a,b,c,e,f)};t.prototype.AddUInt16Attribute=t.prototype.AddUInt16Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ja(f));return Cb(d,a,b,c,e,f)};t.prototype.AddInt32Attribute=t.prototype.AddInt32Attribute=function(a,b,c,e,f){var d=this.ptr;
|
|
k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=Q(f));return Db(d,a,b,c,e,f)};t.prototype.AddUInt32Attribute=t.prototype.AddUInt32Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=Q(f));return Eb(d,a,b,c,e,f)};t.prototype.AddMetadata=
|
|
t.prototype.AddMetadata=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);return!!Fb(d,a,b)};t.prototype.SetMetadataForAttribute=t.prototype.SetMetadataForAttribute=function(a,b,c){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return!!Gb(d,a,b,c)};t.prototype.__destroy__=t.prototype.__destroy__=function(){Hb(this.ptr)};q.prototype=Object.create(x.prototype);q.prototype.constructor=
|
|
q;q.prototype.__class__=q;q.__cache__={};a.MeshBuilder=q;q.prototype.AddFacesToMesh=q.prototype.AddFacesToMesh=function(a,b,c){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);"object"==typeof c&&(c=Q(c));return!!Ib(d,a,b,c)};q.prototype.AddFloatAttributeToMesh=q.prototype.AddFloatAttributeToMesh=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===
|
|
typeof e&&(e=e.ptr);"object"==typeof f&&(f=W(f));return Jb(d,a,b,c,e,f)};q.prototype.AddInt32AttributeToMesh=q.prototype.AddInt32AttributeToMesh=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=Q(f));return Kb(d,a,b,c,e,f)};q.prototype.AddMetadataToMesh=q.prototype.AddMetadataToMesh=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);
|
|
b&&"object"===typeof b&&(b=b.ptr);return!!Lb(d,a,b)};q.prototype.AddFloatAttribute=q.prototype.AddFloatAttribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=W(f));return Mb(d,a,b,c,e,f)};q.prototype.AddInt8Attribute=q.prototype.AddInt8Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===
|
|
typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ia(f));return Nb(d,a,b,c,e,f)};q.prototype.AddUInt8Attribute=q.prototype.AddUInt8Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ia(f));return Ob(d,a,b,c,e,f)};q.prototype.AddInt16Attribute=q.prototype.AddInt16Attribute=function(a,
|
|
b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ja(f));return Pb(d,a,b,c,e,f)};q.prototype.AddUInt16Attribute=q.prototype.AddUInt16Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=ja(f));
|
|
return Qb(d,a,b,c,e,f)};q.prototype.AddInt32Attribute=q.prototype.AddInt32Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=Q(f));return Rb(d,a,b,c,e,f)};q.prototype.AddUInt32Attribute=q.prototype.AddUInt32Attribute=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===
|
|
typeof c&&(c=c.ptr);e&&"object"===typeof e&&(e=e.ptr);"object"==typeof f&&(f=Q(f));return Sb(d,a,b,c,e,f)};q.prototype.AddMetadata=q.prototype.AddMetadata=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);return!!Tb(d,a,b)};q.prototype.SetMetadataForAttribute=q.prototype.SetMetadataForAttribute=function(a,b,c){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return!!Ub(d,a,b,c)};q.prototype.__destroy__=
|
|
q.prototype.__destroy__=function(){Vb(this.ptr)};u.prototype=Object.create(x.prototype);u.prototype.constructor=u;u.prototype.__class__=u;u.__cache__={};a.Encoder=u;u.prototype.SetEncodingMethod=u.prototype.SetEncodingMethod=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);Wb(b,a)};u.prototype.SetAttributeQuantization=u.prototype.SetAttributeQuantization=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);Xb(d,a,b)};u.prototype.SetAttributeExplicitQuantization=
|
|
u.prototype.SetAttributeExplicitQuantization=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);"object"==typeof e&&(e=W(e));f&&"object"===typeof f&&(f=f.ptr);Yb(d,a,b,c,e,f)};u.prototype.SetSpeedOptions=u.prototype.SetSpeedOptions=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);Zb(d,a,b)};u.prototype.SetTrackEncodedProperties=u.prototype.SetTrackEncodedProperties=
|
|
function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);$b(b,a)};u.prototype.EncodeMeshToDracoBuffer=u.prototype.EncodeMeshToDracoBuffer=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);return ac(d,a,b)};u.prototype.EncodePointCloudToDracoBuffer=u.prototype.EncodePointCloudToDracoBuffer=function(a,b,c){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return bc(d,a,b,c)};u.prototype.GetNumberOfEncodedPoints=
|
|
u.prototype.GetNumberOfEncodedPoints=function(){return cc(this.ptr)};u.prototype.GetNumberOfEncodedFaces=u.prototype.GetNumberOfEncodedFaces=function(){return dc(this.ptr)};u.prototype.__destroy__=u.prototype.__destroy__=function(){ec(this.ptr)};w.prototype=Object.create(x.prototype);w.prototype.constructor=w;w.prototype.__class__=w;w.__cache__={};a.ExpertEncoder=w;w.prototype.SetEncodingMethod=w.prototype.SetEncodingMethod=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);fc(b,a)};w.prototype.SetAttributeQuantization=
|
|
w.prototype.SetAttributeQuantization=function(a,b){var d=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);gc(d,a,b)};w.prototype.SetAttributeExplicitQuantization=w.prototype.SetAttributeExplicitQuantization=function(a,b,c,e,f){var d=this.ptr;k.prepare();a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);"object"==typeof e&&(e=W(e));f&&"object"===typeof f&&(f=f.ptr);hc(d,a,b,c,e,f)};w.prototype.SetSpeedOptions=w.prototype.SetSpeedOptions=
|
|
function(a,b){var c=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);ic(c,a,b)};w.prototype.SetTrackEncodedProperties=w.prototype.SetTrackEncodedProperties=function(a){var b=this.ptr;a&&"object"===typeof a&&(a=a.ptr);jc(b,a)};w.prototype.EncodeToDracoBuffer=w.prototype.EncodeToDracoBuffer=function(a,b){var c=this.ptr;a&&"object"===typeof a&&(a=a.ptr);b&&"object"===typeof b&&(b=b.ptr);return kc(c,a,b)};w.prototype.GetNumberOfEncodedPoints=w.prototype.GetNumberOfEncodedPoints=
|
|
function(){return lc(this.ptr)};w.prototype.GetNumberOfEncodedFaces=w.prototype.GetNumberOfEncodedFaces=function(){return mc(this.ptr)};w.prototype.__destroy__=w.prototype.__destroy__=function(){nc(this.ptr)};(function(){function d(){a.INVALID=oc();a.POSITION=pc();a.NORMAL=qc();a.COLOR=rc();a.TEX_COORD=sc();a.GENERIC=tc();a.INVALID_GEOMETRY_TYPE=uc();a.POINT_CLOUD=vc();a.TRIANGULAR_MESH=wc();a.MESH_SEQUENTIAL_ENCODING=xc();a.MESH_EDGEBREAKER_ENCODING=yc()}za?d():Ba.unshift(d)})();if("function"===
|
|
typeof a.onModuleParsed)a.onModuleParsed();return m.ready}}();"object"===typeof exports&&"object"===typeof module?module.exports=DracoEncoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoEncoderModule}):"object"===typeof exports&&(exports.DracoEncoderModule=DracoEncoderModule);
|