| 419 | } |
| 420 | |
| 421 | int main(int argc, char** argv) { |
| 422 | if (argc > 1) { |
| 423 | const char* basepath = "models/"; |
| 424 | if (argc > 2) { |
| 425 | basepath = argv[2]; |
| 426 | } |
| 427 | assert(true == TestLoadObj(argv[1], basepath)); |
| 428 | } else { |
| 429 | // assert(true == TestLoadObj("cornell_box.obj")); |
| 430 | // assert(true == TestLoadObj("cube.obj")); |
| 431 | assert(true == TestStreamLoadObj()); |
| 432 | assert(true == |
| 433 | TestLoadObj("models/catmark_torus_creases0.obj", "models/", false)); |
| 434 | } |
| 435 | |
| 436 | return 0; |
| 437 | } |
nothing calls this directly
no test coverage detected