Hi Martin,

On 31/3/09 9:20 AM, Martin Beckett wrote:
thanks - it seemed a little crude to just change the vertex data directly.

Not really crude at all.  What kind of functionality were you looking for?

To get the value:  float x = (*vertices)[0].x();
> And to modify them (*vertices)[0]._v[0] = x;

To modify vertices you can also write "(*vertices)[0].x() = x;" as well.
(Yes I also feel this looks wrong...)

/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to