Re: [osg-users] modelling geodes with children?

2009-02-04 Thread Jean-Sébastien Guay
Hi Cory, In my mind, I'm equating the thing with the thing's geometry. And so if something is attached to the thing, I want the data structure to mimic that. I can understand where you're coming from, but I think keeping things separate (at least conceptually) makes them more flexible.

Re: [osg-users] modelling geodes with children?

2009-02-04 Thread Paul Martz
Are you suggesting that my root would be a group node and under that would be all the leaf nodes? I don't like that idea because it loses the hierarchy: streamer is attached to grip, grip is attached to handlebar. If I delete the grip node, the streamer should go away as well. Well, I didn't

Re: [osg-users] modelling geodes with children?

2009-02-04 Thread Cory Riddell
On Wed, Feb 4, 2009 at 10:48 AM, Paul Martz pma...@skew-matrix.com wrote: If your HandlebarNode will be used in many apps to render handlebars (I don't know, maybe you intend to make a series of bicycle simulators), then yes, maybe it is best to encapsulate it in its own class. But if you are

Re: [osg-users] modelling geodes with children?

2009-02-03 Thread Paul Martz
-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Cory Riddell Sent: Tuesday, February 03, 2009 1:09 PM To: OpenSceneGraph Users Subject: [osg-users] modelling geodes with children? I'm looking for advice on typical patterns when modeling

Re: [osg-users] modelling geodes with children?

2009-02-03 Thread Cory Riddell
[mailto: osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *Cory Riddell *Sent:* Tuesday, February 03, 2009 1:09 PM *To:* OpenSceneGraph Users *Subject:* [osg-users] modelling geodes with children? I'm looking for advice on typical patterns when modeling something that has

Re: [osg-users] modelling geodes with children?

2009-02-03 Thread Jean-Sébastien Guay
Hi Cory, It seems like I really do want a Group node with geometry. I guess my choices are to do something like your HandNode (probably using object composition rather than inheritance) or pair every Geode with a Group node. I think the image you sent is a logical arrangement. A Group (or a

Re: [osg-users] modelling geodes with children?

2009-02-03 Thread Cory Riddell
On Tue, Feb 3, 2009 at 4:43 PM, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote: I think the image you sent is a logical arrangement. A Group (or a Transform) does not itself have any geometry, it just specifies how it's children are arranged (in the case of a Transform). So yes,

[osg-users] modelling geodes with children?

2009-02-03 Thread Cory Riddell
I'm looking for advice on typical patterns when modeling something that has attachments (which may in turn have other attachments). I first looked for a node type that was a composition of Geode and Group but of course I didn't find anything. An example might help here. Say I want to model