2.8 branch: osgconv support for --use-world-frame, from Ryan Pavlik, with tweak by Robert Osfield.

This commit is contained in:
Paul MARTZ
2011-05-27 14:17:23 +00:00
parent fe40f0b9a4
commit 6ceb0a8f87
3 changed files with 31 additions and 6 deletions

View File

@@ -478,6 +478,9 @@ static void usage( const char *prog, const char *msg )
" where X, Y, and Z represent the coordinates of the\n"
" absolute position in world space\n"
<< std::endl;
osg::notify(osg::NOTICE)<<" --use-world-frame - Perform transformations in the world frame, rather\n"
" than relative to the center of the bounding sphere.\n"
<< std::endl;
osg::notify(osg::NOTICE)<<" --simplify n - Run simplifier prior to output. Argument must be a" << std::endl
<<" normalized value for the resultant percentage" << std::endl
<<" reduction." << std::endl
@@ -591,6 +594,11 @@ int main( int argc, char **argv )
OrientationConverter oc;
bool do_convert = false;
if (arguments.read("--use-world-frame"))
{
oc.useWorldFrame(true);
}
std::string str;
while (arguments.read("-O",str))
{