diff --git a/common/lc_application.cpp b/common/lc_application.cpp index 7f3bede5..08ddeb79 100644 --- a/common/lc_application.cpp +++ b/common/lc_application.cpp @@ -174,15 +174,15 @@ bool lcApplication::Initialize(int argc, char* argv[], const char* LibraryInstal // Image output options. bool SaveImage = false; + bool SaveWavefront = false; // bool ImageHighlight = false; int ImageWidth = lcGetProfileInt(LC_PROFILE_IMAGE_WIDTH); int ImageHeight = lcGetProfileInt(LC_PROFILE_IMAGE_HEIGHT); lcStep ImageStart = 0; lcStep ImageEnd = 0; char* ImageName = NULL; - - // File to open. char* ProjectName = NULL; + char* WavefrontName = NULL; // Parse the command line arguments. for (int i = 1; i < argc; i++) @@ -227,6 +227,17 @@ bool lcApplication::Initialize(int argc, char* argv[], const char* LibraryInstal } // else if (strcmp(Param, "--highlight") == 0) // ImageHighlight = true; + else if ((strcmp(Param, "-wf") == 0) || (strcmp(Param, "--wavefront") == 0)) + { + SaveWavefront = true; + + if ((argc > (i+1)) && (argv[i+1][0] != '-')) + { + i++; + WavefrontName = argv[i]; + } + } + else if ((strcmp(Param, "-v") == 0) || (strcmp(Param, "--version") == 0)) { printf("LeoCAD Version " LC_VERSION_TEXT "\n"); @@ -244,7 +255,8 @@ bool lcApplication::Initialize(int argc, char* argv[], const char* LibraryInstal printf(" -h, --height : Sets the picture height.\n"); printf(" -f, --from