you also can use a plane
loop over vertexes and pass to SkinExtrude
[[planeoutervertexes],[planeoutervertexes scaled]]
and add second plane scaled
but best way is simply make your own primitive
Fabrice
On Oct 28, 2009, at 4:34 PM, Peter Kapelyan wrote:
You can do the same as tain said, with the cube, if you find out
which 4 vertices are the top ones, and then something like
myCube.vertices[number].x*=.7;//or some number
myCube.vertices[number].z*=.7;//or some number
Something like that should work.
-Pete
On Wed, Oct 28, 2009 at 11:17 AM, tain <[email protected]> wrote:
trapeziod? http://en.wikipedia.org/wiki/Trapezoid
create a plane and modify first two vertices (modify trough Array
"plane.vertices")
hth
:)
On Oct 28, 12:45 pm, jordi monty <[email protected]> wrote:
> Hi, I need to create a 3D trapezoid by code. Is there a way to
create
> a Cube and then modify some of its vertex? I think it's possible,
but
> I'm newbie in away3d.
>
> Thanks!
--
___________________
Actionscript 3.0 Flash 3D Graphics Engine
HTTP://AWAY3D.COM