Hi,

I have a problem getting the correct volume from loaded models (load as
VRML, save as osb, load as osb)

What I do:

OSG::NodeRecPtr file = OSG::SceneFileHandler::the()->read(
filePath.toUtf8() );
file->updateVolume();
OSG::BoxVolume vol = file->getVolume();

Now  the problem: vol only has zero values for min and max. If I load
the example files provided (tie fighter) the values are ok. Any ideas?
The model looks fine, so zero bounding box can not be true...

Cheers,
Christoph

------------------------------------------------------------------------------

_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to