Hi Felix,

There isn't any support for managing spatial layouts in the OSG.  This
is rather an open ended and application specific topic that would be
very difficult for the OSG to support in any general way, so it
doesn't try.

Robert.

On Fri, Mar 28, 2008 at 12:56 PM, Felix Bwire <[EMAIL PROTECTED]> wrote:
> Hi Robert,
> Thanks very much for that. Actually all I needed was about the spatial
> layout of a graph. My other question is, does one have to code this on their
> own or is it possible to extend osg with an algorithm so as to achieve this.
> How can osg be extended with an algorithm that gives a graph the desired
> spatial layout?
>
> Thanx,
> Felix
>
>
>
> On Fri, Mar 28, 2008 at 12:38 PM, Robert Osfield <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Felix,
> >
> > The OSG itself is basic a tree data structure.  You can't have any
> > cycles in it without introducing special traversal counts to break
> > recursion beyond a particular level - this isn't something the OSG
> > supports out the box, but you could write a callback to do it.
> >
> > But.. if you are just talking about spatial layout rather than data
> > structures then yes you can lay it out any how you want.  If you want
> > different parts of the scene graph to geometrically relate to each
> > other then its down to the developer to add this, but this is very
> > much app developers task rather something core to the scene graph.
> >
> > Robert.
> >
> >
> >
> >
> > On Fri, Mar 28, 2008 at 6:24 AM, Felix Bwire <[EMAIL PROTECTED]> wrote:
> > > Hi there,
> > > Given a graph in osg, is it possible to extend osg with layout
> algorithms so
> > > that the graph can be given another structure, such as the tree like
> > > structure or cyclic or hyperbolic or clustering of nodes. I know there
> are
> > > algorithms that can do that, but can they be used to extend osg? If it
> is
> > > possible, how can it be done?
> > > _______________________________________________
> > >  osg-users mailing list
> > >  [email protected]
> > >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > >
> > >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
>
>
> _______________________________________________
>  osg-users mailing list
>  [email protected]
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to