15 #include "vrmlToEgg.h" 17 #include "vrmlToEggConverter.h" 30 add_normals_options();
31 add_transform_options();
33 set_program_brief(
"convert VRML 2.0 model files to .egg");
34 set_program_description
35 (
"This program converts VRML 2.0 model files to egg. Animated files, " 36 "and VRML 1.0 files, are not supported.");
40 "Specify the coordinate system of the input " + _format_name +
41 " file. Normally, this is y-up.");
43 _coordinate_system = CS_yup_right;
53 nout <<
"Reading " << _input_filename <<
"\n";
55 _data->set_coordinate_system(_coordinate_system);
59 converter._allow_errors = _allow_errors;
61 apply_parameters(converter);
64 nout <<
"Errors in conversion.\n";
73 int main(
int argc,
char *argv[]) {
virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
A program to read a VRML file and generate an egg file.
This class supervises the construction of an EggData structure from a VRML file.
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
This is the general base class for a file-converter program that reads some model file format and gen...
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.