pokemon yiff art wedding invitations wording samples in spanish online melbourne chat sample student resume cigarette brands nicotine content t shirt printing machine for sale google earth free download sawgrass mills mall directory map evil desktop themes mercedes benz parts diagrams download dragonball game pontiac g8 gxp for sale used subwoofer wiring diagram crutchfield download balkan download gamecube emulator mac salary calculator pocket tanks deluxe download mac check engine mitsubishi eclipse of land pollution 3d kitchen design software flashget download mercury outboard serial identification free ball licking movies happy jesus song download the fuji viewer wine enthusiast coupon codes salary of professional athletes free pron movies radio flyer scooter target minivan rental orlando florida drug ultram mozzila slo download harley davidson sportster parts accessories nikon coolpix l100 10mp digital camera review nikon d3000 dslr camera price vintage cigarette cases for women scheduling software paige jeans funny quotes from movies hangover levitra clinical trials online pharmacy phentermine xenical hair cuttery coupons printable downloadable dbz computer games mitsubishi lancer evolution x body kits digital camera reviews canon powershot sx120 cheap usb flash drives bulk rpg maker xp download free full costumes for cats musical guitar pro 5 free download torrent furniture warehouse san diego kearny mesa autodesk revit architecture 2010 crack rapidshare antares auto tune mac crack winter olympics locations history glass pipes and bongs for sale honeymoon packages in india with prices free website builder for mac os x free animated powerpoint backgrounds subwoofer reviews home audio pizza hut menu and price list rolex watches for men uk yamaha atv parts diagrams free models download kia sorento 2011 reviews weather channel radar florida mitsubishi electric mr slim air conditioning atheros ar5005g wireless network adapter driver xp camera reviews nikon coolpix s203 used toyota tacoma prerunner double cab for sale family cruises deals 2010 honda generators for sale used laminate kitchen countertops belkin n1 wireless router setup guide egyptian symbols alphabet malayalam movies 2009 watch online autodesk sketchbook pro 2010 mac torrent dell printer drivers for mac os x big trucks parking games fruity loops download golf magazine top 100 courses you can play nintendo dsi xl reviews bmw x5 repair manual haircuts fine hair free 2d animation software for beginners 1999 chrysler sebring convertible problems hyundai sonata 2011 pictures shu uemura art of hair autodesk inventor 2010 student download movies on demand brighthouse list snow white and the seven dwarfs story online 2010 subaru forester xt limited review tattoos designs for men free dvd release schedule 2010 wireless g usb network adapter driver download mitsubishi tv remote codes free nintendo 64 emulators for mac funny pictures of people with no teeth bluetooth dongle software download vista gps reviews consumer reports hyundai sonata 2011 prices samsung lcd tv problems no picture plants vs zombies free download full version mac samsung omnia apps free download honda crv maintenance schedule 2004 microsoft flight simulator x demo crack honda civic type r for sale in us race v3 download playstation network card numbers for free flowers by zoe website wine country gift baskets coupon code free shipping xbox live gold subscription trial generator atheros ar5007eg wireless network adapter vista driver rpg maker xp keygen download cool desktop backgrounds for macbook football for dummies positions roses department store employment camcorders for sale uk flashget for mac free download honda civic 2010 pictures uae download sim city full toyota gas pedal recall list free flight simulator games online mattress factory direct post wedding reception invitation wording examples jeep cherokee accessories rpg maker vx resources battlers sony vegas 9 torrent mininova dvd decrypter download mac jewelry exchange reviews tustin nissan leaf release date honda crv parts used genuine subaru parts online harley davidson dealers in california hp compaq presario v5000 memory laminate wood flooring stairs active desktop calendar download free nintendo ds roms download professor layton playstation network card numbers rolex oyster perpetual datejust prices spanish music lyrics for free cable modem hack comcast original xbox live codes for free windowblinds serial red pubic hair japanese dating sim games ds free download full poker nikon d90 prices dubai sof2 wallhack download snowflake patterns to cut out for kids doctor serial number compaq laptops drivers cq40 kode gta san download bmw x6 reviews pinewood derby templates 2003 bmw m3 convertible hardtop star wars download jeep grand cherokee srt8 for sale in texas vadivel comedy download mud tires for sale cheap download pokemon game on pc mitsubishi lancer evolution x wallpaper female shaving pubic hair volkswagen cc reviews 2010 genuine microsoft software download windows click 1979 volkswagen beetle convertible for sale soccer practice drills honda generators prices in pakistan autodesk maya 2010 serial number and product key isuzu trooper diesel craigslist windows digital desktop background siding brake video down jackets for tall women xnxx flash jeep grand cherokee laredo 2000 manual rolex submariner used fonts calibri download replica handbags flight simulator 2004 demo free download w200i games free download download indian video songs conexant modem drivers for xp sony vegas 9 keygen serial flash player for mac snow leopard kaspersky internet key generator cowgirl boots for women cheap samsung eternity applications free download autodesk autocad 2010 torrent download winter olympics 2010 hockey bonzi download compaq presario v6000 wireless driver download winter olympics 2010 hockey teams download antares autotune 5 free download igra nfs subaru impreza outback sport forum cigarette prices by state map xbox live gold membership card 12 months buttmans art gallery youtube to mp3 converter for mac os x free download avid liquid linux mint 8 usb bootable dvd43 64 bit windows 7 virtual dj software download free full version warcraft 2 cheat codes small tattoos for girls on feet plants vs zombies free full version download link samsung i8000 omnia 2 reviews cricket flash games free download for pc evening dresses to buy online hindi movies released in 2009 list mobile phone free nintendo ds emulator download for pc camping checklist excel xbox live gold code generator download belkin wireless g usb network adapter driver download atheros ar928x wireless network adapter driver windows 7 hair gallery free flash hair photos hentai sim game tonya harding honeymoon video beowulf the movie monster trucks games for kids online download winzip incest chat rooms free rated movie clips honda accord body kit racer v3 download music player download for nokia 3110c enclosure subwoofer box dangerous dave download hot cartoon games lolita art handbags outlet online nudist art watch hindi movies free online without downloading msn account cracker download program football manager training schedules 2010 pictures of pubic hair styles download titans free oompa loompa costumes restaurant organizational chart met art underwear models photos play for free slot machine design your own wedding dress virtual antivirus bit torrent guild keygen inflation game adobe flash player for iphone safari dresses to wear to a wedding as a guest halo download mugen download microsoft office phone activation code keygen als scan download combofix mazda 626 manual book women their pubic hair black movies gamecube isos direct download marketing sample download free counter strike cd key nikon d40 kit refurbished at work brazzer hairstyles for women over 50 years old pictures free software downloads for blackberry curve 8520 printable viagra coupon lavetria plus size bra sony handycam dcr 30 driver vista tifa flash antivirus free download key gen sony vegas 9 serial number generator free download tamil mp3 songs download entrance theme adobe cs2 serial number activation code kaspersky keyboard symbol art download microsoft frontpage skype emoticons art happy birthday ubuntu smb password small bathroom remodeling ideas pictures free guitar pro download full version suzuki kizashi forum pizza hut delivery number malaysia dvdfab platinum 6 keygen dating rpg games online compaq evo drivers downloads dvdfab 6 registration key torrent malayalam movies free online watch famous graffiti artists list nokia 3110c music player download free slow down flash games freeware gamecube roms zelda the wind waker snow patrol chasing cars mp3 4shared opel astra parts catalog volkswagen beetle convertible for sale used guitar pro tabs free download summer fashion internships for high school students in nyc honda fit 2009 owners manual pdf opel astra wagon 2010 flash games index swf iskysoft dvd ripper for mac serial number autodesk maya 2010 crack nudity games compaq presario v2000 drivers skype download for blackberry curve 8900 compaq presario v6000 drivers for xp download porsche cayenne reliability 2004 warcraft 3 frozen throne torrent download free buy vans shoes online cheap desi movies watch online free kawasaki mule 3010 service manual dating sim rpg games for girls boeing 747 flight simulator games online windows server 2008 activation crack download toyota recall list of cars samsung cdma mobile phones microsoft points and xbox live gold membership generator sony vegas 9 keygen digital insanity tattoo ideas for men leg summer 2010 internships nintendo gamecube roms free download warcraft 3 download full game torrent best juice fasting recipes delta airlines flight attendant jobs rolex datejust oyster perpetual price wedding dresses for sale second hand flight simulator 2004 free download full version free skype video recorder for mac samsung led tv 6000 best settings sister wedding invitation wordings india miniclip flash games free download for pc kia sportage 2010 review hindu wedding card invitation wordings jacket sewing patterns free funny wedding invitation wording examples nokia 6300 music player download free best snow leopard hackintosh netbook porsche cayenne hybrid release date winterbells no sound dvd shrink for vista 64 bit download guitar pro 5 free download with crack 48 hour xbox live codes generator winterbells full screen game dvd shrink free download windows 7 volkswagen beetle for sale by owner watch movies online streaming megavideo sony vegas movie studio 9 platinum keygen warcraft 3 torrent limewire extended pro free download car battery trickle charger reviews gamecube emulator for psp satellite tv for pc 2009 titanium edition crack ar rehman video download compaq presario f700 drivers download nismo nissan skyline r34 gtr z tune for sale transparent desktop calendar freeware rpg maker vx activation code motorcycle superstore coupon 20 off chrysler town and country commercial music dvdfab 6 crack code dvd43 windows 7 compatible equipment rental agreement template free flight simulator x deluxe edition download volkswagen parts catalog online desktop themes for mac os x leopard xbox 360 hard drive transfer disc iso compaq presario c700 drivers malayalam movies free online watching snowboard boots reviews 2010 compaq presario drivers c500 samsung led tv 6000 problems xbox live gold membership codes free marlboro cigarette prices in north carolina isuzu trooper engine rebuild dvdfab 6 registration key free software testing tutorial pdf burton snowboard boots clearance famous quotes about life lessons bluetooth hack software nokia samsung omnia apps torrent samsung moment battery life issues sony ericsson k550i mazda miata parts diagram morgan movies compaq presario sound drivers free download soccer poems download vga for windows xp live satellite view of my house free t shirt gallery facebook bypass proxy server download full version gta3 birthday cake templates satellite view of my house real time nokia maps code hack ford motor company recalls 2009 cigarette lighting misa photoshoot download samsung impression apps free igre za mobitel download battery charger circuit schematic coolest desktop theme account cracker free download offline rpgs for pc sagem unlock codes mazda 626 timing belt monitor repair manual aurora snow flash flash revolution resonance take off my bra desktop destroyer 2 game moto racer download download dat mcafee update wow armory ensidia skinhead tattoo galleries free online templates for business cards free fretwork scroll saw patterns nature art gallery clips pants off dance off unedited sunny download free applications for mobile phones compaq evo drivers d51c games in eboot zip files tattoo magazines caribbean cruise line bahamas celebration scam youtube headshave golf gps comparison reviews download habbo hack mercedes 300sl gullwing sofa beds for sale ikea repossessed cars for jeeps for sale in pa pictures of highlighted hair download klm caribbean cruise line free cruise voucher lingerie models nude clothes steamer comparison norton antivirus code mms jamshedpur schools warcraft armory blackberry download pokemon ruby version wedding invitations wording samples microsoft security center antivirus override free antivirus for p3300 rpg maker vx sprite generator micro download keyboard symbols pictures sign in sheet templates free program templates download inspirat free wet t shirt wedding invitation wording templates soccer bulge current job vacancies in nigeria cashman slot donkey pc full download replica toy guns for sale i a japanese game show house of brides free powerpoint templates business free game download guitar chord chart for beginners antivirus plus v10 license key marathi download how to yourself a blow job free download form defend your castle flash game autoplay removal tool john mccain official website download san andreas where i download simtractor free free pantyhose movies samsung unlock codes fuse box diagram dodge dakota hidden games completly free avast antivirus free software sissy husband dress armpit hair galleries programi download glasbe free honda atv manuals online vista 64bit sony drivers bust move free download the perfume movie download spam list sign up software architecture design document sample contract template xbox 360 60gb hard drive transfer cable live satellite images of my house free buy rohypnol online ancient egypt food recipes for kids sony outlet short funny jokes one liners email marketing software freeware adobe raider download new marathi movies watch online student examples of letter writing flight simulator x acceleration expansion pack rapidshare cheap replica chanel designer handbags stronghold download compaq presario c700 drivers for vista free download certificate templates autodesk revit mep 2010 training compaq presario v6000 drivers download sample birth certificate nintendo ds emulator download for pc free sissy dress battery warehouse direct reviews compaq presario c700 hard drive replacement kalonline download t shirt printing machines for sale uk mazda protege free repair manuals dvdfab 6 registration key generator torrent nintendo ds roms torrent download wedding dance by amador daguio sony cybershot dsc s930 digital camera price in india free agenda templates summary of trojan war


Monthly Archive for August, 2009

Papervision 3D Controlling Top and Bottom Cylinder Materials

custom-materials-cylinder
While working on a project this morning I came across the need to have a different material applied to a primitive cylinder. After digging through the Cylinder source code I came across these lines

Actionscript:
  1. if (fBottomFace) aFace.push( new Triangle3D(this, [aP1, aP3, aP2], matInstance, [aP1uv, aP3uv, aP2uv]) );
  2.  
  3. //and
  4.  
  5. if (fTopFace) aFace.push( new Triangle3D(this, [aP1, aP2, aP3], matInstance, [aP1uv, aP2uv, aP3uv]));

Since matInstance is just a material it can easily be replaced. I was in a hurry so I decided to just directly modified the class; not the greatest idea but it worked.

Actionscript:
  1. if (j == 0) {
  2.     if(bottomMat)
  3.     {
  4.         if (fBottomFace) aFace.push( new Triangle3D(this, [aP1, aP3, aP2], bottomMat, [aP1uv, aP3uv, aP2uv]) );
  5.     }
  6.     else
  7.     {
  8.         if (fBottomFace) aFace.push( new Triangle3D(this, [aP1, aP3, aP2], matInstance, [aP1uv, aP3uv, aP2uv]) );
  9.     }
  10.    
  11. }
  12. else
  13. {
  14.    
  15.     if(topMat)
  16.     {
  17.         if (fTopFace) aFace.push( new Triangle3D(this, [aP1, aP2, aP3], topMat, [aP1uv, aP2uv, aP3uv]));
  18.    
  19.     }
  20.     else
  21.     {
  22.         if (fTopFace) aFace.push( new Triangle3D(this, [aP1, aP2, aP3], matInstance, [aP1uv, aP2uv, aP3uv]));
  23.     }
  24. }

Here is the new way to create the Cylinder:

Actionscript:
  1. var cyl:Cylinder = new Cylinder(new ColorMaterial(0x000000),200,900,5,20,200,true,true,new ColorMaterial(0x8ad51f),new ColorMaterial(0x00FF00));

Here is the full modified Papervision Cylinder.as class:

Actionscript:
  1. package org.papervision3d.objects.primitives {
  2.     import org.papervision3d.Papervision3D;
  3.     import org.papervision3d.core.geom.*;
  4.     import org.papervision3d.core.geom.renderables.Triangle3D;
  5.     import org.papervision3d.core.geom.renderables.Vertex3D;
  6.     import org.papervision3d.core.math.NumberUV;
  7.     import org.papervision3d.core.proto.*; 
  8.  
  9.     /**
  10.     * The Cylinder class lets you create and display Cylinders.
  11.     * <p/>
  12.     * The Cylinder is divided in vertical and horizontal segment, the smallest combination is two vertical and three horizontal segments.
  13.     */
  14.     public class Cylinder extends TriangleMesh3D
  15.     {
  16.         /**
  17.         * Number of segments horizontally. Defaults to 8.
  18.         */
  19.         public var segmentsW :Number;
  20.    
  21.         /**
  22.         * Number of segments vertically. Defaults to 6.
  23.         */
  24.         public var segmentsH :Number;
  25.    
  26.         /**
  27.         * Default radius of Cylinder if not defined.
  28.         */
  29.         static public const DEFAULT_RADIUS :Number = 100;
  30.    
  31.         /**
  32.         * Default height if not defined.
  33.         */
  34.         static public const DEFAULT_HEIGHT :Number = 100;
  35.    
  36.         /**
  37.         * Default scale of Cylinder texture if not defined.
  38.         */
  39.         static public const DEFAULT_SCALE :Number = 1;
  40.    
  41.         /**
  42.         * Default value of gridX if not defined.
  43.         */
  44.         static public const DEFAULT_SEGMENTSW :Number = 8;
  45.    
  46.         /**
  47.         * Default value of gridY if not defined.
  48.         */
  49.         static public const DEFAULT_SEGMENTSH :Number = 6;
  50.    
  51.         /**
  52.         * Minimum value of gridX.
  53.         */
  54.         static public const MIN_SEGMENTSW :Number = 3;
  55.    
  56.         /**
  57.         * Minimum value of gridY.
  58.         */
  59.         static public const MIN_SEGMENTSH :Number = 1;
  60.    
  61.         public var topFace
  62.         // ___________________________________________________________________________________________________
  63.         //                                                                                               N E W
  64.         // NN  NN EEEEEE WW    WW
  65.         // NNN NN EE     WW WW WW
  66.         // NNNNNN EEEE   WWWWWWWW
  67.         // NN NNN EE     WWW  WWW
  68.         // NN  NN EEEEEE WW    WW
  69.    
  70.         /**
  71.         * Create a new Cylinder object.
  72.         * <p/>
  73.         * @param    material    A MaterialObject3D object that contains the material properties of the object.
  74.         * <p/>
  75.         * @param    radius    [optional] - Desired radius.
  76.         * <p/>
  77.         * @param    segmentsW   [optional] - Number of segments horizontally. Defaults to 8.
  78.         * <p/>
  79.         * @param    segmentsH   [optional] - Number of segments vertically. Defaults to 6.
  80.         * <p/>
  81.         * @param    topRadius   [optional] - An optional parameter for con- or diverging cylinders.
  82.         * <p/>
  83.         * @param    topFace  [optional] - An optional parameter specifying if the top face of the cylinder should be drawn.
  84.         * <p/>
  85.         * @param    bottomFace  [optional] - An optional parameter specifying if the bottom face of the cylinder should be drawn.
  86.         * <p/>
  87.         */
  88.         public function Cylinder( material:MaterialObject3D=null, radius:Number=100, height:Number=100, segmentsW:int=8, segmentsH:int=6, topRadius:Number=-1, topFace:Boolean=true, bottomFace:Boolean=true,topMat:MaterialObject3D = null ,bottomMat:MaterialObject3D = null)
  89.         {
  90.             super( material, new Array(), new Array(), null );
  91.    
  92.             this.segmentsW = Math.max( MIN_SEGMENTSW, segmentsW || DEFAULT_SEGMENTSW); // Defaults to 8
  93.             this.segmentsH = Math.max( MIN_SEGMENTSH, segmentsH || DEFAULT_SEGMENTSH); // Defaults to 6
  94.             if (radius==0) radius = DEFAULT_RADIUS; // Defaults to 100
  95.             if (height==0) height = DEFAULT_HEIGHT; // Defaults to 100
  96.             if (topRadius==-1) topRadius = radius;
  97.    
  98.             var scale :Number = DEFAULT_SCALE;
  99.    
  100.             buildCylinder( radius, height, topRadius, topFace, bottomFace,topMat,bottomMat );
  101.         }
  102.    
  103.         private function buildCylinder( fRadius:Number, fHeight:Number, fTopRadius:Number, fTopFace:Boolean, fBottomFace:Boolean ,topMat:MaterialObject3D,bottomMat:MaterialObject3D):void
  104.         {
  105.             var matInstance:MaterialObject3D = material;
  106.            
  107.             var i:Number, j:Number, k:Number;
  108.    
  109.             var iHor:Number = Math.max(MIN_SEGMENTSW, this.segmentsW);
  110.             var iVer:Number = Math.max(MIN_SEGMENTSH, this.segmentsH);
  111.             var aVertice:Array = this.geometry.vertices;
  112.             var aFace:Array = this.geometry.faces;
  113.             var aVtc:Array = new Array();
  114.             for (j=0;j<(iVer+1);j++) { // vertical
  115.                 var fRad1:Number = Number(j/iVer);
  116.                 var fZ:Number = fHeight*(j/(iVer+0))-fHeight/2;//-fRadius*Math.cos(fRad1*Math.PI);
  117.                 var fRds:Number = fTopRadius+(fRadius-fTopRadius)*(1-j/(iVer));//*Math.sin(fRad1*Math.PI);
  118.                 var aRow:Array = new Array();
  119.                 var oVtx:Vertex3D;
  120.                 for (i=0;i<iHor;i++) { // horizontal
  121.                     var fRad2:Number = Number(2*i/iHor);
  122.                     var fX:Number = fRds*Math.sin(fRad2*Math.PI);
  123.                     var fY:Number = fRds*Math.cos(fRad2*Math.PI);
  124.                     //if (!((j==0||j==iVer)&&i>0)) { // top||bottom = 1 vertex
  125.                     oVtx = new Vertex3D(fY,fZ,fX);
  126.                     aVertice.push(oVtx);
  127.                     //}
  128.                     aRow.push(oVtx);
  129.                 }
  130.                 aVtc.push(aRow);
  131.             }
  132.             var iVerNum:int = aVtc.length;
  133.    
  134.             var aP4uv:NumberUV, aP1uv:NumberUV, aP2uv:NumberUV, aP3uv:NumberUV;
  135.             var aP1:Vertex3D, aP2:Vertex3D, aP3:Vertex3D, aP4:Vertex3D;
  136.    
  137.             for (j=0;j<iVerNum;j++) {
  138.                 var iHorNum:int = aVtc[j].length;
  139.                 for (i=0;i<iHorNum;i++) {
  140.                     if (j>0&&i>=0) {
  141.                         // select vertices
  142.                         var bEnd:Boolean = i==(iHorNum-0);
  143.                         aP1 = aVtc[j][bEnd?0:i];
  144.                         aP2 = aVtc[j][(i==0?iHorNum:i)-1];
  145.                         aP3 = aVtc[j-1][(i==0?iHorNum:i)-1];
  146.                         aP4 = aVtc[j-1][bEnd?0:i];
  147.                         // uv
  148.                         var fJ0:Number = j    / iVerNum;
  149.                         var fJ1:Number = (j-1)  / iVerNum;
  150.                         var fI0:Number = (i+1)  / iHorNum;
  151.                         var fI1:Number = i    / iHorNum;
  152.                         aP4uv = new NumberUV(fI0,fJ1);
  153.                         aP1uv = new NumberUV(fI0,fJ0);
  154.                         aP2uv = new NumberUV(fI1,fJ0);
  155.                         aP3uv = new NumberUV(fI1,fJ1);
  156.                         // 2 faces
  157.                         aFace.push( new Triangle3D(this, [aP1,aP2,aP3], matInstance, [aP1uv,aP2uv,aP3uv]) );
  158.                         aFace.push( new Triangle3D(this, [aP1,aP3,aP4], matInstance, [aP1uv,aP3uv,aP4uv]) );
  159.                     }
  160.                 }
  161.                 if (j==0||j==(iVerNum-1)) {
  162.                     for (i=0;i<(iHorNum-2);i++) {
  163.                         // uv
  164.                         var iI:int = Math.floor(i/2);
  165.                         aP1 = aVtc[j][iI];
  166.                         aP2 = (i%2==0)? (aVtc[j][iHorNum-2-iI]) : (aVtc[j][iI+1]);
  167.                         aP3 = (i%2==0)? (aVtc[j][iHorNum-1-iI]) : (aVtc[j][iHorNum-2-iI]);
  168.    
  169.                         var bTop:Boolean = j==0;
  170.                         aP1uv = new NumberUV( (bTop?1:0)+(bTop?-1:1)*(aP1.x/fRadius/2+.5), aP1.z/fRadius/2+.5 );
  171.                         aP2uv = new NumberUV( (bTop?1:0)+(bTop?-1:1)*(aP2.x/fRadius/2+.5), aP2.z/fRadius/2+.5 );
  172.                         aP3uv = new NumberUV( (bTop?1:0)+(bTop?-1:1)*(aP3.x/fRadius/2+.5), aP3.z/fRadius/2+.5 );
  173.    
  174.                         // face
  175.                         if (j == 0) {
  176.                             if(bottomMat)
  177.                             {
  178.                                 if (fBottomFace) aFace.push( new Triangle3D(this, [aP1, aP3, aP2], bottomMat, [aP1uv, aP3uv, aP2uv]) );
  179.                             }
  180.                             else
  181.                             {
  182.                                 if (fBottomFace) aFace.push( new Triangle3D(this, [aP1, aP3, aP2], matInstance, [aP1uv, aP3uv, aP2uv]) );
  183.                             }
  184.                            
  185.                         }
  186.                         else {
  187.                            
  188.                             if(topMat)
  189.                             {
  190.                                 if (fTopFace) aFace.push( new Triangle3D(this, [aP1, aP2, aP3], topMat, [aP1uv, aP2uv, aP3uv]));
  191.                            
  192.                             }
  193.                             else
  194.                             {
  195.                                 if (fTopFace) aFace.push( new Triangle3D(this, [aP1, aP2, aP3], matInstance, [aP1uv, aP2uv, aP3uv]));
  196.                             }
  197.                            
  198.                            
  199.                         }
  200.                     }
  201.                 }
  202.             }
  203.             this.geometry.ready = true;
  204.            
  205.             if(Papervision3D.useRIGHTHANDED)
  206.                 this.geometry.flipFaces();
  207.         }
  208.     }
  209. }

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to StumbleUpon Stumble This Post


Follow papervision2 on Twitter

Flash and the City banner
2010 Flash And The City Speaker

RSS Feed