2.8 branch: osgconv support for --use-world-frame, from Ryan Pavlik, with tweak by Robert Osfield.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user