Fix was very simple - get the bounding sphere and box of the geometry. 
Expand the sphere's radius by a factor. Expand the bbox by this sphere. 
Then setInitialBound using the expanded box. Nice!

On Thursday, April 30, 2020 at 11:01:57 AM UTC-7, AndrewC wrote:
>
> Yes, good idea. That should work. I can't really override the 
> computeBoundingBox as I can't change the object hierarchy easily.
>
> On Thursday, April 30, 2020 at 10:07:16 AM UTC-7, OpenSceneGraph Users 
> wrote:
>>
>> Hi Andrew,
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/2eb37b9c-7540-4a30-a2fa-cac27c4c4dd9%40googlegroups.com.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to