Commit 745a735828fd856473e05d7bb275cf147c20cedb

Authored by David Mayerich
1 parent b4b6f53a

fixed default value error in --obj

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
main.cpp
... ... @@ -227,12 +227,12 @@ void process_arguments(int argc, char* argv[]){
227 227 args.add("rand", "generates a random set of SH coefficients", "", "[N min max]");
228 228 args.add("sparse", "generates a function based on a set of sparse basis functions", "", "[l0 m0 c0 l1 m1 c1 l2 m2 c2 ...]");
229 229 args.add("basis", "displays the specified SH basis function", "", "n, or [l m]");
230   - args.add("obj", "approximates a geometric object given as a Wavefront OBJ file", "", "filename");
  230 + args.add("obj", "approximates a geometric object given as a Wavefront OBJ file", "", "filename, degree (integer), samples (integer)");
231 231 args.add("out", "filename for outputting spherical harmonics coefficients", "", "filename");
232 232 args.add("zaxis", "render the z-axis as a green line");
233 233 args.add("pdf", "outputs the PDF if an OBJ files is given");
234 234 args.add("interp", "interpolates between two specified sets of coefficients", "", "[c0 c1 c2 c3 ...]");
235   - args.add("center", "the center of the model given with --obj", "[x y z]");
  235 + args.add("center", "the center of the model given with --obj", "", "[x y z]");
236 236  
237 237 //process the command line arguments
238 238 args.parse(argc, argv);
... ... @@ -481,6 +481,8 @@ void process_arguments(int argc, char* argv[]){
481 481 }
482 482  
483 483 R = S;
  484 + std::cout << "R: " << R.str() << std::endl << std::endl;
  485 + std::cout << "S: " << S.str() << std::endl;
484 486 }
485 487  
486 488 int main(int argc, char *argv[]){
... ...