thanks :)
On 29 touko, 17:01, themightyatom <[email protected]> wrote: > Example with source > code.http://videometry.blogspot.com/2011/04/wave-modifier.html > > On May 29, 3:48 pm, Michael Iv <[email protected]> wrote: > > > > > > > > > Dude, the vertices ARE in fact numbers.Each vertex is a represented by 3 > > numbers for x,y and z packed usually into Vector3D object.I* can't recall > > how it looks inside geometry.vertices.length(If the vertices is the vector > > of numbers or Vector3Ds )but it doesn't matter.If you have a vector of > > numbers like vertex buffer that looks like this : > > 0.1,2.3,0.4,4.5,2.5,5.223,12.2,1.4,5.12 that means you have got 3 vertices > > which are: > > 0.1,2.3,0.4-vertex 1 > > > 4.5,2.5,5.223-vertex 2 > > > 12.2,1.4,5.12-vertex3 > > > They form a triangle. > > > Grab those numbers and do what you need. > > > On Sun, May 29, 2011 at 4:38 PM, timovirtanen <[email protected]> wrote: > > > How can I access object vertices? What I want to do is manipulate > > > every vertices y position independently. > > > > Here is how I did it before: > > > for(var i:int = 0 ; i < geometry.vertices.length ; i++) { > > > ... > > > } > > > > And here is what I've tried with broomstick: > > > > var sg : SubGeometry = geometry.subGeometries[0]; > > > for(var i : int = 0 ; i < sg.numVertices ; i++) > > > { > > > sg.vertexData[i] = Math.cos(_shift + _period) * _amplitude; > > > } > > > sg.updateVertexData(sg.vertexData); > > > > I quite confused because the vertexData vector doesn't contain > > > vertices, but infact numbers?????? > > > -- > > Michael Ivanov ,Programmer > > Neurotech Solutions Ltd. > > Flex|Air |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.net > > Tel:054-4962254 > > [email protected] > > [email protected]
