From 36338eeeef1b5e04bd5b2b706bf2a4e70fe2429a Mon Sep 17 00:00:00 2001 From: alteredq Date: Wed, 30 Nov 2011 12:12:39 +0100 Subject: [PATCH] Tweaked and renamed geometry extrude examples. --- build/Three.js | 14 +++--- build/custom/ThreeExtras.js | 14 +++--- ...erial.html => webgl_geometry_extrude.html} | 48 ++++++++++++------- 3 files changed, 45 insertions(+), 31 deletions(-) rename examples/{webgl_extrude_material.html => webgl_geometry_extrude.html} (78%) diff --git a/build/Three.js b/build/Three.js index cd3dea02..3cf7cff6 100644 --- a/build/Three.js +++ b/build/Three.js @@ -507,13 +507,13 @@ z=new THREE.UV(t.u,1),this.faces.push(new THREE.Face3(c,o,p,[q,n,s])),this.faceV THREE.ExtrudeGeometry=function(a,b){if(typeof a!=="undefined"){THREE.Geometry.call(this);var a=a instanceof Array?a:[a],c,d=a.length,e;this.shapebb=a[d-1].getBoundingBox();for(c=0;ca&&(a+=Math.PI*2),a=(b+a)/2,new THREE.Vector2(-Math.cos(a),-Math.sin(a));return d.multiplyScalar(g).addSelf(h).subSelf(a).clone()}function e(a){for(y=a.length;--y>=0;){Z=y;da=y-1;da<0&&(da=a.length-1);for(var b= -0,c=m+j*2,b=0;b=0;$--){Q=$/j;Y=i*(1-Q);Q=k*Math.sin(Q*Math.PI/2);y=0;for(K=u.length;y=0;$--){Q=$/j;Y=i*(1-Q);Q=k*Math.sin(Q*Math.PI/2);y=0;for(K=u.length;y< +K;y++)S=c(u[y],W[y],Q),f(S.x,S.y,h+Y);D=0;for(B=p.length;Da&&(a+=Math.PI*2),a=(b+a)/2,new THREE.Vector2(-Math.cos(a),-Math.sin(a));return d.multiplyScalar(f).addSelf(h).subSelf(a).clone()}function e(a){for(v=a.length;--v>=0;){L=v;I=v-1;I<0&&(I=a.length-1);for(var b= -0,c=m+j*2,b=0;b=0;F--){C=F/j;K=i*(1-C);C=k*Math.sin(C*Math.PI/2);v=0;for(E=s.length;v=0;F--){C=F/j;K=i*(1-C);C=k*Math.sin(C*Math.PI/2);v=0;for(E=s.length;v