提交 a0e99347 编写于 作者: M Mr.doob

Updated builds.

上级 f45ed240
......@@ -6174,7 +6174,8 @@
intersectsBox: function ( box ) {
// using 6 splitting planes to rule out intersections.
// using 4 splitting planes to rule out intersections
return box.max.x < this.min.x || box.min.x > this.max.x ||
box.max.y < this.min.y || box.min.y > this.max.y ? false : true;
......@@ -12186,17 +12187,21 @@
} );
// http://stackoverflow.com/questions/1669190/javascript-min-max-array-values/13440842#13440842
function arrayMax( array ) {
var length = array.length, max = - Infinity;
if ( array.length === 0 ) {
return - Infinity;
}
var max = array[ 0 ];
while ( length -- ) {
for ( var i = 1; i < array.length; ++ i ) {
if ( array[ length ] > max ) {
if ( array[ i ] > max ) {
max = array[ length ];
max = array[ i ];
}
......
......@@ -45,9 +45,9 @@ value:a},rotation:{enumerable:!0,value:d},quaternion:{enumerable:!0,value:b},sca
void 0!==a?a:new p;this.end=void 0!==b?b:new p}function Ta(a,b,c){this.a=void 0!==a?a:new p;this.b=void 0!==b?b:new p;this.c=void 0!==c?c:new p}function Ua(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.normal=d&&d.isVector3?d:new p;this.vertexNormals=Array.isArray(d)?d:[];this.color=e&&e.isColor?e:new K;this.vertexColors=Array.isArray(e)?e:[];this.materialIndex=void 0!==f?f:0}function Ga(a){U.call(this);this.type="MeshBasicMaterial";this.color=new K(16777215);this.lightMap=this.map=null;this.lightMapIntensity=
1;this.aoMap=null;this.aoMapIntensity=1;this.envMap=this.alphaMap=this.specularMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.lights=this.morphTargets=this.skinning=!1;this.setValues(a)}function Y(a,b,c){if(Array.isArray(a))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.uuid=X.generateUUID();this.array=a;this.itemSize=b;this.count=void 0!==
a?a.length/b:0;this.normalized=!0===c;this.dynamic=!1;this.updateRange={offset:0,count:-1};this.onUploadCallback=function(){};this.version=0}function pc(a,b){Y.call(this,new Int8Array(a),b)}function qc(a,b){Y.call(this,new Uint8Array(a),b)}function rc(a,b){Y.call(this,new Uint8ClampedArray(a),b)}function sc(a,b){Y.call(this,new Int16Array(a),b)}function hb(a,b){Y.call(this,new Uint16Array(a),b)}function tc(a,b){Y.call(this,new Int32Array(a),b)}function ib(a,b){Y.call(this,new Uint32Array(a),b)}function E(a,
b){Y.call(this,new Float32Array(a),b)}function uc(a,b){Y.call(this,new Float64Array(a),b)}function Ke(){this.indices=[];this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function Qd(a){for(var b=a.length,c=-Infinity;b--;)a[b]>c&&(c=a[b]);return c}
function P(){Object.defineProperty(this,"id",{value:Rd++});this.uuid=X.generateUUID();this.name="";this.type="Geometry";this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}
function H(){Object.defineProperty(this,"id",{value:Rd++});this.uuid=X.generateUUID();this.name="";this.type="BufferGeometry";this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingSphere=this.boundingBox=null;this.drawRange={start:0,count:Infinity}}function xa(a,b){B.call(this);this.type="Mesh";this.geometry=void 0!==a?a:new H;this.material=void 0!==b?b:new Ga({color:16777215*Math.random()});this.drawMode=0;this.updateMorphTargets()}function Fb(a,b,c,d,e,f){P.call(this);
b){Y.call(this,new Float32Array(a),b)}function uc(a,b){Y.call(this,new Float64Array(a),b)}function Ke(){this.indices=[];this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function Qd(a){if(0===a.length)return-Infinity;for(var b=a[0],c=1;c<a.length;++c)a[c]>
b&&(b=a[c]);return b}function P(){Object.defineProperty(this,"id",{value:Rd++});this.uuid=X.generateUUID();this.name="";this.type="Geometry";this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=
!1}function H(){Object.defineProperty(this,"id",{value:Rd++});this.uuid=X.generateUUID();this.name="";this.type="BufferGeometry";this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingSphere=this.boundingBox=null;this.drawRange={start:0,count:Infinity}}function xa(a,b){B.call(this);this.type="Mesh";this.geometry=void 0!==a?a:new H;this.material=void 0!==b?b:new Ga({color:16777215*Math.random()});this.drawMode=0;this.updateMorphTargets()}function Fb(a,b,c,d,e,f){P.call(this);
this.type="BoxGeometry";this.parameters={width:a,height:b,depth:c,widthSegments:d,heightSegments:e,depthSegments:f};this.fromBufferGeometry(new jb(a,b,c,d,e,f));this.mergeVertices()}function jb(a,b,c,d,e,f){function g(a,b,c,d,e,f,g,l,C,F,G){var Z=f/C,aa=g/F,ta=f/2,I=g/2,D=l/2;g=C+1;var E=F+1,B=f=0,Q,O,W=new p;for(O=0;O<E;O++){var ka=O*aa-I;for(Q=0;Q<g;Q++)W[a]=(Q*Z-ta)*d,W[b]=ka*e,W[c]=D,m.push(W.x,W.y,W.z),W[a]=0,W[b]=0,W[c]=0<l?1:-1,r.push(W.x,W.y,W.z),q.push(Q/C),q.push(1-O/F),f+=1}for(O=0;O<F;O++)for(Q=
0;Q<C;Q++)a=n+Q+g*(O+1),b=n+(Q+1)+g*(O+1),c=n+(Q+1)+g*O,k.push(n+Q+g*O,a,c),k.push(a,b,c),B+=6;h.addGroup(u,B,G);u+=B;n+=f}H.call(this);this.type="BoxBufferGeometry";this.parameters={width:a,height:b,depth:c,widthSegments:d,heightSegments:e,depthSegments:f};var h=this;d=Math.floor(d)||1;e=Math.floor(e)||1;f=Math.floor(f)||1;var k=[],m=[],r=[],q=[],n=0,u=0;g("z","y","x",-1,-1,c,b,a,f,e,0);g("z","y","x",1,-1,c,b,-a,f,e,1);g("x","z","y",1,1,a,c,b,d,f,2);g("x","z","y",1,-1,a,c,-b,d,f,3);g("x","y","z",
1,-1,a,b,c,d,e,4);g("x","y","z",-1,-1,a,b,-c,d,e,5);this.setIndex(k);this.addAttribute("position",new E(m,3));this.addAttribute("normal",new E(r,3));this.addAttribute("uv",new E(q,2))}function vc(a,b,c,d){P.call(this);this.type="PlaneGeometry";this.parameters={width:a,height:b,widthSegments:c,heightSegments:d};this.fromBufferGeometry(new kb(a,b,c,d))}function kb(a,b,c,d){H.call(this);this.type="PlaneBufferGeometry";this.parameters={width:a,height:b,widthSegments:c,heightSegments:d};var e=a/2,f=b/
......
......@@ -6168,7 +6168,8 @@ Object.assign( Box2.prototype, {
intersectsBox: function ( box ) {
// using 6 splitting planes to rule out intersections.
// using 4 splitting planes to rule out intersections
return box.max.x < this.min.x || box.min.x > this.max.x ||
box.max.y < this.min.y || box.min.y > this.max.y ? false : true;
......@@ -12180,17 +12181,21 @@ Object.assign( DirectGeometry.prototype, {
} );
// http://stackoverflow.com/questions/1669190/javascript-min-max-array-values/13440842#13440842
function arrayMax( array ) {
var length = array.length, max = - Infinity;
if ( array.length === 0 ) {
return - Infinity;
}
var max = array[ 0 ];
while ( length -- ) {
for ( var i = 1; i < array.length; ++ i ) {
if ( array[ length ] > max ) {
if ( array[ i ] > max ) {
max = array[ length ];
max = array[ i ];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册