Perfect. Works like a charm.

Thank you muchly. ;)





On Sep 17, 8:33 am, Darcey Lloyd <[email protected]> wrote:
> I'm guessing this is the effect you are 
> getting:http://www.allforthecode.co.uk/development/away3d/on_dev/02.swf
>
> <http://www.allforthecode.co.uk/development/away3d/on_dev/02.swf>and this is
> an approximation of effect you 
> want:http://www.allforthecode.co.uk/development/away3d/on_dev/04.swf
>
> Loop through the vertices of the plane creating triangles from each of the
> vertices then work with these.
>
> Posted on 
> here:http://groups.google.com/group/away3d-dev/browse_thread/thread/56b416...
>
> So something like:
>
> plane = *new* Plane();
>
> plane.width = 300;
>
> plane.height = 300;
>
> plane.bothsides = *true*;
>
> plane.segmentsH = 2;
>
> plane.segmentsW = 2;
>
> *var* mat:WireframeMaterial = *new* WireframeMaterial(0x000000);
>
> plane.material = mat;
>
> view.scene.addChild(plane);
>
>  *var* nTriangleCount:Number = 0;
>
> *for* *each* (*var* f:Face *in* plane.faces)
>
> {
>
> nTriangleCount++
>
> *trace*(*"Triangle "* + nTriangleCount);
>
> *trace*(*"\t"* + *"Vertex point 1: "* + f.v0.toString());
>
> *trace*(*"\t"* + *"Vertex point 2: "* + f.v1.toString());
>
> *trace*(*"\t"* + *"Vertex point 3: "* + f.v2.toString());
>
> *trace*(*""*);
>
> *var* m:ColorMaterial = *new* ColorMaterial((Math.random()*100000));
>
> *var* t:Triangle = *new* Triangle();
>
> t.bothsides = *true*;
>
> t.a = f.v0;
>
> t.b = f.v1;
>
> t.c = f.v2;
>
> view.scene.addChild(t);
>
> }
>
> On 17 September 2010 14:22, Revalis <[email protected]> wrote:
>
>
>
> > Suppose I should mention I am using the latest build of Away3D, not
> > lite.- Hide quoted text -
>
> - Show quoted text -

Reply via email to