|
@@ -17,7 +17,6 @@
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "mayaToEgg.h"
|
|
#include "mayaToEgg.h"
|
|
|
-#include "mayaParameters.h"
|
|
|
|
|
#include "mayaToEggConverter.h"
|
|
#include "mayaToEggConverter.h"
|
|
|
#include "config_mayaegg.h"
|
|
#include "config_mayaegg.h"
|
|
|
|
|
|
|
@@ -45,14 +44,14 @@ MayaToEgg() :
|
|
|
"Generate polygon output only. Tesselate all NURBS surfaces to "
|
|
"Generate polygon output only. Tesselate all NURBS surfaces to "
|
|
|
"polygons via the built-in Maya tesselator. The tesselation will "
|
|
"polygons via the built-in Maya tesselator. The tesselation will "
|
|
|
"be based on the tolerance factor given by -ptol.",
|
|
"be based on the tolerance factor given by -ptol.",
|
|
|
- &MayaToEgg::dispatch_none, &MayaParameters::polygon_output);
|
|
|
|
|
|
|
+ &MayaToEgg::dispatch_none, &_polygon_output);
|
|
|
|
|
|
|
|
add_option
|
|
add_option
|
|
|
("ptol", "tolerance", 0,
|
|
("ptol", "tolerance", 0,
|
|
|
"Specify the fit tolerance for Maya polygon tesselation. The smaller "
|
|
"Specify the fit tolerance for Maya polygon tesselation. The smaller "
|
|
|
"the number, the more polygons will be generated. The default is "
|
|
"the number, the more polygons will be generated. The default is "
|
|
|
"0.01.",
|
|
"0.01.",
|
|
|
- &MayaToEgg::dispatch_double, NULL, &MayaParameters::polygon_tolerance);
|
|
|
|
|
|
|
+ &MayaToEgg::dispatch_double, NULL, &_polygon_tolerance);
|
|
|
|
|
|
|
|
add_option
|
|
add_option
|
|
|
("notrans", "", 0,
|
|
("notrans", "", 0,
|
|
@@ -61,7 +60,7 @@ MayaToEgg() :
|
|
|
"one big transform space. Using this option doesn't change the "
|
|
"one big transform space. Using this option doesn't change the "
|
|
|
"position of objects in the scene, just the number of explicit "
|
|
"position of objects in the scene, just the number of explicit "
|
|
|
"transforms appearing in the resulting egg file.",
|
|
"transforms appearing in the resulting egg file.",
|
|
|
- &MayaToEgg::dispatch_none, &MayaParameters::ignore_transforms);
|
|
|
|
|
|
|
+ &MayaToEgg::dispatch_none, &_ignore_transforms);
|
|
|
|
|
|
|
|
add_option
|
|
add_option
|
|
|
("v", "", 0,
|
|
("v", "", 0,
|
|
@@ -93,6 +92,11 @@ run() {
|
|
|
exit(1);
|
|
exit(1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Copy in the command-line parameters.
|
|
|
|
|
+ converter._polygon_output = _polygon_output;
|
|
|
|
|
+ converter._polygon_tolerance = _polygon_tolerance;
|
|
|
|
|
+ converter._ignore_transforms = _ignore_transforms;
|
|
|
|
|
+
|
|
|
// Set the coordinate system to match Maya's.
|
|
// Set the coordinate system to match Maya's.
|
|
|
if (!_got_coordinate_system) {
|
|
if (!_got_coordinate_system) {
|
|
|
_coordinate_system = converter._maya->get_coordinate_system();
|
|
_coordinate_system = converter._maya->get_coordinate_system();
|