mars3d-cesium
Advanced tools
Comparing version 1.88.2 to 1.89.0
@@ -45,5 +45,4 @@ # `CustomShader` Documentation | ||
// makes it easier for the runtime to generate the shader and make optimizations. | ||
void vertexMain(VertexInput vsInput, inout vec3 positionMC) { | ||
// code goes here. e.g. for a no-op: | ||
return positionMC; | ||
void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) { | ||
// code goes here. An empty body is a no-op. | ||
} | ||
@@ -159,3 +158,3 @@ `, | ||
vertexShaderText: ` | ||
void vertexMain(VertexInput vsInput, inout vec3 positionMC) { | ||
void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) { | ||
float positiveX = step(0.0, positionMC.x); | ||
@@ -165,5 +164,4 @@ v_selectedColor = mix( | ||
vsInput.attributes.color_1, | ||
positionMC.x | ||
vsOutput.positionMC.x | ||
); | ||
return positionMC; | ||
} | ||
@@ -267,5 +265,22 @@ `, | ||
## `czm_modelVertexOutput` struct | ||
This struct is built-in, see the [documentation comment](../../../Shaders/Builtin/Structs/modelVertexOutput.glsl). | ||
This struct contains the output of the custom vertex shader. This includes: | ||
- `positionMC` - The vertex position in model space coordinates. This struct | ||
field can be used e.g. to perturb or animate vertices. It is initialized to | ||
`vsInput.attributes.positionMC`. The custom shader may modify this, and the | ||
result is used to compute `gl_Position`. | ||
- `pointSize` - corresponds to `gl_PointSize`. This is only applied for models | ||
rendered as `gl.POINTS`, and ignored otherwise. | ||
> **Implementation Note**: `positionMC` does not modify the primitive's bounding | ||
> sphere. If vertices are moved outside the bounding sphere, the primitive may | ||
> be unintentionally culled depending on the view frustum. | ||
## `czm_modelMaterial` struct | ||
This one is a built-in, see the [documentation comment](../../../Shaders/Builtin/Structs/modelMaterial.glsl). This is similar to `czm_material` from the old Fabric system, but slightly different fields as this one supports PBR lighting. | ||
This struct is a built-in, see the [documentation comment](../../../Shaders/Builtin/Structs/modelMaterial.glsl). This is similar to `czm_material` from the old Fabric system, but slightly different fields as this one supports PBR lighting. | ||
@@ -272,0 +287,0 @@ This struct serves as the basic input/output of the fragment shader pipeline stages. For example: |
@@ -1,117 +0,117 @@ | ||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(m){var p=0;return function(){return p<m.length?{done:!1,value:m[p++]}:{done:!0}}};$jscomp.arrayIterator=function(m){return{next:$jscomp.arrayIteratorImpl(m)}};$jscomp.makeIterator=function(m){var p="undefined"!=typeof Symbol&&Symbol.iterator&&m[Symbol.iterator];return p?p.call(m):$jscomp.arrayIterator(m)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; | ||
$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.getGlobal=function(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var p=0;p<m.length;++p){var l=m[p];if(l&&l.Math==Math)return l}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); | ||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(m,p,l){if(m==Array.prototype||m==Object.prototype)return m;m[p]=l.value;return m};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$"; | ||
var $jscomp$lookupPolyfilledValue=function(m,p){var l=$jscomp.propertyToPolyfillSymbol[p];if(null==l)return m[p];l=m[l];return void 0!==l?l:m[p]};$jscomp.polyfill=function(m,p,l,q){p&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(m,p,l,q):$jscomp.polyfillUnisolated(m,p,l,q))}; | ||
$jscomp.polyfillUnisolated=function(m,p,l,q){l=$jscomp.global;m=m.split(".");for(q=0;q<m.length-1;q++){var k=m[q];if(!(k in l))return;l=l[k]}m=m[m.length-1];q=l[m];p=p(q);p!=q&&null!=p&&$jscomp.defineProperty(l,m,{configurable:!0,writable:!0,value:p})}; | ||
$jscomp.polyfillIsolated=function(m,p,l,q){var k=m.split(".");m=1===k.length;q=k[0];q=!m&&q in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var A=0;A<k.length-1;A++){var g=k[A];if(!(g in q))return;q=q[g]}k=k[k.length-1];l=$jscomp.IS_SYMBOL_NATIVE&&"es6"===l?q[k]:null;p=p(l);null!=p&&(m?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:p}):p!==l&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(l=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE? | ||
$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+l+"$"+k),$jscomp.defineProperty(q,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:p})))}; | ||
$jscomp.polyfill("Promise",function(m){function p(){this.batch_=null}function l(g){return g instanceof k?g:new k(function(n,u){n(g)})}if(m&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return m;p.prototype.asyncExecute=function(g){if(null==this.batch_){this.batch_=[];var n=this;this.asyncExecuteFunction(function(){n.executeBatch_()})}this.batch_.push(g)}; | ||
var q=$jscomp.global.setTimeout;p.prototype.asyncExecuteFunction=function(g){q(g,0)};p.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var n=0;n<g.length;++n){var u=g[n];g[n]=null;try{u()}catch(z){this.asyncThrow_(z)}}}this.batch_=null};p.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var k=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var n=this.createResolveAndReject_(); | ||
try{g(n.resolve,n.reject)}catch(u){n.reject(u)}};k.prototype.createResolveAndReject_=function(){function g(z){return function(P){u||(u=!0,z.call(n,P))}}var n=this,u=!1;return{resolve:g(this.resolveTo_),reject:g(this.reject_)}};k.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof k)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var n=null!=g;break a;case "function":n=!0;break a;default:n=!1}n?this.resolveToNonPromiseObj_(g): | ||
this.fulfill_(g)}};k.prototype.resolveToNonPromiseObj_=function(g){var n=void 0;try{n=g.then}catch(u){this.reject_(u);return}"function"==typeof n?this.settleSameAsThenable_(n,g):this.fulfill_(g)};k.prototype.reject_=function(g){this.settle_(2,g)};k.prototype.fulfill_=function(g){this.settle_(1,g)};k.prototype.settle_=function(g,n){if(0!=this.state_)throw Error("Cannot settle("+g+", "+n+"): Promise already settled in state"+this.state_);this.state_=g;this.result_=n;2===this.state_&&this.scheduleUnhandledRejectionCheck_(); | ||
this.executeOnSettledCallbacks_()};k.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;q(function(){if(g.notifyUnhandledRejection_()){var n=$jscomp.global.console;"undefined"!==typeof n&&n.error(g.result_)}},1)};k.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var g=$jscomp.global.CustomEvent,n=$jscomp.global.Event,u=$jscomp.global.dispatchEvent;if("undefined"===typeof u)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}): | ||
"function"===typeof n?g=new n("unhandledrejection",{cancelable:!0}):(g=$jscomp.global.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return u(g)};k.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var g=0;g<this.onSettledCallbacks_.length;++g)A.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var A=new p;k.prototype.settleSameAsPromise_=function(g){var n=this.createResolveAndReject_(); | ||
g.callWhenSettled_(n.resolve,n.reject)};k.prototype.settleSameAsThenable_=function(g,n){var u=this.createResolveAndReject_();try{g.call(n,u.resolve,u.reject)}catch(z){u.reject(z)}};k.prototype.then=function(g,n){function u(V,W){return"function"==typeof V?function(v){try{z(V(v))}catch(x){P(x)}}:W}var z,P,aa=new k(function(V,W){z=V;P=W});this.callWhenSettled_(u(g,z),u(n,P));return aa};k.prototype.catch=function(g){return this.then(void 0,g)};k.prototype.callWhenSettled_=function(g,n){function u(){switch(z.state_){case 1:g(z.result_); | ||
break;case 2:n(z.result_);break;default:throw Error("Unexpected state: "+z.state_);}}var z=this;null==this.onSettledCallbacks_?A.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};k.resolve=l;k.reject=function(g){return new k(function(n,u){u(g)})};k.race=function(g){return new k(function(n,u){for(var z=$jscomp.makeIterator(g),P=z.next();!P.done;P=z.next())l(P.value).callWhenSettled_(n,u)})};k.all=function(g){var n=$jscomp.makeIterator(g),u=n.next();return u.done?l([]):new k(function(z, | ||
P){function aa(v){return function(x){V[v]=x;W--;0==W&&z(V)}}var V=[],W=0;do V.push(void 0),W++,l(u.value).callWhenSettled_(aa(V.length-1),P),u=n.next();while(!u.done)})};return k},"es6","es3"); | ||
$jscomp.polyfill("Array.prototype.copyWithin",function(m){function p(l){l=Number(l);return Infinity===l||-Infinity===l?l:l|0}return m?m:function(l,q,k){var A=this.length;l=p(l);q=p(q);k=void 0===k?A:p(k);l=0>l?Math.max(A+l,0):Math.min(l,A);q=0>q?Math.max(A+q,0):Math.min(q,A);k=0>k?Math.max(A+k,0):Math.min(k,A);if(l<q)for(;q<k;)q in this?this[l++]=this[q++]:(delete this[l++],q++);else for(k=Math.min(k,A+q-l),l+=k-q;k>q;)--k in this?this[--l]=this[k]:delete this[--l];return this}},"es6","es3"); | ||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(m){var n=0;return function(){return n<m.length?{done:!1,value:m[n++]}:{done:!0}}};$jscomp.arrayIterator=function(m){return{next:$jscomp.arrayIteratorImpl(m)}};$jscomp.makeIterator=function(m){var n="undefined"!=typeof Symbol&&Symbol.iterator&&m[Symbol.iterator];return n?n.call(m):$jscomp.arrayIterator(m)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; | ||
$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.getGlobal=function(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<m.length;++n){var h=m[n];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); | ||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(m,n,h){if(m==Array.prototype||m==Object.prototype)return m;m[n]=h.value;return m};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$"; | ||
var $jscomp$lookupPolyfilledValue=function(m,n){var h=$jscomp.propertyToPolyfillSymbol[n];if(null==h)return m[n];h=m[h];return void 0!==h?h:m[n]};$jscomp.polyfill=function(m,n,h,q){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(m,n,h,q):$jscomp.polyfillUnisolated(m,n,h,q))}; | ||
$jscomp.polyfillUnisolated=function(m,n,h,q){h=$jscomp.global;m=m.split(".");for(q=0;q<m.length-1;q++){var k=m[q];if(!(k in h))return;h=h[k]}m=m[m.length-1];q=h[m];n=n(q);n!=q&&null!=n&&$jscomp.defineProperty(h,m,{configurable:!0,writable:!0,value:n})}; | ||
$jscomp.polyfillIsolated=function(m,n,h,q){var k=m.split(".");m=1===k.length;q=k[0];q=!m&&q in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var z=0;z<k.length-1;z++){var g=k[z];if(!(g in q))return;q=q[g]}k=k[k.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?q[k]:null;n=n(h);null!=n&&(m?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:n}):n!==h&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(h=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE? | ||
$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+h+"$"+k),$jscomp.defineProperty(q,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:n})))}; | ||
$jscomp.polyfill("Promise",function(m){function n(){this.batch_=null}function h(g){return g instanceof k?g:new k(function(p,u){p(g)})}if(m&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return m;n.prototype.asyncExecute=function(g){if(null==this.batch_){this.batch_=[];var p=this;this.asyncExecuteFunction(function(){p.executeBatch_()})}this.batch_.push(g)}; | ||
var q=$jscomp.global.setTimeout;n.prototype.asyncExecuteFunction=function(g){q(g,0)};n.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var p=0;p<g.length;++p){var u=g[p];g[p]=null;try{u()}catch(A){this.asyncThrow_(A)}}}this.batch_=null};n.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var k=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var p=this.createResolveAndReject_(); | ||
try{g(p.resolve,p.reject)}catch(u){p.reject(u)}};k.prototype.createResolveAndReject_=function(){function g(A){return function(E){u||(u=!0,A.call(p,E))}}var p=this,u=!1;return{resolve:g(this.resolveTo_),reject:g(this.reject_)}};k.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof k)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var p=null!=g;break a;case "function":p=!0;break a;default:p=!1}p?this.resolveToNonPromiseObj_(g): | ||
this.fulfill_(g)}};k.prototype.resolveToNonPromiseObj_=function(g){var p=void 0;try{p=g.then}catch(u){this.reject_(u);return}"function"==typeof p?this.settleSameAsThenable_(p,g):this.fulfill_(g)};k.prototype.reject_=function(g){this.settle_(2,g)};k.prototype.fulfill_=function(g){this.settle_(1,g)};k.prototype.settle_=function(g,p){if(0!=this.state_)throw Error("Cannot settle("+g+", "+p+"): Promise already settled in state"+this.state_);this.state_=g;this.result_=p;2===this.state_&&this.scheduleUnhandledRejectionCheck_(); | ||
this.executeOnSettledCallbacks_()};k.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;q(function(){if(g.notifyUnhandledRejection_()){var p=$jscomp.global.console;"undefined"!==typeof p&&p.error(g.result_)}},1)};k.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var g=$jscomp.global.CustomEvent,p=$jscomp.global.Event,u=$jscomp.global.dispatchEvent;if("undefined"===typeof u)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}): | ||
"function"===typeof p?g=new p("unhandledrejection",{cancelable:!0}):(g=$jscomp.global.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return u(g)};k.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var g=0;g<this.onSettledCallbacks_.length;++g)z.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var z=new n;k.prototype.settleSameAsPromise_=function(g){var p=this.createResolveAndReject_(); | ||
g.callWhenSettled_(p.resolve,p.reject)};k.prototype.settleSameAsThenable_=function(g,p){var u=this.createResolveAndReject_();try{g.call(p,u.resolve,u.reject)}catch(A){u.reject(A)}};k.prototype.then=function(g,p){function u(U,V){return"function"==typeof U?function(v){try{A(U(v))}catch(x){E(x)}}:V}var A,E,ea=new k(function(U,V){A=U;E=V});this.callWhenSettled_(u(g,A),u(p,E));return ea};k.prototype.catch=function(g){return this.then(void 0,g)};k.prototype.callWhenSettled_=function(g,p){function u(){switch(A.state_){case 1:g(A.result_); | ||
break;case 2:p(A.result_);break;default:throw Error("Unexpected state: "+A.state_);}}var A=this;null==this.onSettledCallbacks_?z.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};k.resolve=h;k.reject=function(g){return new k(function(p,u){u(g)})};k.race=function(g){return new k(function(p,u){for(var A=$jscomp.makeIterator(g),E=A.next();!E.done;E=A.next())h(E.value).callWhenSettled_(p,u)})};k.all=function(g){var p=$jscomp.makeIterator(g),u=p.next();return u.done?h([]):new k(function(A, | ||
E){function ea(v){return function(x){U[v]=x;V--;0==V&&A(U)}}var U=[],V=0;do U.push(void 0),V++,h(u.value).callWhenSettled_(ea(U.length-1),E),u=p.next();while(!u.done)})};return k},"es6","es3");$jscomp.checkStringArgs=function(m,n,h){if(null==m)throw new TypeError("The 'this' value for String.prototype."+h+" must not be null or undefined");if(n instanceof RegExp)throw new TypeError("First argument to String.prototype."+h+" must not be a regular expression");return m+""}; | ||
$jscomp.polyfill("String.prototype.startsWith",function(m){return m?m:function(n,h){var q=$jscomp.checkStringArgs(this,n,"startsWith");n+="";var k=q.length,z=n.length;h=Math.max(0,Math.min(h|0,q.length));for(var g=0;g<z&&h<k;)if(q[h++]!=n[g++])return!1;return g>=z}},"es6","es3"); | ||
$jscomp.polyfill("Array.prototype.copyWithin",function(m){function n(h){h=Number(h);return Infinity===h||-Infinity===h?h:h|0}return m?m:function(h,q,k){var z=this.length;h=n(h);q=n(q);k=void 0===k?z:n(k);h=0>h?Math.max(z+h,0):Math.min(h,z);q=0>q?Math.max(z+q,0):Math.min(q,z);k=0>k?Math.max(z+k,0):Math.min(k,z);if(h<q)for(;q<k;)q in this?this[h++]=this[q++]:(delete this[h++],q++);else for(k=Math.min(k,z+q-h),h+=k-q;k>q;)--k in this?this[--h]=this[k]:delete this[--h];return this}},"es6","es3"); | ||
$jscomp.typedArrayCopyWithin=function(m){return m?m:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); | ||
$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5"); | ||
var DracoDecoderModule=function(){var m="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(m=m||__filename);return function(p){function l(e){return a.locateFile?a.locateFile(e,X):X+e}function q(e,b){e||n("Assertion failed: "+b)}function k(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16<c-b&&e.subarray&&Da)return Da.decode(e.subarray(b,c));for(d="";b<c;){var f=e[b++];if(f&128){var t=e[b++]&63;if(192==(f&224))d+=String.fromCharCode((f& | ||
31)<<6|t);else{var Y=e[b++]&63;f=224==(f&240)?(f&15)<<12|t<<6|Y:(f&7)<<18|t<<12|Y<<6|e[b++]&63;65536>f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function A(e,b){return e?k(ja,e,b):""}function g(e){Ea=e;a.HEAP8=ba=new Int8Array(e);a.HEAP16=new Int16Array(e);a.HEAP32=F=new Int32Array(e);a.HEAPU8=ja=new Uint8Array(e);a.HEAPU16=new Uint16Array(e);a.HEAPU32=new Uint32Array(e);a.HEAPF32=new Float32Array(e);a.HEAPF64=new Float64Array(e)} | ||
function n(e){if(a.onAbort)a.onAbort(e);e+="";ia(e);Fa=!0;e=new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info.");sa(e);throw e;}function u(e,b){return String.prototype.startsWith?e.startsWith(b):0===e.indexOf(b)}function z(e){try{if(e==Q&&ka)return new Uint8Array(ka);if(oa)return oa(e);throw"both async and sync fetching of the wasm failed";}catch(b){n(b)}}function P(){if(!ka&&(pa||fa)){if("function"===typeof fetch&&!u(Q,"file://"))return fetch(Q,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ | ||
Q+"'";return e.arrayBuffer()}).catch(function(){return z(Q)});if(Ga)return new Promise(function(e,b){Ga(Q,function(c){e(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return z(Q)})}function aa(e){for(;0<e.length;){var b=e.shift();if("function"==typeof b)b(a);else{var c=b.func;"number"===typeof c?void 0===b.arg?ta.get(c)():ta.get(c)(b.arg):c(void 0===b.arg?null:b.arg)}}}function V(e){this.excPtr=e;this.ptr=e-D.SIZE;this.set_type=function(b){F[this.ptr+D.TYPE_OFFSET>>2]=b};this.get_type= | ||
function(){return F[this.ptr+D.TYPE_OFFSET>>2]};this.set_destructor=function(b){F[this.ptr+D.DESTRUCTOR_OFFSET>>2]=b};this.get_destructor=function(){return F[this.ptr+D.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(b){F[this.ptr+D.REFCOUNT_OFFSET>>2]=b};this.set_caught=function(b){ba[this.ptr+D.CAUGHT_OFFSET>>0]=b?1:0};this.get_caught=function(){return 0!=ba[this.ptr+D.CAUGHT_OFFSET>>0]};this.set_rethrown=function(b){ba[this.ptr+D.RETHROWN_OFFSET>>0]=b?1:0};this.get_rethrown=function(){return 0!= | ||
ba[this.ptr+D.RETHROWN_OFFSET>>0]};this.init=function(b,c){this.set_type(b);this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){F[this.ptr+D.REFCOUNT_OFFSET>>2]+=1};this.release_ref=function(){var b=F[this.ptr+D.REFCOUNT_OFFSET>>2];F[this.ptr+D.REFCOUNT_OFFSET>>2]=b-1;return 1===b}}function W(e){function b(){if(!qa&&(qa=!0,a.calledRun=!0,!Fa)){Ha=!0;aa(Ia);aa(ua);Ja(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"== | ||
typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Ka.unshift(a.postRun.shift());aa(Ka)}}if(!(0<ha)){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)La.unshift(a.preRun.shift());aa(La);0<ha||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}function v(){}function x(e){return(e||v).__cache__}function S(e,b){var c=x(b),d=c[e];if(d)return d;d=Object.create((b||v).prototype);d.ptr=e;return c[e]= | ||
d}function da(e){if("string"===typeof e){for(var b=0,c=0;c<e.length;++c){var d=e.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((d&1023)<<10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0<d){d=c+d-1;for(var f=0;f<e.length;++f){var t=e.charCodeAt(f);if(55296<=t&&57343>=t){var Y=e.charCodeAt(++f);t=65536+((t&1023)<<10)|Y&1023}if(127>=t){if(c>=d)break;b[c++]=t}else{if(2047>=t){if(c+1>=d)break;b[c++]=192|t>>6}else{if(65535>=t){if(c+2>=d)break;b[c++]=224| | ||
t>>12}else{if(c+3>=d)break;b[c++]=240|t>>18;b[c++]=128|t>>12&63}b[c++]=128|t>>6&63}b[c++]=128|t&63}}b[c]=0}e=r.alloc(b,ba);r.copy(b,ba,e);return e}return e}function va(e){if("object"===typeof e){var b=r.alloc(e,ba);r.copy(e,ba,b);return b}return e}function ca(){throw"cannot construct a VoidPtr, no constructor in IDL";}function T(){this.ptr=Ma();x(T)[this.ptr]=this}function R(){this.ptr=Na();x(R)[this.ptr]=this}function Z(){this.ptr=Oa();x(Z)[this.ptr]=this}function w(){this.ptr=Pa();x(w)[this.ptr]= | ||
this}function C(){this.ptr=Qa();x(C)[this.ptr]=this}function G(){this.ptr=Ra();x(G)[this.ptr]=this}function H(){this.ptr=Sa();x(H)[this.ptr]=this}function E(){this.ptr=Ta();x(E)[this.ptr]=this}function U(){this.ptr=Ua();x(U)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function I(){this.ptr=Va();x(I)[this.ptr]=this}function J(){this.ptr=Wa();x(J)[this.ptr]=this}function K(){this.ptr=Xa();x(K)[this.ptr]=this}function L(){this.ptr=Ya();x(L)[this.ptr]=this}function M(){this.ptr= | ||
Za();x(M)[this.ptr]=this}function N(){this.ptr=$a();x(N)[this.ptr]=this}function O(){this.ptr=ab();x(O)[this.ptr]=this}function y(){this.ptr=bb();x(y)[this.ptr]=this}function h(){this.ptr=cb();x(h)[this.ptr]=this}p=p||{};var a="undefined"!==typeof p?p:{},Ja,sa;a.ready=new Promise(function(e,b){Ja=e;sa=b});var db=!1,eb=!1;a.onRuntimeInitialized=function(){db=!0;a.callRuntimeCallbacks(a.mainCallbacks);if(eb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){eb=!0; | ||
if(db&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3<e.length?!1:1==e[0]&&0<=e[1]&&4>=e[1]?!0:0!=e[0]||10<e[1]?!1:!0};var la={},ea;for(ea in a)a.hasOwnProperty(ea)&&(la[ea]=a[ea]);var pa=!1,fa=!1,wa=!1,fb=!1;pa="object"===typeof window;fa="function"===typeof importScripts;wa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;fb=!pa&&!wa&& | ||
!fa;var X="",xa,ya;if(wa){X=fa?require("path").dirname(X)+"/":__dirname+"/";var za=function(e,b){xa||(xa=require("fs"));ya||(ya=require("path"));e=ya.normalize(e);return xa.readFileSync(e,b?null:"utf8")};var oa=function(e){e=za(e,!0);e.buffer||(e=new Uint8Array(e));q(e.buffer);return e};1<process.argv.length&&process.argv[1].replace(/\\/g,"/");process.argv.slice(2);a.inspect=function(){return"[Emscripten Module object]"}}else if(fb)"undefined"!=typeof read&&(za=function(e){return read(e)}),oa=function(e){if("function"=== | ||
typeof readbuffer)return new Uint8Array(readbuffer(e));e=read(e,"binary");q("object"===typeof e);return e},"undefined"!==typeof print&&("undefined"===typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==typeof printErr?printErr:print);else if(pa||fa){fa?X=self.location.href:"undefined"!==typeof document&&document.currentScript&&(X=document.currentScript.src);m&&(X=m);X=0!==X.indexOf("blob:")?X.substr(0,X.lastIndexOf("/")+1):"";za=function(e){var b=new XMLHttpRequest; | ||
b.open("GET",e,!1);b.send(null);return b.responseText};fa&&(oa=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var Ga=function(e,b,c){var d=new XMLHttpRequest;d.open("GET",e,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)}}var Ad=a.print||console.log.bind(console),ia=a.printErr||console.warn.bind(console);for(ea in la)la.hasOwnProperty(ea)&& | ||
(a[ea]=la[ea]);la=null;var ka;a.wasmBinary&&(ka=a.wasmBinary);"object"!==typeof WebAssembly&&n("no native wasm support detected");var ra,Fa=!1,Da="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0,Ea,ba,ja,F,ta,La=[],Ia=[],ua=[],Ka=[],Ha=!1,ha=0,Aa=null,ma=null;a.preloadedImages={};a.preloadedAudios={};var Q="draco_decoder.wasm";u(Q,"data:application/octet-stream;base64,")||(Q=l(Q));var D={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16}, | ||
Bd=0,na={mappings:{},buffers:[null,[],[]],printChar:function(e,b){var c=na.buffers[e];0===b||10===b?((1===e?Ad:ia)(k(c,0)),c.length=0):c.push(b)},varargs:void 0,get:function(){na.varargs+=4;return F[na.varargs-4>>2]},getStr:function(e){return A(e)},get64:function(e,b){return e}},Cd={h:function(e){return gb(e+D.SIZE)+D.SIZE},g:function(e,b,c){(new V(e)).init(b,c);Bd++;throw e;},a:function(){n()},d:function(e,b,c){ja.copyWithin(e,b,b+c)},e:function(e){var b=ja.length;e>>>=0;if(2147483648<e)return!1; | ||
for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,e+100663296);var f=Math,t=f.min;d=Math.max(e,d);0<d%65536&&(d+=65536-d%65536);f=t.call(f,2147483648,d);a:{try{ra.grow(f-Ea.byteLength+65535>>>16);g(ra.buffer);var Y=1;break a}catch(Ba){}Y=void 0}if(Y)return!0}return!1},f:function(e){return 0},c:function(e,b,c,d,f){},b:function(e,b,c,d){for(var f=0,t=0;t<c;t++){for(var Y=F[b+8*t>>2],Ba=F[b+(8*t+4)>>2],Ca=0;Ca<Ba;Ca++)na.printChar(e,ja[Y+Ca]);f+=Ba}F[d>>2]=f;return 0}};(function(){function e(f,t){a.asm= | ||
f.exports;ra=a.asm.i;g(ra.buffer);ta=a.asm.k;Ia.unshift(a.asm.j);ha--;a.monitorRunDependencies&&a.monitorRunDependencies(ha);0==ha&&(null!==Aa&&(clearInterval(Aa),Aa=null),ma&&(f=ma,ma=null,f()))}function b(f){e(f.instance)}function c(f){return P().then(function(t){return WebAssembly.instantiate(t,d)}).then(f,function(t){ia("failed to asynchronously prepare wasm: "+t);n(t)})}var d={a:Cd};ha++;a.monitorRunDependencies&&a.monitorRunDependencies(ha);if(a.instantiateWasm)try{return a.instantiateWasm(d, | ||
e)}catch(f){return ia("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return ka||"function"!==typeof WebAssembly.instantiateStreaming||u(Q,"data:application/octet-stream;base64,")||u(Q,"file://")||"function"!==typeof fetch?c(b):fetch(Q,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(t){ia("wasm streaming compile failed: "+t);ia("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(sa);return{}})(); | ||
a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.j).apply(null,arguments)};var hb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(hb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.l).apply(null,arguments)},Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ma=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.m).apply(null,arguments)},ib=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(ib=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.n).apply(null, | ||
arguments)},jb=a._emscripten_bind_DecoderBuffer___destroy___0=function(){return(jb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.o).apply(null,arguments)},Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Na=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.p).apply(null,arguments)},kb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(kb=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.q).apply(null, | ||
arguments)},lb=a._emscripten_bind_AttributeTransformData___destroy___0=function(){return(lb=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.r).apply(null,arguments)},Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Oa=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.s).apply(null,arguments)},mb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(mb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.t).apply(null,arguments)}, | ||
Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Pa=a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.u).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_size_0=function(){return(nb=a._emscripten_bind_PointAttribute_size_0=a.asm.v).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(ob=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.w).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_attribute_type_0= | ||
function(){return(pb=a._emscripten_bind_PointAttribute_attribute_type_0=a.asm.x).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(qb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.y).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_num_components_0=function(){return(rb=a._emscripten_bind_PointAttribute_num_components_0=a.asm.z).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(sb=a._emscripten_bind_PointAttribute_normalized_0= | ||
a.asm.A).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute_byte_stride_0=function(){return(tb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.B).apply(null,arguments)},ub=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(ub=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.C).apply(null,arguments)},vb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(vb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.D).apply(null,arguments)},wb=a._emscripten_bind_PointAttribute___destroy___0= | ||
function(){return(wb=a._emscripten_bind_PointAttribute___destroy___0=a.asm.E).apply(null,arguments)},Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Qa=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.F).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.G).apply(null, | ||
arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.H).apply(null,arguments)},zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(zb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.I).apply(null,arguments)},Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Ab=a._emscripten_bind_AttributeQuantizationTransform_range_0= | ||
a.asm.J).apply(null,arguments)},Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.K).apply(null,arguments)},Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Ra=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.L).apply(null,arguments)},Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1= | ||
function(){return(Cb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.M).apply(null,arguments)},Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Db=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.N).apply(null,arguments)},Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Eb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.O).apply(null,arguments)},Sa=a._emscripten_bind_PointCloud_PointCloud_0= | ||
function(){return(Sa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.P).apply(null,arguments)},Fb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Fb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.Q).apply(null,arguments)},Gb=a._emscripten_bind_PointCloud_num_points_0=function(){return(Gb=a._emscripten_bind_PointCloud_num_points_0=a.asm.R).apply(null,arguments)},Hb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Hb=a._emscripten_bind_PointCloud___destroy___0=a.asm.S).apply(null, | ||
arguments)},Ta=a._emscripten_bind_Mesh_Mesh_0=function(){return(Ta=a._emscripten_bind_Mesh_Mesh_0=a.asm.T).apply(null,arguments)},Ib=a._emscripten_bind_Mesh_num_faces_0=function(){return(Ib=a._emscripten_bind_Mesh_num_faces_0=a.asm.U).apply(null,arguments)},Jb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Jb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.V).apply(null,arguments)},Kb=a._emscripten_bind_Mesh_num_points_0=function(){return(Kb=a._emscripten_bind_Mesh_num_points_0=a.asm.W).apply(null, | ||
arguments)},Lb=a._emscripten_bind_Mesh___destroy___0=function(){return(Lb=a._emscripten_bind_Mesh___destroy___0=a.asm.X).apply(null,arguments)},Ua=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ua=a._emscripten_bind_Metadata_Metadata_0=a.asm.Y).apply(null,arguments)},Mb=a._emscripten_bind_Metadata___destroy___0=function(){return(Mb=a._emscripten_bind_Metadata___destroy___0=a.asm.Z).apply(null,arguments)},Nb=a._emscripten_bind_Status_code_0=function(){return(Nb=a._emscripten_bind_Status_code_0= | ||
a.asm._).apply(null,arguments)},Ob=a._emscripten_bind_Status_ok_0=function(){return(Ob=a._emscripten_bind_Status_ok_0=a.asm.$).apply(null,arguments)},Pb=a._emscripten_bind_Status_error_msg_0=function(){return(Pb=a._emscripten_bind_Status_error_msg_0=a.asm.aa).apply(null,arguments)},Qb=a._emscripten_bind_Status___destroy___0=function(){return(Qb=a._emscripten_bind_Status___destroy___0=a.asm.ba).apply(null,arguments)},Va=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Va= | ||
a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.ca).apply(null,arguments)},Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.da).apply(null,arguments)},Sb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Sb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.ea).apply(null,arguments)},Tb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoFloat32Array___destroy___0= | ||
a.asm.fa).apply(null,arguments)},Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(Wa=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.ga).apply(null,arguments)},Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.ha).apply(null,arguments)},Vb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.ia).apply(null,arguments)},Wb=a._emscripten_bind_DracoInt8Array___destroy___0= | ||
function(){return(Wb=a._emscripten_bind_DracoInt8Array___destroy___0=a.asm.ja).apply(null,arguments)},Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Xa=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.ka).apply(null,arguments)},Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.la).apply(null,arguments)},Yb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Yb=a._emscripten_bind_DracoUInt8Array_size_0= | ||
a.asm.ma).apply(null,arguments)},Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.na).apply(null,arguments)},Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Ya=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.oa).apply(null,arguments)},$b=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.pa).apply(null,arguments)},ac= | ||
a._emscripten_bind_DracoInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoInt16Array_size_0=a.asm.qa).apply(null,arguments)},bc=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(bc=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.ra).apply(null,arguments)},Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Za=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.sa).apply(null,arguments)},cc=a._emscripten_bind_DracoUInt16Array_GetValue_1= | ||
function(){return(cc=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.ta).apply(null,arguments)},dc=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(dc=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.ua).apply(null,arguments)},ec=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.va).apply(null,arguments)},$a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return($a=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0= | ||
a.asm.wa).apply(null,arguments)},fc=a._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.xa).apply(null,arguments)},gc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.ya).apply(null,arguments)},hc=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(hc=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.za).apply(null,arguments)},ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0= | ||
function(){return(ab=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=a.asm.Aa).apply(null,arguments)},ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(ic=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.Ba).apply(null,arguments)},jc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(jc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.Ca).apply(null,arguments)},kc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(kc=a._emscripten_bind_DracoUInt32Array___destroy___0= | ||
a.asm.Da).apply(null,arguments)},bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(bb=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.Ea).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.Fa).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.Ga).apply(null,arguments)},nc= | ||
a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(nc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=a.asm.Ha).apply(null,arguments)},oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(oc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.Ia).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(pc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.Ja).apply(null,arguments)},qc=a._emscripten_bind_MetadataQuerier_NumEntries_1= | ||
function(){return(qc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.Ka).apply(null,arguments)},rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(rc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.La).apply(null,arguments)},sc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(sc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.Ma).apply(null,arguments)},cb=a._emscripten_bind_Decoder_Decoder_0=function(){return(cb=a._emscripten_bind_Decoder_Decoder_0= | ||
a.asm.Na).apply(null,arguments)},tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(tc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.Oa).apply(null,arguments)},uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(uc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.Pa).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.Qa).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2= | ||
function(){return(wc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=a.asm.Ra).apply(null,arguments)},xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(xc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.Sa).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.Ta).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(zc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2= | ||
a.asm.Ua).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(Ac=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.Va).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(Bc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.Wa).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(Cc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.Xa).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2= | ||
function(){return(Dc=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.Ya).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Ec=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.Za).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Fc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm._a).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Gc= | ||
a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.$a).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.ab).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.bb).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Jc= | ||
a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.cb).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.db).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.eb).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3= | ||
function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.fb).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Nc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.gb).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Oc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.hb).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5= | ||
function(){return(Pc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.ib).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Qc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.jb).apply(null,arguments)},Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Rc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.kb).apply(null,arguments)},Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2= | ||
function(){return(Sc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.lb).apply(null,arguments)},Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Tc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.mb).apply(null,arguments)},Uc=a._emscripten_bind_Decoder___destroy___0=function(){return(Uc=a._emscripten_bind_Decoder___destroy___0=a.asm.nb).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM= | ||
a.asm.ob).apply(null,arguments)},Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Wc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.pb).apply(null,arguments)},Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Xc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.qb).apply(null,arguments)},Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM= | ||
function(){return(Yc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.rb).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.sb).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.tb).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL= | ||
function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.ub).apply(null,arguments)},bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(bd=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.vb).apply(null,arguments)},cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(cd=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.wb).apply(null,arguments)},dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= | ||
function(){return(dd=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.xb).apply(null,arguments)},ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(ed=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.yb).apply(null,arguments)},fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(fd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.zb).apply(null,arguments)},gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH= | ||
function(){return(gd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.Ab).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.Bb).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(id=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.Cb).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(jd=a._emscripten_enum_draco_DataType_DT_UINT8= | ||
a.asm.Db).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(kd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.Eb).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(ld=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.Fb).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(md=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.Gb).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_UINT32= | ||
function(){return(nd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.Hb).apply(null,arguments)},od=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(od=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.Ib).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(pd=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.Jb).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(qd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.Kb).apply(null, | ||
arguments)},rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(rd=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.Lb).apply(null,arguments)},sd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(sd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.Mb).apply(null,arguments)},td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(td=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.Nb).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_OK=function(){return(ud= | ||
a._emscripten_enum_draco_StatusCode_OK=a.asm.Ob).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(vd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.Pb).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(wd=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.Qb).apply(null,arguments)},xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(xd=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER= | ||
a.asm.Rb).apply(null,arguments)},yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(yd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.Sb).apply(null,arguments)},zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(zd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.Tb).apply(null,arguments)};a._free=function(){return(a._free=a.asm.Ub).apply(null,arguments)};var gb=a._malloc=function(){return(gb=a._malloc=a.asm.Vb).apply(null,arguments)}; | ||
a.callRuntimeCallbacks=aa;var qa;ma=function b(){qa||W();qa||(ma=b)};a.run=W;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();W();v.prototype=Object.create(v.prototype);v.prototype.constructor=v;v.prototype.__class__=v;v.__cache__={};a.WrapperObject=v;a.getCache=x;a.wrapPointer=S;a.castObject=function(b,c){return S(b.ptr,c)};a.NULL=S(0);a.destroy=function(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)"; | ||
b.__destroy__();delete x(b.__class__)[b.ptr]};a.compare=function(b,c){return b.ptr===c.ptr};a.getPointer=function(b){return b.ptr};a.getClass=function(b){return b.__class__};var r={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(r.needed){for(var b=0;b<r.temps.length;b++)a._free(r.temps[b]);r.temps.length=0;a._free(r.buffer);r.buffer=0;r.size+=r.needed;r.needed=0}r.buffer||(r.size+=128,r.buffer=a._malloc(r.size),q(r.buffer));r.pos=0},alloc:function(b,c){q(r.buffer);b=b.length*c.BYTES_PER_ELEMENT; | ||
b=b+7&-8;r.pos+b>=r.size?(q(0<b),r.needed+=b,c=a._malloc(b),r.temps.push(c)):(c=r.buffer+r.pos,r.pos+=b);return c},copy:function(b,c,d){d>>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var f=0;f<b.length;f++)c[d+f]=b[f]}};ca.prototype=Object.create(v.prototype);ca.prototype.constructor=ca;ca.prototype.__class__=ca;ca.__cache__={};a.VoidPtr=ca;ca.prototype.__destroy__=ca.prototype.__destroy__=function(){hb(this.ptr)};T.prototype=Object.create(v.prototype); | ||
T.prototype.constructor=T;T.prototype.__class__=T;T.__cache__={};a.DecoderBuffer=T;T.prototype.Init=T.prototype.Init=function(b,c){var d=this.ptr;r.prepare();"object"==typeof b&&(b=va(b));c&&"object"===typeof c&&(c=c.ptr);ib(d,b,c)};T.prototype.__destroy__=T.prototype.__destroy__=function(){jb(this.ptr)};R.prototype=Object.create(v.prototype);R.prototype.constructor=R;R.prototype.__class__=R;R.__cache__={};a.AttributeTransformData=R;R.prototype.transform_type=R.prototype.transform_type=function(){return kb(this.ptr)}; | ||
R.prototype.__destroy__=R.prototype.__destroy__=function(){lb(this.ptr)};Z.prototype=Object.create(v.prototype);Z.prototype.constructor=Z;Z.prototype.__class__=Z;Z.__cache__={};a.GeometryAttribute=Z;Z.prototype.__destroy__=Z.prototype.__destroy__=function(){mb(this.ptr)};w.prototype=Object.create(v.prototype);w.prototype.constructor=w;w.prototype.__class__=w;w.__cache__={};a.PointAttribute=w;w.prototype.size=w.prototype.size=function(){return nb(this.ptr)};w.prototype.GetAttributeTransformData=w.prototype.GetAttributeTransformData= | ||
function(){return S(ob(this.ptr),R)};w.prototype.attribute_type=w.prototype.attribute_type=function(){return pb(this.ptr)};w.prototype.data_type=w.prototype.data_type=function(){return qb(this.ptr)};w.prototype.num_components=w.prototype.num_components=function(){return rb(this.ptr)};w.prototype.normalized=w.prototype.normalized=function(){return!!sb(this.ptr)};w.prototype.byte_stride=w.prototype.byte_stride=function(){return tb(this.ptr)};w.prototype.byte_offset=w.prototype.byte_offset=function(){return ub(this.ptr)}; | ||
w.prototype.unique_id=w.prototype.unique_id=function(){return vb(this.ptr)};w.prototype.__destroy__=w.prototype.__destroy__=function(){wb(this.ptr)};C.prototype=Object.create(v.prototype);C.prototype.constructor=C;C.prototype.__class__=C;C.__cache__={};a.AttributeQuantizationTransform=C;C.prototype.InitFromAttribute=C.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!xb(c,b)};C.prototype.quantization_bits=C.prototype.quantization_bits=function(){return yb(this.ptr)}; | ||
C.prototype.min_value=C.prototype.min_value=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return zb(c,b)};C.prototype.range=C.prototype.range=function(){return Ab(this.ptr)};C.prototype.__destroy__=C.prototype.__destroy__=function(){Bb(this.ptr)};G.prototype=Object.create(v.prototype);G.prototype.constructor=G;G.prototype.__class__=G;G.__cache__={};a.AttributeOctahedronTransform=G;G.prototype.InitFromAttribute=G.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&& | ||
(b=b.ptr);return!!Cb(c,b)};G.prototype.quantization_bits=G.prototype.quantization_bits=function(){return Db(this.ptr)};G.prototype.__destroy__=G.prototype.__destroy__=function(){Eb(this.ptr)};H.prototype=Object.create(v.prototype);H.prototype.constructor=H;H.prototype.__class__=H;H.__cache__={};a.PointCloud=H;H.prototype.num_attributes=H.prototype.num_attributes=function(){return Fb(this.ptr)};H.prototype.num_points=H.prototype.num_points=function(){return Gb(this.ptr)};H.prototype.__destroy__=H.prototype.__destroy__= | ||
function(){Hb(this.ptr)};E.prototype=Object.create(v.prototype);E.prototype.constructor=E;E.prototype.__class__=E;E.__cache__={};a.Mesh=E;E.prototype.num_faces=E.prototype.num_faces=function(){return Ib(this.ptr)};E.prototype.num_attributes=E.prototype.num_attributes=function(){return Jb(this.ptr)};E.prototype.num_points=E.prototype.num_points=function(){return Kb(this.ptr)};E.prototype.__destroy__=E.prototype.__destroy__=function(){Lb(this.ptr)};U.prototype=Object.create(v.prototype);U.prototype.constructor= | ||
U;U.prototype.__class__=U;U.__cache__={};a.Metadata=U;U.prototype.__destroy__=U.prototype.__destroy__=function(){Mb(this.ptr)};B.prototype=Object.create(v.prototype);B.prototype.constructor=B;B.prototype.__class__=B;B.__cache__={};a.Status=B;B.prototype.code=B.prototype.code=function(){return Nb(this.ptr)};B.prototype.ok=B.prototype.ok=function(){return!!Ob(this.ptr)};B.prototype.error_msg=B.prototype.error_msg=function(){return A(Pb(this.ptr))};B.prototype.__destroy__=B.prototype.__destroy__=function(){Qb(this.ptr)}; | ||
I.prototype=Object.create(v.prototype);I.prototype.constructor=I;I.prototype.__class__=I;I.__cache__={};a.DracoFloat32Array=I;I.prototype.GetValue=I.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Rb(c,b)};I.prototype.size=I.prototype.size=function(){return Sb(this.ptr)};I.prototype.__destroy__=I.prototype.__destroy__=function(){Tb(this.ptr)};J.prototype=Object.create(v.prototype);J.prototype.constructor=J;J.prototype.__class__=J;J.__cache__={};a.DracoInt8Array= | ||
J;J.prototype.GetValue=J.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Ub(c,b)};J.prototype.size=J.prototype.size=function(){return Vb(this.ptr)};J.prototype.__destroy__=J.prototype.__destroy__=function(){Wb(this.ptr)};K.prototype=Object.create(v.prototype);K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.DracoUInt8Array=K;K.prototype.GetValue=K.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Xb(c,b)}; | ||
K.prototype.size=K.prototype.size=function(){return Yb(this.ptr)};K.prototype.__destroy__=K.prototype.__destroy__=function(){Zb(this.ptr)};L.prototype=Object.create(v.prototype);L.prototype.constructor=L;L.prototype.__class__=L;L.__cache__={};a.DracoInt16Array=L;L.prototype.GetValue=L.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return $b(c,b)};L.prototype.size=L.prototype.size=function(){return ac(this.ptr)};L.prototype.__destroy__=L.prototype.__destroy__=function(){bc(this.ptr)}; | ||
M.prototype=Object.create(v.prototype);M.prototype.constructor=M;M.prototype.__class__=M;M.__cache__={};a.DracoUInt16Array=M;M.prototype.GetValue=M.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return cc(c,b)};M.prototype.size=M.prototype.size=function(){return dc(this.ptr)};M.prototype.__destroy__=M.prototype.__destroy__=function(){ec(this.ptr)};N.prototype=Object.create(v.prototype);N.prototype.constructor=N;N.prototype.__class__=N;N.__cache__={};a.DracoInt32Array= | ||
N;N.prototype.GetValue=N.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return fc(c,b)};N.prototype.size=N.prototype.size=function(){return gc(this.ptr)};N.prototype.__destroy__=N.prototype.__destroy__=function(){hc(this.ptr)};O.prototype=Object.create(v.prototype);O.prototype.constructor=O;O.prototype.__class__=O;O.__cache__={};a.DracoUInt32Array=O;O.prototype.GetValue=O.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return ic(c,b)}; | ||
O.prototype.size=O.prototype.size=function(){return jc(this.ptr)};O.prototype.__destroy__=O.prototype.__destroy__=function(){kc(this.ptr)};y.prototype=Object.create(v.prototype);y.prototype.constructor=y;y.prototype.__class__=y;y.__cache__={};a.MetadataQuerier=y;y.prototype.HasEntry=y.prototype.HasEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return!!lc(d,b,c)};y.prototype.GetIntEntry=y.prototype.GetIntEntry=function(b,c){var d= | ||
this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return mc(d,b,c)};y.prototype.GetIntEntryArray=y.prototype.GetIntEntryArray=function(b,c,d){var f=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);d&&"object"===typeof d&&(d=d.ptr);nc(f,b,c,d)};y.prototype.GetDoubleEntry=y.prototype.GetDoubleEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return oc(d, | ||
b,c)};y.prototype.GetStringEntry=y.prototype.GetStringEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return A(pc(d,b,c))};y.prototype.NumEntries=y.prototype.NumEntries=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return qc(c,b)};y.prototype.GetEntryName=y.prototype.GetEntryName=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return A(rc(d,b,c))};y.prototype.__destroy__= | ||
y.prototype.__destroy__=function(){sc(this.ptr)};h.prototype=Object.create(v.prototype);h.prototype.constructor=h;h.prototype.__class__=h;h.__cache__={};a.Decoder=h;h.prototype.DecodeArrayToPointCloud=h.prototype.DecodeArrayToPointCloud=function(b,c,d){var f=this.ptr;r.prepare();"object"==typeof b&&(b=va(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return S(tc(f,b,c,d),B)};h.prototype.DecodeArrayToMesh=h.prototype.DecodeArrayToMesh=function(b,c,d){var f=this.ptr;r.prepare(); | ||
"object"==typeof b&&(b=va(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return S(uc(f,b,c,d),B)};h.prototype.GetAttributeId=h.prototype.GetAttributeId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return vc(d,b,c)};h.prototype.GetAttributeIdByName=h.prototype.GetAttributeIdByName=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);return wc(d,b,c)};h.prototype.GetAttributeIdByMetadataEntry= | ||
h.prototype.GetAttributeIdByMetadataEntry=function(b,c,d){var f=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:da(c);d=d&&"object"===typeof d?d.ptr:da(d);return xc(f,b,c,d)};h.prototype.GetAttribute=h.prototype.GetAttribute=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(yc(d,b,c),w)};h.prototype.GetAttributeByUniqueId=h.prototype.GetAttributeByUniqueId=function(b,c){var d=this.ptr;b&&"object"===typeof b&& | ||
(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(zc(d,b,c),w)};h.prototype.GetMetadata=h.prototype.GetMetadata=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return S(Ac(c,b),U)};h.prototype.GetAttributeMetadata=h.prototype.GetAttributeMetadata=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(Bc(d,b,c),U)};h.prototype.GetFaceFromMesh=h.prototype.GetFaceFromMesh=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr); | ||
c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Cc(f,b,c,d)};h.prototype.GetTriangleStripsFromMesh=h.prototype.GetTriangleStripsFromMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return Dc(d,b,c)};h.prototype.GetTrianglesUInt16Array=h.prototype.GetTrianglesUInt16Array=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ec(f,b,c, | ||
d)};h.prototype.GetTrianglesUInt32Array=h.prototype.GetTrianglesUInt32Array=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Fc(f,b,c,d)};h.prototype.GetAttributeFloat=h.prototype.GetAttributeFloat=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Gc(f,b,c,d)};h.prototype.GetAttributeFloatForAllPoints=h.prototype.GetAttributeFloatForAllPoints= | ||
function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Hc(f,b,c,d)};h.prototype.GetAttributeIntForAllPoints=h.prototype.GetAttributeIntForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ic(f,b,c,d)};h.prototype.GetAttributeInt8ForAllPoints=h.prototype.GetAttributeInt8ForAllPoints=function(b,c,d){var f=this.ptr; | ||
b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Jc(f,b,c,d)};h.prototype.GetAttributeUInt8ForAllPoints=h.prototype.GetAttributeUInt8ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Kc(f,b,c,d)};h.prototype.GetAttributeInt16ForAllPoints=h.prototype.GetAttributeInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b= | ||
b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Lc(f,b,c,d)};h.prototype.GetAttributeUInt16ForAllPoints=h.prototype.GetAttributeUInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Mc(f,b,c,d)};h.prototype.GetAttributeInt32ForAllPoints=h.prototype.GetAttributeInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&& | ||
(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Nc(f,b,c,d)};h.prototype.GetAttributeUInt32ForAllPoints=h.prototype.GetAttributeUInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Oc(f,b,c,d)};h.prototype.GetAttributeDataArrayForAllPoints=h.prototype.GetAttributeDataArrayForAllPoints=function(b,c,d,f,t){var Y=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&& | ||
"object"===typeof d&&(d=d.ptr);f&&"object"===typeof f&&(f=f.ptr);t&&"object"===typeof t&&(t=t.ptr);return!!Pc(Y,b,c,d,f,t)};h.prototype.SkipAttributeTransform=h.prototype.SkipAttributeTransform=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);Qc(c,b)};h.prototype.GetEncodedGeometryType_Deprecated=h.prototype.GetEncodedGeometryType_Deprecated=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Rc(c,b)};h.prototype.DecodeBufferToPointCloud=h.prototype.DecodeBufferToPointCloud= | ||
function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(Sc(d,b,c),B)};h.prototype.DecodeBufferToMesh=h.prototype.DecodeBufferToMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return S(Tc(d,b,c),B)};h.prototype.__destroy__=h.prototype.__destroy__=function(){Uc(this.ptr)};(function(){function b(){a.ATTRIBUTE_INVALID_TRANSFORM=Vc();a.ATTRIBUTE_NO_TRANSFORM=Wc();a.ATTRIBUTE_QUANTIZATION_TRANSFORM=Xc(); | ||
a.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Yc();a.INVALID=Zc();a.POSITION=$c();a.NORMAL=ad();a.COLOR=bd();a.TEX_COORD=cd();a.GENERIC=dd();a.INVALID_GEOMETRY_TYPE=ed();a.POINT_CLOUD=fd();a.TRIANGULAR_MESH=gd();a.DT_INVALID=hd();a.DT_INT8=id();a.DT_UINT8=jd();a.DT_INT16=kd();a.DT_UINT16=ld();a.DT_INT32=md();a.DT_UINT32=nd();a.DT_INT64=od();a.DT_UINT64=pd();a.DT_FLOAT32=qd();a.DT_FLOAT64=rd();a.DT_BOOL=sd();a.DT_TYPES_COUNT=td();a.OK=ud();a.DRACO_ERROR=vd();a.IO_ERROR=wd();a.INVALID_PARAMETER=xd();a.UNSUPPORTED_VERSION= | ||
yd();a.UNKNOWN_VERSION=zd()}Ha?b():ua.unshift(b)})();a.mainCallbacks=ua;if("function"===typeof a.onModuleParsed)a.onModuleParsed();a.Decoder.prototype.GetEncodedGeometryType=function(b){if(b.__class__&&b.__class__===a.DecoderBuffer)return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);if(8>b.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return p.ready}}(); | ||
var DracoDecoderModule=function(){var m="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;"undefined"!==typeof __filename&&(m=m||__filename);return function(n){function h(e){return a.locateFile?a.locateFile(e,W):W+e}function q(e,b){e||p("Assertion failed: "+b)}function k(e,b,c){var d=b+c;for(c=b;e[c]&&!(c>=d);)++c;if(16<c-b&&e.subarray&&Aa)return Aa.decode(e.subarray(b,c));for(d="";b<c;){var f=e[b++];if(f&128){var t=e[b++]&63;if(192==(f&224))d+=String.fromCharCode((f& | ||
31)<<6|t);else{var X=e[b++]&63;f=224==(f&240)?(f&15)<<12|t<<6|X:(f&7)<<18|t<<12|X<<6|e[b++]&63;65536>f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function z(e,b){return e?k(ja,e,b):""}function g(e){Ba=e;a.HEAP8=Z=new Int8Array(e);a.HEAP16=new Int16Array(e);a.HEAP32=F=new Int32Array(e);a.HEAPU8=ja=new Uint8Array(e);a.HEAPU16=new Uint16Array(e);a.HEAPU32=new Uint32Array(e);a.HEAPF32=new Float32Array(e);a.HEAPF64=new Float64Array(e)} | ||
function p(e){if(a.onAbort)a.onAbort(e);e="Aborted("+e+")";fa(e);Ca=!0;e=new WebAssembly.RuntimeError(e+". Build with -s ASSERTIONS=1 for more info.");sa(e);throw e;}function u(e){try{if(e==P&&ka)return new Uint8Array(ka);if(ta)return ta(e);throw"both async and sync fetching of the wasm failed";}catch(b){p(b)}}function A(){if(!ka&&(Da||la)){if("function"===typeof fetch&&!P.startsWith("file://"))return fetch(P,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ | ||
P+"'";return e.arrayBuffer()}).catch(function(){return u(P)});if(ua)return new Promise(function(e,b){ua(P,function(c){e(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return u(P)})}function E(e){for(;0<e.length;){var b=e.shift();if("function"==typeof b)b(a);else{var c=b.func;"number"===typeof c?void 0===b.arg?ea(c)():ea(c)(b.arg):c(void 0===b.arg?null:b.arg)}}}function ea(e){var b=pa[e];b||(e>=pa.length&&(pa.length=e+1),pa[e]=b=Ea.get(e));return b}function U(e){this.excPtr=e;this.ptr= | ||
e-16;this.set_type=function(b){F[this.ptr+4>>2]=b};this.get_type=function(){return F[this.ptr+4>>2]};this.set_destructor=function(b){F[this.ptr+8>>2]=b};this.get_destructor=function(){return F[this.ptr+8>>2]};this.set_refcount=function(b){F[this.ptr>>2]=b};this.set_caught=function(b){Z[this.ptr+12>>0]=b?1:0};this.get_caught=function(){return 0!=Z[this.ptr+12>>0]};this.set_rethrown=function(b){Z[this.ptr+13>>0]=b?1:0};this.get_rethrown=function(){return 0!=Z[this.ptr+13>>0]};this.init=function(b,c){this.set_type(b); | ||
this.set_destructor(c);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){F[this.ptr>>2]+=1};this.release_ref=function(){var b=F[this.ptr>>2];F[this.ptr>>2]=b-1;return 1===b}}function V(e){function b(){if(!qa&&(qa=!0,a.calledRun=!0,!Ca)){Fa=!0;E(va);Ga(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Ha.unshift(a.postRun.shift());E(Ha)}}if(!(0<da)){if(a.preRun)for("function"== | ||
typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Ia.unshift(a.preRun.shift());E(Ia);0<da||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1);b()},1)):b())}}function v(){}function x(e){return(e||v).__cache__}function R(e,b){var c=x(b),d=c[e];if(d)return d;d=Object.create((b||v).prototype);d.ptr=e;return c[e]=d}function ba(e){if("string"===typeof e){for(var b=0,c=0;c<e.length;++c){var d=e.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((d&1023)<< | ||
10)|e.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}b=Array(b+1);c=0;d=b.length;if(0<d){d=c+d-1;for(var f=0;f<e.length;++f){var t=e.charCodeAt(f);if(55296<=t&&57343>=t){var X=e.charCodeAt(++f);t=65536+((t&1023)<<10)|X&1023}if(127>=t){if(c>=d)break;b[c++]=t}else{if(2047>=t){if(c+1>=d)break;b[c++]=192|t>>6}else{if(65535>=t){if(c+2>=d)break;b[c++]=224|t>>12}else{if(c+3>=d)break;b[c++]=240|t>>18;b[c++]=128|t>>12&63}b[c++]=128|t>>6&63}b[c++]=128|t&63}}b[c]=0}e=r.alloc(b,Z);r.copy(b,Z, | ||
e);return e}return e}function wa(e){if("object"===typeof e){var b=r.alloc(e,Z);r.copy(e,Z,b);return b}return e}function aa(){throw"cannot construct a VoidPtr, no constructor in IDL";}function S(){this.ptr=Ja();x(S)[this.ptr]=this}function Q(){this.ptr=Ka();x(Q)[this.ptr]=this}function Y(){this.ptr=La();x(Y)[this.ptr]=this}function w(){this.ptr=Ma();x(w)[this.ptr]=this}function C(){this.ptr=Na();x(C)[this.ptr]=this}function G(){this.ptr=Oa();x(G)[this.ptr]=this}function H(){this.ptr=Pa();x(H)[this.ptr]= | ||
this}function D(){this.ptr=Qa();x(D)[this.ptr]=this}function T(){this.ptr=Ra();x(T)[this.ptr]=this}function B(){throw"cannot construct a Status, no constructor in IDL";}function I(){this.ptr=Sa();x(I)[this.ptr]=this}function J(){this.ptr=Ta();x(J)[this.ptr]=this}function K(){this.ptr=Ua();x(K)[this.ptr]=this}function L(){this.ptr=Va();x(L)[this.ptr]=this}function M(){this.ptr=Wa();x(M)[this.ptr]=this}function N(){this.ptr=Xa();x(N)[this.ptr]=this}function O(){this.ptr=Ya();x(O)[this.ptr]=this}function y(){this.ptr= | ||
Za();x(y)[this.ptr]=this}function l(){this.ptr=$a();x(l)[this.ptr]=this}n=n||{};var a="undefined"!==typeof n?n:{},Ga,sa;a.ready=new Promise(function(e,b){Ga=e;sa=b});var ab=!1,bb=!1;a.onRuntimeInitialized=function(){ab=!0;if(bb&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.onModuleParsed=function(){bb=!0;if(ab&&"function"===typeof a.onModuleLoaded)a.onModuleLoaded(a)};a.isVersionSupported=function(e){if("string"!==typeof e)return!1;e=e.split(".");return 2>e.length||3<e.length?!1:1== | ||
e[0]&&0<=e[1]&&5>=e[1]?!0:0!=e[0]||10<e[1]?!1:!0};var ma={},ca;for(ca in a)a.hasOwnProperty(ca)&&(ma[ca]=a[ca]);var Da="object"===typeof window,la="function"===typeof importScripts,W="",ha,ia;if("object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node){W=la?require("path").dirname(W)+"/":__dirname+"/";var cb=function(e,b){ha||(ha=require("fs"));ia||(ia=require("path"));e=ia.normalize(e);return ha.readFileSync(e,b?null:"utf8")};var ta=function(e){e=cb(e, | ||
!0);e.buffer||(e=new Uint8Array(e));q(e.buffer);return e};var ua=function(e,b,c){ha||(ha=require("fs"));ia||(ia=require("path"));e=ia.normalize(e);ha.readFile(e,function(d,f){d?c(d):b(f.buffer)})};1<process.argv.length&&process.argv[1].replace(/\\/g,"/");process.argv.slice(2);a.inspect=function(){return"[Emscripten Module object]"}}else if(Da||la)la?W=self.location.href:"undefined"!==typeof document&&document.currentScript&&(W=document.currentScript.src),m&&(W=m),W=0!==W.indexOf("blob:")?W.substr(0, | ||
W.replace(/[?#].*/,"").lastIndexOf("/")+1):"",cb=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.send(null);return b.responseText},la&&(ta=function(e){var b=new XMLHttpRequest;b.open("GET",e,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ua=function(e,b,c){var d=new XMLHttpRequest;d.open("GET",e,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var xd=a.print||console.log.bind(console), | ||
fa=a.printErr||console.warn.bind(console);for(ca in ma)ma.hasOwnProperty(ca)&&(a[ca]=ma[ca]);ma=null;var ka;a.wasmBinary&&(ka=a.wasmBinary);"object"!==typeof WebAssembly&&p("no native wasm support detected");var ra,Ca=!1,Aa="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0,Ba,Z,ja,F,Ea,Ia=[],va=[],Ha=[],Fa=!1,da=0,xa=null,na=null;a.preloadedImages={};a.preloadedAudios={};var P="draco_decoder.wasm";P.startsWith("data:application/octet-stream;base64,")||(P=h(P));var pa=[],yd=0,oa={mappings:{}, | ||
buffers:[null,[],[]],printChar:function(e,b){var c=oa.buffers[e];0===b||10===b?((1===e?xd:fa)(k(c,0)),c.length=0):c.push(b)},varargs:void 0,get:function(){oa.varargs+=4;return F[oa.varargs-4>>2]},getStr:function(e){return z(e)},get64:function(e,b){return e}},zd={h:function(e){return db(e+16)+16},g:function(e,b,c){(new U(e)).init(b,c);yd++;throw e;},a:function(){p("")},d:function(e,b,c){ja.copyWithin(e,b,b+c)},e:function(e){var b=ja.length;e>>>=0;if(2147483648<e)return!1;for(var c=1;4>=c;c*=2){var d= | ||
b*(1+.2/c);d=Math.min(d,e+100663296);var f=Math,t=f.min;d=Math.max(e,d);0<d%65536&&(d+=65536-d%65536);f=t.call(f,2147483648,d);a:{try{ra.grow(f-Ba.byteLength+65535>>>16);g(ra.buffer);var X=1;break a}catch(ya){}X=void 0}if(X)return!0}return!1},f:function(e){return 0},c:function(e,b,c,d,f){},b:function(e,b,c,d){for(var f=0,t=0;t<c;t++){var X=F[b>>2],ya=F[b+4>>2];b+=8;for(var za=0;za<ya;za++)oa.printChar(e,ja[X+za]);f+=ya}F[d>>2]=f;return 0}};(function(){function e(f,t){a.asm=f.exports;ra=a.asm.i;g(ra.buffer); | ||
Ea=a.asm.k;va.unshift(a.asm.j);da--;a.monitorRunDependencies&&a.monitorRunDependencies(da);0==da&&(null!==xa&&(clearInterval(xa),xa=null),na&&(f=na,na=null,f()))}function b(f){e(f.instance)}function c(f){return A().then(function(t){return WebAssembly.instantiate(t,d)}).then(function(t){return t}).then(f,function(t){fa("failed to asynchronously prepare wasm: "+t);p(t)})}var d={a:zd};da++;a.monitorRunDependencies&&a.monitorRunDependencies(da);if(a.instantiateWasm)try{return a.instantiateWasm(d,e)}catch(f){return fa("Module.instantiateWasm callback failed with error: "+ | ||
f),!1}(function(){return ka||"function"!==typeof WebAssembly.instantiateStreaming||P.startsWith("data:application/octet-stream;base64,")||P.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(P,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(t){fa("wasm streaming compile failed: "+t);fa("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(sa);return{}})();a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors= | ||
a.asm.j).apply(null,arguments)};var eb=a._emscripten_bind_VoidPtr___destroy___0=function(){return(eb=a._emscripten_bind_VoidPtr___destroy___0=a.asm.l).apply(null,arguments)},Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(Ja=a._emscripten_bind_DecoderBuffer_DecoderBuffer_0=a.asm.m).apply(null,arguments)},fb=a._emscripten_bind_DecoderBuffer_Init_2=function(){return(fb=a._emscripten_bind_DecoderBuffer_Init_2=a.asm.n).apply(null,arguments)},gb=a._emscripten_bind_DecoderBuffer___destroy___0= | ||
function(){return(gb=a._emscripten_bind_DecoderBuffer___destroy___0=a.asm.o).apply(null,arguments)},Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Ka=a._emscripten_bind_AttributeTransformData_AttributeTransformData_0=a.asm.p).apply(null,arguments)},hb=a._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(hb=a._emscripten_bind_AttributeTransformData_transform_type_0=a.asm.q).apply(null,arguments)},ib=a._emscripten_bind_AttributeTransformData___destroy___0= | ||
function(){return(ib=a._emscripten_bind_AttributeTransformData___destroy___0=a.asm.r).apply(null,arguments)},La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(La=a._emscripten_bind_GeometryAttribute_GeometryAttribute_0=a.asm.s).apply(null,arguments)},jb=a._emscripten_bind_GeometryAttribute___destroy___0=function(){return(jb=a._emscripten_bind_GeometryAttribute___destroy___0=a.asm.t).apply(null,arguments)},Ma=a._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(Ma= | ||
a._emscripten_bind_PointAttribute_PointAttribute_0=a.asm.u).apply(null,arguments)},kb=a._emscripten_bind_PointAttribute_size_0=function(){return(kb=a._emscripten_bind_PointAttribute_size_0=a.asm.v).apply(null,arguments)},lb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(lb=a._emscripten_bind_PointAttribute_GetAttributeTransformData_0=a.asm.w).apply(null,arguments)},mb=a._emscripten_bind_PointAttribute_attribute_type_0=function(){return(mb=a._emscripten_bind_PointAttribute_attribute_type_0= | ||
a.asm.x).apply(null,arguments)},nb=a._emscripten_bind_PointAttribute_data_type_0=function(){return(nb=a._emscripten_bind_PointAttribute_data_type_0=a.asm.y).apply(null,arguments)},ob=a._emscripten_bind_PointAttribute_num_components_0=function(){return(ob=a._emscripten_bind_PointAttribute_num_components_0=a.asm.z).apply(null,arguments)},pb=a._emscripten_bind_PointAttribute_normalized_0=function(){return(pb=a._emscripten_bind_PointAttribute_normalized_0=a.asm.A).apply(null,arguments)},qb=a._emscripten_bind_PointAttribute_byte_stride_0= | ||
function(){return(qb=a._emscripten_bind_PointAttribute_byte_stride_0=a.asm.B).apply(null,arguments)},rb=a._emscripten_bind_PointAttribute_byte_offset_0=function(){return(rb=a._emscripten_bind_PointAttribute_byte_offset_0=a.asm.C).apply(null,arguments)},sb=a._emscripten_bind_PointAttribute_unique_id_0=function(){return(sb=a._emscripten_bind_PointAttribute_unique_id_0=a.asm.D).apply(null,arguments)},tb=a._emscripten_bind_PointAttribute___destroy___0=function(){return(tb=a._emscripten_bind_PointAttribute___destroy___0= | ||
a.asm.E).apply(null,arguments)},Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Na=a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=a.asm.F).apply(null,arguments)},ub=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(ub=a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=a.asm.G).apply(null,arguments)},vb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0= | ||
function(){return(vb=a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=a.asm.H).apply(null,arguments)},wb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(wb=a._emscripten_bind_AttributeQuantizationTransform_min_value_1=a.asm.I).apply(null,arguments)},xb=a._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(xb=a._emscripten_bind_AttributeQuantizationTransform_range_0=a.asm.J).apply(null,arguments)},yb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0= | ||
function(){return(yb=a._emscripten_bind_AttributeQuantizationTransform___destroy___0=a.asm.K).apply(null,arguments)},Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(Oa=a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=a.asm.L).apply(null,arguments)},zb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(zb=a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=a.asm.M).apply(null, | ||
arguments)},Ab=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(Ab=a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=a.asm.N).apply(null,arguments)},Bb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Bb=a._emscripten_bind_AttributeOctahedronTransform___destroy___0=a.asm.O).apply(null,arguments)},Pa=a._emscripten_bind_PointCloud_PointCloud_0=function(){return(Pa=a._emscripten_bind_PointCloud_PointCloud_0=a.asm.P).apply(null, | ||
arguments)},Cb=a._emscripten_bind_PointCloud_num_attributes_0=function(){return(Cb=a._emscripten_bind_PointCloud_num_attributes_0=a.asm.Q).apply(null,arguments)},Db=a._emscripten_bind_PointCloud_num_points_0=function(){return(Db=a._emscripten_bind_PointCloud_num_points_0=a.asm.R).apply(null,arguments)},Eb=a._emscripten_bind_PointCloud___destroy___0=function(){return(Eb=a._emscripten_bind_PointCloud___destroy___0=a.asm.S).apply(null,arguments)},Qa=a._emscripten_bind_Mesh_Mesh_0=function(){return(Qa= | ||
a._emscripten_bind_Mesh_Mesh_0=a.asm.T).apply(null,arguments)},Fb=a._emscripten_bind_Mesh_num_faces_0=function(){return(Fb=a._emscripten_bind_Mesh_num_faces_0=a.asm.U).apply(null,arguments)},Gb=a._emscripten_bind_Mesh_num_attributes_0=function(){return(Gb=a._emscripten_bind_Mesh_num_attributes_0=a.asm.V).apply(null,arguments)},Hb=a._emscripten_bind_Mesh_num_points_0=function(){return(Hb=a._emscripten_bind_Mesh_num_points_0=a.asm.W).apply(null,arguments)},Ib=a._emscripten_bind_Mesh___destroy___0=function(){return(Ib= | ||
a._emscripten_bind_Mesh___destroy___0=a.asm.X).apply(null,arguments)},Ra=a._emscripten_bind_Metadata_Metadata_0=function(){return(Ra=a._emscripten_bind_Metadata_Metadata_0=a.asm.Y).apply(null,arguments)},Jb=a._emscripten_bind_Metadata___destroy___0=function(){return(Jb=a._emscripten_bind_Metadata___destroy___0=a.asm.Z).apply(null,arguments)},Kb=a._emscripten_bind_Status_code_0=function(){return(Kb=a._emscripten_bind_Status_code_0=a.asm._).apply(null,arguments)},Lb=a._emscripten_bind_Status_ok_0=function(){return(Lb= | ||
a._emscripten_bind_Status_ok_0=a.asm.$).apply(null,arguments)},Mb=a._emscripten_bind_Status_error_msg_0=function(){return(Mb=a._emscripten_bind_Status_error_msg_0=a.asm.aa).apply(null,arguments)},Nb=a._emscripten_bind_Status___destroy___0=function(){return(Nb=a._emscripten_bind_Status___destroy___0=a.asm.ba).apply(null,arguments)},Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(Sa=a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=a.asm.ca).apply(null,arguments)}, | ||
Ob=a._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(Ob=a._emscripten_bind_DracoFloat32Array_GetValue_1=a.asm.da).apply(null,arguments)},Pb=a._emscripten_bind_DracoFloat32Array_size_0=function(){return(Pb=a._emscripten_bind_DracoFloat32Array_size_0=a.asm.ea).apply(null,arguments)},Qb=a._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(Qb=a._emscripten_bind_DracoFloat32Array___destroy___0=a.asm.fa).apply(null,arguments)},Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0= | ||
function(){return(Ta=a._emscripten_bind_DracoInt8Array_DracoInt8Array_0=a.asm.ga).apply(null,arguments)},Rb=a._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(Rb=a._emscripten_bind_DracoInt8Array_GetValue_1=a.asm.ha).apply(null,arguments)},Sb=a._emscripten_bind_DracoInt8Array_size_0=function(){return(Sb=a._emscripten_bind_DracoInt8Array_size_0=a.asm.ia).apply(null,arguments)},Tb=a._emscripten_bind_DracoInt8Array___destroy___0=function(){return(Tb=a._emscripten_bind_DracoInt8Array___destroy___0= | ||
a.asm.ja).apply(null,arguments)},Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(Ua=a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=a.asm.ka).apply(null,arguments)},Ub=a._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(Ub=a._emscripten_bind_DracoUInt8Array_GetValue_1=a.asm.la).apply(null,arguments)},Vb=a._emscripten_bind_DracoUInt8Array_size_0=function(){return(Vb=a._emscripten_bind_DracoUInt8Array_size_0=a.asm.ma).apply(null,arguments)},Wb=a._emscripten_bind_DracoUInt8Array___destroy___0= | ||
function(){return(Wb=a._emscripten_bind_DracoUInt8Array___destroy___0=a.asm.na).apply(null,arguments)},Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Va=a._emscripten_bind_DracoInt16Array_DracoInt16Array_0=a.asm.oa).apply(null,arguments)},Xb=a._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(Xb=a._emscripten_bind_DracoInt16Array_GetValue_1=a.asm.pa).apply(null,arguments)},Yb=a._emscripten_bind_DracoInt16Array_size_0=function(){return(Yb=a._emscripten_bind_DracoInt16Array_size_0= | ||
a.asm.qa).apply(null,arguments)},Zb=a._emscripten_bind_DracoInt16Array___destroy___0=function(){return(Zb=a._emscripten_bind_DracoInt16Array___destroy___0=a.asm.ra).apply(null,arguments)},Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Wa=a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=a.asm.sa).apply(null,arguments)},$b=a._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return($b=a._emscripten_bind_DracoUInt16Array_GetValue_1=a.asm.ta).apply(null,arguments)}, | ||
ac=a._emscripten_bind_DracoUInt16Array_size_0=function(){return(ac=a._emscripten_bind_DracoUInt16Array_size_0=a.asm.ua).apply(null,arguments)},bc=a._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(bc=a._emscripten_bind_DracoUInt16Array___destroy___0=a.asm.va).apply(null,arguments)},Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Xa=a._emscripten_bind_DracoInt32Array_DracoInt32Array_0=a.asm.wa).apply(null,arguments)},cc=a._emscripten_bind_DracoInt32Array_GetValue_1= | ||
function(){return(cc=a._emscripten_bind_DracoInt32Array_GetValue_1=a.asm.xa).apply(null,arguments)},dc=a._emscripten_bind_DracoInt32Array_size_0=function(){return(dc=a._emscripten_bind_DracoInt32Array_size_0=a.asm.ya).apply(null,arguments)},ec=a._emscripten_bind_DracoInt32Array___destroy___0=function(){return(ec=a._emscripten_bind_DracoInt32Array___destroy___0=a.asm.za).apply(null,arguments)},Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Ya=a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0= | ||
a.asm.Aa).apply(null,arguments)},fc=a._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(fc=a._emscripten_bind_DracoUInt32Array_GetValue_1=a.asm.Ba).apply(null,arguments)},gc=a._emscripten_bind_DracoUInt32Array_size_0=function(){return(gc=a._emscripten_bind_DracoUInt32Array_size_0=a.asm.Ca).apply(null,arguments)},hc=a._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(hc=a._emscripten_bind_DracoUInt32Array___destroy___0=a.asm.Da).apply(null,arguments)},Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0= | ||
function(){return(Za=a._emscripten_bind_MetadataQuerier_MetadataQuerier_0=a.asm.Ea).apply(null,arguments)},ic=a._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(ic=a._emscripten_bind_MetadataQuerier_HasEntry_2=a.asm.Fa).apply(null,arguments)},jc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(jc=a._emscripten_bind_MetadataQuerier_GetIntEntry_2=a.asm.Ga).apply(null,arguments)},kc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(kc=a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3= | ||
a.asm.Ha).apply(null,arguments)},lc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(lc=a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=a.asm.Ia).apply(null,arguments)},mc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(mc=a._emscripten_bind_MetadataQuerier_GetStringEntry_2=a.asm.Ja).apply(null,arguments)},nc=a._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(nc=a._emscripten_bind_MetadataQuerier_NumEntries_1=a.asm.Ka).apply(null,arguments)}, | ||
oc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(oc=a._emscripten_bind_MetadataQuerier_GetEntryName_2=a.asm.La).apply(null,arguments)},pc=a._emscripten_bind_MetadataQuerier___destroy___0=function(){return(pc=a._emscripten_bind_MetadataQuerier___destroy___0=a.asm.Ma).apply(null,arguments)},$a=a._emscripten_bind_Decoder_Decoder_0=function(){return($a=a._emscripten_bind_Decoder_Decoder_0=a.asm.Na).apply(null,arguments)},qc=a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(qc= | ||
a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=a.asm.Oa).apply(null,arguments)},rc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(rc=a._emscripten_bind_Decoder_DecodeArrayToMesh_3=a.asm.Pa).apply(null,arguments)},sc=a._emscripten_bind_Decoder_GetAttributeId_2=function(){return(sc=a._emscripten_bind_Decoder_GetAttributeId_2=a.asm.Qa).apply(null,arguments)},tc=a._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(tc=a._emscripten_bind_Decoder_GetAttributeIdByName_2= | ||
a.asm.Ra).apply(null,arguments)},uc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(uc=a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=a.asm.Sa).apply(null,arguments)},vc=a._emscripten_bind_Decoder_GetAttribute_2=function(){return(vc=a._emscripten_bind_Decoder_GetAttribute_2=a.asm.Ta).apply(null,arguments)},wc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(wc=a._emscripten_bind_Decoder_GetAttributeByUniqueId_2=a.asm.Ua).apply(null,arguments)}, | ||
xc=a._emscripten_bind_Decoder_GetMetadata_1=function(){return(xc=a._emscripten_bind_Decoder_GetMetadata_1=a.asm.Va).apply(null,arguments)},yc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(yc=a._emscripten_bind_Decoder_GetAttributeMetadata_2=a.asm.Wa).apply(null,arguments)},zc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(zc=a._emscripten_bind_Decoder_GetFaceFromMesh_3=a.asm.Xa).apply(null,arguments)},Ac=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2= | ||
function(){return(Ac=a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=a.asm.Ya).apply(null,arguments)},Bc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(Bc=a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=a.asm.Za).apply(null,arguments)},Cc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(Cc=a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=a.asm._a).apply(null,arguments)},Dc=a._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(Dc= | ||
a._emscripten_bind_Decoder_GetAttributeFloat_3=a.asm.$a).apply(null,arguments)},Ec=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(Ec=a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=a.asm.ab).apply(null,arguments)},Fc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(Fc=a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=a.asm.bb).apply(null,arguments)},Gc=a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(Gc= | ||
a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=a.asm.cb).apply(null,arguments)},Hc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(Hc=a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=a.asm.db).apply(null,arguments)},Ic=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(Ic=a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=a.asm.eb).apply(null,arguments)},Jc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3= | ||
function(){return(Jc=a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=a.asm.fb).apply(null,arguments)},Kc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(Kc=a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=a.asm.gb).apply(null,arguments)},Lc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(Lc=a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=a.asm.hb).apply(null,arguments)},Mc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5= | ||
function(){return(Mc=a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=a.asm.ib).apply(null,arguments)},Nc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(Nc=a._emscripten_bind_Decoder_SkipAttributeTransform_1=a.asm.jb).apply(null,arguments)},Oc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(Oc=a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=a.asm.kb).apply(null,arguments)},Pc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2= | ||
function(){return(Pc=a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=a.asm.lb).apply(null,arguments)},Qc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(Qc=a._emscripten_bind_Decoder_DecodeBufferToMesh_2=a.asm.mb).apply(null,arguments)},Rc=a._emscripten_bind_Decoder___destroy___0=function(){return(Rc=a._emscripten_bind_Decoder___destroy___0=a.asm.nb).apply(null,arguments)},Sc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Sc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM= | ||
a.asm.ob).apply(null,arguments)},Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Tc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=a.asm.pb).apply(null,arguments)},Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Uc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=a.asm.qb).apply(null,arguments)},Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM= | ||
function(){return(Vc=a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=a.asm.rb).apply(null,arguments)},Wc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Wc=a._emscripten_enum_draco_GeometryAttribute_Type_INVALID=a.asm.sb).apply(null,arguments)},Xc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Xc=a._emscripten_enum_draco_GeometryAttribute_Type_POSITION=a.asm.tb).apply(null,arguments)},Yc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL= | ||
function(){return(Yc=a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=a.asm.ub).apply(null,arguments)},Zc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(Zc=a._emscripten_enum_draco_GeometryAttribute_Type_COLOR=a.asm.vb).apply(null,arguments)},$c=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return($c=a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=a.asm.wb).apply(null,arguments)},ad=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC= | ||
function(){return(ad=a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=a.asm.xb).apply(null,arguments)},bd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(bd=a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=a.asm.yb).apply(null,arguments)},cd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(cd=a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=a.asm.zb).apply(null,arguments)},dd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH= | ||
function(){return(dd=a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=a.asm.Ab).apply(null,arguments)},ed=a._emscripten_enum_draco_DataType_DT_INVALID=function(){return(ed=a._emscripten_enum_draco_DataType_DT_INVALID=a.asm.Bb).apply(null,arguments)},fd=a._emscripten_enum_draco_DataType_DT_INT8=function(){return(fd=a._emscripten_enum_draco_DataType_DT_INT8=a.asm.Cb).apply(null,arguments)},gd=a._emscripten_enum_draco_DataType_DT_UINT8=function(){return(gd=a._emscripten_enum_draco_DataType_DT_UINT8= | ||
a.asm.Db).apply(null,arguments)},hd=a._emscripten_enum_draco_DataType_DT_INT16=function(){return(hd=a._emscripten_enum_draco_DataType_DT_INT16=a.asm.Eb).apply(null,arguments)},id=a._emscripten_enum_draco_DataType_DT_UINT16=function(){return(id=a._emscripten_enum_draco_DataType_DT_UINT16=a.asm.Fb).apply(null,arguments)},jd=a._emscripten_enum_draco_DataType_DT_INT32=function(){return(jd=a._emscripten_enum_draco_DataType_DT_INT32=a.asm.Gb).apply(null,arguments)},kd=a._emscripten_enum_draco_DataType_DT_UINT32= | ||
function(){return(kd=a._emscripten_enum_draco_DataType_DT_UINT32=a.asm.Hb).apply(null,arguments)},ld=a._emscripten_enum_draco_DataType_DT_INT64=function(){return(ld=a._emscripten_enum_draco_DataType_DT_INT64=a.asm.Ib).apply(null,arguments)},md=a._emscripten_enum_draco_DataType_DT_UINT64=function(){return(md=a._emscripten_enum_draco_DataType_DT_UINT64=a.asm.Jb).apply(null,arguments)},nd=a._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(nd=a._emscripten_enum_draco_DataType_DT_FLOAT32=a.asm.Kb).apply(null, | ||
arguments)},od=a._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(od=a._emscripten_enum_draco_DataType_DT_FLOAT64=a.asm.Lb).apply(null,arguments)},pd=a._emscripten_enum_draco_DataType_DT_BOOL=function(){return(pd=a._emscripten_enum_draco_DataType_DT_BOOL=a.asm.Mb).apply(null,arguments)},qd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(qd=a._emscripten_enum_draco_DataType_DT_TYPES_COUNT=a.asm.Nb).apply(null,arguments)},rd=a._emscripten_enum_draco_StatusCode_OK=function(){return(rd= | ||
a._emscripten_enum_draco_StatusCode_OK=a.asm.Ob).apply(null,arguments)},sd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(sd=a._emscripten_enum_draco_StatusCode_DRACO_ERROR=a.asm.Pb).apply(null,arguments)},td=a._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(td=a._emscripten_enum_draco_StatusCode_IO_ERROR=a.asm.Qb).apply(null,arguments)},ud=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(ud=a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER= | ||
a.asm.Rb).apply(null,arguments)},vd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(vd=a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=a.asm.Sb).apply(null,arguments)},wd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(wd=a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=a.asm.Tb).apply(null,arguments)},db=a._malloc=function(){return(db=a._malloc=a.asm.Ub).apply(null,arguments)};a._free=function(){return(a._free=a.asm.Vb).apply(null,arguments)}; | ||
var qa;na=function b(){qa||V();qa||(na=b)};a.run=V;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0<a.preInit.length;)a.preInit.pop()();V();v.prototype=Object.create(v.prototype);v.prototype.constructor=v;v.prototype.__class__=v;v.__cache__={};a.WrapperObject=v;a.getCache=x;a.wrapPointer=R;a.castObject=function(b,c){return R(b.ptr,c)};a.NULL=R(0);a.destroy=function(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__();delete x(b.__class__)[b.ptr]}; | ||
a.compare=function(b,c){return b.ptr===c.ptr};a.getPointer=function(b){return b.ptr};a.getClass=function(b){return b.__class__};var r={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(r.needed){for(var b=0;b<r.temps.length;b++)a._free(r.temps[b]);r.temps.length=0;a._free(r.buffer);r.buffer=0;r.size+=r.needed;r.needed=0}r.buffer||(r.size+=128,r.buffer=a._malloc(r.size),q(r.buffer));r.pos=0},alloc:function(b,c){q(r.buffer);b=b.length*c.BYTES_PER_ELEMENT;b=b+7&-8;r.pos+b>=r.size?(q(0<b), | ||
r.needed+=b,c=a._malloc(b),r.temps.push(c)):(c=r.buffer+r.pos,r.pos+=b);return c},copy:function(b,c,d){d>>>=0;switch(c.BYTES_PER_ELEMENT){case 2:d>>>=1;break;case 4:d>>>=2;break;case 8:d>>>=3}for(var f=0;f<b.length;f++)c[d+f]=b[f]}};aa.prototype=Object.create(v.prototype);aa.prototype.constructor=aa;aa.prototype.__class__=aa;aa.__cache__={};a.VoidPtr=aa;aa.prototype.__destroy__=aa.prototype.__destroy__=function(){eb(this.ptr)};S.prototype=Object.create(v.prototype);S.prototype.constructor=S;S.prototype.__class__= | ||
S;S.__cache__={};a.DecoderBuffer=S;S.prototype.Init=S.prototype.Init=function(b,c){var d=this.ptr;r.prepare();"object"==typeof b&&(b=wa(b));c&&"object"===typeof c&&(c=c.ptr);fb(d,b,c)};S.prototype.__destroy__=S.prototype.__destroy__=function(){gb(this.ptr)};Q.prototype=Object.create(v.prototype);Q.prototype.constructor=Q;Q.prototype.__class__=Q;Q.__cache__={};a.AttributeTransformData=Q;Q.prototype.transform_type=Q.prototype.transform_type=function(){return hb(this.ptr)};Q.prototype.__destroy__=Q.prototype.__destroy__= | ||
function(){ib(this.ptr)};Y.prototype=Object.create(v.prototype);Y.prototype.constructor=Y;Y.prototype.__class__=Y;Y.__cache__={};a.GeometryAttribute=Y;Y.prototype.__destroy__=Y.prototype.__destroy__=function(){jb(this.ptr)};w.prototype=Object.create(v.prototype);w.prototype.constructor=w;w.prototype.__class__=w;w.__cache__={};a.PointAttribute=w;w.prototype.size=w.prototype.size=function(){return kb(this.ptr)};w.prototype.GetAttributeTransformData=w.prototype.GetAttributeTransformData=function(){return R(lb(this.ptr), | ||
Q)};w.prototype.attribute_type=w.prototype.attribute_type=function(){return mb(this.ptr)};w.prototype.data_type=w.prototype.data_type=function(){return nb(this.ptr)};w.prototype.num_components=w.prototype.num_components=function(){return ob(this.ptr)};w.prototype.normalized=w.prototype.normalized=function(){return!!pb(this.ptr)};w.prototype.byte_stride=w.prototype.byte_stride=function(){return qb(this.ptr)};w.prototype.byte_offset=w.prototype.byte_offset=function(){return rb(this.ptr)};w.prototype.unique_id= | ||
w.prototype.unique_id=function(){return sb(this.ptr)};w.prototype.__destroy__=w.prototype.__destroy__=function(){tb(this.ptr)};C.prototype=Object.create(v.prototype);C.prototype.constructor=C;C.prototype.__class__=C;C.__cache__={};a.AttributeQuantizationTransform=C;C.prototype.InitFromAttribute=C.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!ub(c,b)};C.prototype.quantization_bits=C.prototype.quantization_bits=function(){return vb(this.ptr)};C.prototype.min_value= | ||
C.prototype.min_value=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return wb(c,b)};C.prototype.range=C.prototype.range=function(){return xb(this.ptr)};C.prototype.__destroy__=C.prototype.__destroy__=function(){yb(this.ptr)};G.prototype=Object.create(v.prototype);G.prototype.constructor=G;G.prototype.__class__=G;G.__cache__={};a.AttributeOctahedronTransform=G;G.prototype.InitFromAttribute=G.prototype.InitFromAttribute=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return!!zb(c, | ||
b)};G.prototype.quantization_bits=G.prototype.quantization_bits=function(){return Ab(this.ptr)};G.prototype.__destroy__=G.prototype.__destroy__=function(){Bb(this.ptr)};H.prototype=Object.create(v.prototype);H.prototype.constructor=H;H.prototype.__class__=H;H.__cache__={};a.PointCloud=H;H.prototype.num_attributes=H.prototype.num_attributes=function(){return Cb(this.ptr)};H.prototype.num_points=H.prototype.num_points=function(){return Db(this.ptr)};H.prototype.__destroy__=H.prototype.__destroy__=function(){Eb(this.ptr)}; | ||
D.prototype=Object.create(v.prototype);D.prototype.constructor=D;D.prototype.__class__=D;D.__cache__={};a.Mesh=D;D.prototype.num_faces=D.prototype.num_faces=function(){return Fb(this.ptr)};D.prototype.num_attributes=D.prototype.num_attributes=function(){return Gb(this.ptr)};D.prototype.num_points=D.prototype.num_points=function(){return Hb(this.ptr)};D.prototype.__destroy__=D.prototype.__destroy__=function(){Ib(this.ptr)};T.prototype=Object.create(v.prototype);T.prototype.constructor=T;T.prototype.__class__= | ||
T;T.__cache__={};a.Metadata=T;T.prototype.__destroy__=T.prototype.__destroy__=function(){Jb(this.ptr)};B.prototype=Object.create(v.prototype);B.prototype.constructor=B;B.prototype.__class__=B;B.__cache__={};a.Status=B;B.prototype.code=B.prototype.code=function(){return Kb(this.ptr)};B.prototype.ok=B.prototype.ok=function(){return!!Lb(this.ptr)};B.prototype.error_msg=B.prototype.error_msg=function(){return z(Mb(this.ptr))};B.prototype.__destroy__=B.prototype.__destroy__=function(){Nb(this.ptr)};I.prototype= | ||
Object.create(v.prototype);I.prototype.constructor=I;I.prototype.__class__=I;I.__cache__={};a.DracoFloat32Array=I;I.prototype.GetValue=I.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Ob(c,b)};I.prototype.size=I.prototype.size=function(){return Pb(this.ptr)};I.prototype.__destroy__=I.prototype.__destroy__=function(){Qb(this.ptr)};J.prototype=Object.create(v.prototype);J.prototype.constructor=J;J.prototype.__class__=J;J.__cache__={};a.DracoInt8Array=J;J.prototype.GetValue= | ||
J.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Rb(c,b)};J.prototype.size=J.prototype.size=function(){return Sb(this.ptr)};J.prototype.__destroy__=J.prototype.__destroy__=function(){Tb(this.ptr)};K.prototype=Object.create(v.prototype);K.prototype.constructor=K;K.prototype.__class__=K;K.__cache__={};a.DracoUInt8Array=K;K.prototype.GetValue=K.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Ub(c,b)};K.prototype.size=K.prototype.size= | ||
function(){return Vb(this.ptr)};K.prototype.__destroy__=K.prototype.__destroy__=function(){Wb(this.ptr)};L.prototype=Object.create(v.prototype);L.prototype.constructor=L;L.prototype.__class__=L;L.__cache__={};a.DracoInt16Array=L;L.prototype.GetValue=L.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Xb(c,b)};L.prototype.size=L.prototype.size=function(){return Yb(this.ptr)};L.prototype.__destroy__=L.prototype.__destroy__=function(){Zb(this.ptr)};M.prototype=Object.create(v.prototype); | ||
M.prototype.constructor=M;M.prototype.__class__=M;M.__cache__={};a.DracoUInt16Array=M;M.prototype.GetValue=M.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return $b(c,b)};M.prototype.size=M.prototype.size=function(){return ac(this.ptr)};M.prototype.__destroy__=M.prototype.__destroy__=function(){bc(this.ptr)};N.prototype=Object.create(v.prototype);N.prototype.constructor=N;N.prototype.__class__=N;N.__cache__={};a.DracoInt32Array=N;N.prototype.GetValue=N.prototype.GetValue= | ||
function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return cc(c,b)};N.prototype.size=N.prototype.size=function(){return dc(this.ptr)};N.prototype.__destroy__=N.prototype.__destroy__=function(){ec(this.ptr)};O.prototype=Object.create(v.prototype);O.prototype.constructor=O;O.prototype.__class__=O;O.__cache__={};a.DracoUInt32Array=O;O.prototype.GetValue=O.prototype.GetValue=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return fc(c,b)};O.prototype.size=O.prototype.size=function(){return gc(this.ptr)}; | ||
O.prototype.__destroy__=O.prototype.__destroy__=function(){hc(this.ptr)};y.prototype=Object.create(v.prototype);y.prototype.constructor=y;y.prototype.__class__=y;y.__cache__={};a.MetadataQuerier=y;y.prototype.HasEntry=y.prototype.HasEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return!!ic(d,b,c)};y.prototype.GetIntEntry=y.prototype.GetIntEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"=== | ||
typeof c?c.ptr:ba(c);return jc(d,b,c)};y.prototype.GetIntEntryArray=y.prototype.GetIntEntryArray=function(b,c,d){var f=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);d&&"object"===typeof d&&(d=d.ptr);kc(f,b,c,d)};y.prototype.GetDoubleEntry=y.prototype.GetDoubleEntry=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return lc(d,b,c)};y.prototype.GetStringEntry=y.prototype.GetStringEntry=function(b, | ||
c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return z(mc(d,b,c))};y.prototype.NumEntries=y.prototype.NumEntries=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return nc(c,b)};y.prototype.GetEntryName=y.prototype.GetEntryName=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return z(oc(d,b,c))};y.prototype.__destroy__=y.prototype.__destroy__=function(){pc(this.ptr)};l.prototype=Object.create(v.prototype); | ||
l.prototype.constructor=l;l.prototype.__class__=l;l.__cache__={};a.Decoder=l;l.prototype.DecodeArrayToPointCloud=l.prototype.DecodeArrayToPointCloud=function(b,c,d){var f=this.ptr;r.prepare();"object"==typeof b&&(b=wa(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return R(qc(f,b,c,d),B)};l.prototype.DecodeArrayToMesh=l.prototype.DecodeArrayToMesh=function(b,c,d){var f=this.ptr;r.prepare();"object"==typeof b&&(b=wa(b));c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&& | ||
(d=d.ptr);return R(rc(f,b,c,d),B)};l.prototype.GetAttributeId=l.prototype.GetAttributeId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return sc(d,b,c)};l.prototype.GetAttributeIdByName=l.prototype.GetAttributeIdByName=function(b,c){var d=this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);return tc(d,b,c)};l.prototype.GetAttributeIdByMetadataEntry=l.prototype.GetAttributeIdByMetadataEntry=function(b,c,d){var f= | ||
this.ptr;r.prepare();b&&"object"===typeof b&&(b=b.ptr);c=c&&"object"===typeof c?c.ptr:ba(c);d=d&&"object"===typeof d?d.ptr:ba(d);return uc(f,b,c,d)};l.prototype.GetAttribute=l.prototype.GetAttribute=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(vc(d,b,c),w)};l.prototype.GetAttributeByUniqueId=l.prototype.GetAttributeByUniqueId=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(wc(d,b, | ||
c),w)};l.prototype.GetMetadata=l.prototype.GetMetadata=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return R(xc(c,b),T)};l.prototype.GetAttributeMetadata=l.prototype.GetAttributeMetadata=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(yc(d,b,c),T)};l.prototype.GetFaceFromMesh=l.prototype.GetFaceFromMesh=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&& | ||
(d=d.ptr);return!!zc(f,b,c,d)};l.prototype.GetTriangleStripsFromMesh=l.prototype.GetTriangleStripsFromMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return Ac(d,b,c)};l.prototype.GetTrianglesUInt16Array=l.prototype.GetTrianglesUInt16Array=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Bc(f,b,c,d)};l.prototype.GetTrianglesUInt32Array=l.prototype.GetTrianglesUInt32Array= | ||
function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Cc(f,b,c,d)};l.prototype.GetAttributeFloat=l.prototype.GetAttributeFloat=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Dc(f,b,c,d)};l.prototype.GetAttributeFloatForAllPoints=l.prototype.GetAttributeFloatForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&& | ||
(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Ec(f,b,c,d)};l.prototype.GetAttributeIntForAllPoints=l.prototype.GetAttributeIntForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Fc(f,b,c,d)};l.prototype.GetAttributeInt8ForAllPoints=l.prototype.GetAttributeInt8ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&& | ||
(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Gc(f,b,c,d)};l.prototype.GetAttributeUInt8ForAllPoints=l.prototype.GetAttributeUInt8ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Hc(f,b,c,d)};l.prototype.GetAttributeInt16ForAllPoints=l.prototype.GetAttributeInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&& | ||
(d=d.ptr);return!!Ic(f,b,c,d)};l.prototype.GetAttributeUInt16ForAllPoints=l.prototype.GetAttributeUInt16ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Jc(f,b,c,d)};l.prototype.GetAttributeInt32ForAllPoints=l.prototype.GetAttributeInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Kc(f, | ||
b,c,d)};l.prototype.GetAttributeUInt32ForAllPoints=l.prototype.GetAttributeUInt32ForAllPoints=function(b,c,d){var f=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);return!!Lc(f,b,c,d)};l.prototype.GetAttributeDataArrayForAllPoints=l.prototype.GetAttributeDataArrayForAllPoints=function(b,c,d,f,t){var X=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);d&&"object"===typeof d&&(d=d.ptr);f&&"object"===typeof f&& | ||
(f=f.ptr);t&&"object"===typeof t&&(t=t.ptr);return!!Mc(X,b,c,d,f,t)};l.prototype.SkipAttributeTransform=l.prototype.SkipAttributeTransform=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);Nc(c,b)};l.prototype.GetEncodedGeometryType_Deprecated=l.prototype.GetEncodedGeometryType_Deprecated=function(b){var c=this.ptr;b&&"object"===typeof b&&(b=b.ptr);return Oc(c,b)};l.prototype.DecodeBufferToPointCloud=l.prototype.DecodeBufferToPointCloud=function(b,c){var d=this.ptr;b&&"object"===typeof b&& | ||
(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(Pc(d,b,c),B)};l.prototype.DecodeBufferToMesh=l.prototype.DecodeBufferToMesh=function(b,c){var d=this.ptr;b&&"object"===typeof b&&(b=b.ptr);c&&"object"===typeof c&&(c=c.ptr);return R(Qc(d,b,c),B)};l.prototype.__destroy__=l.prototype.__destroy__=function(){Rc(this.ptr)};(function(){function b(){a.ATTRIBUTE_INVALID_TRANSFORM=Sc();a.ATTRIBUTE_NO_TRANSFORM=Tc();a.ATTRIBUTE_QUANTIZATION_TRANSFORM=Uc();a.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Vc();a.INVALID=Wc(); | ||
a.POSITION=Xc();a.NORMAL=Yc();a.COLOR=Zc();a.TEX_COORD=$c();a.GENERIC=ad();a.INVALID_GEOMETRY_TYPE=bd();a.POINT_CLOUD=cd();a.TRIANGULAR_MESH=dd();a.DT_INVALID=ed();a.DT_INT8=fd();a.DT_UINT8=gd();a.DT_INT16=hd();a.DT_UINT16=id();a.DT_INT32=jd();a.DT_UINT32=kd();a.DT_INT64=ld();a.DT_UINT64=md();a.DT_FLOAT32=nd();a.DT_FLOAT64=od();a.DT_BOOL=pd();a.DT_TYPES_COUNT=qd();a.OK=rd();a.DRACO_ERROR=sd();a.IO_ERROR=td();a.INVALID_PARAMETER=ud();a.UNSUPPORTED_VERSION=vd();a.UNKNOWN_VERSION=wd()}Fa?b():va.unshift(b)})(); | ||
if("function"===typeof a.onModuleParsed)a.onModuleParsed();a.Decoder.prototype.GetEncodedGeometryType=function(b){if(b.__class__&&b.__class__===a.DecoderBuffer)return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);if(8>b.byteLength)return a.INVALID_GEOMETRY_TYPE;switch(b[7]){case 0:return a.POINT_CLOUD;case 1:return a.TRIANGULAR_MESH;default:return a.INVALID_GEOMETRY_TYPE}};return n.ready}}(); | ||
"object"===typeof exports&&"object"===typeof module?module.exports=DracoDecoderModule:"function"===typeof define&&define.amd?define([],function(){return DracoDecoderModule}):"object"===typeof exports&&(exports.DracoDecoderModule=DracoDecoderModule); |
@@ -1,1 +0,1 @@ | ||
define(["./PrimitivePipeline-82a942e9","./createTaskProcessorWorker","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./when-229515d6","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./combine-8ce3f24b","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryPipeline-5b3fba53","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./WebMercatorProjection-d69cec15"],(function(e,t,i,r,n,a,o,b,c,m,s,P,f,p,u,d,y,l){"use strict";return t((function(t,i){var r=e.PrimitivePipeline.unpackCombineGeometryParameters(t),n=e.PrimitivePipeline.combineGeometry(r);return e.PrimitivePipeline.packCombineGeometryResults(n,i)}))})); | ||
define(["./PrimitivePipeline-6799db3c","./createTaskProcessorWorker","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./when-229515d6","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./combine-8ce3f24b","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryPipeline-cfbe5c41","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./WebMercatorProjection-d69cec15"],(function(e,t,i,r,n,o,a,c,b,m,s,P,f,d,p,u,y,l){"use strict";return t((function(t,i){var r=e.PrimitivePipeline.unpackCombineGeometryParameters(t),n=e.PrimitivePipeline.combineGeometry(r);return e.PrimitivePipeline.packCombineGeometryResults(n,i)}))})); |
@@ -1,1 +0,1 @@ | ||
define(["./Matrix2-f2da41d4","./RuntimeError-ffe03243","./when-229515d6","./EllipseGeometry-0fca35c1","./VertexFormat-565d6a6c","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./combine-8ce3f24b","./EllipseGeometryLibrary-69f5ff56","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be"],(function(e,t,i,r,o,a,n,l,s,m,d,c,u,p,y,_,G,x,f,h){"use strict";function g(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new r.EllipseGeometry(o),this._workerName="createCircleGeometry"}g.packedLength=r.EllipseGeometry.packedLength,g.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var b=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),v={center:new e.Cartesian3,radius:void 0,ellipsoid:e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new o.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return g.unpack=function(t,a,n){var l=r.EllipseGeometry.unpack(t,a,b);return v.center=e.Cartesian3.clone(l._center,v.center),v.ellipsoid=e.Ellipsoid.clone(l._ellipsoid,v.ellipsoid),v.height=l._height,v.extrudedHeight=l._extrudedHeight,v.granularity=l._granularity,v.vertexFormat=o.VertexFormat.clone(l._vertexFormat,v.vertexFormat),v.stRotation=l._stRotation,v.shadowVolume=l._shadowVolume,i.defined(n)?(v.semiMajorAxis=l._semiMajorAxis,v.semiMinorAxis=l._semiMinorAxis,n._ellipseGeometry=new r.EllipseGeometry(v),n):(v.radius=l._semiMajorAxis,new g(v))},g.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},g.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,a=e._ellipseGeometry._ellipsoid,n=t(r,a),l=i(r,a);return new g({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:a,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:n,height:l,vertexFormat:o.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(g.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=g.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),g.createGeometry(t)}})); | ||
define(["./Matrix2-f2da41d4","./RuntimeError-ffe03243","./when-229515d6","./EllipseGeometry-732b68d8","./VertexFormat-565d6a6c","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./combine-8ce3f24b","./EllipseGeometryLibrary-69f5ff56","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be"],(function(e,t,i,r,o,n,a,l,s,m,d,c,u,p,y,_,G,x,h,f){"use strict";function g(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new r.EllipseGeometry(o),this._workerName="createCircleGeometry"}g.packedLength=r.EllipseGeometry.packedLength,g.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var b=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),v={center:new e.Cartesian3,radius:void 0,ellipsoid:e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new o.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return g.unpack=function(t,n,a){var l=r.EllipseGeometry.unpack(t,n,b);return v.center=e.Cartesian3.clone(l._center,v.center),v.ellipsoid=e.Ellipsoid.clone(l._ellipsoid,v.ellipsoid),v.height=l._height,v.extrudedHeight=l._extrudedHeight,v.granularity=l._granularity,v.vertexFormat=o.VertexFormat.clone(l._vertexFormat,v.vertexFormat),v.stRotation=l._stRotation,v.shadowVolume=l._shadowVolume,i.defined(a)?(v.semiMajorAxis=l._semiMajorAxis,v.semiMinorAxis=l._semiMinorAxis,a._ellipseGeometry=new r.EllipseGeometry(v),a):(v.radius=l._semiMajorAxis,new g(v))},g.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},g.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,n=e._ellipseGeometry._ellipsoid,a=t(r,n),l=i(r,n);return new g({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:n,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:a,height:l,vertexFormat:o.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(g.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=g.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),g.createGeometry(t)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./arrayRemoveDuplicates-bb548aa3","./BoundingRectangle-18e42324","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./CoplanarPolygonGeometryLibrary-4653bf5b","./when-229515d6","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-f129e954","./PolygonPipeline-5582b1ec","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./OrientedBoundingBox-86debc5a","./EllipsoidTangentPlane-b27cd2f7","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./ArcType-1da7fdca","./EllipsoidRhumbLine-afd6cd20"],(function(e,t,a,n,r,o,i,l,s,p,y,c,m,u,d,g,b,v,f,h,x,C,P,A,w,F,G){"use strict";var L=new n.Cartesian3,E=new t.BoundingRectangle,T=new n.Cartesian2,D=new n.Cartesian2,_=new n.Cartesian3,V=new n.Cartesian3,k=new n.Cartesian3,R=new n.Cartesian3,I=new n.Cartesian3,M=new n.Cartesian3,B=new a.Quaternion,H=new n.Matrix3,O=new n.Matrix3,z=new n.Cartesian3;function S(e,t,r,i,l,y,c,u){var g=e.positions,b=d.PolygonPipeline.triangulate(e.positions2D,e.holes);b.length<3&&(b=[0,1,2]);var v=m.IndexDatatype.createTypedArray(g.length,b.length);v.set(b);var f=H;if(0!==i){var h=a.Quaternion.fromAxisAngle(y,i,B);if(f=n.Matrix3.fromQuaternion(h,f),t.tangent||t.bitangent){h=a.Quaternion.fromAxisAngle(y,-i,B);var x=n.Matrix3.fromQuaternion(h,O);c=n.Cartesian3.normalize(n.Matrix3.multiplyByVector(x,c,c),c),t.bitangent&&(u=n.Cartesian3.normalize(n.Cartesian3.cross(y,c,u),u))}}else f=n.Matrix3.clone(n.Matrix3.IDENTITY,f);var C=D;t.st&&(C.x=r.x,C.y=r.y);for(var P=g.length,A=3*P,w=new Float64Array(A),F=t.normal?new Float32Array(A):void 0,G=t.tangent?new Float32Array(A):void 0,E=t.bitangent?new Float32Array(A):void 0,_=t.st?new Float32Array(2*P):void 0,V=0,k=0,R=0,I=0,M=0,z=0;z<P;z++){var S=g[z];if(w[V++]=S.x,w[V++]=S.y,w[V++]=S.z,t.st){var N=l(n.Matrix3.multiplyByVector(f,S,L),T);n.Cartesian2.subtract(N,C,N);var Q=o.CesiumMath.clamp(N.x/r.width,0,1),j=o.CesiumMath.clamp(N.y/r.height,0,1);_[M++]=Q,_[M++]=j}t.normal&&(F[k++]=y.x,F[k++]=y.y,F[k++]=y.z),t.tangent&&(G[I++]=c.x,G[I++]=c.y,G[I++]=c.z),t.bitangent&&(E[R++]=u.x,E[R++]=u.y,E[R++]=u.z)}var U=new p.GeometryAttributes;return t.position&&(U.position=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:w})),t.normal&&(U.normal=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),t.tangent&&(U.tangent=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:G})),t.bitangent&&(U.bitangent=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:E})),t.st&&(U.st=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:_})),new s.Geometry({attributes:U,indices:v,primitiveType:s.PrimitiveType.TRIANGLES})}function N(e){var t=(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).polygonHierarchy,a=l.defaultValue(e.vertexFormat,g.VertexFormat.DEFAULT);this._vertexFormat=g.VertexFormat.clone(a),this._polygonHierarchy=t,this._stRotation=l.defaultValue(e.stRotation,0),this._ellipsoid=n.Ellipsoid.clone(l.defaultValue(e.ellipsoid,n.Ellipsoid.WGS84)),this._workerName="createCoplanarPolygonGeometry",this.packedLength=u.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+g.VertexFormat.packedLength+n.Ellipsoid.packedLength+2}N.fromPositions=function(e){return new N({polygonHierarchy:{positions:(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).positions},vertexFormat:e.vertexFormat,stRotation:e.stRotation,ellipsoid:e.ellipsoid})},N.pack=function(e,t,a){return a=l.defaultValue(a,0),a=u.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,a),n.Ellipsoid.pack(e._ellipsoid,t,a),a+=n.Ellipsoid.packedLength,g.VertexFormat.pack(e._vertexFormat,t,a),a+=g.VertexFormat.packedLength,t[a++]=e._stRotation,t[a]=e.packedLength,t};var Q=n.Ellipsoid.clone(n.Ellipsoid.UNIT_SPHERE),j=new g.VertexFormat,U={polygonHierarchy:{}};return N.unpack=function(e,t,a){t=l.defaultValue(t,0);var r=u.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=r.startingIndex,delete r.startingIndex;var o=n.Ellipsoid.unpack(e,t,Q);t+=n.Ellipsoid.packedLength;var i=g.VertexFormat.unpack(e,t,j);t+=g.VertexFormat.packedLength;var s=e[t++],p=e[t];return l.defined(a)||(a=new N(U)),a._polygonHierarchy=r,a._ellipsoid=n.Ellipsoid.clone(o,a._ellipsoid),a._vertexFormat=g.VertexFormat.clone(i,a._vertexFormat),a._stRotation=s,a.packedLength=p,a},N.createGeometry=function(t){var r=t._vertexFormat,l=t._polygonHierarchy,p=t._stRotation,d=l.positions;if(!((d=e.arrayRemoveDuplicates(d,n.Cartesian3.equalsEpsilon,!0)).length<3)){var g=_,b=V,v=k,f=I,h=M;if(i.CoplanarPolygonGeometryLibrary.computeProjectTo2DArguments(d,R,f,h)){if(g=n.Cartesian3.cross(f,h,g),g=n.Cartesian3.normalize(g,g),!n.Cartesian3.equalsEpsilon(R,n.Cartesian3.ZERO,o.CesiumMath.EPSILON6)){var x=t._ellipsoid.geodeticSurfaceNormal(R,z);n.Cartesian3.dot(g,x)<0&&(g=n.Cartesian3.negate(g,g),f=n.Cartesian3.negate(f,f))}var C=i.CoplanarPolygonGeometryLibrary.createProjectPointsTo2DFunction(R,f,h),P=i.CoplanarPolygonGeometryLibrary.createProjectPointTo2DFunction(R,f,h);r.tangent&&(b=n.Cartesian3.clone(f,b)),r.bitangent&&(v=n.Cartesian3.clone(h,v));var A=u.PolygonGeometryLibrary.polygonsFromHierarchy(l,C,!1),w=A.hierarchy,F=A.polygons;if(0!==w.length){d=w[0].outerRing;for(var G=a.BoundingSphere.fromPoints(d),L=u.PolygonGeometryLibrary.computeBoundingRectangle(g,P,d,p,E),T=[],D=0;D<F.length;D++){var B=new y.GeometryInstance({geometry:S(F[D],r,L,p,P,g,b,v)});T.push(B)}var H=c.GeometryPipeline.combineInstances(T)[0];H.attributes.position.values=new Float64Array(H.attributes.position.values),H.indices=m.IndexDatatype.createTypedArray(H.attributes.position.values.length/3,H.indices);var O=H.attributes;return r.position||delete O.position,new s.Geometry({attributes:O,indices:H.indices,primitiveType:H.primitiveType,boundingSphere:G})}}}},function(e,t){return l.defined(t)&&(e=N.unpack(e,t)),N.createGeometry(e)}})); | ||
define(["./arrayRemoveDuplicates-bb548aa3","./BoundingRectangle-18e42324","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./CoplanarPolygonGeometryLibrary-4653bf5b","./when-229515d6","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-b0b72d84","./PolygonPipeline-5582b1ec","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./OrientedBoundingBox-86debc5a","./EllipsoidTangentPlane-b27cd2f7","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./ArcType-1da7fdca","./EllipsoidRhumbLine-afd6cd20"],(function(e,t,a,n,r,o,i,l,s,p,y,c,m,u,d,g,b,v,f,h,x,C,P,A,w,F,G){"use strict";var L=new n.Cartesian3,E=new t.BoundingRectangle,T=new n.Cartesian2,D=new n.Cartesian2,_=new n.Cartesian3,V=new n.Cartesian3,k=new n.Cartesian3,R=new n.Cartesian3,I=new n.Cartesian3,M=new n.Cartesian3,B=new a.Quaternion,H=new n.Matrix3,O=new n.Matrix3,z=new n.Cartesian3;function S(e,t,r,i,l,y,c,u){var g=e.positions,b=d.PolygonPipeline.triangulate(e.positions2D,e.holes);b.length<3&&(b=[0,1,2]);var v=m.IndexDatatype.createTypedArray(g.length,b.length);v.set(b);var f=H;if(0!==i){var h=a.Quaternion.fromAxisAngle(y,i,B);if(f=n.Matrix3.fromQuaternion(h,f),t.tangent||t.bitangent){h=a.Quaternion.fromAxisAngle(y,-i,B);var x=n.Matrix3.fromQuaternion(h,O);c=n.Cartesian3.normalize(n.Matrix3.multiplyByVector(x,c,c),c),t.bitangent&&(u=n.Cartesian3.normalize(n.Cartesian3.cross(y,c,u),u))}}else f=n.Matrix3.clone(n.Matrix3.IDENTITY,f);var C=D;t.st&&(C.x=r.x,C.y=r.y);for(var P=g.length,A=3*P,w=new Float64Array(A),F=t.normal?new Float32Array(A):void 0,G=t.tangent?new Float32Array(A):void 0,E=t.bitangent?new Float32Array(A):void 0,_=t.st?new Float32Array(2*P):void 0,V=0,k=0,R=0,I=0,M=0,z=0;z<P;z++){var S=g[z];if(w[V++]=S.x,w[V++]=S.y,w[V++]=S.z,t.st){var N=l(n.Matrix3.multiplyByVector(f,S,L),T);n.Cartesian2.subtract(N,C,N);var Q=o.CesiumMath.clamp(N.x/r.width,0,1),j=o.CesiumMath.clamp(N.y/r.height,0,1);_[M++]=Q,_[M++]=j}t.normal&&(F[k++]=y.x,F[k++]=y.y,F[k++]=y.z),t.tangent&&(G[I++]=c.x,G[I++]=c.y,G[I++]=c.z),t.bitangent&&(E[R++]=u.x,E[R++]=u.y,E[R++]=u.z)}var U=new p.GeometryAttributes;return t.position&&(U.position=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:w})),t.normal&&(U.normal=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),t.tangent&&(U.tangent=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:G})),t.bitangent&&(U.bitangent=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:E})),t.st&&(U.st=new s.GeometryAttribute({componentDatatype:o.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:_})),new s.Geometry({attributes:U,indices:v,primitiveType:s.PrimitiveType.TRIANGLES})}function N(e){var t=(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).polygonHierarchy,a=l.defaultValue(e.vertexFormat,g.VertexFormat.DEFAULT);this._vertexFormat=g.VertexFormat.clone(a),this._polygonHierarchy=t,this._stRotation=l.defaultValue(e.stRotation,0),this._ellipsoid=n.Ellipsoid.clone(l.defaultValue(e.ellipsoid,n.Ellipsoid.WGS84)),this._workerName="createCoplanarPolygonGeometry",this.packedLength=u.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+g.VertexFormat.packedLength+n.Ellipsoid.packedLength+2}N.fromPositions=function(e){return new N({polygonHierarchy:{positions:(e=l.defaultValue(e,l.defaultValue.EMPTY_OBJECT)).positions},vertexFormat:e.vertexFormat,stRotation:e.stRotation,ellipsoid:e.ellipsoid})},N.pack=function(e,t,a){return a=l.defaultValue(a,0),a=u.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,a),n.Ellipsoid.pack(e._ellipsoid,t,a),a+=n.Ellipsoid.packedLength,g.VertexFormat.pack(e._vertexFormat,t,a),a+=g.VertexFormat.packedLength,t[a++]=e._stRotation,t[a]=e.packedLength,t};var Q=n.Ellipsoid.clone(n.Ellipsoid.UNIT_SPHERE),j=new g.VertexFormat,U={polygonHierarchy:{}};return N.unpack=function(e,t,a){t=l.defaultValue(t,0);var r=u.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=r.startingIndex,delete r.startingIndex;var o=n.Ellipsoid.unpack(e,t,Q);t+=n.Ellipsoid.packedLength;var i=g.VertexFormat.unpack(e,t,j);t+=g.VertexFormat.packedLength;var s=e[t++],p=e[t];return l.defined(a)||(a=new N(U)),a._polygonHierarchy=r,a._ellipsoid=n.Ellipsoid.clone(o,a._ellipsoid),a._vertexFormat=g.VertexFormat.clone(i,a._vertexFormat),a._stRotation=s,a.packedLength=p,a},N.createGeometry=function(t){var r=t._vertexFormat,l=t._polygonHierarchy,p=t._stRotation,d=l.positions;if(!((d=e.arrayRemoveDuplicates(d,n.Cartesian3.equalsEpsilon,!0)).length<3)){var g=_,b=V,v=k,f=I,h=M;if(i.CoplanarPolygonGeometryLibrary.computeProjectTo2DArguments(d,R,f,h)){if(g=n.Cartesian3.cross(f,h,g),g=n.Cartesian3.normalize(g,g),!n.Cartesian3.equalsEpsilon(R,n.Cartesian3.ZERO,o.CesiumMath.EPSILON6)){var x=t._ellipsoid.geodeticSurfaceNormal(R,z);n.Cartesian3.dot(g,x)<0&&(g=n.Cartesian3.negate(g,g),f=n.Cartesian3.negate(f,f))}var C=i.CoplanarPolygonGeometryLibrary.createProjectPointsTo2DFunction(R,f,h),P=i.CoplanarPolygonGeometryLibrary.createProjectPointTo2DFunction(R,f,h);r.tangent&&(b=n.Cartesian3.clone(f,b)),r.bitangent&&(v=n.Cartesian3.clone(h,v));var A=u.PolygonGeometryLibrary.polygonsFromHierarchy(l,C,!1),w=A.hierarchy,F=A.polygons;if(0!==w.length){d=w[0].outerRing;for(var G=a.BoundingSphere.fromPoints(d),L=u.PolygonGeometryLibrary.computeBoundingRectangle(g,P,d,p,E),T=[],D=0;D<F.length;D++){var B=new y.GeometryInstance({geometry:S(F[D],r,L,p,P,g,b,v)});T.push(B)}var H=c.GeometryPipeline.combineInstances(T)[0];H.attributes.position.values=new Float64Array(H.attributes.position.values),H.indices=m.IndexDatatype.createTypedArray(H.attributes.position.values.length/3,H.indices);var O=H.attributes;return r.position||delete O.position,new s.Geometry({attributes:O,indices:H.indices,primitiveType:H.primitiveType,boundingSphere:G})}}}},function(e,t){return l.defined(t)&&(e=N.unpack(e,t)),N.createGeometry(e)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./arrayRemoveDuplicates-bb548aa3","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./CoplanarPolygonGeometryLibrary-4653bf5b","./when-229515d6","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-f129e954","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./OrientedBoundingBox-86debc5a","./EllipsoidTangentPlane-b27cd2f7","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./ArcType-1da7fdca","./EllipsoidRhumbLine-afd6cd20","./PolygonPipeline-5582b1ec"],(function(e,t,r,n,o,a,i,y,l,c,p,s,u,d,m,b,f,g,h,P,G,v,L,T,E){"use strict";function A(e){for(var t=e.length,r=new Float64Array(3*t),n=s.IndexDatatype.createTypedArray(t,2*t),a=0,i=0,c=0;c<t;c++){var p=e[c];r[a++]=p.x,r[a++]=p.y,r[a++]=p.z,n[i++]=c,n[i++]=(c+1)%t}var u=new l.GeometryAttributes({position:new y.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:r})});return new y.Geometry({attributes:u,indices:n,primitiveType:y.PrimitiveType.LINES})}function C(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).polygonHierarchy;this._polygonHierarchy=t,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=u.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+1}C.fromPositions=function(e){return new C({polygonHierarchy:{positions:(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).positions}})},C.pack=function(e,t,r){return r=i.defaultValue(r,0),t[r=u.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,r)]=e.packedLength,t};var H={polygonHierarchy:{}};return C.unpack=function(e,t,r){t=i.defaultValue(t,0);var n=u.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=n.startingIndex,delete n.startingIndex;var o=e[t];return i.defined(r)||(r=new C(H)),r._polygonHierarchy=n,r.packedLength=o,r},C.createGeometry=function(n){var o=n._polygonHierarchy,i=o.positions;if(!((i=e.arrayRemoveDuplicates(i,r.Cartesian3.equalsEpsilon,!0)).length<3)&&a.CoplanarPolygonGeometryLibrary.validOutline(i)){var l=u.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(o,!1);if(0!==l.length){for(var s=[],d=0;d<l.length;d++){var m=new c.GeometryInstance({geometry:A(l[d])});s.push(m)}var b=p.GeometryPipeline.combineInstances(s)[0],f=t.BoundingSphere.fromPoints(o.positions);return new y.Geometry({attributes:b.attributes,indices:b.indices,primitiveType:b.primitiveType,boundingSphere:f})}}},function(e,t){return i.defined(t)&&(e=C.unpack(e,t)),e._ellipsoid=r.Ellipsoid.clone(e._ellipsoid),C.createGeometry(e)}})); | ||
define(["./arrayRemoveDuplicates-bb548aa3","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./CoplanarPolygonGeometryLibrary-4653bf5b","./when-229515d6","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-b0b72d84","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./OrientedBoundingBox-86debc5a","./EllipsoidTangentPlane-b27cd2f7","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./ArcType-1da7fdca","./EllipsoidRhumbLine-afd6cd20","./PolygonPipeline-5582b1ec"],(function(e,t,r,n,o,a,i,y,l,c,p,s,u,d,b,m,f,g,h,P,G,v,L,T,E){"use strict";function A(e){for(var t=e.length,r=new Float64Array(3*t),n=s.IndexDatatype.createTypedArray(t,2*t),a=0,i=0,c=0;c<t;c++){var p=e[c];r[a++]=p.x,r[a++]=p.y,r[a++]=p.z,n[i++]=c,n[i++]=(c+1)%t}var u=new l.GeometryAttributes({position:new y.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:r})});return new y.Geometry({attributes:u,indices:n,primitiveType:y.PrimitiveType.LINES})}function C(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).polygonHierarchy;this._polygonHierarchy=t,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=u.PolygonGeometryLibrary.computeHierarchyPackedLength(t)+1}C.fromPositions=function(e){return new C({polygonHierarchy:{positions:(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).positions}})},C.pack=function(e,t,r){return r=i.defaultValue(r,0),t[r=u.PolygonGeometryLibrary.packPolygonHierarchy(e._polygonHierarchy,t,r)]=e.packedLength,t};var H={polygonHierarchy:{}};return C.unpack=function(e,t,r){t=i.defaultValue(t,0);var n=u.PolygonGeometryLibrary.unpackPolygonHierarchy(e,t);t=n.startingIndex,delete n.startingIndex;var o=e[t];return i.defined(r)||(r=new C(H)),r._polygonHierarchy=n,r.packedLength=o,r},C.createGeometry=function(n){var o=n._polygonHierarchy,i=o.positions;if(!((i=e.arrayRemoveDuplicates(i,r.Cartesian3.equalsEpsilon,!0)).length<3)&&a.CoplanarPolygonGeometryLibrary.validOutline(i)){var l=u.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(o,!1);if(0!==l.length){for(var s=[],d=0;d<l.length;d++){var b=new c.GeometryInstance({geometry:A(l[d])});s.push(b)}var m=p.GeometryPipeline.combineInstances(s)[0],f=t.BoundingSphere.fromPoints(o.positions);return new y.Geometry({attributes:m.attributes,indices:m.indices,primitiveType:m.primitiveType,boundingSphere:f})}}},function(e,t){return i.defined(t)&&(e=C.unpack(e,t)),e._ellipsoid=r.Ellipsoid.clone(e._ellipsoid),C.createGeometry(e)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./Matrix2-f2da41d4","./when-229515d6","./EllipseGeometry-0fca35c1","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./combine-8ce3f24b","./EllipseGeometryLibrary-69f5ff56","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./VertexFormat-565d6a6c"],(function(e,t,r,n,a,i,o,s,c,f,b,l,d,m,p,y,u,G,E,C){"use strict";return function(n,a){return t.defined(a)&&(n=r.EllipseGeometry.unpack(n,a)),n._center=e.Cartesian3.clone(n._center),n._ellipsoid=e.Ellipsoid.clone(n._ellipsoid),r.EllipseGeometry.createGeometry(n)}})); | ||
define(["./Matrix2-f2da41d4","./when-229515d6","./EllipseGeometry-732b68d8","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./combine-8ce3f24b","./EllipseGeometryLibrary-69f5ff56","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./VertexFormat-565d6a6c"],(function(e,t,r,n,i,o,a,s,c,f,b,l,d,m,p,y,u,G,E,C){"use strict";return function(n,i){return t.defined(i)&&(n=r.EllipseGeometry.unpack(n,i)),n._center=e.Cartesian3.clone(n._center),n._ellipsoid=e.Ellipsoid.clone(n._ellipsoid),r.EllipseGeometry.createGeometry(n)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./when-229515d6","./PrimitivePipeline-82a942e9","./createTaskProcessorWorker","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./combine-8ce3f24b","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryPipeline-5b3fba53","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./WebMercatorProjection-d69cec15"],(function(e,r,t,n,a,i,o,s,c,f,b,u,d,m,l,p,y,P){"use strict";var v={};function k(r){var t=v[r];return e.defined(t)||("object"==typeof exports?v[t]=t=require("Workers/"+r):require(["Workers/"+r],(function(e){v[t=e]=e}))),t}return t((function(t,n){for(var a=t.subTasks,i=a.length,o=new Array(i),s=0;s<i;s++){var c=a[s],f=c.geometry,b=c.moduleName;if(e.defined(b)){var u=k(b);o[s]=u(f,c.offset)}else o[s]=f}return e.when.all(o,(function(e){return r.PrimitivePipeline.packCreateGeometryResults(e,n)}))}))})); | ||
define(["./when-229515d6","./PrimitivePipeline-6799db3c","./createTaskProcessorWorker","./Transforms-7cd3197b","./Matrix2-f2da41d4","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./combine-8ce3f24b","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryPipeline-cfbe5c41","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IndexDatatype-b10faa0b","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./WebMercatorProjection-d69cec15"],(function(e,r,t,n,i,o,a,s,c,f,b,u,d,m,l,p,y,P){"use strict";var v={};function k(r){var t=v[r];return e.defined(t)||("object"==typeof exports?v[t]=t=require("Workers/"+r):require(["Workers/"+r],(function(e){v[t=e]=e}))),t}return t((function(t,n){for(var i=t.subTasks,o=i.length,a=new Array(o),s=0;s<o;s++){var c=i[s],f=c.geometry,b=c.moduleName;if(e.defined(b)){var u=k(b);a[s]=u(f,c.offset)}else a[s]=f}return e.when.all(a,(function(e){return r.PrimitivePipeline.packCreateGeometryResults(e,n)}))}))})); |
@@ -1,1 +0,1 @@ | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./ArcType-1da7fdca","./GeometryOffsetAttribute-ff1e192c","./BoundingRectangle-18e42324","./Transforms-7cd3197b","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./EllipsoidGeodesic-43ba18de","./EllipsoidTangentPlane-b27cd2f7","./GeometryAttribute-80036e07","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-f129e954","./PolygonPipeline-5582b1ec","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./arrayRemoveDuplicates-bb548aa3","./EllipsoidRhumbLine-afd6cd20","./GeometryAttributes-b253752a"],(function(e,t,r,a,o,i,n,s,l,u,p,c,m,y,g,d,h,f,b,v,_,P,x,w,C,T,I){"use strict";var A=new t.Cartographic,E=new t.Cartographic;function G(e,t,r,a){var o=a.cartesianToCartographic(e,A).height,i=a.cartesianToCartographic(t,E);i.height=o,a.cartographicToCartesian(i,t);var n=a.cartesianToCartographic(r,E);n.height=o-100,a.cartographicToCartesian(n,r)}var O=new o.BoundingRectangle,V=new t.Cartesian3,F=new t.Cartesian3,D=new t.Cartesian3,L=new t.Cartesian3,N=new t.Cartesian3,H=new t.Cartesian3,R=new t.Cartesian3,M=new t.Cartesian3,S=new t.Cartesian3,B=new t.Cartesian2,k=new t.Cartesian2,z=new t.Cartesian3,W=new i.Quaternion,Y=new t.Matrix3,U=new t.Matrix3;function j(r){var o=r.vertexFormat,n=r.geometry,l=r.shadowVolume,u=n.attributes.position.values,c=u.length,m=r.wall,y=r.top||m,g=r.bottom||m;if(o.st||o.normal||o.tangent||o.bitangent||l){var d=r.boundingRectangle,h=r.tangentPlane,f=r.ellipsoid,b=r.stRotation,v=r.perPositionHeight,_=B;_.x=d.x,_.y=d.y;var P,x=o.st?new Float32Array(c/3*2):void 0;o.normal&&(P=v&&y&&!m?n.attributes.normal.values:new Float32Array(c));var w=o.tangent?new Float32Array(c):void 0,C=o.bitangent?new Float32Array(c):void 0,T=l?new Float32Array(c):void 0,I=0,A=0,E=F,O=D,j=L,Q=!0,q=Y,K=U;if(0!==b){var Z=i.Quaternion.fromAxisAngle(h._plane.normal,b,W);q=t.Matrix3.fromQuaternion(Z,q),Z=i.Quaternion.fromAxisAngle(h._plane.normal,-b,W),K=t.Matrix3.fromQuaternion(Z,K)}else q=t.Matrix3.clone(t.Matrix3.IDENTITY,q),K=t.Matrix3.clone(t.Matrix3.IDENTITY,K);var J=0,X=0;y&&g&&(J=c/2,X=c/3,c/=2);for(var $=0;$<c;$+=3){var ee=t.Cartesian3.fromArray(u,$,z);if(o.st){var te=t.Matrix3.multiplyByVector(q,ee,V);te=f.scaleToGeodeticSurface(te,te);var re=h.projectPointOntoPlane(te,k);t.Cartesian2.subtract(re,_,re);var ae=s.CesiumMath.clamp(re.x/d.width,0,1),oe=s.CesiumMath.clamp(re.y/d.height,0,1);g&&(x[I+X]=ae,x[I+1+X]=oe),y&&(x[I]=ae,x[I+1]=oe),I+=2}if(o.normal||o.tangent||o.bitangent||l){var ie=A+1,ne=A+2;if(m){if($+3<c){var se=t.Cartesian3.fromArray(u,$+3,N);if(Q){var le=t.Cartesian3.fromArray(u,$+c,H);v&&G(ee,se,le,f),t.Cartesian3.subtract(se,ee,se),t.Cartesian3.subtract(le,ee,le),E=t.Cartesian3.normalize(t.Cartesian3.cross(le,se,E),E),Q=!1}t.Cartesian3.equalsEpsilon(se,ee,s.CesiumMath.EPSILON10)&&(Q=!0)}(o.tangent||o.bitangent)&&(j=f.geodeticSurfaceNormal(ee,j),o.tangent&&(O=t.Cartesian3.normalize(t.Cartesian3.cross(j,E,O),O)))}else E=f.geodeticSurfaceNormal(ee,E),(o.tangent||o.bitangent)&&(v&&(R=t.Cartesian3.fromArray(P,A,R),M=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,R,M),M=t.Cartesian3.normalize(t.Matrix3.multiplyByVector(K,M,M),M),o.bitangent&&(S=t.Cartesian3.normalize(t.Cartesian3.cross(R,M,S),S))),O=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,E,O),O=t.Cartesian3.normalize(t.Matrix3.multiplyByVector(K,O,O),O),o.bitangent&&(j=t.Cartesian3.normalize(t.Cartesian3.cross(E,O,j),j)));o.normal&&(r.wall?(P[A+J]=E.x,P[ie+J]=E.y,P[ne+J]=E.z):g&&(P[A+J]=-E.x,P[ie+J]=-E.y,P[ne+J]=-E.z),(y&&!v||m)&&(P[A]=E.x,P[ie]=E.y,P[ne]=E.z)),l&&(m&&(E=f.geodeticSurfaceNormal(ee,E)),T[A+J]=-E.x,T[ie+J]=-E.y,T[ne+J]=-E.z),o.tangent&&(r.wall?(w[A+J]=O.x,w[ie+J]=O.y,w[ne+J]=O.z):g&&(w[A+J]=-O.x,w[ie+J]=-O.y,w[ne+J]=-O.z),y&&(v?(w[A]=M.x,w[ie]=M.y,w[ne]=M.z):(w[A]=O.x,w[ie]=O.y,w[ne]=O.z))),o.bitangent&&(g&&(C[A+J]=j.x,C[ie+J]=j.y,C[ne+J]=j.z),y&&(v?(C[A]=S.x,C[ie]=S.y,C[ne]=S.z):(C[A]=j.x,C[ie]=j.y,C[ne]=j.z))),A+=3}}o.st&&(n.attributes.st=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:x})),o.normal&&(n.attributes.normal=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P})),o.tangent&&(n.attributes.tangent=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),o.bitangent&&(n.attributes.bitangent=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:C})),l&&(n.attributes.extrudeDirection=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:T}))}if(r.extrude&&e.defined(r.offsetAttribute)){var ue=u.length/3,pe=new Uint8Array(ue);if(r.offsetAttribute===a.GeometryOffsetAttribute.TOP)y&&g||m?pe=a.arrayFill(pe,1,0,ue/2):y&&(pe=a.arrayFill(pe,1));else{var ce=r.offsetAttribute===a.GeometryOffsetAttribute.NONE?0:1;pe=a.arrayFill(pe,ce)}n.attributes.applyOffset=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:pe})}return n}var Q=new t.Cartographic,q=new t.Cartographic,K={westOverIDL:0,eastOverIDL:0},Z=new l.EllipsoidGeodesic;function J(a,o,i,n,u){if(u=e.defaultValue(u,new t.Rectangle),!e.defined(a)||a.length<3)return u.west=0,u.north=0,u.south=0,u.east=0,u;if(i===r.ArcType.RHUMB)return t.Rectangle.fromCartesianArray(a,o,u);Z.ellipsoid.equals(o)||(Z=new l.EllipsoidGeodesic(void 0,void 0,o)),u.west=Number.POSITIVE_INFINITY,u.east=Number.NEGATIVE_INFINITY,u.south=Number.POSITIVE_INFINITY,u.north=Number.NEGATIVE_INFINITY,K.westOverIDL=Number.POSITIVE_INFINITY,K.eastOverIDL=Number.NEGATIVE_INFINITY;for(var p,c=1/s.CesiumMath.chordLength(n,o.maximumRadius),m=a.length,y=o.cartesianToCartographic(a[0],q),g=Q,d=1;d<m;d++)p=g,g=y,y=o.cartesianToCartographic(a[d],p),Z.setEndPoints(g,y),$(Z,c,u,K);return p=g,g=y,y=o.cartesianToCartographic(a[0],p),Z.setEndPoints(g,y),$(Z,c,u,K),u.east-u.west>K.eastOverIDL-K.westOverIDL&&(u.west=K.westOverIDL,u.east=K.eastOverIDL,u.east>s.CesiumMath.PI&&(u.east=u.east-s.CesiumMath.TWO_PI),u.west>s.CesiumMath.PI&&(u.west=u.west-s.CesiumMath.TWO_PI)),u}var X=new t.Cartographic;function $(e,t,r,a){for(var o=e.surfaceDistance,i=Math.ceil(o*t),n=i>0?o/(i-1):Number.POSITIVE_INFINITY,l=0,u=0;u<i;u++){var p=e.interpolateUsingSurfaceDistance(l,X);l+=n;var c=p.longitude,m=p.latitude;r.west=Math.min(r.west,c),r.east=Math.max(r.east,c),r.south=Math.min(r.south,m),r.north=Math.max(r.north,m);var y=c>=0?c:c+s.CesiumMath.TWO_PI;a.westOverIDL=Math.min(a.westOverIDL,y),a.eastOverIDL=Math.max(a.eastOverIDL,y)}}var ee=[];function te(e,t,r,a,o,i,n,s,l){var p,m={walls:[]};if(i||n){var h,f,b=g.PolygonGeometryLibrary.createGeometryFromPositions(e,t,r,o,s,l),v=b.attributes.position.values,_=b.indices;if(i&&n){var P=v.concat(v);h=P.length/3,(f=y.IndexDatatype.createTypedArray(h,2*_.length)).set(_);var x=_.length,w=h/2;for(p=0;p<x;p+=3){var C=f[p]+w,T=f[p+1]+w,I=f[p+2]+w;f[p+x]=I,f[p+1+x]=T,f[p+2+x]=C}if(b.attributes.position.values=P,o&&s.normal){var A=b.attributes.normal.values;b.attributes.normal.values=new Float32Array(P.length),b.attributes.normal.values.set(A)}b.indices=f}else if(n){for(h=v.length/3,f=y.IndexDatatype.createTypedArray(h,_.length),p=0;p<_.length;p+=3)f[p]=_[p+2],f[p+1]=_[p+1],f[p+2]=_[p];b.indices=f}m.topAndBottom=new c.GeometryInstance({geometry:b})}var E=a.outerRing,G=u.EllipsoidTangentPlane.fromPoints(E,e),O=G.projectPointsOntoPlane(E,ee),V=d.PolygonPipeline.computeWindingOrder2D(O);V===d.WindingOrder.CLOCKWISE&&(E=E.slice().reverse());var F=g.PolygonGeometryLibrary.computeWallGeometry(E,e,r,o,l);m.walls.push(new c.GeometryInstance({geometry:F}));var D=a.holes;for(p=0;p<D.length;p++){var L=D[p];O=(G=u.EllipsoidTangentPlane.fromPoints(L,e)).projectPointsOntoPlane(L,ee),(V=d.PolygonPipeline.computeWindingOrder2D(O))===d.WindingOrder.COUNTER_CLOCKWISE&&(L=L.slice().reverse()),F=g.PolygonGeometryLibrary.computeWallGeometry(L,e,r,o,l),m.walls.push(new c.GeometryInstance({geometry:F}))}return m}function re(a){var o=a.polygonHierarchy,i=e.defaultValue(a.vertexFormat,h.VertexFormat.DEFAULT),n=e.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84),l=e.defaultValue(a.granularity,s.CesiumMath.RADIANS_PER_DEGREE),u=e.defaultValue(a.stRotation,0),p=e.defaultValue(a.perPositionHeight,!1),c=p&&e.defined(a.extrudedHeight),m=e.defaultValue(a.height,0),y=e.defaultValue(a.extrudedHeight,m);if(!c){var d=Math.max(m,y);y=Math.min(m,y),m=d}this._vertexFormat=h.VertexFormat.clone(i),this._ellipsoid=t.Ellipsoid.clone(n),this._granularity=l,this._stRotation=u,this._height=m,this._extrudedHeight=y,this._closeTop=e.defaultValue(a.closeTop,!0),this._closeBottom=e.defaultValue(a.closeBottom,!0),this._polygonHierarchy=o,this._perPositionHeight=p,this._perPositionHeightExtrude=c,this._shadowVolume=e.defaultValue(a.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=a.offsetAttribute,this._arcType=e.defaultValue(a.arcType,r.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this.packedLength=g.PolygonGeometryLibrary.computeHierarchyPackedLength(o)+t.Ellipsoid.packedLength+h.VertexFormat.packedLength+12}re.fromPositions=function(t){return new re({polygonHierarchy:{positions:(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions},height:t.height,extrudedHeight:t.extrudedHeight,vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,closeTop:t.closeTop,closeBottom:t.closeBottom,offsetAttribute:t.offsetAttribute,arcType:t.arcType})},re.pack=function(r,a,o){return o=e.defaultValue(o,0),o=g.PolygonGeometryLibrary.packPolygonHierarchy(r._polygonHierarchy,a,o),t.Ellipsoid.pack(r._ellipsoid,a,o),o+=t.Ellipsoid.packedLength,h.VertexFormat.pack(r._vertexFormat,a,o),o+=h.VertexFormat.packedLength,a[o++]=r._height,a[o++]=r._extrudedHeight,a[o++]=r._granularity,a[o++]=r._stRotation,a[o++]=r._perPositionHeightExtrude?1:0,a[o++]=r._perPositionHeight?1:0,a[o++]=r._closeTop?1:0,a[o++]=r._closeBottom?1:0,a[o++]=r._shadowVolume?1:0,a[o++]=e.defaultValue(r._offsetAttribute,-1),a[o++]=r._arcType,a[o]=r.packedLength,a};var ae=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),oe=new h.VertexFormat,ie={polygonHierarchy:{}};return re.unpack=function(r,a,o){a=e.defaultValue(a,0);var i=g.PolygonGeometryLibrary.unpackPolygonHierarchy(r,a);a=i.startingIndex,delete i.startingIndex;var n=t.Ellipsoid.unpack(r,a,ae);a+=t.Ellipsoid.packedLength;var s=h.VertexFormat.unpack(r,a,oe);a+=h.VertexFormat.packedLength;var l=r[a++],u=r[a++],p=r[a++],c=r[a++],m=1===r[a++],y=1===r[a++],d=1===r[a++],f=1===r[a++],b=1===r[a++],v=r[a++],_=r[a++],P=r[a];return e.defined(o)||(o=new re(ie)),o._polygonHierarchy=i,o._ellipsoid=t.Ellipsoid.clone(n,o._ellipsoid),o._vertexFormat=h.VertexFormat.clone(s,o._vertexFormat),o._height=l,o._extrudedHeight=u,o._granularity=p,o._stRotation=c,o._perPositionHeightExtrude=m,o._perPositionHeight=y,o._closeTop=d,o._closeBottom=f,o._shadowVolume=b,o._offsetAttribute=-1===v?void 0:v,o._arcType=_,o.packedLength=P,o},re.computeRectangle=function(a,o){var i=e.defaultValue(a.granularity,s.CesiumMath.RADIANS_PER_DEGREE),n=e.defaultValue(a.arcType,r.ArcType.GEODESIC),l=a.polygonHierarchy,u=e.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84);return J(l.positions,u,n,i,o)},re.createGeometry=function(t){var r=t._vertexFormat,o=t._ellipsoid,n=t._granularity,l=t._stRotation,h=t._polygonHierarchy,f=t._perPositionHeight,b=t._closeTop,v=t._closeBottom,_=t._arcType,P=h.positions;if(!(P.length<3)){var x=u.EllipsoidTangentPlane.fromPoints(P,o),w=g.PolygonGeometryLibrary.polygonsFromHierarchy(h,x.projectPointsOntoPlane.bind(x),!f,o),C=w.hierarchy,T=w.polygons;if(0!==C.length){P=C[0].outerRing;var I,A=g.PolygonGeometryLibrary.computeBoundingRectangle(x.plane.normal,x.projectPointOntoPlane.bind(x),P,l,O),E=[],G=t._height,V=t._extrudedHeight,F={perPositionHeight:f,vertexFormat:r,geometry:void 0,tangentPlane:x,boundingRectangle:A,ellipsoid:o,stRotation:l,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:_};if(t._perPositionHeightExtrude||!s.CesiumMath.equalsEpsilon(G,V,0,s.CesiumMath.EPSILON2))for(F.extrude=!0,F.top=b,F.bottom=v,F.shadowVolume=t._shadowVolume,F.offsetAttribute=t._offsetAttribute,I=0;I<T.length;I++){var D,L=te(o,T[I],n,C[I],f,b,v,r,_);b&&v?(D=L.topAndBottom,F.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(D.geometry,G,V,o,f)):b?((D=L.topAndBottom).geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(D.geometry.attributes.position.values,G,o,!f),F.geometry=D.geometry):v&&((D=L.topAndBottom).geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(D.geometry.attributes.position.values,V,o,!0),F.geometry=D.geometry),(b||v)&&(F.wall=!1,D.geometry=j(F),E.push(D));var N=L.walls;F.wall=!0;for(var H=0;H<N.length;H++){var R=N[H];F.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(R.geometry,G,V,o,f),R.geometry=j(F),E.push(R)}}else for(I=0;I<T.length;I++){var M=new c.GeometryInstance({geometry:g.PolygonGeometryLibrary.createGeometryFromPositions(o,T[I],n,f,r,_)});if(M.geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(M.geometry.attributes.position.values,G,o,!f),F.geometry=M.geometry,M.geometry=j(F),e.defined(t._offsetAttribute)){var S=M.geometry.attributes.position.values.length,B=new Uint8Array(S/3),k=t._offsetAttribute===a.GeometryOffsetAttribute.NONE?0:1;a.arrayFill(B,k),M.geometry.attributes.applyOffset=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:B})}E.push(M)}var z=m.GeometryPipeline.combineInstances(E)[0];z.attributes.position.values=new Float64Array(z.attributes.position.values),z.indices=y.IndexDatatype.createTypedArray(z.attributes.position.values.length/3,z.indices);var W=z.attributes,Y=i.BoundingSphere.fromVertices(W.position.values);return r.position||delete W.position,new p.Geometry({attributes:W,indices:z.indices,primitiveType:z.primitiveType,boundingSphere:Y,offsetAttribute:t._offsetAttribute})}}},re.createShadowVolume=function(e,t,r){var a=e._granularity,o=e._ellipsoid,i=t(a,o),n=r(a,o);return new re({polygonHierarchy:e._polygonHierarchy,ellipsoid:o,stRotation:e._stRotation,granularity:a,perPositionHeight:!1,extrudedHeight:i,height:n,vertexFormat:h.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:e._arcType})},Object.defineProperties(re.prototype,{rectangle:{get:function(){if(!e.defined(this._rectangle)){var t=this._polygonHierarchy.positions;this._rectangle=J(t,this._ellipsoid,this._arcType,this._granularity)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return e.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0===t)return[0,0,0,1,1,0];var r=e._ellipsoid,a=e._polygonHierarchy.positions,o=e.rectangle;return p.Geometry._textureCoordinateRotationPoints(a,t,r,o)}(this)),this._textureCoordinateRotationPoints}}}),function(r,a){return e.defined(a)&&(r=re.unpack(r,a)),r._ellipsoid=t.Ellipsoid.clone(r._ellipsoid),re.createGeometry(r)}})); | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./ArcType-1da7fdca","./GeometryOffsetAttribute-ff1e192c","./BoundingRectangle-18e42324","./Transforms-7cd3197b","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./EllipsoidGeodesic-43ba18de","./EllipsoidTangentPlane-b27cd2f7","./GeometryAttribute-80036e07","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-b0b72d84","./PolygonPipeline-5582b1ec","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./arrayRemoveDuplicates-bb548aa3","./EllipsoidRhumbLine-afd6cd20","./GeometryAttributes-b253752a"],(function(e,t,r,a,o,i,n,s,l,u,p,c,m,y,g,d,h,f,b,v,_,P,x,w,C,T,I){"use strict";var A=new t.Cartographic,E=new t.Cartographic;function G(e,t,r,a){var o=a.cartesianToCartographic(e,A).height,i=a.cartesianToCartographic(t,E);i.height=o,a.cartographicToCartesian(i,t);var n=a.cartesianToCartographic(r,E);n.height=o-100,a.cartographicToCartesian(n,r)}var O=new o.BoundingRectangle,V=new t.Cartesian3,F=new t.Cartesian3,D=new t.Cartesian3,L=new t.Cartesian3,N=new t.Cartesian3,H=new t.Cartesian3,R=new t.Cartesian3,M=new t.Cartesian3,S=new t.Cartesian3,B=new t.Cartesian2,k=new t.Cartesian2,z=new t.Cartesian3,W=new i.Quaternion,Y=new t.Matrix3,U=new t.Matrix3;function j(r){var o=r.vertexFormat,n=r.geometry,l=r.shadowVolume,u=n.attributes.position.values,c=u.length,m=r.wall,y=r.top||m,g=r.bottom||m;if(o.st||o.normal||o.tangent||o.bitangent||l){var d=r.boundingRectangle,h=r.tangentPlane,f=r.ellipsoid,b=r.stRotation,v=r.perPositionHeight,_=B;_.x=d.x,_.y=d.y;var P,x=o.st?new Float32Array(c/3*2):void 0;o.normal&&(P=v&&y&&!m?n.attributes.normal.values:new Float32Array(c));var w=o.tangent?new Float32Array(c):void 0,C=o.bitangent?new Float32Array(c):void 0,T=l?new Float32Array(c):void 0,I=0,A=0,E=F,O=D,j=L,Q=!0,q=Y,K=U;if(0!==b){var Z=i.Quaternion.fromAxisAngle(h._plane.normal,b,W);q=t.Matrix3.fromQuaternion(Z,q),Z=i.Quaternion.fromAxisAngle(h._plane.normal,-b,W),K=t.Matrix3.fromQuaternion(Z,K)}else q=t.Matrix3.clone(t.Matrix3.IDENTITY,q),K=t.Matrix3.clone(t.Matrix3.IDENTITY,K);var J=0,X=0;y&&g&&(J=c/2,X=c/3,c/=2);for(var $=0;$<c;$+=3){var ee=t.Cartesian3.fromArray(u,$,z);if(o.st){var te=t.Matrix3.multiplyByVector(q,ee,V);te=f.scaleToGeodeticSurface(te,te);var re=h.projectPointOntoPlane(te,k);t.Cartesian2.subtract(re,_,re);var ae=s.CesiumMath.clamp(re.x/d.width,0,1),oe=s.CesiumMath.clamp(re.y/d.height,0,1);g&&(x[I+X]=ae,x[I+1+X]=oe),y&&(x[I]=ae,x[I+1]=oe),I+=2}if(o.normal||o.tangent||o.bitangent||l){var ie=A+1,ne=A+2;if(m){if($+3<c){var se=t.Cartesian3.fromArray(u,$+3,N);if(Q){var le=t.Cartesian3.fromArray(u,$+c,H);v&&G(ee,se,le,f),t.Cartesian3.subtract(se,ee,se),t.Cartesian3.subtract(le,ee,le),E=t.Cartesian3.normalize(t.Cartesian3.cross(le,se,E),E),Q=!1}t.Cartesian3.equalsEpsilon(se,ee,s.CesiumMath.EPSILON10)&&(Q=!0)}(o.tangent||o.bitangent)&&(j=f.geodeticSurfaceNormal(ee,j),o.tangent&&(O=t.Cartesian3.normalize(t.Cartesian3.cross(j,E,O),O)))}else E=f.geodeticSurfaceNormal(ee,E),(o.tangent||o.bitangent)&&(v&&(R=t.Cartesian3.fromArray(P,A,R),M=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,R,M),M=t.Cartesian3.normalize(t.Matrix3.multiplyByVector(K,M,M),M),o.bitangent&&(S=t.Cartesian3.normalize(t.Cartesian3.cross(R,M,S),S))),O=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,E,O),O=t.Cartesian3.normalize(t.Matrix3.multiplyByVector(K,O,O),O),o.bitangent&&(j=t.Cartesian3.normalize(t.Cartesian3.cross(E,O,j),j)));o.normal&&(r.wall?(P[A+J]=E.x,P[ie+J]=E.y,P[ne+J]=E.z):g&&(P[A+J]=-E.x,P[ie+J]=-E.y,P[ne+J]=-E.z),(y&&!v||m)&&(P[A]=E.x,P[ie]=E.y,P[ne]=E.z)),l&&(m&&(E=f.geodeticSurfaceNormal(ee,E)),T[A+J]=-E.x,T[ie+J]=-E.y,T[ne+J]=-E.z),o.tangent&&(r.wall?(w[A+J]=O.x,w[ie+J]=O.y,w[ne+J]=O.z):g&&(w[A+J]=-O.x,w[ie+J]=-O.y,w[ne+J]=-O.z),y&&(v?(w[A]=M.x,w[ie]=M.y,w[ne]=M.z):(w[A]=O.x,w[ie]=O.y,w[ne]=O.z))),o.bitangent&&(g&&(C[A+J]=j.x,C[ie+J]=j.y,C[ne+J]=j.z),y&&(v?(C[A]=S.x,C[ie]=S.y,C[ne]=S.z):(C[A]=j.x,C[ie]=j.y,C[ne]=j.z))),A+=3}}o.st&&(n.attributes.st=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:x})),o.normal&&(n.attributes.normal=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P})),o.tangent&&(n.attributes.tangent=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),o.bitangent&&(n.attributes.bitangent=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:C})),l&&(n.attributes.extrudeDirection=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:T}))}if(r.extrude&&e.defined(r.offsetAttribute)){var ue=u.length/3,pe=new Uint8Array(ue);if(r.offsetAttribute===a.GeometryOffsetAttribute.TOP)y&&g||m?pe=a.arrayFill(pe,1,0,ue/2):y&&(pe=a.arrayFill(pe,1));else{var ce=r.offsetAttribute===a.GeometryOffsetAttribute.NONE?0:1;pe=a.arrayFill(pe,ce)}n.attributes.applyOffset=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:pe})}return n}var Q=new t.Cartographic,q=new t.Cartographic,K={westOverIDL:0,eastOverIDL:0},Z=new l.EllipsoidGeodesic;function J(a,o,i,n,u){if(u=e.defaultValue(u,new t.Rectangle),!e.defined(a)||a.length<3)return u.west=0,u.north=0,u.south=0,u.east=0,u;if(i===r.ArcType.RHUMB)return t.Rectangle.fromCartesianArray(a,o,u);Z.ellipsoid.equals(o)||(Z=new l.EllipsoidGeodesic(void 0,void 0,o)),u.west=Number.POSITIVE_INFINITY,u.east=Number.NEGATIVE_INFINITY,u.south=Number.POSITIVE_INFINITY,u.north=Number.NEGATIVE_INFINITY,K.westOverIDL=Number.POSITIVE_INFINITY,K.eastOverIDL=Number.NEGATIVE_INFINITY;for(var p,c=1/s.CesiumMath.chordLength(n,o.maximumRadius),m=a.length,y=o.cartesianToCartographic(a[0],q),g=Q,d=1;d<m;d++)p=g,g=y,y=o.cartesianToCartographic(a[d],p),Z.setEndPoints(g,y),$(Z,c,u,K);return p=g,g=y,y=o.cartesianToCartographic(a[0],p),Z.setEndPoints(g,y),$(Z,c,u,K),u.east-u.west>K.eastOverIDL-K.westOverIDL&&(u.west=K.westOverIDL,u.east=K.eastOverIDL,u.east>s.CesiumMath.PI&&(u.east=u.east-s.CesiumMath.TWO_PI),u.west>s.CesiumMath.PI&&(u.west=u.west-s.CesiumMath.TWO_PI)),u}var X=new t.Cartographic;function $(e,t,r,a){for(var o=e.surfaceDistance,i=Math.ceil(o*t),n=i>0?o/(i-1):Number.POSITIVE_INFINITY,l=0,u=0;u<i;u++){var p=e.interpolateUsingSurfaceDistance(l,X);l+=n;var c=p.longitude,m=p.latitude;r.west=Math.min(r.west,c),r.east=Math.max(r.east,c),r.south=Math.min(r.south,m),r.north=Math.max(r.north,m);var y=c>=0?c:c+s.CesiumMath.TWO_PI;a.westOverIDL=Math.min(a.westOverIDL,y),a.eastOverIDL=Math.max(a.eastOverIDL,y)}}var ee=[];function te(e,t,r,a,o,i,n,s,l){var p,m={walls:[]};if(i||n){var h,f,b=g.PolygonGeometryLibrary.createGeometryFromPositions(e,t,r,o,s,l),v=b.attributes.position.values,_=b.indices;if(i&&n){var P=v.concat(v);h=P.length/3,(f=y.IndexDatatype.createTypedArray(h,2*_.length)).set(_);var x=_.length,w=h/2;for(p=0;p<x;p+=3){var C=f[p]+w,T=f[p+1]+w,I=f[p+2]+w;f[p+x]=I,f[p+1+x]=T,f[p+2+x]=C}if(b.attributes.position.values=P,o&&s.normal){var A=b.attributes.normal.values;b.attributes.normal.values=new Float32Array(P.length),b.attributes.normal.values.set(A)}b.indices=f}else if(n){for(h=v.length/3,f=y.IndexDatatype.createTypedArray(h,_.length),p=0;p<_.length;p+=3)f[p]=_[p+2],f[p+1]=_[p+1],f[p+2]=_[p];b.indices=f}m.topAndBottom=new c.GeometryInstance({geometry:b})}var E=a.outerRing,G=u.EllipsoidTangentPlane.fromPoints(E,e),O=G.projectPointsOntoPlane(E,ee),V=d.PolygonPipeline.computeWindingOrder2D(O);V===d.WindingOrder.CLOCKWISE&&(E=E.slice().reverse());var F=g.PolygonGeometryLibrary.computeWallGeometry(E,e,r,o,l);m.walls.push(new c.GeometryInstance({geometry:F}));var D=a.holes;for(p=0;p<D.length;p++){var L=D[p];O=(G=u.EllipsoidTangentPlane.fromPoints(L,e)).projectPointsOntoPlane(L,ee),(V=d.PolygonPipeline.computeWindingOrder2D(O))===d.WindingOrder.COUNTER_CLOCKWISE&&(L=L.slice().reverse()),F=g.PolygonGeometryLibrary.computeWallGeometry(L,e,r,o,l),m.walls.push(new c.GeometryInstance({geometry:F}))}return m}function re(a){var o=a.polygonHierarchy,i=e.defaultValue(a.vertexFormat,h.VertexFormat.DEFAULT),n=e.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84),l=e.defaultValue(a.granularity,s.CesiumMath.RADIANS_PER_DEGREE),u=e.defaultValue(a.stRotation,0),p=e.defaultValue(a.perPositionHeight,!1),c=p&&e.defined(a.extrudedHeight),m=e.defaultValue(a.height,0),y=e.defaultValue(a.extrudedHeight,m);if(!c){var d=Math.max(m,y);y=Math.min(m,y),m=d}this._vertexFormat=h.VertexFormat.clone(i),this._ellipsoid=t.Ellipsoid.clone(n),this._granularity=l,this._stRotation=u,this._height=m,this._extrudedHeight=y,this._closeTop=e.defaultValue(a.closeTop,!0),this._closeBottom=e.defaultValue(a.closeBottom,!0),this._polygonHierarchy=o,this._perPositionHeight=p,this._perPositionHeightExtrude=c,this._shadowVolume=e.defaultValue(a.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=a.offsetAttribute,this._arcType=e.defaultValue(a.arcType,r.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this.packedLength=g.PolygonGeometryLibrary.computeHierarchyPackedLength(o)+t.Ellipsoid.packedLength+h.VertexFormat.packedLength+12}re.fromPositions=function(t){return new re({polygonHierarchy:{positions:(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions},height:t.height,extrudedHeight:t.extrudedHeight,vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,closeTop:t.closeTop,closeBottom:t.closeBottom,offsetAttribute:t.offsetAttribute,arcType:t.arcType})},re.pack=function(r,a,o){return o=e.defaultValue(o,0),o=g.PolygonGeometryLibrary.packPolygonHierarchy(r._polygonHierarchy,a,o),t.Ellipsoid.pack(r._ellipsoid,a,o),o+=t.Ellipsoid.packedLength,h.VertexFormat.pack(r._vertexFormat,a,o),o+=h.VertexFormat.packedLength,a[o++]=r._height,a[o++]=r._extrudedHeight,a[o++]=r._granularity,a[o++]=r._stRotation,a[o++]=r._perPositionHeightExtrude?1:0,a[o++]=r._perPositionHeight?1:0,a[o++]=r._closeTop?1:0,a[o++]=r._closeBottom?1:0,a[o++]=r._shadowVolume?1:0,a[o++]=e.defaultValue(r._offsetAttribute,-1),a[o++]=r._arcType,a[o]=r.packedLength,a};var ae=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),oe=new h.VertexFormat,ie={polygonHierarchy:{}};return re.unpack=function(r,a,o){a=e.defaultValue(a,0);var i=g.PolygonGeometryLibrary.unpackPolygonHierarchy(r,a);a=i.startingIndex,delete i.startingIndex;var n=t.Ellipsoid.unpack(r,a,ae);a+=t.Ellipsoid.packedLength;var s=h.VertexFormat.unpack(r,a,oe);a+=h.VertexFormat.packedLength;var l=r[a++],u=r[a++],p=r[a++],c=r[a++],m=1===r[a++],y=1===r[a++],d=1===r[a++],f=1===r[a++],b=1===r[a++],v=r[a++],_=r[a++],P=r[a];return e.defined(o)||(o=new re(ie)),o._polygonHierarchy=i,o._ellipsoid=t.Ellipsoid.clone(n,o._ellipsoid),o._vertexFormat=h.VertexFormat.clone(s,o._vertexFormat),o._height=l,o._extrudedHeight=u,o._granularity=p,o._stRotation=c,o._perPositionHeightExtrude=m,o._perPositionHeight=y,o._closeTop=d,o._closeBottom=f,o._shadowVolume=b,o._offsetAttribute=-1===v?void 0:v,o._arcType=_,o.packedLength=P,o},re.computeRectangle=function(a,o){var i=e.defaultValue(a.granularity,s.CesiumMath.RADIANS_PER_DEGREE),n=e.defaultValue(a.arcType,r.ArcType.GEODESIC),l=a.polygonHierarchy,u=e.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84);return J(l.positions,u,n,i,o)},re.createGeometry=function(t){var r=t._vertexFormat,o=t._ellipsoid,n=t._granularity,l=t._stRotation,h=t._polygonHierarchy,f=t._perPositionHeight,b=t._closeTop,v=t._closeBottom,_=t._arcType,P=h.positions;if(!(P.length<3)){var x=u.EllipsoidTangentPlane.fromPoints(P,o),w=g.PolygonGeometryLibrary.polygonsFromHierarchy(h,x.projectPointsOntoPlane.bind(x),!f,o),C=w.hierarchy,T=w.polygons;if(0!==C.length){P=C[0].outerRing;var I,A=g.PolygonGeometryLibrary.computeBoundingRectangle(x.plane.normal,x.projectPointOntoPlane.bind(x),P,l,O),E=[],G=t._height,V=t._extrudedHeight,F={perPositionHeight:f,vertexFormat:r,geometry:void 0,tangentPlane:x,boundingRectangle:A,ellipsoid:o,stRotation:l,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:_};if(t._perPositionHeightExtrude||!s.CesiumMath.equalsEpsilon(G,V,0,s.CesiumMath.EPSILON2))for(F.extrude=!0,F.top=b,F.bottom=v,F.shadowVolume=t._shadowVolume,F.offsetAttribute=t._offsetAttribute,I=0;I<T.length;I++){var D,L=te(o,T[I],n,C[I],f,b,v,r,_);b&&v?(D=L.topAndBottom,F.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(D.geometry,G,V,o,f)):b?((D=L.topAndBottom).geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(D.geometry.attributes.position.values,G,o,!f),F.geometry=D.geometry):v&&((D=L.topAndBottom).geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(D.geometry.attributes.position.values,V,o,!0),F.geometry=D.geometry),(b||v)&&(F.wall=!1,D.geometry=j(F),E.push(D));var N=L.walls;F.wall=!0;for(var H=0;H<N.length;H++){var R=N[H];F.geometry=g.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(R.geometry,G,V,o,f),R.geometry=j(F),E.push(R)}}else for(I=0;I<T.length;I++){var M=new c.GeometryInstance({geometry:g.PolygonGeometryLibrary.createGeometryFromPositions(o,T[I],n,f,r,_)});if(M.geometry.attributes.position.values=d.PolygonPipeline.scaleToGeodeticHeight(M.geometry.attributes.position.values,G,o,!f),F.geometry=M.geometry,M.geometry=j(F),e.defined(t._offsetAttribute)){var S=M.geometry.attributes.position.values.length,B=new Uint8Array(S/3),k=t._offsetAttribute===a.GeometryOffsetAttribute.NONE?0:1;a.arrayFill(B,k),M.geometry.attributes.applyOffset=new p.GeometryAttribute({componentDatatype:s.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:B})}E.push(M)}var z=m.GeometryPipeline.combineInstances(E)[0];z.attributes.position.values=new Float64Array(z.attributes.position.values),z.indices=y.IndexDatatype.createTypedArray(z.attributes.position.values.length/3,z.indices);var W=z.attributes,Y=i.BoundingSphere.fromVertices(W.position.values);return r.position||delete W.position,new p.Geometry({attributes:W,indices:z.indices,primitiveType:z.primitiveType,boundingSphere:Y,offsetAttribute:t._offsetAttribute})}}},re.createShadowVolume=function(e,t,r){var a=e._granularity,o=e._ellipsoid,i=t(a,o),n=r(a,o);return new re({polygonHierarchy:e._polygonHierarchy,ellipsoid:o,stRotation:e._stRotation,granularity:a,perPositionHeight:!1,extrudedHeight:i,height:n,vertexFormat:h.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:e._arcType})},Object.defineProperties(re.prototype,{rectangle:{get:function(){if(!e.defined(this._rectangle)){var t=this._polygonHierarchy.positions;this._rectangle=J(t,this._ellipsoid,this._arcType,this._granularity)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return e.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0===t)return[0,0,0,1,1,0];var r=e._ellipsoid,a=e._polygonHierarchy.positions,o=e.rectangle;return p.Geometry._textureCoordinateRotationPoints(a,t,r,o)}(this)),this._textureCoordinateRotationPoints}}}),function(r,a){return e.defined(a)&&(r=re.unpack(r,a)),r._ellipsoid=t.Ellipsoid.clone(r._ellipsoid),re.createGeometry(r)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./ArcType-1da7fdca","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./EllipsoidTangentPlane-b27cd2f7","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-f129e954","./PolygonPipeline-5582b1ec","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./arrayRemoveDuplicates-bb548aa3","./EllipsoidRhumbLine-afd6cd20"],(function(e,t,i,r,o,n,a,l,s,y,u,p,d,f,g,c,m,h,b,P,v,E,A,_){"use strict";var G=[],L=[];function T(e,t,r,o,n){var p,c,m=l.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,G);g.PolygonPipeline.computeWindingOrder2D(m)===g.WindingOrder.CLOCKWISE&&(m.reverse(),t=t.slice().reverse());var h=t.length,b=0;if(o)for(p=new Float64Array(2*h*3),c=0;c<h;c++){var P=t[c],v=t[(c+1)%h];p[b++]=P.x,p[b++]=P.y,p[b++]=P.z,p[b++]=v.x,p[b++]=v.y,p[b++]=v.z}else{var E=0;if(n===i.ArcType.GEODESIC)for(c=0;c<h;c++)E+=f.PolygonGeometryLibrary.subdivideLineCount(t[c],t[(c+1)%h],r);else if(n===i.ArcType.RHUMB)for(c=0;c<h;c++)E+=f.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[c],t[(c+1)%h],r);for(p=new Float64Array(3*E),c=0;c<h;c++){var A;n===i.ArcType.GEODESIC?A=f.PolygonGeometryLibrary.subdivideLine(t[c],t[(c+1)%h],r,L):n===i.ArcType.RHUMB&&(A=f.PolygonGeometryLibrary.subdivideRhumbLine(e,t[c],t[(c+1)%h],r,L));for(var _=A.length,T=0;T<_;++T)p[b++]=A[T]}}var H=2*(h=p.length/3),O=d.IndexDatatype.createTypedArray(h,H);for(b=0,c=0;c<h-1;c++)O[b++]=c,O[b++]=c+1;return O[b++]=h-1,O[b++]=0,new u.GeometryInstance({geometry:new s.Geometry({attributes:new y.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})}),indices:O,primitiveType:s.PrimitiveType.LINES})})}function H(e,t,r,o,n){var p,c,m=l.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,G);g.PolygonPipeline.computeWindingOrder2D(m)===g.WindingOrder.CLOCKWISE&&(m.reverse(),t=t.slice().reverse());var h=t.length,b=new Array(h),P=0;if(o)for(p=new Float64Array(2*h*3*2),c=0;c<h;++c){b[c]=P/3;var v=t[c],E=t[(c+1)%h];p[P++]=v.x,p[P++]=v.y,p[P++]=v.z,p[P++]=E.x,p[P++]=E.y,p[P++]=E.z}else{var A=0;if(n===i.ArcType.GEODESIC)for(c=0;c<h;c++)A+=f.PolygonGeometryLibrary.subdivideLineCount(t[c],t[(c+1)%h],r);else if(n===i.ArcType.RHUMB)for(c=0;c<h;c++)A+=f.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[c],t[(c+1)%h],r);for(p=new Float64Array(3*A*2),c=0;c<h;++c){var _;b[c]=P/3,n===i.ArcType.GEODESIC?_=f.PolygonGeometryLibrary.subdivideLine(t[c],t[(c+1)%h],r,L):n===i.ArcType.RHUMB&&(_=f.PolygonGeometryLibrary.subdivideRhumbLine(e,t[c],t[(c+1)%h],r,L));for(var T=_.length,H=0;H<T;++H)p[P++]=_[H]}}h=p.length/6;var O=b.length,x=2*(2*h+O),C=d.IndexDatatype.createTypedArray(h+O,x);for(P=0,c=0;c<h;++c)C[P++]=c,C[P++]=(c+1)%h,C[P++]=c+h,C[P++]=(c+1)%h+h;for(c=0;c<O;c++){var D=b[c];C[P++]=D,C[P++]=D+h}return new u.GeometryInstance({geometry:new s.Geometry({attributes:new y.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})}),indices:C,primitiveType:s.PrimitiveType.LINES})})}function O(r){var o=r.polygonHierarchy,n=e.defaultValue(r.ellipsoid,t.Ellipsoid.WGS84),l=e.defaultValue(r.granularity,a.CesiumMath.RADIANS_PER_DEGREE),s=e.defaultValue(r.perPositionHeight,!1),y=s&&e.defined(r.extrudedHeight),u=e.defaultValue(r.arcType,i.ArcType.GEODESIC),p=e.defaultValue(r.height,0),d=e.defaultValue(r.extrudedHeight,p);if(!y){var g=Math.max(p,d);d=Math.min(p,d),p=g}this._ellipsoid=t.Ellipsoid.clone(n),this._granularity=l,this._height=p,this._extrudedHeight=d,this._arcType=u,this._polygonHierarchy=o,this._perPositionHeight=s,this._perPositionHeightExtrude=y,this._offsetAttribute=r.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=f.PolygonGeometryLibrary.computeHierarchyPackedLength(o)+t.Ellipsoid.packedLength+8}O.pack=function(i,r,o){return o=e.defaultValue(o,0),o=f.PolygonGeometryLibrary.packPolygonHierarchy(i._polygonHierarchy,r,o),t.Ellipsoid.pack(i._ellipsoid,r,o),o+=t.Ellipsoid.packedLength,r[o++]=i._height,r[o++]=i._extrudedHeight,r[o++]=i._granularity,r[o++]=i._perPositionHeightExtrude?1:0,r[o++]=i._perPositionHeight?1:0,r[o++]=i._arcType,r[o++]=e.defaultValue(i._offsetAttribute,-1),r[o]=i.packedLength,r};var x=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),C={polygonHierarchy:{}};return O.unpack=function(i,r,o){r=e.defaultValue(r,0);var n=f.PolygonGeometryLibrary.unpackPolygonHierarchy(i,r);r=n.startingIndex,delete n.startingIndex;var a=t.Ellipsoid.unpack(i,r,x);r+=t.Ellipsoid.packedLength;var l=i[r++],s=i[r++],y=i[r++],u=1===i[r++],p=1===i[r++],d=i[r++],g=i[r++],c=i[r];return e.defined(o)||(o=new O(C)),o._polygonHierarchy=n,o._ellipsoid=t.Ellipsoid.clone(a,o._ellipsoid),o._height=l,o._extrudedHeight=s,o._granularity=y,o._perPositionHeight=p,o._perPositionHeightExtrude=u,o._arcType=d,o._offsetAttribute=-1===g?void 0:g,o.packedLength=c,o},O.fromPositions=function(t){return new O({polygonHierarchy:{positions:(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions},height:t.height,extrudedHeight:t.extrudedHeight,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,arcType:t.arcType,offsetAttribute:t.offsetAttribute})},O.createGeometry=function(t){var i=t._ellipsoid,n=t._granularity,l=t._polygonHierarchy,y=t._perPositionHeight,u=t._arcType,d=f.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(l,!y,i);if(0!==d.length){var c,m,h,b=[],P=a.CesiumMath.chordLength(n,i.maximumRadius),v=t._height,E=t._extrudedHeight;if(t._perPositionHeightExtrude||!a.CesiumMath.equalsEpsilon(v,E,0,a.CesiumMath.EPSILON2))for(h=0;h<d.length;h++){if((c=H(i,d[h],P,y,u)).geometry=f.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(c.geometry,v,E,i,y),e.defined(t._offsetAttribute)){var A=c.geometry.attributes.position.values.length/3,_=new Uint8Array(A);t._offsetAttribute===r.GeometryOffsetAttribute.TOP?_=r.arrayFill(_,1,0,A/2):(m=t._offsetAttribute===r.GeometryOffsetAttribute.NONE?0:1,_=r.arrayFill(_,m)),c.geometry.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})}b.push(c)}else for(h=0;h<d.length;h++){if((c=T(i,d[h],P,y,u)).geometry.attributes.position.values=g.PolygonPipeline.scaleToGeodeticHeight(c.geometry.attributes.position.values,v,i,!y),e.defined(t._offsetAttribute)){var G=c.geometry.attributes.position.values.length,L=new Uint8Array(G/3);m=t._offsetAttribute===r.GeometryOffsetAttribute.NONE?0:1,r.arrayFill(L,m),c.geometry.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:L})}b.push(c)}var O=p.GeometryPipeline.combineInstances(b)[0],x=o.BoundingSphere.fromVertices(O.attributes.position.values);return new s.Geometry({attributes:O.attributes,indices:O.indices,primitiveType:O.primitiveType,boundingSphere:x,offsetAttribute:t._offsetAttribute})}},function(i,r){return e.defined(r)&&(i=O.unpack(i,r)),i._ellipsoid=t.Ellipsoid.clone(i._ellipsoid),O.createGeometry(i)}})); | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./ArcType-1da7fdca","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./EllipsoidTangentPlane-b27cd2f7","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./IndexDatatype-b10faa0b","./PolygonGeometryLibrary-b0b72d84","./PolygonPipeline-5582b1ec","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./arrayRemoveDuplicates-bb548aa3","./EllipsoidRhumbLine-afd6cd20"],(function(e,t,i,r,o,n,a,l,s,y,u,p,d,f,c,g,m,h,b,P,v,E,A,_){"use strict";var G=[],L=[];function T(e,t,r,o,n){var p,g,m=l.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,G);c.PolygonPipeline.computeWindingOrder2D(m)===c.WindingOrder.CLOCKWISE&&(m.reverse(),t=t.slice().reverse());var h=t.length,b=0;if(o)for(p=new Float64Array(2*h*3),g=0;g<h;g++){var P=t[g],v=t[(g+1)%h];p[b++]=P.x,p[b++]=P.y,p[b++]=P.z,p[b++]=v.x,p[b++]=v.y,p[b++]=v.z}else{var E=0;if(n===i.ArcType.GEODESIC)for(g=0;g<h;g++)E+=f.PolygonGeometryLibrary.subdivideLineCount(t[g],t[(g+1)%h],r);else if(n===i.ArcType.RHUMB)for(g=0;g<h;g++)E+=f.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[g],t[(g+1)%h],r);for(p=new Float64Array(3*E),g=0;g<h;g++){var A;n===i.ArcType.GEODESIC?A=f.PolygonGeometryLibrary.subdivideLine(t[g],t[(g+1)%h],r,L):n===i.ArcType.RHUMB&&(A=f.PolygonGeometryLibrary.subdivideRhumbLine(e,t[g],t[(g+1)%h],r,L));for(var _=A.length,T=0;T<_;++T)p[b++]=A[T]}}var H=2*(h=p.length/3),O=d.IndexDatatype.createTypedArray(h,H);for(b=0,g=0;g<h-1;g++)O[b++]=g,O[b++]=g+1;return O[b++]=h-1,O[b++]=0,new u.GeometryInstance({geometry:new s.Geometry({attributes:new y.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})}),indices:O,primitiveType:s.PrimitiveType.LINES})})}function H(e,t,r,o,n){var p,g,m=l.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,G);c.PolygonPipeline.computeWindingOrder2D(m)===c.WindingOrder.CLOCKWISE&&(m.reverse(),t=t.slice().reverse());var h=t.length,b=new Array(h),P=0;if(o)for(p=new Float64Array(2*h*3*2),g=0;g<h;++g){b[g]=P/3;var v=t[g],E=t[(g+1)%h];p[P++]=v.x,p[P++]=v.y,p[P++]=v.z,p[P++]=E.x,p[P++]=E.y,p[P++]=E.z}else{var A=0;if(n===i.ArcType.GEODESIC)for(g=0;g<h;g++)A+=f.PolygonGeometryLibrary.subdivideLineCount(t[g],t[(g+1)%h],r);else if(n===i.ArcType.RHUMB)for(g=0;g<h;g++)A+=f.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[g],t[(g+1)%h],r);for(p=new Float64Array(3*A*2),g=0;g<h;++g){var _;b[g]=P/3,n===i.ArcType.GEODESIC?_=f.PolygonGeometryLibrary.subdivideLine(t[g],t[(g+1)%h],r,L):n===i.ArcType.RHUMB&&(_=f.PolygonGeometryLibrary.subdivideRhumbLine(e,t[g],t[(g+1)%h],r,L));for(var T=_.length,H=0;H<T;++H)p[P++]=_[H]}}h=p.length/6;var O=b.length,x=2*(2*h+O),C=d.IndexDatatype.createTypedArray(h+O,x);for(P=0,g=0;g<h;++g)C[P++]=g,C[P++]=(g+1)%h,C[P++]=g+h,C[P++]=(g+1)%h+h;for(g=0;g<O;g++){var D=b[g];C[P++]=D,C[P++]=D+h}return new u.GeometryInstance({geometry:new s.Geometry({attributes:new y.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})}),indices:C,primitiveType:s.PrimitiveType.LINES})})}function O(r){var o=r.polygonHierarchy,n=e.defaultValue(r.ellipsoid,t.Ellipsoid.WGS84),l=e.defaultValue(r.granularity,a.CesiumMath.RADIANS_PER_DEGREE),s=e.defaultValue(r.perPositionHeight,!1),y=s&&e.defined(r.extrudedHeight),u=e.defaultValue(r.arcType,i.ArcType.GEODESIC),p=e.defaultValue(r.height,0),d=e.defaultValue(r.extrudedHeight,p);if(!y){var c=Math.max(p,d);d=Math.min(p,d),p=c}this._ellipsoid=t.Ellipsoid.clone(n),this._granularity=l,this._height=p,this._extrudedHeight=d,this._arcType=u,this._polygonHierarchy=o,this._perPositionHeight=s,this._perPositionHeightExtrude=y,this._offsetAttribute=r.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=f.PolygonGeometryLibrary.computeHierarchyPackedLength(o)+t.Ellipsoid.packedLength+8}O.pack=function(i,r,o){return o=e.defaultValue(o,0),o=f.PolygonGeometryLibrary.packPolygonHierarchy(i._polygonHierarchy,r,o),t.Ellipsoid.pack(i._ellipsoid,r,o),o+=t.Ellipsoid.packedLength,r[o++]=i._height,r[o++]=i._extrudedHeight,r[o++]=i._granularity,r[o++]=i._perPositionHeightExtrude?1:0,r[o++]=i._perPositionHeight?1:0,r[o++]=i._arcType,r[o++]=e.defaultValue(i._offsetAttribute,-1),r[o]=i.packedLength,r};var x=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),C={polygonHierarchy:{}};return O.unpack=function(i,r,o){r=e.defaultValue(r,0);var n=f.PolygonGeometryLibrary.unpackPolygonHierarchy(i,r);r=n.startingIndex,delete n.startingIndex;var a=t.Ellipsoid.unpack(i,r,x);r+=t.Ellipsoid.packedLength;var l=i[r++],s=i[r++],y=i[r++],u=1===i[r++],p=1===i[r++],d=i[r++],c=i[r++],g=i[r];return e.defined(o)||(o=new O(C)),o._polygonHierarchy=n,o._ellipsoid=t.Ellipsoid.clone(a,o._ellipsoid),o._height=l,o._extrudedHeight=s,o._granularity=y,o._perPositionHeight=p,o._perPositionHeightExtrude=u,o._arcType=d,o._offsetAttribute=-1===c?void 0:c,o.packedLength=g,o},O.fromPositions=function(t){return new O({polygonHierarchy:{positions:(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions},height:t.height,extrudedHeight:t.extrudedHeight,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,arcType:t.arcType,offsetAttribute:t.offsetAttribute})},O.createGeometry=function(t){var i=t._ellipsoid,n=t._granularity,l=t._polygonHierarchy,y=t._perPositionHeight,u=t._arcType,d=f.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(l,!y,i);if(0!==d.length){var g,m,h,b=[],P=a.CesiumMath.chordLength(n,i.maximumRadius),v=t._height,E=t._extrudedHeight;if(t._perPositionHeightExtrude||!a.CesiumMath.equalsEpsilon(v,E,0,a.CesiumMath.EPSILON2))for(h=0;h<d.length;h++){if((g=H(i,d[h],P,y,u)).geometry=f.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(g.geometry,v,E,i,y),e.defined(t._offsetAttribute)){var A=g.geometry.attributes.position.values.length/3,_=new Uint8Array(A);t._offsetAttribute===r.GeometryOffsetAttribute.TOP?_=r.arrayFill(_,1,0,A/2):(m=t._offsetAttribute===r.GeometryOffsetAttribute.NONE?0:1,_=r.arrayFill(_,m)),g.geometry.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})}b.push(g)}else for(h=0;h<d.length;h++){if((g=T(i,d[h],P,y,u)).geometry.attributes.position.values=c.PolygonPipeline.scaleToGeodeticHeight(g.geometry.attributes.position.values,v,i,!y),e.defined(t._offsetAttribute)){var G=g.geometry.attributes.position.values.length,L=new Uint8Array(G/3);m=t._offsetAttribute===r.GeometryOffsetAttribute.NONE?0:1,r.arrayFill(L,m),g.geometry.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:L})}b.push(g)}var O=p.GeometryPipeline.combineInstances(b)[0],x=o.BoundingSphere.fromVertices(O.attributes.position.values);return new s.Geometry({attributes:O.attributes,indices:O.indices,primitiveType:O.primitiveType,boundingSphere:x,offsetAttribute:t._offsetAttribute})}},function(i,r){return e.defined(r)&&(i=O.unpack(i,r)),i._ellipsoid=t.Ellipsoid.clone(i._ellipsoid),O.createGeometry(i)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./arrayRemoveDuplicates-bb548aa3","./BoundingRectangle-18e42324","./Transforms-7cd3197b","./ComponentDatatype-17b06483","./PolylineVolumeGeometryLibrary-4af6d4dc","./RuntimeError-ffe03243","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryPipeline-5b3fba53","./IndexDatatype-b10faa0b","./PolygonPipeline-5582b1ec","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./EllipsoidTangentPlane-b27cd2f7","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./PolylinePipeline-a3ba6f24","./EllipsoidGeodesic-43ba18de","./EllipsoidRhumbLine-afd6cd20","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce"],(function(e,t,n,a,i,r,o,l,s,p,d,c,u,m,y,g,f,h,b,v,P,E,_,k,L){"use strict";function V(n){var a=(n=e.defaultValue(n,e.defaultValue.EMPTY_OBJECT)).polylinePositions,i=n.shapePositions;this._positions=a,this._shape=i,this._ellipsoid=t.Ellipsoid.clone(e.defaultValue(n.ellipsoid,t.Ellipsoid.WGS84)),this._cornerType=e.defaultValue(n.cornerType,o.CornerType.ROUNDED),this._vertexFormat=m.VertexFormat.clone(e.defaultValue(n.vertexFormat,m.VertexFormat.DEFAULT)),this._granularity=e.defaultValue(n.granularity,r.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";var l=1+a.length*t.Cartesian3.packedLength;l+=1+i.length*t.Cartesian2.packedLength,this.packedLength=l+t.Ellipsoid.packedLength+m.VertexFormat.packedLength+2}V.pack=function(n,a,i){var r;i=e.defaultValue(i,0);var o=n._positions,l=o.length;for(a[i++]=l,r=0;r<l;++r,i+=t.Cartesian3.packedLength)t.Cartesian3.pack(o[r],a,i);var s=n._shape;for(l=s.length,a[i++]=l,r=0;r<l;++r,i+=t.Cartesian2.packedLength)t.Cartesian2.pack(s[r],a,i);return t.Ellipsoid.pack(n._ellipsoid,a,i),i+=t.Ellipsoid.packedLength,m.VertexFormat.pack(n._vertexFormat,a,i),i+=m.VertexFormat.packedLength,a[i++]=n._cornerType,a[i]=n._granularity,a};var x=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),C=new m.VertexFormat,F={polylinePositions:void 0,shapePositions:void 0,ellipsoid:x,vertexFormat:C,cornerType:void 0,granularity:void 0};V.unpack=function(n,a,i){var r;a=e.defaultValue(a,0);var o=n[a++],l=new Array(o);for(r=0;r<o;++r,a+=t.Cartesian3.packedLength)l[r]=t.Cartesian3.unpack(n,a);o=n[a++];var s=new Array(o);for(r=0;r<o;++r,a+=t.Cartesian2.packedLength)s[r]=t.Cartesian2.unpack(n,a);var p=t.Ellipsoid.unpack(n,a,x);a+=t.Ellipsoid.packedLength;var d=m.VertexFormat.unpack(n,a,C);a+=m.VertexFormat.packedLength;var c=n[a++],u=n[a];return e.defined(i)?(i._positions=l,i._shape=s,i._ellipsoid=t.Ellipsoid.clone(p,i._ellipsoid),i._vertexFormat=m.VertexFormat.clone(d,i._vertexFormat),i._cornerType=c,i._granularity=u,i):(F.polylinePositions=l,F.shapePositions=s,F.cornerType=c,F.granularity=u,new V(F))};var A=new a.BoundingRectangle;return V.createGeometry=function(e){var l=e._positions,m=n.arrayRemoveDuplicates(l,t.Cartesian3.equalsEpsilon),y=e._shape;if(y=o.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(y),!(m.length<2||y.length<3)){u.PolygonPipeline.computeWindingOrder2D(y)===u.WindingOrder.CLOCKWISE&&y.reverse();var g=a.BoundingRectangle.fromPoints(y,A);return function(e,t,n,a){var l=new p.GeometryAttributes;a.position&&(l.position=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e}));var m,y,g,f,h,b,v=t.length,P=e.length/3,E=(P-2*v)/(2*v),_=u.PolygonPipeline.triangulate(t),k=(E-1)*v*6+2*_.length,L=c.IndexDatatype.createTypedArray(P,k),V=2*v,x=0;for(m=0;m<E-1;m++){for(y=0;y<v-1;y++)b=(g=2*y+m*v*2)+V,h=(f=g+1)+V,L[x++]=f,L[x++]=g,L[x++]=h,L[x++]=h,L[x++]=g,L[x++]=b;h=(f=1+(g=2*v-2+m*v*2))+V,b=g+V,L[x++]=f,L[x++]=g,L[x++]=h,L[x++]=h,L[x++]=g,L[x++]=b}if(a.st||a.tangent||a.bitangent){var C,F,A=new Float32Array(2*P),T=1/(E-1),G=1/n.height,D=n.height/2,w=0;for(m=0;m<E;m++){for(C=m*T,F=G*(t[0].y+D),A[w++]=C,A[w++]=F,y=1;y<v;y++)F=G*(t[y].y+D),A[w++]=C,A[w++]=F,A[w++]=C,A[w++]=F;F=G*(t[0].y+D),A[w++]=C,A[w++]=F}for(y=0;y<v;y++)C=0,F=G*(t[y].y+D),A[w++]=C,A[w++]=F;for(y=0;y<v;y++)C=(E-1)*T,F=G*(t[y].y+D),A[w++]=C,A[w++]=F;l.st=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(A)})}var R=P-2*v;for(m=0;m<_.length;m+=3){var B=_[m]+R,S=_[m+1]+R,I=_[m+2]+R;L[x++]=B,L[x++]=S,L[x++]=I,L[x++]=I+v,L[x++]=S+v,L[x++]=B+v}var O=new s.Geometry({attributes:l,indices:L,boundingSphere:i.BoundingSphere.fromVertices(e),primitiveType:s.PrimitiveType.TRIANGLES});if(a.normal&&(O=d.GeometryPipeline.computeNormal(O)),a.tangent||a.bitangent){try{O=d.GeometryPipeline.computeTangentAndBitangent(O)}catch(e){o.oneTimeWarning("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}a.tangent||(O.attributes.tangent=void 0),a.bitangent||(O.attributes.bitangent=void 0),a.st||(O.attributes.st=void 0)}return O}(o.PolylineVolumeGeometryLibrary.computePositions(m,y,g,e,!0),y,g,e._vertexFormat)}},function(n,a){return e.defined(a)&&(n=V.unpack(n,a)),n._ellipsoid=t.Ellipsoid.clone(n._ellipsoid),V.createGeometry(n)}})); | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./arrayRemoveDuplicates-bb548aa3","./BoundingRectangle-18e42324","./Transforms-7cd3197b","./ComponentDatatype-17b06483","./PolylineVolumeGeometryLibrary-4af6d4dc","./RuntimeError-ffe03243","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryPipeline-cfbe5c41","./IndexDatatype-b10faa0b","./PolygonPipeline-5582b1ec","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./EllipsoidTangentPlane-b27cd2f7","./AxisAlignedBoundingBox-1feb0c48","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./PolylinePipeline-a3ba6f24","./EllipsoidGeodesic-43ba18de","./EllipsoidRhumbLine-afd6cd20","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce"],(function(e,t,n,a,i,r,o,l,s,p,d,c,u,m,y,g,f,h,v,b,P,E,_,k,L){"use strict";function V(n){var a=(n=e.defaultValue(n,e.defaultValue.EMPTY_OBJECT)).polylinePositions,i=n.shapePositions;this._positions=a,this._shape=i,this._ellipsoid=t.Ellipsoid.clone(e.defaultValue(n.ellipsoid,t.Ellipsoid.WGS84)),this._cornerType=e.defaultValue(n.cornerType,o.CornerType.ROUNDED),this._vertexFormat=m.VertexFormat.clone(e.defaultValue(n.vertexFormat,m.VertexFormat.DEFAULT)),this._granularity=e.defaultValue(n.granularity,r.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";var l=1+a.length*t.Cartesian3.packedLength;l+=1+i.length*t.Cartesian2.packedLength,this.packedLength=l+t.Ellipsoid.packedLength+m.VertexFormat.packedLength+2}V.pack=function(n,a,i){var r;i=e.defaultValue(i,0);var o=n._positions,l=o.length;for(a[i++]=l,r=0;r<l;++r,i+=t.Cartesian3.packedLength)t.Cartesian3.pack(o[r],a,i);var s=n._shape;for(l=s.length,a[i++]=l,r=0;r<l;++r,i+=t.Cartesian2.packedLength)t.Cartesian2.pack(s[r],a,i);return t.Ellipsoid.pack(n._ellipsoid,a,i),i+=t.Ellipsoid.packedLength,m.VertexFormat.pack(n._vertexFormat,a,i),i+=m.VertexFormat.packedLength,a[i++]=n._cornerType,a[i]=n._granularity,a};var x=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),C=new m.VertexFormat,F={polylinePositions:void 0,shapePositions:void 0,ellipsoid:x,vertexFormat:C,cornerType:void 0,granularity:void 0};V.unpack=function(n,a,i){var r;a=e.defaultValue(a,0);var o=n[a++],l=new Array(o);for(r=0;r<o;++r,a+=t.Cartesian3.packedLength)l[r]=t.Cartesian3.unpack(n,a);o=n[a++];var s=new Array(o);for(r=0;r<o;++r,a+=t.Cartesian2.packedLength)s[r]=t.Cartesian2.unpack(n,a);var p=t.Ellipsoid.unpack(n,a,x);a+=t.Ellipsoid.packedLength;var d=m.VertexFormat.unpack(n,a,C);a+=m.VertexFormat.packedLength;var c=n[a++],u=n[a];return e.defined(i)?(i._positions=l,i._shape=s,i._ellipsoid=t.Ellipsoid.clone(p,i._ellipsoid),i._vertexFormat=m.VertexFormat.clone(d,i._vertexFormat),i._cornerType=c,i._granularity=u,i):(F.polylinePositions=l,F.shapePositions=s,F.cornerType=c,F.granularity=u,new V(F))};var A=new a.BoundingRectangle;return V.createGeometry=function(e){var l=e._positions,m=n.arrayRemoveDuplicates(l,t.Cartesian3.equalsEpsilon),y=e._shape;if(y=o.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(y),!(m.length<2||y.length<3)){u.PolygonPipeline.computeWindingOrder2D(y)===u.WindingOrder.CLOCKWISE&&y.reverse();var g=a.BoundingRectangle.fromPoints(y,A);return function(e,t,n,a){var l=new p.GeometryAttributes;a.position&&(l.position=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e}));var m,y,g,f,h,v,b=t.length,P=e.length/3,E=(P-2*b)/(2*b),_=u.PolygonPipeline.triangulate(t),k=(E-1)*b*6+2*_.length,L=c.IndexDatatype.createTypedArray(P,k),V=2*b,x=0;for(m=0;m<E-1;m++){for(y=0;y<b-1;y++)v=(g=2*y+m*b*2)+V,h=(f=g+1)+V,L[x++]=f,L[x++]=g,L[x++]=h,L[x++]=h,L[x++]=g,L[x++]=v;h=(f=1+(g=2*b-2+m*b*2))+V,v=g+V,L[x++]=f,L[x++]=g,L[x++]=h,L[x++]=h,L[x++]=g,L[x++]=v}if(a.st||a.tangent||a.bitangent){var C,F,A=new Float32Array(2*P),T=1/(E-1),G=1/n.height,D=n.height/2,w=0;for(m=0;m<E;m++){for(C=m*T,F=G*(t[0].y+D),A[w++]=C,A[w++]=F,y=1;y<b;y++)F=G*(t[y].y+D),A[w++]=C,A[w++]=F,A[w++]=C,A[w++]=F;F=G*(t[0].y+D),A[w++]=C,A[w++]=F}for(y=0;y<b;y++)C=0,F=G*(t[y].y+D),A[w++]=C,A[w++]=F;for(y=0;y<b;y++)C=(E-1)*T,F=G*(t[y].y+D),A[w++]=C,A[w++]=F;l.st=new s.GeometryAttribute({componentDatatype:r.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(A)})}var R=P-2*b;for(m=0;m<_.length;m+=3){var B=_[m]+R,S=_[m+1]+R,I=_[m+2]+R;L[x++]=B,L[x++]=S,L[x++]=I,L[x++]=I+b,L[x++]=S+b,L[x++]=B+b}var O=new s.Geometry({attributes:l,indices:L,boundingSphere:i.BoundingSphere.fromVertices(e),primitiveType:s.PrimitiveType.TRIANGLES});if(a.normal&&(O=d.GeometryPipeline.computeNormal(O)),a.tangent||a.bitangent){try{O=d.GeometryPipeline.computeTangentAndBitangent(O)}catch(e){o.oneTimeWarning("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}a.tangent||(O.attributes.tangent=void 0),a.bitangent||(O.attributes.bitangent=void 0),a.st||(O.attributes.st=void 0)}return O}(o.PolylineVolumeGeometryLibrary.computePositions(m,y,g,e,!0),y,g,e._vertexFormat)}},function(n,a){return e.defined(a)&&(n=V.unpack(n,a)),n._ellipsoid=t.Ellipsoid.clone(n._ellipsoid),V.createGeometry(n)}})); |
@@ -1,1 +0,1 @@ | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-5b3fba53","./IndexDatatype-b10faa0b","./PolygonPipeline-5582b1ec","./RectangleGeometryLibrary-fbe816b1","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./EllipsoidRhumbLine-afd6cd20"],(function(t,e,a,r,n,i,o,s,l,u,c,m,p,d,g,y,f,h,v,b,_){"use strict";var A=new e.Cartesian3,x=new e.Cartesian3,w=new e.Cartesian3,C=new e.Cartesian3,R=new e.Rectangle,E=new e.Cartesian2,F=new r.BoundingSphere,G=new r.BoundingSphere;function P(t,e){var a=new o.Geometry({attributes:new s.GeometryAttributes,primitiveType:o.PrimitiveType.TRIANGLES});return a.attributes.position=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(a.attributes.normal=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(a.attributes.tangent=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(a.attributes.bitangent=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.bitangents})),a}var V=new e.Cartesian3,L=new e.Cartesian3;function D(t,a){var r=t._vertexFormat,n=t._ellipsoid,s=a.height,l=a.width,u=a.northCap,m=a.southCap,d=0,g=s,y=s,f=0;u&&(d=1,y-=1,f+=1),m&&(g-=1,y-=1,f+=1),f+=l*y;for(var h=r.position?new Float64Array(3*f):void 0,v=r.st?new Float32Array(2*f):void 0,b=0,_=0,R=A,F=E,G=Number.MAX_VALUE,V=Number.MAX_VALUE,L=-Number.MAX_VALUE,D=-Number.MAX_VALUE,M=d;M<g;++M)for(var T=0;T<l;++T)p.RectangleGeometryLibrary.computePosition(a,n,r.st,M,T,R,F),h[b++]=R.x,h[b++]=R.y,h[b++]=R.z,r.st&&(v[_++]=F.x,v[_++]=F.y,G=Math.min(G,F.x),V=Math.min(V,F.y),L=Math.max(L,F.x),D=Math.max(D,F.y));if(u&&(p.RectangleGeometryLibrary.computePosition(a,n,r.st,0,0,R,F),h[b++]=R.x,h[b++]=R.y,h[b++]=R.z,r.st&&(v[_++]=F.x,v[_++]=F.y,G=F.x,V=F.y,L=F.x,D=F.y)),m&&(p.RectangleGeometryLibrary.computePosition(a,n,r.st,s-1,0,R,F),h[b++]=R.x,h[b++]=R.y,h[b]=R.z,r.st&&(v[_++]=F.x,v[_]=F.y,G=Math.min(G,F.x),V=Math.min(V,F.y),L=Math.max(L,F.x),D=Math.max(D,F.y))),r.st&&(G<0||V<0||L>1||D>1))for(var O=0;O<v.length;O+=2)v[O]=(v[O]-G)/(L-G),v[O+1]=(v[O+1]-V)/(D-V);var N=function(t,a,r,n){var i=t.length,o=a.normal?new Float32Array(i):void 0,s=a.tangent?new Float32Array(i):void 0,l=a.bitangent?new Float32Array(i):void 0,u=0,c=C,m=w,p=x;if(a.normal||a.tangent||a.bitangent)for(var d=0;d<i;d+=3){var g=e.Cartesian3.fromArray(t,d,A),y=u+1,f=u+2;p=r.geodeticSurfaceNormal(g,p),(a.tangent||a.bitangent)&&(e.Cartesian3.cross(e.Cartesian3.UNIT_Z,p,m),e.Matrix3.multiplyByVector(n,m,m),e.Cartesian3.normalize(m,m),a.bitangent&&e.Cartesian3.normalize(e.Cartesian3.cross(p,m,c),c)),a.normal&&(o[u]=p.x,o[y]=p.y,o[f]=p.z),a.tangent&&(s[u]=m.x,s[y]=m.y,s[f]=m.z),a.bitangent&&(l[u]=c.x,l[y]=c.y,l[f]=c.z),u+=3}return P(a,{positions:t,normals:o,tangents:s,bitangents:l})}(h,r,n,a.tangentRotationMatrix),S=6*(l-1)*(y-1);u&&(S+=3*(l-1)),m&&(S+=3*(l-1));var I,k=c.IndexDatatype.createTypedArray(f,S),H=0,z=0;for(I=0;I<y-1;++I){for(var B=0;B<l-1;++B){var U=H,Y=U+l,q=Y+1,X=U+1;k[z++]=U,k[z++]=Y,k[z++]=X,k[z++]=X,k[z++]=Y,k[z++]=q,++H}++H}if(u||m){var Q,W,J=f-1,j=f-1;if(u&&m&&(J=f-2),H=0,u)for(I=0;I<l-1;I++)W=(Q=H)+1,k[z++]=J,k[z++]=Q,k[z++]=W,++H;if(m)for(H=(y-1)*l,I=0;I<l-1;I++)W=(Q=H)+1,k[z++]=Q,k[z++]=j,k[z++]=W,++H}return N.indices=k,r.st&&(N.attributes.st=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:v})),N}function M(t,e,a,r,n){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a+2],t[e++]=n[a],t[e++]=n[a+1],t[e]=n[a+2],t}function T(t,e,a,r){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a],t[e]=r[a+1],t}var O=new d.VertexFormat;function N(r,n){var s,p=r._shadowVolume,g=r._offsetAttribute,y=r._vertexFormat,f=r._extrudedHeight,h=r._surfaceHeight,v=r._ellipsoid,b=n.height,_=n.width;if(p){var R=d.VertexFormat.clone(y,O);R.normal=!0,r._vertexFormat=R}var E=D(r,n);p&&(r._vertexFormat=y);var F=m.PolygonPipeline.scaleToGeodeticHeight(E.attributes.position.values,h,v,!1),G=(F=new Float64Array(F)).length,N=2*G,S=new Float64Array(N);S.set(F);var I=m.PolygonPipeline.scaleToGeodeticHeight(E.attributes.position.values,f,v);S.set(I,G),E.attributes.position.values=S;var k,H,z,B=y.normal?new Float32Array(N):void 0,U=y.tangent?new Float32Array(N):void 0,Y=y.bitangent?new Float32Array(N):void 0,q=y.st?new Float32Array(N/3*2):void 0;if(y.normal){for(H=E.attributes.normal.values,B.set(H),s=0;s<G;s++)H[s]=-H[s];B.set(H,G),E.attributes.normal.values=B}if(p){H=E.attributes.normal.values,y.normal||(E.attributes.normal=void 0);var X=new Float32Array(N);for(s=0;s<G;s++)H[s]=-H[s];X.set(H,G),E.attributes.extrudeDirection=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:X})}var Q=t.defined(g);if(Q){var W=G/3*2,J=new Uint8Array(W);g===a.GeometryOffsetAttribute.TOP?J=a.arrayFill(J,1,0,W/2):(z=g===a.GeometryOffsetAttribute.NONE?0:1,J=a.arrayFill(J,z)),E.attributes.applyOffset=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:J})}if(y.tangent){var j=E.attributes.tangent.values;for(U.set(j),s=0;s<G;s++)j[s]=-j[s];U.set(j,G),E.attributes.tangent.values=U}if(y.bitangent){var Z=E.attributes.bitangent.values;Y.set(Z),Y.set(Z,G),E.attributes.bitangent.values=Y}y.st&&(k=E.attributes.st.values,q.set(k),q.set(k,G/3*2),E.attributes.st.values=q);var K=E.indices,$=K.length,tt=G/3,et=c.IndexDatatype.createTypedArray(N/3,2*$);for(et.set(K),s=0;s<$;s+=3)et[s+$]=K[s+2]+tt,et[s+1+$]=K[s+1]+tt,et[s+2+$]=K[s]+tt;E.indices=et;var at=n.northCap,rt=n.southCap,nt=b,it=2,ot=0,st=4,lt=4;at&&(it-=1,nt-=1,ot+=1,st-=2,lt-=1),rt&&(it-=1,nt-=1,ot+=1,st-=2,lt-=1);var ut=2*((ot+=it*_+2*nt-st)+lt),ct=new Float64Array(3*ut),mt=p?new Float32Array(3*ut):void 0,pt=Q?new Uint8Array(ut):void 0,dt=y.st?new Float32Array(2*ut):void 0,gt=g===a.GeometryOffsetAttribute.TOP;Q&&!gt&&(z=g===a.GeometryOffsetAttribute.ALL?1:0,pt=a.arrayFill(pt,z));var yt,ft=0,ht=0,vt=0,bt=0,_t=_*nt;for(s=0;s<_t;s+=_)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);if(rt){var At=at?_t+1:_t;for(yt=3*At,s=0;s<2;s++)ct=M(ct,ft,yt,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*At,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1)}else for(s=_t-_;s<_t;s++)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);for(s=_t-1;s>0;s-=_)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);if(at){var xt=_t;for(yt=3*xt,s=0;s<2;s++)ct=M(ct,ft,yt,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*xt,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1)}else for(s=_-1;s>=0;s--)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);var wt=function(t,a,r){var n=t.length,o=a.normal?new Float32Array(n):void 0,s=a.tangent?new Float32Array(n):void 0,l=a.bitangent?new Float32Array(n):void 0,u=0,c=0,m=0,p=!0,d=C,g=w,y=x;if(a.normal||a.tangent||a.bitangent)for(var f=0;f<n;f+=6){var h=e.Cartesian3.fromArray(t,f,A),v=e.Cartesian3.fromArray(t,(f+6)%n,V);if(p){var b=e.Cartesian3.fromArray(t,(f+3)%n,L);e.Cartesian3.subtract(v,h,v),e.Cartesian3.subtract(b,h,b),y=e.Cartesian3.normalize(e.Cartesian3.cross(b,v,y),y),p=!1}e.Cartesian3.equalsEpsilon(v,h,i.CesiumMath.EPSILON10)&&(p=!0),(a.tangent||a.bitangent)&&(d=r.geodeticSurfaceNormal(h,d),a.tangent&&(g=e.Cartesian3.normalize(e.Cartesian3.cross(d,y,g),g))),a.normal&&(o[u++]=y.x,o[u++]=y.y,o[u++]=y.z,o[u++]=y.x,o[u++]=y.y,o[u++]=y.z),a.tangent&&(s[c++]=g.x,s[c++]=g.y,s[c++]=g.z,s[c++]=g.x,s[c++]=g.y,s[c++]=g.z),a.bitangent&&(l[m++]=d.x,l[m++]=d.y,l[m++]=d.z,l[m++]=d.x,l[m++]=d.y,l[m++]=d.z)}return P(a,{positions:t,normals:o,tangents:s,bitangents:l})}(ct,y,v);y.st&&(wt.attributes.st=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:dt})),p&&(wt.attributes.extrudeDirection=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:mt})),Q&&(wt.attributes.applyOffset=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:pt}));var Ct,Rt,Et,Ft,Gt=c.IndexDatatype.createTypedArray(ut,6*ot);G=ct.length/3;var Pt=0;for(s=0;s<G-1;s+=2){Ft=((Ct=s)+2)%G;var Vt=e.Cartesian3.fromArray(ct,3*Ct,V),Lt=e.Cartesian3.fromArray(ct,3*Ft,L);e.Cartesian3.equalsEpsilon(Vt,Lt,i.CesiumMath.EPSILON10)||(Et=((Rt=(Ct+1)%G)+2)%G,Gt[Pt++]=Ct,Gt[Pt++]=Rt,Gt[Pt++]=Ft,Gt[Pt++]=Ft,Gt[Pt++]=Rt,Gt[Pt++]=Et)}return wt.indices=Gt,(wt=u.GeometryPipeline.combineInstances([new l.GeometryInstance({geometry:E}),new l.GeometryInstance({geometry:wt})]))[0]}var S=[new e.Cartesian3,new e.Cartesian3,new e.Cartesian3,new e.Cartesian3],I=new e.Cartographic,k=new e.Cartographic;function H(t,a,r,n,i){if(0===r)return e.Rectangle.clone(t,i);var o=p.RectangleGeometryLibrary.computeOptions(t,a,r,0,R,I),s=o.height,l=o.width,u=S;return p.RectangleGeometryLibrary.computePosition(o,n,!1,0,0,u[0]),p.RectangleGeometryLibrary.computePosition(o,n,!1,0,l-1,u[1]),p.RectangleGeometryLibrary.computePosition(o,n,!1,s-1,0,u[2]),p.RectangleGeometryLibrary.computePosition(o,n,!1,s-1,l-1,u[3]),e.Rectangle.fromCartesianArray(u,n,i)}function z(a){var r=(a=t.defaultValue(a,t.defaultValue.EMPTY_OBJECT)).rectangle,n=t.defaultValue(a.height,0),o=t.defaultValue(a.extrudedHeight,n);this._rectangle=e.Rectangle.clone(r),this._granularity=t.defaultValue(a.granularity,i.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=e.Ellipsoid.clone(t.defaultValue(a.ellipsoid,e.Ellipsoid.WGS84)),this._surfaceHeight=Math.max(n,o),this._rotation=t.defaultValue(a.rotation,0),this._stRotation=t.defaultValue(a.stRotation,0),this._vertexFormat=d.VertexFormat.clone(t.defaultValue(a.vertexFormat,d.VertexFormat.DEFAULT)),this._extrudedHeight=Math.min(n,o),this._shadowVolume=t.defaultValue(a.shadowVolume,!1),this._workerName="createRectangleGeometry",this._offsetAttribute=a.offsetAttribute,this._rotatedRectangle=void 0,this._textureCoordinateRotationPoints=void 0}z.packedLength=e.Rectangle.packedLength+e.Ellipsoid.packedLength+d.VertexFormat.packedLength+7,z.pack=function(a,r,n){return n=t.defaultValue(n,0),e.Rectangle.pack(a._rectangle,r,n),n+=e.Rectangle.packedLength,e.Ellipsoid.pack(a._ellipsoid,r,n),n+=e.Ellipsoid.packedLength,d.VertexFormat.pack(a._vertexFormat,r,n),n+=d.VertexFormat.packedLength,r[n++]=a._granularity,r[n++]=a._surfaceHeight,r[n++]=a._rotation,r[n++]=a._stRotation,r[n++]=a._extrudedHeight,r[n++]=a._shadowVolume?1:0,r[n]=t.defaultValue(a._offsetAttribute,-1),r};var B=new e.Rectangle,U=e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),Y={rectangle:B,ellipsoid:U,vertexFormat:O,granularity:void 0,height:void 0,rotation:void 0,stRotation:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};z.unpack=function(a,r,n){r=t.defaultValue(r,0);var i=e.Rectangle.unpack(a,r,B);r+=e.Rectangle.packedLength;var o=e.Ellipsoid.unpack(a,r,U);r+=e.Ellipsoid.packedLength;var s=d.VertexFormat.unpack(a,r,O);r+=d.VertexFormat.packedLength;var l=a[r++],u=a[r++],c=a[r++],m=a[r++],p=a[r++],g=1===a[r++],y=a[r];return t.defined(n)?(n._rectangle=e.Rectangle.clone(i,n._rectangle),n._ellipsoid=e.Ellipsoid.clone(o,n._ellipsoid),n._vertexFormat=d.VertexFormat.clone(s,n._vertexFormat),n._granularity=l,n._surfaceHeight=u,n._rotation=c,n._stRotation=m,n._extrudedHeight=p,n._shadowVolume=g,n._offsetAttribute=-1===y?void 0:y,n):(Y.granularity=l,Y.height=u,Y.rotation=c,Y.stRotation=m,Y.extrudedHeight=p,Y.shadowVolume=g,Y.offsetAttribute=-1===y?void 0:y,new z(Y))},z.computeRectangle=function(a,r){var n=(a=t.defaultValue(a,t.defaultValue.EMPTY_OBJECT)).rectangle,o=t.defaultValue(a.granularity,i.CesiumMath.RADIANS_PER_DEGREE),s=t.defaultValue(a.ellipsoid,e.Ellipsoid.WGS84);return H(n,o,t.defaultValue(a.rotation,0),s,r)};var q=new e.Matrix3,X=new r.Quaternion,Q=new e.Cartographic;z.createGeometry=function(n){if(!i.CesiumMath.equalsEpsilon(n._rectangle.north,n._rectangle.south,i.CesiumMath.EPSILON10)&&!i.CesiumMath.equalsEpsilon(n._rectangle.east,n._rectangle.west,i.CesiumMath.EPSILON10)){var s=n._rectangle,l=n._ellipsoid,u=n._rotation,c=n._stRotation,d=n._vertexFormat,g=p.RectangleGeometryLibrary.computeOptions(s,n._granularity,u,c,R,I,k),y=q;if(0!==c||0!==u){var f=e.Rectangle.center(s,Q),h=l.geodeticSurfaceNormalCartographic(f,V);r.Quaternion.fromAxisAngle(h,-c,X),e.Matrix3.fromQuaternion(X,y)}else e.Matrix3.clone(e.Matrix3.IDENTITY,y);var v,b,_=n._surfaceHeight,A=n._extrudedHeight,x=!i.CesiumMath.equalsEpsilon(_,A,0,i.CesiumMath.EPSILON2);if(g.lonScalar=1/n._rectangle.width,g.latScalar=1/n._rectangle.height,g.tangentRotationMatrix=y,s=n._rectangle,x){v=N(n,g);var w=r.BoundingSphere.fromRectangle3D(s,l,_,G),C=r.BoundingSphere.fromRectangle3D(s,l,A,F);b=r.BoundingSphere.union(w,C)}else{if((v=D(n,g)).attributes.position.values=m.PolygonPipeline.scaleToGeodeticHeight(v.attributes.position.values,_,l,!1),t.defined(n._offsetAttribute)){var E=v.attributes.position.values.length,P=new Uint8Array(E/3),L=n._offsetAttribute===a.GeometryOffsetAttribute.NONE?0:1;a.arrayFill(P,L),v.attributes.applyOffset=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:P})}b=r.BoundingSphere.fromRectangle3D(s,l,_)}return d.position||delete v.attributes.position,new o.Geometry({attributes:v.attributes,indices:v.indices,primitiveType:v.primitiveType,boundingSphere:b,offsetAttribute:n._offsetAttribute})}},z.createShadowVolume=function(t,e,a){var r=t._granularity,n=t._ellipsoid,i=e(r,n),o=a(r,n);return new z({rectangle:t._rectangle,rotation:t._rotation,ellipsoid:n,stRotation:t._stRotation,granularity:r,extrudedHeight:o,height:i,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})};var W=new e.Rectangle,J=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],j=new e.Matrix2,Z=new e.Cartographic;return Object.defineProperties(z.prototype,{rectangle:{get:function(){return t.defined(this._rotatedRectangle)||(this._rotatedRectangle=H(this._rectangle,this._granularity,this._rotation,this._ellipsoid)),this._rotatedRectangle}},textureCoordinateRotationPoints:{get:function(){return t.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(t){if(0===t._stRotation)return[0,0,0,1,1,0];var a=e.Rectangle.clone(t._rectangle,W),r=t._granularity,n=t._ellipsoid,i=H(a,r,t._rotation-t._stRotation,n,W),o=J;o[0].x=i.west,o[0].y=i.south,o[1].x=i.west,o[1].y=i.north,o[2].x=i.east,o[2].y=i.south;for(var s=t.rectangle,l=e.Matrix2.fromRotation(t._stRotation,j),u=e.Rectangle.center(s,Z),c=0;c<3;++c){var m=o[c];m.x-=u.longitude,m.y-=u.latitude,e.Matrix2.multiplyByVector(l,m,m),m.x+=u.longitude,m.y+=u.latitude,m.x=(m.x-s.west)/s.width,m.y=(m.y-s.south)/s.height}var p=o[0],d=o[1],g=o[2],y=new Array(6);return e.Cartesian2.pack(p,y),e.Cartesian2.pack(d,y,2),e.Cartesian2.pack(g,y,4),y}(this)),this._textureCoordinateRotationPoints}}}),function(a,r){return t.defined(r)&&(a=z.unpack(a,r)),a._ellipsoid=e.Ellipsoid.clone(a._ellipsoid),a._rectangle=e.Rectangle.clone(a._rectangle),z.createGeometry(a)}})); | ||
define(["./when-229515d6","./Matrix2-f2da41d4","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./GeometryInstance-16601d2a","./GeometryPipeline-cfbe5c41","./IndexDatatype-b10faa0b","./PolygonPipeline-5582b1ec","./RectangleGeometryLibrary-fbe816b1","./VertexFormat-565d6a6c","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./AttributeCompression-0af3c035","./EncodedCartesian3-d4f305ce","./IntersectionTests-1b8a3cb9","./Plane-0421a8be","./EllipsoidRhumbLine-afd6cd20"],(function(t,e,a,r,n,i,o,s,l,u,c,m,p,d,g,y,f,h,v,b,_){"use strict";var A=new e.Cartesian3,x=new e.Cartesian3,w=new e.Cartesian3,C=new e.Cartesian3,R=new e.Rectangle,E=new e.Cartesian2,F=new r.BoundingSphere,G=new r.BoundingSphere;function P(t,e){var a=new o.Geometry({attributes:new s.GeometryAttributes,primitiveType:o.PrimitiveType.TRIANGLES});return a.attributes.position=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(a.attributes.normal=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(a.attributes.tangent=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(a.attributes.bitangent=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.bitangents})),a}var V=new e.Cartesian3,L=new e.Cartesian3;function D(t,a){var r=t._vertexFormat,n=t._ellipsoid,s=a.height,l=a.width,u=a.northCap,m=a.southCap,d=0,g=s,y=s,f=0;u&&(d=1,y-=1,f+=1),m&&(g-=1,y-=1,f+=1),f+=l*y;for(var h=r.position?new Float64Array(3*f):void 0,v=r.st?new Float32Array(2*f):void 0,b=0,_=0,R=A,F=E,G=Number.MAX_VALUE,V=Number.MAX_VALUE,L=-Number.MAX_VALUE,D=-Number.MAX_VALUE,M=d;M<g;++M)for(var T=0;T<l;++T)p.RectangleGeometryLibrary.computePosition(a,n,r.st,M,T,R,F),h[b++]=R.x,h[b++]=R.y,h[b++]=R.z,r.st&&(v[_++]=F.x,v[_++]=F.y,G=Math.min(G,F.x),V=Math.min(V,F.y),L=Math.max(L,F.x),D=Math.max(D,F.y));if(u&&(p.RectangleGeometryLibrary.computePosition(a,n,r.st,0,0,R,F),h[b++]=R.x,h[b++]=R.y,h[b++]=R.z,r.st&&(v[_++]=F.x,v[_++]=F.y,G=F.x,V=F.y,L=F.x,D=F.y)),m&&(p.RectangleGeometryLibrary.computePosition(a,n,r.st,s-1,0,R,F),h[b++]=R.x,h[b++]=R.y,h[b]=R.z,r.st&&(v[_++]=F.x,v[_]=F.y,G=Math.min(G,F.x),V=Math.min(V,F.y),L=Math.max(L,F.x),D=Math.max(D,F.y))),r.st&&(G<0||V<0||L>1||D>1))for(var O=0;O<v.length;O+=2)v[O]=(v[O]-G)/(L-G),v[O+1]=(v[O+1]-V)/(D-V);var N=function(t,a,r,n){var i=t.length,o=a.normal?new Float32Array(i):void 0,s=a.tangent?new Float32Array(i):void 0,l=a.bitangent?new Float32Array(i):void 0,u=0,c=C,m=w,p=x;if(a.normal||a.tangent||a.bitangent)for(var d=0;d<i;d+=3){var g=e.Cartesian3.fromArray(t,d,A),y=u+1,f=u+2;p=r.geodeticSurfaceNormal(g,p),(a.tangent||a.bitangent)&&(e.Cartesian3.cross(e.Cartesian3.UNIT_Z,p,m),e.Matrix3.multiplyByVector(n,m,m),e.Cartesian3.normalize(m,m),a.bitangent&&e.Cartesian3.normalize(e.Cartesian3.cross(p,m,c),c)),a.normal&&(o[u]=p.x,o[y]=p.y,o[f]=p.z),a.tangent&&(s[u]=m.x,s[y]=m.y,s[f]=m.z),a.bitangent&&(l[u]=c.x,l[y]=c.y,l[f]=c.z),u+=3}return P(a,{positions:t,normals:o,tangents:s,bitangents:l})}(h,r,n,a.tangentRotationMatrix),S=6*(l-1)*(y-1);u&&(S+=3*(l-1)),m&&(S+=3*(l-1));var I,k=c.IndexDatatype.createTypedArray(f,S),H=0,z=0;for(I=0;I<y-1;++I){for(var B=0;B<l-1;++B){var U=H,Y=U+l,q=Y+1,X=U+1;k[z++]=U,k[z++]=Y,k[z++]=X,k[z++]=X,k[z++]=Y,k[z++]=q,++H}++H}if(u||m){var Q,W,J=f-1,j=f-1;if(u&&m&&(J=f-2),H=0,u)for(I=0;I<l-1;I++)W=(Q=H)+1,k[z++]=J,k[z++]=Q,k[z++]=W,++H;if(m)for(H=(y-1)*l,I=0;I<l-1;I++)W=(Q=H)+1,k[z++]=Q,k[z++]=j,k[z++]=W,++H}return N.indices=k,r.st&&(N.attributes.st=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:v})),N}function M(t,e,a,r,n){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a+2],t[e++]=n[a],t[e++]=n[a+1],t[e]=n[a+2],t}function T(t,e,a,r){return t[e++]=r[a],t[e++]=r[a+1],t[e++]=r[a],t[e]=r[a+1],t}var O=new d.VertexFormat;function N(r,n){var s,p=r._shadowVolume,g=r._offsetAttribute,y=r._vertexFormat,f=r._extrudedHeight,h=r._surfaceHeight,v=r._ellipsoid,b=n.height,_=n.width;if(p){var R=d.VertexFormat.clone(y,O);R.normal=!0,r._vertexFormat=R}var E=D(r,n);p&&(r._vertexFormat=y);var F=m.PolygonPipeline.scaleToGeodeticHeight(E.attributes.position.values,h,v,!1),G=(F=new Float64Array(F)).length,N=2*G,S=new Float64Array(N);S.set(F);var I=m.PolygonPipeline.scaleToGeodeticHeight(E.attributes.position.values,f,v);S.set(I,G),E.attributes.position.values=S;var k,H,z,B=y.normal?new Float32Array(N):void 0,U=y.tangent?new Float32Array(N):void 0,Y=y.bitangent?new Float32Array(N):void 0,q=y.st?new Float32Array(N/3*2):void 0;if(y.normal){for(H=E.attributes.normal.values,B.set(H),s=0;s<G;s++)H[s]=-H[s];B.set(H,G),E.attributes.normal.values=B}if(p){H=E.attributes.normal.values,y.normal||(E.attributes.normal=void 0);var X=new Float32Array(N);for(s=0;s<G;s++)H[s]=-H[s];X.set(H,G),E.attributes.extrudeDirection=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:X})}var Q=t.defined(g);if(Q){var W=G/3*2,J=new Uint8Array(W);g===a.GeometryOffsetAttribute.TOP?J=a.arrayFill(J,1,0,W/2):(z=g===a.GeometryOffsetAttribute.NONE?0:1,J=a.arrayFill(J,z)),E.attributes.applyOffset=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:J})}if(y.tangent){var j=E.attributes.tangent.values;for(U.set(j),s=0;s<G;s++)j[s]=-j[s];U.set(j,G),E.attributes.tangent.values=U}if(y.bitangent){var Z=E.attributes.bitangent.values;Y.set(Z),Y.set(Z,G),E.attributes.bitangent.values=Y}y.st&&(k=E.attributes.st.values,q.set(k),q.set(k,G/3*2),E.attributes.st.values=q);var K=E.indices,$=K.length,tt=G/3,et=c.IndexDatatype.createTypedArray(N/3,2*$);for(et.set(K),s=0;s<$;s+=3)et[s+$]=K[s+2]+tt,et[s+1+$]=K[s+1]+tt,et[s+2+$]=K[s]+tt;E.indices=et;var at=n.northCap,rt=n.southCap,nt=b,it=2,ot=0,st=4,lt=4;at&&(it-=1,nt-=1,ot+=1,st-=2,lt-=1),rt&&(it-=1,nt-=1,ot+=1,st-=2,lt-=1);var ut=2*((ot+=it*_+2*nt-st)+lt),ct=new Float64Array(3*ut),mt=p?new Float32Array(3*ut):void 0,pt=Q?new Uint8Array(ut):void 0,dt=y.st?new Float32Array(2*ut):void 0,gt=g===a.GeometryOffsetAttribute.TOP;Q&&!gt&&(z=g===a.GeometryOffsetAttribute.ALL?1:0,pt=a.arrayFill(pt,z));var yt,ft=0,ht=0,vt=0,bt=0,_t=_*nt;for(s=0;s<_t;s+=_)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);if(rt){var At=at?_t+1:_t;for(yt=3*At,s=0;s<2;s++)ct=M(ct,ft,yt,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*At,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1)}else for(s=_t-_;s<_t;s++)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);for(s=_t-1;s>0;s-=_)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);if(at){var xt=_t;for(yt=3*xt,s=0;s<2;s++)ct=M(ct,ft,yt,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*xt,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1)}else for(s=_-1;s>=0;s--)ct=M(ct,ft,yt=3*s,F,I),ft+=6,y.st&&(dt=T(dt,ht,2*s,k),ht+=4),p&&(vt+=3,mt[vt++]=H[yt],mt[vt++]=H[yt+1],mt[vt++]=H[yt+2]),gt&&(pt[bt++]=1,bt+=1);var wt=function(t,a,r){var n=t.length,o=a.normal?new Float32Array(n):void 0,s=a.tangent?new Float32Array(n):void 0,l=a.bitangent?new Float32Array(n):void 0,u=0,c=0,m=0,p=!0,d=C,g=w,y=x;if(a.normal||a.tangent||a.bitangent)for(var f=0;f<n;f+=6){var h=e.Cartesian3.fromArray(t,f,A),v=e.Cartesian3.fromArray(t,(f+6)%n,V);if(p){var b=e.Cartesian3.fromArray(t,(f+3)%n,L);e.Cartesian3.subtract(v,h,v),e.Cartesian3.subtract(b,h,b),y=e.Cartesian3.normalize(e.Cartesian3.cross(b,v,y),y),p=!1}e.Cartesian3.equalsEpsilon(v,h,i.CesiumMath.EPSILON10)&&(p=!0),(a.tangent||a.bitangent)&&(d=r.geodeticSurfaceNormal(h,d),a.tangent&&(g=e.Cartesian3.normalize(e.Cartesian3.cross(d,y,g),g))),a.normal&&(o[u++]=y.x,o[u++]=y.y,o[u++]=y.z,o[u++]=y.x,o[u++]=y.y,o[u++]=y.z),a.tangent&&(s[c++]=g.x,s[c++]=g.y,s[c++]=g.z,s[c++]=g.x,s[c++]=g.y,s[c++]=g.z),a.bitangent&&(l[m++]=d.x,l[m++]=d.y,l[m++]=d.z,l[m++]=d.x,l[m++]=d.y,l[m++]=d.z)}return P(a,{positions:t,normals:o,tangents:s,bitangents:l})}(ct,y,v);y.st&&(wt.attributes.st=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:dt})),p&&(wt.attributes.extrudeDirection=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:mt})),Q&&(wt.attributes.applyOffset=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:pt}));var Ct,Rt,Et,Ft,Gt=c.IndexDatatype.createTypedArray(ut,6*ot);G=ct.length/3;var Pt=0;for(s=0;s<G-1;s+=2){Ft=((Ct=s)+2)%G;var Vt=e.Cartesian3.fromArray(ct,3*Ct,V),Lt=e.Cartesian3.fromArray(ct,3*Ft,L);e.Cartesian3.equalsEpsilon(Vt,Lt,i.CesiumMath.EPSILON10)||(Et=((Rt=(Ct+1)%G)+2)%G,Gt[Pt++]=Ct,Gt[Pt++]=Rt,Gt[Pt++]=Ft,Gt[Pt++]=Ft,Gt[Pt++]=Rt,Gt[Pt++]=Et)}return wt.indices=Gt,(wt=u.GeometryPipeline.combineInstances([new l.GeometryInstance({geometry:E}),new l.GeometryInstance({geometry:wt})]))[0]}var S=[new e.Cartesian3,new e.Cartesian3,new e.Cartesian3,new e.Cartesian3],I=new e.Cartographic,k=new e.Cartographic;function H(t,a,r,n,i){if(0===r)return e.Rectangle.clone(t,i);var o=p.RectangleGeometryLibrary.computeOptions(t,a,r,0,R,I),s=o.height,l=o.width,u=S;return p.RectangleGeometryLibrary.computePosition(o,n,!1,0,0,u[0]),p.RectangleGeometryLibrary.computePosition(o,n,!1,0,l-1,u[1]),p.RectangleGeometryLibrary.computePosition(o,n,!1,s-1,0,u[2]),p.RectangleGeometryLibrary.computePosition(o,n,!1,s-1,l-1,u[3]),e.Rectangle.fromCartesianArray(u,n,i)}function z(a){var r=(a=t.defaultValue(a,t.defaultValue.EMPTY_OBJECT)).rectangle,n=t.defaultValue(a.height,0),o=t.defaultValue(a.extrudedHeight,n);this._rectangle=e.Rectangle.clone(r),this._granularity=t.defaultValue(a.granularity,i.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=e.Ellipsoid.clone(t.defaultValue(a.ellipsoid,e.Ellipsoid.WGS84)),this._surfaceHeight=Math.max(n,o),this._rotation=t.defaultValue(a.rotation,0),this._stRotation=t.defaultValue(a.stRotation,0),this._vertexFormat=d.VertexFormat.clone(t.defaultValue(a.vertexFormat,d.VertexFormat.DEFAULT)),this._extrudedHeight=Math.min(n,o),this._shadowVolume=t.defaultValue(a.shadowVolume,!1),this._workerName="createRectangleGeometry",this._offsetAttribute=a.offsetAttribute,this._rotatedRectangle=void 0,this._textureCoordinateRotationPoints=void 0}z.packedLength=e.Rectangle.packedLength+e.Ellipsoid.packedLength+d.VertexFormat.packedLength+7,z.pack=function(a,r,n){return n=t.defaultValue(n,0),e.Rectangle.pack(a._rectangle,r,n),n+=e.Rectangle.packedLength,e.Ellipsoid.pack(a._ellipsoid,r,n),n+=e.Ellipsoid.packedLength,d.VertexFormat.pack(a._vertexFormat,r,n),n+=d.VertexFormat.packedLength,r[n++]=a._granularity,r[n++]=a._surfaceHeight,r[n++]=a._rotation,r[n++]=a._stRotation,r[n++]=a._extrudedHeight,r[n++]=a._shadowVolume?1:0,r[n]=t.defaultValue(a._offsetAttribute,-1),r};var B=new e.Rectangle,U=e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),Y={rectangle:B,ellipsoid:U,vertexFormat:O,granularity:void 0,height:void 0,rotation:void 0,stRotation:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};z.unpack=function(a,r,n){r=t.defaultValue(r,0);var i=e.Rectangle.unpack(a,r,B);r+=e.Rectangle.packedLength;var o=e.Ellipsoid.unpack(a,r,U);r+=e.Ellipsoid.packedLength;var s=d.VertexFormat.unpack(a,r,O);r+=d.VertexFormat.packedLength;var l=a[r++],u=a[r++],c=a[r++],m=a[r++],p=a[r++],g=1===a[r++],y=a[r];return t.defined(n)?(n._rectangle=e.Rectangle.clone(i,n._rectangle),n._ellipsoid=e.Ellipsoid.clone(o,n._ellipsoid),n._vertexFormat=d.VertexFormat.clone(s,n._vertexFormat),n._granularity=l,n._surfaceHeight=u,n._rotation=c,n._stRotation=m,n._extrudedHeight=p,n._shadowVolume=g,n._offsetAttribute=-1===y?void 0:y,n):(Y.granularity=l,Y.height=u,Y.rotation=c,Y.stRotation=m,Y.extrudedHeight=p,Y.shadowVolume=g,Y.offsetAttribute=-1===y?void 0:y,new z(Y))},z.computeRectangle=function(a,r){var n=(a=t.defaultValue(a,t.defaultValue.EMPTY_OBJECT)).rectangle,o=t.defaultValue(a.granularity,i.CesiumMath.RADIANS_PER_DEGREE),s=t.defaultValue(a.ellipsoid,e.Ellipsoid.WGS84);return H(n,o,t.defaultValue(a.rotation,0),s,r)};var q=new e.Matrix3,X=new r.Quaternion,Q=new e.Cartographic;z.createGeometry=function(n){if(!i.CesiumMath.equalsEpsilon(n._rectangle.north,n._rectangle.south,i.CesiumMath.EPSILON10)&&!i.CesiumMath.equalsEpsilon(n._rectangle.east,n._rectangle.west,i.CesiumMath.EPSILON10)){var s=n._rectangle,l=n._ellipsoid,u=n._rotation,c=n._stRotation,d=n._vertexFormat,g=p.RectangleGeometryLibrary.computeOptions(s,n._granularity,u,c,R,I,k),y=q;if(0!==c||0!==u){var f=e.Rectangle.center(s,Q),h=l.geodeticSurfaceNormalCartographic(f,V);r.Quaternion.fromAxisAngle(h,-c,X),e.Matrix3.fromQuaternion(X,y)}else e.Matrix3.clone(e.Matrix3.IDENTITY,y);var v,b,_=n._surfaceHeight,A=n._extrudedHeight,x=!i.CesiumMath.equalsEpsilon(_,A,0,i.CesiumMath.EPSILON2);if(g.lonScalar=1/n._rectangle.width,g.latScalar=1/n._rectangle.height,g.tangentRotationMatrix=y,s=n._rectangle,x){v=N(n,g);var w=r.BoundingSphere.fromRectangle3D(s,l,_,G),C=r.BoundingSphere.fromRectangle3D(s,l,A,F);b=r.BoundingSphere.union(w,C)}else{if((v=D(n,g)).attributes.position.values=m.PolygonPipeline.scaleToGeodeticHeight(v.attributes.position.values,_,l,!1),t.defined(n._offsetAttribute)){var E=v.attributes.position.values.length,P=new Uint8Array(E/3),L=n._offsetAttribute===a.GeometryOffsetAttribute.NONE?0:1;a.arrayFill(P,L),v.attributes.applyOffset=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:P})}b=r.BoundingSphere.fromRectangle3D(s,l,_)}return d.position||delete v.attributes.position,new o.Geometry({attributes:v.attributes,indices:v.indices,primitiveType:v.primitiveType,boundingSphere:b,offsetAttribute:n._offsetAttribute})}},z.createShadowVolume=function(t,e,a){var r=t._granularity,n=t._ellipsoid,i=e(r,n),o=a(r,n);return new z({rectangle:t._rectangle,rotation:t._rotation,ellipsoid:n,stRotation:t._stRotation,granularity:r,extrudedHeight:o,height:i,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})};var W=new e.Rectangle,J=[new e.Cartesian2,new e.Cartesian2,new e.Cartesian2],j=new e.Matrix2,Z=new e.Cartographic;return Object.defineProperties(z.prototype,{rectangle:{get:function(){return t.defined(this._rotatedRectangle)||(this._rotatedRectangle=H(this._rectangle,this._granularity,this._rotation,this._ellipsoid)),this._rotatedRectangle}},textureCoordinateRotationPoints:{get:function(){return t.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(t){if(0===t._stRotation)return[0,0,0,1,1,0];var a=e.Rectangle.clone(t._rectangle,W),r=t._granularity,n=t._ellipsoid,i=H(a,r,t._rotation-t._stRotation,n,W),o=J;o[0].x=i.west,o[0].y=i.south,o[1].x=i.west,o[1].y=i.north,o[2].x=i.east,o[2].y=i.south;for(var s=t.rectangle,l=e.Matrix2.fromRotation(t._stRotation,j),u=e.Rectangle.center(s,Z),c=0;c<3;++c){var m=o[c];m.x-=u.longitude,m.y-=u.latitude,e.Matrix2.multiplyByVector(l,m,m),m.x+=u.longitude,m.y+=u.latitude,m.x=(m.x-s.west)/s.width,m.y=(m.y-s.south)/s.height}var p=o[0],d=o[1],g=o[2],y=new Array(6);return e.Cartesian2.pack(p,y),e.Cartesian2.pack(d,y,2),e.Cartesian2.pack(g,y,4),y}(this)),this._textureCoordinateRotationPoints}}}),function(a,r){return t.defined(r)&&(a=z.unpack(a,r)),a._ellipsoid=e.Ellipsoid.clone(a._ellipsoid),a._rectangle=e.Rectangle.clone(a._rectangle),z.createGeometry(a)}})); |
{ | ||
"name": "mars3d-cesium", | ||
"version": "1.88.2", | ||
"version": "1.89.0", | ||
"description": "CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.", | ||
@@ -14,3 +14,3 @@ "homepage": "http://mars3d.cn/", | ||
"name": "CesiumJS community", | ||
"url": "https://github.com/CesiumGS/cesium/blob/master/CONTRIBUTORS.md" | ||
"url": "https://github.com/CesiumGS/cesium/blob/main/CONTRIBUTORS.md" | ||
} | ||
@@ -37,30 +37,41 @@ ], | ||
"devDependencies": { | ||
"aws-sdk": "^2.531.0", | ||
"bluebird": "^3.4.6", | ||
"cloc": "^2.3.3", | ||
"compression": "^1.6.2", | ||
"eslint": "^7.5.0", | ||
"eslint-config-prettier": "^6.10.1", | ||
"eslint-plugin-html": "^6.0.0", | ||
"express": "^4.15.0", | ||
"globby": "^11.0.0", | ||
"@rollup/plugin-commonjs": "^15.1.0", | ||
"@rollup/plugin-node-resolve": "^11.2.1", | ||
"@zip.js/zip.js": "^2.3.12", | ||
"autolinker": "^3.14.3", | ||
"aws-sdk": "^2.932.0", | ||
"bitmap-sdf": "^1.0.3", | ||
"bluebird": "^3.7.2", | ||
"cloc": "^2.8.0", | ||
"compression": "^1.7.4", | ||
"dompurify": "^2.2.2", | ||
"draco3d": "^1.4.1", | ||
"earcut": "^2.2.2", | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-es": "^4.1.0", | ||
"eslint-plugin-html": "^6.1.2", | ||
"express": "^4.17.1", | ||
"globby": "^11.0.4", | ||
"glsl-strip-comments": "^1.0.0", | ||
"gulp": "^4.0.0", | ||
"gulp-clean-css": "^4.2.0", | ||
"grapheme-splitter": "^1.0.4", | ||
"gulp": "^4.0.2", | ||
"gulp-clean-css": "^4.3.0", | ||
"gulp-insert": "^0.5.0", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-replace": "^1.0.0", | ||
"gulp-replace": "^1.1.3", | ||
"gulp-tap": "^2.0.0", | ||
"gulp-uglify": "^3.0.0", | ||
"gulp-zip": "^5.0.0", | ||
"husky": "^4.2.5", | ||
"jasmine-core": "^3.3.0", | ||
"jsdoc": "^3.4.3", | ||
"karma": "^5.1.0", | ||
"gulp-terser": "^2.0.1", | ||
"gulp-zip": "^5.1.0", | ||
"husky": "^4.3.8", | ||
"jasmine-core": "^3.7.1", | ||
"jsdoc": "^3.6.7", | ||
"jsep": "^0.3.1", | ||
"karma": "^5.2.3", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage": "^2.0.1", | ||
"karma-coverage-istanbul-instrumenter": "^1.0.1", | ||
"karma-detect-browsers": "^2.2.3", | ||
"karma-coverage": "^2.0.3", | ||
"karma-coverage-istanbul-instrumenter": "^1.0.3", | ||
"karma-detect-browsers": "^2.3.3", | ||
"karma-edge-launcher": "^0.4.2", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-firefox-launcher": "^2.1.1", | ||
"karma-ie-launcher": "^1.0.0", | ||
@@ -71,24 +82,32 @@ "karma-jasmine": "^4.0.1", | ||
"karma-spec-reporter": "^0.0.32", | ||
"kdbush": "^3.0.0", | ||
"ktx-parse": "^0.2.1", | ||
"lerc": "^2.0.0", | ||
"merge-stream": "^2.0.0", | ||
"mime": "^2.0.3", | ||
"mkdirp": "^1.0.0", | ||
"open": "^7.0.0", | ||
"mersenne-twister": "^1.1.0", | ||
"meshoptimizer": "^0.16.1", | ||
"mime": "^2.5.2", | ||
"mkdirp": "^1.0.4", | ||
"nosleep.js": "^0.9.0", | ||
"open": "^8.2.1", | ||
"pako": "^1.0.4", | ||
"prettier": "2.1.2", | ||
"pretty-quick": "^3.0.2", | ||
"pretty-quick": "^3.1.1", | ||
"protobufjs": "6.7.0", | ||
"rbush": "^3.0.1", | ||
"request": "^2.79.0", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^2.22.1", | ||
"rollup-plugin-external-globals": "^0.6.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.52.2", | ||
"rollup-plugin-external-globals": "^0.6.1", | ||
"rollup-plugin-strip-pragma": "^1.0.0", | ||
"rollup-plugin-uglify": "^6.0.3", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"stream-to-promise": "^3.0.0", | ||
"topojson-client": "^3.1.0", | ||
"tsd-jsdoc": "^2.5.0", | ||
"typescript": "^3.9.2", | ||
"yargs": "^16.0.3" | ||
"tween.js": "^16.6.0", | ||
"typescript": "^4.3.4", | ||
"urijs": "^1.19.7", | ||
"when": "1.7.1", | ||
"yargs": "^17.0.1" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "pretty-quick --staged" | ||
} | ||
}, | ||
"scripts": { | ||
@@ -109,3 +128,3 @@ "convertToModules": "gulp convertToModules", | ||
"generateDocumentation-watch": "gulp generateDocumentation-watch", | ||
"eslint": "eslint \"./**/*.js\" \"./**/*.html\" --cache --quiet", | ||
"eslint": "eslint \"./**/*.js\" \"./**/*.cjs\" \"./**/*.html\" --cache --quiet", | ||
"makeZipFile": "gulp makeZipFile", | ||
@@ -112,0 +131,0 @@ "minify": "gulp minify", |
@@ -8,5 +8,5 @@ # Mars3D修改版Cesium | ||
[![Build Status](https://travis-ci.org/CesiumGS/cesium.svg?branch=master)](https://travis-ci.org/CesiumGS/cesium) | ||
[![Build Status](https://travis-ci.com/CesiumGS/cesium.svg?branch=main)](https://travis-ci.com/CesiumGS/cesium) | ||
[![npm](https://img.shields.io/npm/v/cesium)](https://www.npmjs.com/package/cesium) | ||
[![Docs](https://img.shields.io/badge/docs-online-orange.svg)](https://cesium.com/docs/) | ||
[![Docs](https://img.shields.io/badge/docs-online-orange.svg)](https://cesium.com/learn/) | ||
@@ -21,5 +21,5 @@ CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin. It uses WebGL for hardware-accelerated graphics, and is cross-platform, cross-browser, and tuned for dynamic-data visualization. | ||
Visit the [Downloads page](https://cesium.com/downloads/) or use the npm module: | ||
Visit the [Downloads page](https://cesium.com/downloads/) or install the [npm package](https://www.npmjs.com/package/cesium): | ||
``` | ||
```sh | ||
npm install cesium | ||
@@ -49,19 +49,19 @@ ``` | ||
<p> | ||
<a href="https://cesium.com/blog/2018/08/21/cybercity/"><img src="https://cesium.com/blog/images/2018/08-21/cover.jpg" width="30%" /></a> | ||
<a href="https://apps.agi.com/SatelliteViewer/?Status=Operational"><img src="https://cesium.com/blog/images/2018/03-29/comspoc-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2018/02/05/historic-pharsalia-cabin-point-cloud/"><img src="https://cesium.com/blog/images/2018/02-05/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/12/12/onesky/"><img src="https://cesium.com/blog/images/2017/12-12/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/11/20/nasa-storm-virtual-globe/"><img src="https://cesium.com/blog/images/2017/11-20/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/11/16/gefs/"><img src="https://cesium.com/blog/images/2017/11-16/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2019/01/04/norad-tracks-santa/"><img src="https://cesium.com/blog/images/2019/01-04/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/07/23/drcog/"><img src="https://cesium.com/blog/images/2017/07-23/cover.jpg" width="30%" /></a> | ||
<a href="https://demos.cesium.com/NewYork/"><img src="https://cesium.com/blog/images/2017/05-05/nyc-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2018/09/27/swisstopo-live/"><img src="https://cesium.com/blog/images/2018/09-27/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/12/12/stk-czml/"><img src="https://cesium.com/blog/images/2016/12-12/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/09/29/contextcapture/"><img src="https://cesium.com/blog/images/2016/09-29/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/04/20/flightradar24/"><img src="https://cesium.com/blog/images/2016/04-20/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/02/03/fodarearth/"><img src="https://cesium.com/blog/images/2016/02-03/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2015/08/19/mars-trek/"><img src="https://cesium.com/blog/images/2015/08-19/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2015/07/16/hiroshima-archive/"><img src="https://cesium.com/blog/images/2015/07-16/cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2019/06/13/red-bull-x-alps-in-cesium/"><img src="https://cesium.com/blog/images/2019/06-12/redbullxalps.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2018/08/21/cybercity/"><img src="https://images.prismic.io/cesium/2018-08-21-cover.jpg" width="30%" /></a> | ||
<a href="https://apps.agi.com/SatelliteViewer/?Status=Operational"><img src="https://images.prismic.io/cesium/2018-03-29-comspoc-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2018/02/05/historic-pharsalia-cabin-point-cloud/"><img src="https://images.prismic.io/cesium/2018-02-05-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/12/12/onesky/"><img src="https://images.prismic.io/cesium/2017-12-12-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/11/20/nasa-storm-virtual-globe/"><img src="https://images.prismic.io/cesium/2017-11-20-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/11/16/gefs/"><img src="https://images.prismic.io/cesium/2017-11-16-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2019/01/04/norad-tracks-santa/"><img src="https://images.prismic.io/cesium/2019-01-04-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2017/07/23/drcog/"><img src="https://images.prismic.io/cesium/2017-07-23-cover.jpg" width="30%" /></a> | ||
<a href="https://demos.cesium.com/NewYork/"><img src="https://images.prismic.io/cesium/2017-05-05-nyc-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2018/09/27/swisstopo-live/"><img src="https://images.prismic.io/cesium/2018-09-27-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/12/12/stk-czml/"><img src="https://images.prismic.io/cesium/2016-12-12-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/09/29/contextcapture/"><img src="https://images.prismic.io/cesium/2016-09-29-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/04/20/flightradar24/"><img src="https://images.prismic.io/cesium/2016-04-20-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2016/02/03/fodarearth/"><img src="https://images.prismic.io/cesium/2016-02-03-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2015/08/19/mars-trek/"><img src="https://images.prismic.io/cesium/2015-08-19-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2015/07/16/hiroshima-archive/"><img src="https://images.prismic.io/cesium/2015-07-16-cover.jpg" width="30%" /></a> | ||
<a href="https://cesium.com/blog/2019/06/13/red-bull-x-alps-in-cesium/"><img src="https://images.prismic.io/cesium/2015-10-02-cover.jpg" width="30%" /></a> | ||
<br/> | ||
@@ -68,0 +68,0 @@ <br/> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
12662663
73
62056
16