readOBJ.cpp 316 B

123456789101112
  1. #include <test_common.h>
  2. TEST_CASE("readOBJ: simple", "[igl]")
  3. {
  4. Eigen::MatrixXd V;
  5. Eigen::MatrixXi F;
  6. // wait... so this is actually testing test_common::load_mesh not readOBJ
  7. // directly...
  8. test_common::load_mesh("cube.obj", V, F);
  9. REQUIRE (V.rows() == 8);
  10. REQUIRE (F.rows() == 12);
  11. }