I tried
geo->invalidateVolume();
geo->updateVolume();
commitChanges();
It didn't make anything better.
The file was created using VRED, but I am not sure about the version and I
cannot currently access the computer it was generated on. I suppose it was
version 1.xx, which is probably using OSG 1.x
I will try using the newest version of VRED to load and save the file again.
Maybe that fixes the problem.
Thanks for your help so far.
Patrick
>
> Hi,
>
> one question, the osb file is generated with OSG 2.x or OSG 1.x ?
>
> On Thu, 2009-09-10 at 13:26 +0200, Patrick Charrier wrote:
>> Hi,
>>
>> I'm kinda new to this, but I think I encountered a bug in the
>> osb-file-loader in OpenSG 2.0 compiled with MSVC2008.
>>
>> In short:
>> NodeRecPtr geo = SceneFileHandler::the()->read("quadscaled.osb");
>
> and a comment, could you try to call
>
> osg::commitChanges()
>
> here.
>
>> geo->updateVolume();
>> BoxVolume volume = geo->getVolume();
>> Vec3f min,max,center;
>> volume.getBounds(min,max);
>> volume.getCenter(center);
>> Vec3f bBoxDiagonal = max - min;
>>
>
> kind regards,
> gerrit
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users