To change the drawable bounding box you either need to change the actual
geometry, or you need to add a callback to override the computebound method
behavior. Search the osg code for ComputeBoundingBoxCallback.

Brian

[EMAIL PROTECTED] wrote: -----


To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org>
From: Ulrich Hertlein <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 02/22/2008 11:48PM
Subject: Re: [osg-users] Setting BoundingBox

Renan Mendes wrote:
>        "2 overloads have no legal conversion for 'this' pointer"
> ...
> (drawable->getBound()).set(-COMPRIMENTO - 0.1, -LARGURA - 0.1,
> -ESPESSURA - 0.1,
>                                          COMPRIMENTO + 0.1, LARGURA +
> 0.1, ESPESSURA + 0.1); // constants in capital letters
>
>         Anyone could explain to me what's happening?

The osg::Drawable::getBound() is const, so you cannot modify the bounding
box
returned to you.

What are you trying to achieve? Maybe you're using the bounding box for
something it's not intended to do (or something that's just wrong usage of
the API).

If you would give some more information it would be easier to solve the
problem.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to