Re: [osg-users] modifying vertexs

2009-03-06 Thread Jim Brooks
. osg::ref_ptr mVertexs; mDrawArray = new osg::DrawArrays(osg::PrimitiveSet::POINTS,0,0); // Modify vertex array (mVertexs is in app side). mVertexs->push_back( vertex ); // Tell OSG geometry was modified. mGeometry->setVertexArray( mVertexs.get() ); mGeometry->di

Re: [osg-users] modifying vertexs

2009-03-06 Thread Brian R Hill
it written agreement or government initiative expressly permitting the use of e-mail for such purpose. • -osg-users-boun...@lists.openscenegraph.org wrote: - To: osg-users@lists.openscenegraph.org From: Jim Brooks Sent by: osg-users-boun...@lists.openscenegraph.org Date: 03/05/2009 09

Re: [osg-users] modifying vertexs

2009-03-06 Thread Robert Osfield
Hi Jim, I'm confused by your email and your code segment, so not really sure what to comment on. Robert. On Fri, Mar 6, 2009 at 2:56 AM, Jim Brooks wrote: > Found two different ways to tell OSG that vertexs were modified. > Maybe these are circumventions that aren't proper (?). > > What is the

[osg-users] modifying vertexs

2009-03-05 Thread Jim Brooks
Found two different ways to tell OSG that vertexs were modified. Maybe these are circumventions that aren't proper (?). What is the "one right way"? Call dirtyDisplayList() ? ctor() : mVertexs(new osg::Vec3Array), mDrawArray(new osg::DrawArrays( osg::PrimitiveSet::POINTS,0,0)) { }