[Papervision3D] as3 for each randomization
xero
xero.nu at gmail.com
Wed Jul 18 16:12:35 EDT 2007
hey list.
this isnt exactly a pv3d question
but it is related to a pv3d project,
so here goes...
im using flex actionscript3... i got a
foreach (var i:* in object.geomerty.vertices) {
//do stuff
}
this loop takes me threw the vertices in
their numeric order (from top to bottom i think)
i was woundering if their was a way to randomize
this, but still hit all the vertices. i was using a
multi-level array, and could have used array.sort
but then i found out about the i.extra = {1=bla, 2=bla, 3=bla};
which is much faster w/ a foreach...
any ideas?
thanx again guys
____ ___
\ \/ /___________ ____
.\ // __ \_ __ \/ _ \
./ \ ___/| | \( <_> )
/___/\ \___ >__|---\____/
| \_/ \/ |
| xero harrison |
| x at xero.nu |
| http://xero.nu |
| http://fontvir.us |
| http://xero.owns.us |
`---------------------'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070718/320078a9/attachment.html
More information about the Papervision3D
mailing list