30 set_program_brief(
"convert .obj files to .egg");
31 set_program_description
32 (
"This program converts obj files to egg. It " 33 "only converts polygon data, with no fancy tricks. " 34 "Very bare-bones at the moment; not even texture maps are supported.");
38 "Specify the coordinate system of the input " + _format_name +
39 " file. Normally, this is z-up.");
41 _coordinate_system = CS_zup_right;
49 nout <<
"Reading " << _input_filename <<
"\n";
51 _data->set_coordinate_system(_coordinate_system);
55 converter._allow_errors = _allow_errors;
57 apply_parameters(converter);
60 nout <<
"Errors in conversion.\n";
69 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_...
void add_normals_options()
Adds -no, -np, etc.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.
Convert an Obj file to egg data.
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
void write_egg_file()
Writes out the egg file as the normal result of the program.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void add_transform_options()
Adds -TS, -TT, etc.
void add_points_options()
Adds -points as a valid option for this program.
This is the general base class for a file-converter program that reads some model file format and gen...
A program to read a Obj file and generate an egg file.
void add_units_options()
Adds -ui and -uo as valid options for this program.