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

Updated builds.

上级 03b28436
......@@ -26762,11 +26762,9 @@
}
if (options.extrudeMaterial !== undefined){
scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options.extrudeMaterial : 1);
}
scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options.extrudeMaterial : 1);
}
......
......@@ -598,10 +598,10 @@ m.index,n=m.uv,r=[],m=void 0!==b.amount?b.amount:100,z=void 0!==b.bevelThickness
I=new p);y||(t=z=x=0);var L,K,S,W=this,v=a.extractPoints(w),w=v.shape,P=v.holes;if(v=!ta.isClockWise(w)){w=w.reverse();K=0;for(S=P.length;K<S;K++)L=P[K],ta.isClockWise(L)&&(P[K]=L.reverse());v=!1}var N=ta.triangulateShape(w,P),X=w;K=0;for(S=P.length;K<S;K++)L=P[K],w=w.concat(L);var T,V,R,Y,U,ca=w.length,Z,ga=N.length,v=[],Q=0;R=X.length;T=R-1;for(V=Q+1;Q<R;Q++,T++,V++)T===R&&(T=0),V===R&&(V=0),v[Q]=d(X[Q],X[T],X[V]);var ia=[],fa,ha=v.concat();K=0;for(S=P.length;K<S;K++){L=P[K];fa=[];Q=0;R=L.length;
T=R-1;for(V=Q+1;Q<R;Q++,T++,V++)T===R&&(T=0),V===R&&(V=0),fa[Q]=d(L[Q],L[T],L[V]);ia.push(fa);ha=ha.concat(fa)}for(T=0;T<x;T++){R=T/x;Y=z*Math.cos(R*Math.PI/2);V=t*Math.sin(R*Math.PI/2);Q=0;for(R=X.length;Q<R;Q++)U=c(X[Q],v[Q],V),f(U.x,U.y,-Y);K=0;for(S=P.length;K<S;K++)for(L=P[K],fa=ia[K],Q=0,R=L.length;Q<R;Q++)U=c(L[Q],fa[Q],V),f(U.x,U.y,-Y)}V=t;for(Q=0;Q<ca;Q++)U=y?c(w[Q],ha[Q],V):w[Q],M?(G.copy(A.normals[0]).multiplyScalar(U.x),J.copy(A.binormals[0]).multiplyScalar(U.y),I.copy(C[0]).add(G).add(J),
f(I.x,I.y,I.z)):f(U.x,U.y,0);for(R=1;R<=H;R++)for(Q=0;Q<ca;Q++)U=y?c(w[Q],ha[Q],V):w[Q],M?(G.copy(A.normals[R]).multiplyScalar(U.x),J.copy(A.binormals[R]).multiplyScalar(U.y),I.copy(C[R]).add(G).add(J),f(I.x,I.y,I.z)):f(U.x,U.y,m/H*R);for(T=x-1;0<=T;T--){R=T/x;Y=z*Math.cos(R*Math.PI/2);V=t*Math.sin(R*Math.PI/2);Q=0;for(R=X.length;Q<R;Q++)U=c(X[Q],v[Q],V),f(U.x,U.y,m+Y);K=0;for(S=P.length;K<S;K++)for(L=P[K],fa=ia[K],Q=0,R=L.length;Q<R;Q++)U=c(L[Q],fa[Q],V),M?f(U.x,U.y+C[H-1].y,C[H-1].x+Y):f(U.x,U.y,
m+Y)}(function(){var a=l.length/3;if(y){var c=0*ca;for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[2]+c,Z[1]+c,Z[0]+c);c=ca*(H+2*x);for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[0]+c,Z[1]+c,Z[2]+c)}else{for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[2],Z[1],Z[0]);for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[0]+ca*H,Z[1]+ca*H,Z[2]+ca*H)}W.addGroup(a,l.length/3-a,void 0!==b.material?b.material:0)})();(function(){var a=l.length/3,c=0;e(X,c);c+=X.length;K=0;for(S=P.length;K<S;K++)L=P[K],e(L,c),c+=L.length;void 0!==b.extrudeMaterial&&W.addGroup(a,l.length/3-a,void 0!==b.extrudeMaterial?
b.extrudeMaterial:1)})();b.arrays||(this.setIndex(q),this.addAttribute("position",new E(l,3)),this.addAttribute("uv",new E(b.arrays.uv,2)))};cb.WorldUVGenerator={generateTopUV:function(a,b,c,d,e){a=b[3*d];d=b[3*d+1];var f=b[3*e];e=b[3*e+1];return[new F(b[3*c],b[3*c+1]),new F(a,d),new F(f,e)]},generateSideWallUV:function(a,b,c,d,e,f){a=b[3*c];var g=b[3*c+1];c=b[3*c+2];var h=b[3*d],k=b[3*d+1];d=b[3*d+2];var m=b[3*e],l=b[3*e+1];e=b[3*e+2];var q=b[3*f],n=b[3*f+1];b=b[3*f+2];return.01>Math.abs(g-k)?[new F(a,
1-c),new F(h,1-d),new F(m,1-e),new F(q,1-b)]:[new F(g,1-c),new F(k,1-d),new F(l,1-e),new F(n,1-b)]}};Kc.prototype=Object.create(L.prototype);Kc.prototype.constructor=Kc;Sb.prototype=Object.create(sa.prototype);Sb.prototype.constructor=Sb;Lc.prototype=Object.create(L.prototype);Lc.prototype.constructor=Lc;lb.prototype=Object.create(J.prototype);lb.prototype.constructor=lb;Mc.prototype=Object.create(L.prototype);Mc.prototype.constructor=Mc;Tb.prototype=Object.create(J.prototype);Tb.prototype.constructor=
Tb;Nc.prototype=Object.create(L.prototype);Nc.prototype.constructor=Nc;Ub.prototype=Object.create(J.prototype);Ub.prototype.constructor=Ub;Vb.prototype=Object.create(L.prototype);Vb.prototype.constructor=Vb;Wb.prototype=Object.create(J.prototype);Wb.prototype.constructor=Wb;Xb.prototype=Object.create(J.prototype);Xb.prototype.constructor=Xb;mb.prototype=Object.create(L.prototype);mb.prototype.constructor=mb;Ua.prototype=Object.create(J.prototype);Ua.prototype.constructor=Ua;Oc.prototype=Object.create(mb.prototype);
m+Y)}(function(){var a=l.length/3;if(y){var c=0*ca;for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[2]+c,Z[1]+c,Z[0]+c);c=ca*(H+2*x);for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[0]+c,Z[1]+c,Z[2]+c)}else{for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[2],Z[1],Z[0]);for(Q=0;Q<ga;Q++)Z=N[Q],g(Z[0]+ca*H,Z[1]+ca*H,Z[2]+ca*H)}W.addGroup(a,l.length/3-a,void 0!==b.material?b.material:0)})();(function(){var a=l.length/3,c=0;e(X,c);c+=X.length;K=0;for(S=P.length;K<S;K++)L=P[K],e(L,c),c+=L.length;W.addGroup(a,l.length/3-a,void 0!==b.extrudeMaterial?b.extrudeMaterial:
1)})();b.arrays||(this.setIndex(q),this.addAttribute("position",new E(l,3)),this.addAttribute("uv",new E(b.arrays.uv,2)))};cb.WorldUVGenerator={generateTopUV:function(a,b,c,d,e){a=b[3*d];d=b[3*d+1];var f=b[3*e];e=b[3*e+1];return[new F(b[3*c],b[3*c+1]),new F(a,d),new F(f,e)]},generateSideWallUV:function(a,b,c,d,e,f){a=b[3*c];var g=b[3*c+1];c=b[3*c+2];var h=b[3*d],k=b[3*d+1];d=b[3*d+2];var m=b[3*e],l=b[3*e+1];e=b[3*e+2];var q=b[3*f],n=b[3*f+1];b=b[3*f+2];return.01>Math.abs(g-k)?[new F(a,1-c),new F(h,
1-d),new F(m,1-e),new F(q,1-b)]:[new F(g,1-c),new F(k,1-d),new F(l,1-e),new F(n,1-b)]}};Kc.prototype=Object.create(L.prototype);Kc.prototype.constructor=Kc;Sb.prototype=Object.create(sa.prototype);Sb.prototype.constructor=Sb;Lc.prototype=Object.create(L.prototype);Lc.prototype.constructor=Lc;lb.prototype=Object.create(J.prototype);lb.prototype.constructor=lb;Mc.prototype=Object.create(L.prototype);Mc.prototype.constructor=Mc;Tb.prototype=Object.create(J.prototype);Tb.prototype.constructor=Tb;Nc.prototype=
Object.create(L.prototype);Nc.prototype.constructor=Nc;Ub.prototype=Object.create(J.prototype);Ub.prototype.constructor=Ub;Vb.prototype=Object.create(L.prototype);Vb.prototype.constructor=Vb;Wb.prototype=Object.create(J.prototype);Wb.prototype.constructor=Wb;Xb.prototype=Object.create(J.prototype);Xb.prototype.constructor=Xb;mb.prototype=Object.create(L.prototype);mb.prototype.constructor=mb;Ua.prototype=Object.create(J.prototype);Ua.prototype.constructor=Ua;Oc.prototype=Object.create(mb.prototype);
Oc.prototype.constructor=Oc;Pc.prototype=Object.create(Ua.prototype);Pc.prototype.constructor=Pc;Qc.prototype=Object.create(L.prototype);Qc.prototype.constructor=Qc;Yb.prototype=Object.create(J.prototype);Yb.prototype.constructor=Yb;var Oa=Object.freeze({WireframeGeometry:Kb,ParametricGeometry:Bc,ParametricBufferGeometry:Lb,TetrahedronGeometry:Dc,TetrahedronBufferGeometry:Mb,OctahedronGeometry:Ec,OctahedronBufferGeometry:kb,IcosahedronGeometry:Fc,IcosahedronBufferGeometry:Nb,DodecahedronGeometry:Gc,
DodecahedronBufferGeometry:Ob,PolyhedronGeometry:Cc,PolyhedronBufferGeometry:qa,TubeGeometry:Hc,TubeBufferGeometry:Pb,TorusKnotGeometry:Ic,TorusKnotBufferGeometry:Qb,TorusGeometry:Jc,TorusBufferGeometry:Rb,TextGeometry:Kc,TextBufferGeometry:Sb,SphereGeometry:Lc,SphereBufferGeometry:lb,RingGeometry:Mc,RingBufferGeometry:Tb,PlaneGeometry:uc,PlaneBufferGeometry:jb,LatheGeometry:Nc,LatheBufferGeometry:Ub,ShapeGeometry:Vb,ShapeBufferGeometry:Wb,ExtrudeGeometry:cb,ExtrudeBufferGeometry:sa,EdgesGeometry:Xb,
ConeGeometry:Oc,ConeBufferGeometry:Pc,CylinderGeometry:mb,CylinderBufferGeometry:Ua,CircleGeometry:Qc,CircleBufferGeometry:Yb,BoxGeometry:Eb,BoxBufferGeometry:ib});Zb.prototype=Object.create(Ca.prototype);Zb.prototype.constructor=Zb;Zb.prototype.isShadowMaterial=!0;$b.prototype=Object.create(Ca.prototype);$b.prototype.constructor=$b;$b.prototype.isRawShaderMaterial=!0;Pa.prototype=Object.create(W.prototype);Pa.prototype.constructor=Pa;Pa.prototype.isMeshStandardMaterial=!0;Pa.prototype.copy=function(a){W.prototype.copy.call(this,
......
......@@ -26756,11 +26756,9 @@ ExtrudeBufferGeometry.prototype.addShape = function ( shape, options ) {
}
if (options.extrudeMaterial !== undefined){
scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options.extrudeMaterial : 1);
}
scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options.extrudeMaterial : 1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册