Re: [osg-users] How to define my own geometry in osgswig?

2008-11-17 Thread Gerwin de Haan
Linh, Currently in osgswig you cannot directly override osg.Drawables in the target scripting language. This is partly because we have not enabled SWIG directors for this class, which are responsible for such cross-language inheritance. Also, Drawables are pure virtual/abstract which doesn't play

Re: [osg-users] How to define my own geometry in osgswig?

2008-11-17 Thread Phan, Linh H
: Re: [osg-users] How to define my own geometry in osgswig? Linh, Currently in osgswig you cannot directly override osg.Drawables in the target scripting language. This is partly because we have not enabled SWIG directors for this class, which are responsible for such cross-language inheritance

[osg-users] How to define my own geometry in osgswig?

2008-11-16 Thread Phan, Linh H
Hi, I was wondering if it's possible to draw my own geometry in osgswig, eg something like: import osg, osgViewer class MyCube(osg.Drawable): def __init__(self): osg.Drawable.__init__(self); # AttributeError: No constructor defined def drawImplementation(self, state):