Re: [osg-users] osgLua and Geometry

2007-01-10 Thread Robert Osfield
Hi Ole-Morten, On 1/10/07, Ole-Morten Duesund <[EMAIL PROTECTED]> wrote: > One thing I can suggest is a work around - to put the push_back or add > into the public interface of the the Array and then rerun genwrapper. > This is the hacky way though... Hacky way indeed. I already thought about t

Re: [osg-users] osgLua and Geometry

2007-01-09 Thread Ole-Morten Duesund
Robert Osfield wrote: > Hi Ole-Morten, > > On 1/9/07, Ole-Morten Duesund <[EMAIL PROTECTED]> wrote: >> Was afraid of that. Anyone know what'd have to be done with the >> wrappers/introspections stuff to extend it? > > I'm not familiar with the internals of genwrapper - Marco Jez's tool > for gene

Re: [osg-users] osgLua and Geometry

2007-01-09 Thread Robert Osfield
Hi Ole-Morten, On 1/9/07, Ole-Morten Duesund <[EMAIL PROTECTED]> wrote: Was afraid of that. Anyone know what'd have to be done with the wrappers/introspections stuff to extend it? I'm not familiar with the internals of genwrapper - Marco Jez's tool for generating the wrappers, so can't comment

Re: [osg-users] osgLua and Geometry

2007-01-09 Thread Ole-Morten Duesund
On 9. jan. 2007, at 17:13, Jose Luis Hidalgo wrote: Hi Ole-Morten, You are right, it is a problem of wrappers/introspection, there is no reflected method to push back vertices or I don't know it. osgLua only acts as frontend of osgIntrospection, so if something is missing is missing in lua

Re: [osg-users] osgLua and Geometry

2007-01-09 Thread Jose Luis Hidalgo
Hi Ole-Morten, You are right, it is a problem of wrappers/introspection, there is no reflected method to push back vertices or I don't know it. osgLua only acts as frontend of osgIntrospection, so if something is missing is missing in lua too. :( Cheers, Jose L. On 1/9/07, Ole-Morten Dues

[osg-users] osgLua and Geometry

2007-01-09 Thread Ole-Morten Duesund
I'm looking for a way to create a Geode via osgLua. An analogue to: osg::Geode* geode = new osg::Geode(); osg::Geometry* geometry = new osg::Geometry(); osg::Vec3Array* vertices = new osg::Vec3Array(); vertices->push_back( osg::Vec3(0.1, 0, 0.1) ); vertices->push_back( osg::Vec3(0.9, 0, 0.1